:root {
  --bg: #F4F1E8; --card: #FFFFFF; --ink: #15211D; --muted: #5F6B66; --line: #E4DFD2; --line2: #EFEBE1;
  --green: #0C5C4A; --green-ink: #0A4A3C; --green-bg: #E2EFE9; --mint: #C9E6D9;
  --amber: #8A5A00; --amber-bg: #FFF1CF; --red: #B3261E; --red-bg: #FCE6E3;
  --wa: #1B8F4E; --radius: 14px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.4; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; font-weight: 750; }
h2 { font-size: 1.02rem; font-weight: 700; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.red { color: var(--red); } .green { color: var(--green); }
b, .amt, .big, dd, .line, .pk-price { font-variant-numeric: tabular-nums; }

.page { max-width: 760px; margin: 0 auto; padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }

/* ---------- headers ---------- */
.top { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; min-height: 44px; }
.top h1 { flex: 1; }
.back { font-size: 2rem; line-height: 1; width: 36px; height: 40px; display: grid; place-items: center; margin-left: -8px; color: var(--green); }
.hello { display: flex; justify-content: space-between; align-items: flex-start; margin: 6px 0 14px; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: .85rem; }

/* ---------- buttons ---------- */
.primary { background: var(--green); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.primary.small, .ghost.small { padding: 8px 12px; font-size: .9rem; border-radius: 10px; }
.primary:active { background: var(--green-ink); }
.wide { width: 100%; }
.ghost { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ghost.red { color: var(--red); border-color: #F2C3BE; }
.wa { background: var(--wa); color: #fff; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: var(--line2); }
.danger-link { display: block; margin: 26px auto 0; color: var(--red); font-size: .9rem; text-decoration: underline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.row-actions > * { flex: 1 1 auto; }
.actions-bar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); margin-top: 14px; z-index: 5; }
.actions-bar .primary { box-shadow: 0 8px 24px rgba(12, 92, 74, .28); padding: 15px; font-size: 1.05rem; }
.add-item { width: 100%; border: 2px dashed #B9CFC5; border-radius: var(--radius); padding: 14px; color: var(--green); font-weight: 650; display: flex; justify-content: center; gap: 6px; background: rgba(255,255,255,.5); margin: 10px 0; }
.add-item:active { background: var(--green-bg); }

/* ---------- cards / lists ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.link { color: var(--green); font-weight: 600; font-size: .9rem; }
.list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list.flat { border: 0; border-radius: 0; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line2); text-align: left; width: 100%; background: var(--card); }
.li:last-child { border-bottom: 0; }
.li > span:first-child { min-width: 0; }
.li b { display: block; font-weight: 620; }
.li small, .item small, .sp-head small, .oname small { display: block; color: var(--muted); font-size: .82rem; }
.li em { font-style: normal; } .li em.soon { color: var(--amber); font-weight: 600; } .li em.expired { color: var(--red); font-weight: 700; }
.amt { text-align: right; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.amt small { color: var(--green); font-weight: 600; }
.amt.warn { color: var(--amber); }
.list.flat .amt { flex-direction: row; align-items: center; gap: 4px; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.day { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 6px; font-weight: 650; }
.day span { color: var(--ink); }
.note { display: block; background: var(--amber-bg); color: var(--amber); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 8px 0; }
.note.red { background: var(--red-bg); color: var(--red); }
.badge { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; height: fit-content; }
.badge.green { background: var(--green-bg); color: var(--green); } .badge.red { background: var(--red-bg); color: var(--red); } .badge.amber { background: var(--amber-bg); color: var(--amber); }

/* ---------- forms ---------- */
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.form label small { font-weight: 400; }
.label { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 4px 0 6px; }
input, select { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 11px; background: #FDFCF9; width: 100%; min-width: 0; font-size: 1rem; }
input:focus, select:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px var(--green-bg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; color: var(--ink) !important; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 8px 0 10px; color: var(--muted); }
.search input { border: 0; padding: 12px 0; background: transparent; box-shadow: none; }
.file { cursor: pointer; }

/* ---------- chips / tabs / segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 12px; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 550; }
.chip i { font-style: normal; font-size: .72rem; background: var(--line2); border-radius: 99px; padding: 1px 6px; color: var(--muted); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on i { background: rgba(255,255,255,.2); color: #fff; }
.chip.add { border-style: dashed; color: var(--green); }
.chip .ic { width: 15px; height: 15px; }
.often .chip { background: var(--green-bg); border-color: var(--mint); color: var(--green-ink); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 10px; scrollbar-width: none; }
.tabs > * { white-space: nowrap; padding: 8px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.tabs > .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs i { font-style: normal; opacity: .6; margin-left: 2px; }
.tabs .red:not(.on) { color: var(--red); border-color: #F2C3BE; }
.seg { display: flex; background: var(--line2); border-radius: 11px; padding: 3px; gap: 2px; margin-top: 12px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.tiny { margin: 0; } .seg.tiny button { padding: 6px 9px; font-size: .85rem; }

/* ---------- home ---------- */
.hero { background: var(--green); color: #EAF4EF; border-radius: 20px; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.hero p { margin: 0; font-weight: 600; opacity: .85; }
.big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.15; margin: 2px 0 6px; }
.hero-row { display: flex; gap: 18px; font-size: .95rem; opacity: .92; }
.hero-row b { color: #fff; }
.hero-btn { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 6px; background: #F4F1E8; color: var(--green-ink); font-weight: 750; border-radius: 12px; padding: 13px; font-size: 1.05rem; }
.grid.alerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.alert { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; display: flex; flex-direction: column; gap: 1px; min-height: 72px; }
.alert b { font-size: 1.35rem; font-weight: 800; }
.alert span { font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.2; }
.alert.red:not(.zero) { background: var(--red-bg); border-color: #F2C3BE; } .alert.red:not(.zero) b { color: var(--red); }
.alert.amber:not(.zero) { background: var(--amber-bg); border-color: #F1D9A0; } .alert.amber:not(.zero) b { color: var(--amber); }
.alert.green:not(.zero) b { color: var(--green); }
.alert.plain b { font-size: 1.05rem; padding-top: 4px; }
.alert.zero b { color: #A8B2AD; }
.pnl { margin: 0; }
.pnl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pnl dt { color: var(--muted); } .pnl dd { margin: 0; font-weight: 650; }
.pnl .sub dt { color: var(--ink); font-weight: 600; }
.pnl .total { border-bottom: 0; padding-top: 10px; font-size: 1.15rem; }
.pnl .total dt { color: var(--ink); font-weight: 750; } .pnl .total dd { font-weight: 800; color: var(--green); }
.pnl .total.neg dd { color: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { width: 100%; background: var(--mint); border-radius: 4px 4px 2px 2px; display: block; max-height: calc(100% - 18px); }
.bar:last-child i { background: var(--green); }
.bar span { font-size: .68rem; color: var(--muted); height: 14px; }
ol.top-sellers { list-style: none; margin: 0; padding: 0; display: block; }
ol.top-sellers li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
ol.top-sellers li:last-child { border: 0; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick > * { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; color: var(--green-ink); font-size: .92rem; }

/* ---------- bill items ---------- */
.items { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.item-head b { font-size: 1.02rem; }
.item-head .icon-btn { margin: -6px -8px 0 0; }
.item-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #FDFCF9; }
.stepper button { width: 38px; height: 40px; font-size: 1.3rem; color: var(--green); font-weight: 700; }
.stepper button:active { background: var(--green-bg); }
.stepper input { width: 52px; border: 0; border-radius: 0; text-align: center; padding: 8px 0; font-weight: 700; background: transparent; box-shadow: none; -moz-appearance: textfield; }
.stepper.sm button { width: 32px; height: 34px; } .stepper.sm input { width: 40px; padding: 5px 0; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.price input { width: 84px; padding: 9px 8px; }
.price small { font-size: .75rem; }
.line { margin-left: auto; font-size: 1.05rem; }
.dose { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.tag { border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: .82rem; font-weight: 600; color: var(--muted); background: #FDFCF9; }
.tag.on { background: var(--amber-bg); border-color: #E9C46A; color: #6B4500; }
.sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.days { display: flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.days input { width: 46px; padding: 5px 6px; text-align: center; }
.totals .trow { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 10px; }
.totals .trow input { width: 110px; text-align: right; }
.trow.grand { font-size: 1.25rem; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.trow.grand b { color: var(--green); }
.link-note { text-decoration: underline; }

/* ---------- receipt ---------- */
.receipt { background: #FFFEFA; border: 1px solid var(--line); border-radius: 6px; padding: 20px 18px 18px; font-family: var(--mono); font-size: .9rem; position: relative;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.35);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 50% 100% / 16px 100% repeat-x;
  mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 50% 100% / 16px 100% repeat-x; padding-bottom: 28px; }
.r-shop { text-align: center; display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed #BDB6A5; }
.r-shop b { font-family: "Segoe UI", system-ui, sans-serif; font-size: 1.2rem; }
.r-shop span { color: var(--muted); font-size: .8rem; }
.r-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; padding: 8px 0 0; }
.r-items { list-style: none; padding: 10px 0; margin: 10px 0 0; border-top: 1px dashed #BDB6A5; border-bottom: 1px dashed #BDB6A5; display: flex; flex-direction: column; gap: 8px; }
.r-items div { display: flex; justify-content: space-between; gap: 10px; }
.r-items em { font-style: normal; color: var(--muted); }
.r-items small { display: block; color: #6B4500; font-size: .78rem; margin-top: 2px; }
.r-line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-size: 1.05rem; }
.r-total b { font-size: 1.4rem; }
.r-foot { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: .82rem; }

/* ---------- orders ---------- */
.vgroup .orow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.vgroup .orow:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.oname { flex: 1 1 140px; min-width: 0; }
.orow select { width: auto; max-width: 140px; padding: 7px 8px; font-size: .9rem; }
.orow .icon-btn { width: 32px; height: 32px; }
.qty { font-weight: 700; }

/* ---------- special orders / vendors ---------- */
.sp-list { display: flex; flex-direction: column; }
.sp { border-left: 4px solid var(--amber); } .sp.ready { border-left-color: var(--green); } .sp.done { border-left-color: var(--line); opacity: .85; }
.sp-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sp-head b { font-size: 1.08rem; }
.sp-head em { font-style: normal; font-weight: 700; }
.sp-items { list-style: none; padding: 8px 0; margin: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.sp-items li { display: flex; justify-content: space-between; padding: 2px 0; font-size: .93rem; }
.sp-money { display: flex; gap: 14px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; margin: 6px 0; }
.sp-money b { color: var(--ink); } .sp-money b.red { color: var(--red); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; background: var(--card); }
.btn .ic { width: 17px; height: 17px; }
.btn.call { color: var(--green); border-color: var(--mint); background: var(--green-bg); }
.btn.wa { color: #fff; background: var(--wa); border-color: var(--wa); }
.btn.primary { color: #fff; background: var(--green); border-color: var(--green); }
.vote { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 11px; font-weight: 700; color: var(--green); }
.vote:active { background: var(--green-bg); }
.vote .ic { width: 17px; height: 17px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.cats b { color: var(--ink); }
.big-links .li { padding: 16px 14px; }

/* ---------- sheet (bottom drawer) ---------- */
.sheet-wrap { position: fixed; inset: 0; background: rgba(15, 25, 21, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -8px; background: var(--bg); padding: 10px 0 6px; z-index: 2; }
.sheet-head::before { content: ""; position: absolute; top: 2px; left: 50%; width: 40px; height: 4px; margin-left: -20px; background: #CFC9BA; border-radius: 4px; }
.pk-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-height: 40vh; }
.pk-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 2px; font-weight: 700; }
.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; text-align: left; }
.pk-row:active { background: var(--green-bg); }
.pk-row b { display: block; font-weight: 620; } .pk-row small { color: var(--muted); font-size: .8rem; }
.pk-price { font-weight: 700; color: var(--green); }
.pk-new { border-style: dashed; border-color: #B9CFC5; color: var(--green); justify-content: flex-start; }
.pick-btn { width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: #FDFCF9; margin-bottom: 10px; color: var(--muted); }
.pick-btn b { color: var(--ink); }
#pk-done { position: sticky; bottom: 0; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: .7rem; font-weight: 650; color: var(--muted); border-radius: 10px; }
.tabbar a.on { color: var(--green); }
.tabbar a.on .ic { background: var(--green-bg); border-radius: 99px; padding: 3px 14px; width: 50px; box-sizing: content-box; height: 20px; margin: -3px 0; }
.tabbar .ic { width: 22px; height: 22px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; z-index: 100; transition: opacity .3s, transform .3s; max-width: 90vw; text-align: center; animation: up .2s; }
.toast.good { background: var(--green); } .toast.bad { background: var(--red); }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }

@media (min-width: 700px) {
  .grid.alerts { grid-template-columns: repeat(6, 1fr); }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 20px; }
}
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } .big { font-size: 2.2rem; } }
@media print {
  .tabbar, .top, .noprint { display: none !important; }
  body, .page { background: #fff; padding: 0; }
  .receipt { box-shadow: none; border: 0; -webkit-mask: none; mask: none; }
}

/* ---------- login + sync ---------- */
.page-login { padding-bottom: 40px; }
.login { max-width: 420px; margin: 0 auto; padding-top: 6vh; }
.login-brand { text-align: center; margin-bottom: 8px; }
.login-brand img { border-radius: 14px; }
.login-brand h1 { margin: 10px 0 4px; }
.login h2 { margin: 0 0 4px; font-size: 1.15rem; }
.login-err { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 4px 0; }
.login a { color: var(--green); font-weight: 600; }
.tag { background: var(--green-bg); color: var(--green); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 650; }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--line2); color: var(--muted); }
.sync-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sync-pill.ok { background: var(--green-bg); color: var(--green); }
.sync-pill.wait { background: #FBF0D9; color: #8A5A00; }
.sync-pill.bad { background: #FBE3E0; color: var(--red); }
.sync-pill.busy::before { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.row-actions .sync-pill { margin-top: 0; }
.row-actions .sync-pill { flex: 0 0 auto; align-self: center; }
