:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f0ede5; --line: #e2ddd1;
  --ink: #1d1b16; --ink-2: #57524a; --muted: #8a8478;
  --accent: #8a6d1f; --accent-ink: #ffffff; --accent-soft: #f3ead3;
  --good: #1f7a3a; --good-soft: #e3f3e7; --warn: #a35f00; --warn-soft: #fdf0dc; --bad: #b3261e; --bad-soft: #fbe5e3;
  --info: #2a78d6; --info-soft: #e5effb;
  --series-1: #2a78d6; --seq-1: #cde2fb; --seq-3: #86b6ef; --seq-5: #3987e5; --seq-7: #1c5cab; --seq-9: #0d366b;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --tap: 48px; --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141311; --surface: #1d1c19; --surface-2: #26241f; --line: #34312a;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8b80;
    --accent: #d8b55a; --accent-ink: #1d1b16; --accent-soft: #3a311b;
    --good: #5cc27a; --good-soft: #1d3324; --warn: #e5a54a; --warn-soft: #3a2c16; --bad: #ef7d74; --bad-soft: #3b1f1c;
    --info: #6aa6ee; --info-soft: #1b2a3d;
    --series-1: #3987e5; --seq-1: #184f95; --seq-3: #256abf; --seq-5: #3987e5; --seq-7: #86b6ef; --seq-9: #cde2fb;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141311; --surface: #1d1c19; --surface-2: #26241f; --line: #34312a;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8b80;
  --accent: #d8b55a; --accent-ink: #1d1b16; --accent-soft: #3a311b;
  --good: #5cc27a; --good-soft: #1d3324; --warn: #e5a54a; --warn-soft: #3a2c16; --bad: #ef7d74; --bad-soft: #3b1f1c;
  --info: #6aa6ee; --info-soft: #1b2a3d;
  --series-1: #3987e5; --seq-1: #184f95; --seq-3: #256abf; --seq-5: #3987e5; --seq-7: #86b6ef; --seq-9: #cde2fb;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 700; letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.topbar .brand small { font-weight: 500; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--good-soft); color: var(--good); border: 0; cursor: pointer; }
.sync.off { background: var(--warn-soft); color: var(--warn); }
.sync.err { background: var(--bad-soft); color: var(--bad); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; border: 0; cursor: pointer; }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.on { color: var(--accent); }
@media (min-width: 900px) {
  .bottomnav { top: 0; bottom: 0; right: auto; width: 92px; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: start; border-top: 0; border-right: 1px solid var(--line); padding-top: 70px; }
  #app { padding-left: 92px; }
  .topbar { z-index: 40; }
  main { padding-bottom: 40px; }
}

/* ---------- building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card.tight { padding: 12px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; gap: 14px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } .cols.c3 { grid-template-columns: 2fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.big { min-height: 60px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .88rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

label.f { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.sm { min-height: 38px; padding: 6px 8px; border-radius: 9px; }
.field { margin-bottom: 12px; }
.req::after { content: " *"; color: var(--bad); }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 0 14px; min-height: 40px; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .x { opacity: .7; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.gold { background: var(--accent-soft); color: var(--accent); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 44px; }
.toggle input { appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; transition: .15s; cursor: pointer; margin: 0; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px #0003; }
.toggle input:checked { background: var(--good); }
.toggle input:checked::after { left: 23px; }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; }

/* invoice item lines */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.line img, .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: block; }
.thumb.ph { display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.line .specs { font-size: .8rem; color: var(--ink-2); }
.line .price { display: grid; grid-template-columns: 70px 92px; gap: 6px; align-items: center; margin-top: 6px; }
.line .price .input { text-align: right; }
@media (min-width: 700px) { .line { grid-template-columns: 72px 1fr 210px; } .line img, .line .thumb { width: 72px; height: 72px; } .line .price { margin-top: 0; } }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.totals .big { font-size: 1.35rem; font-weight: 800; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .l { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kpi .v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .s { font-size: .8rem; color: var(--ink-2); }

/* product page */
.product .hero { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1 / 1; max-height: 70vh; display: grid; place-items: center; margin: 0 auto 14px; max-width: 560px; }
.product .hero img { width: 100%; height: 100%; object-fit: contain; }
.product .title { text-align: center; }
.product .price { font-size: 1.8rem; font-weight: 800; text-align: center; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.specgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 700px) { .specgrid { grid-template-columns: repeat(4, 1fr); } }
.specgrid div { background: var(--surface); padding: 10px 12px; }
.specgrid b { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* catalogue grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.tile .img { aspect-ratio: 1/1; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { padding: 8px 10px; font-size: .8rem; }
.tile .meta b { font-size: .9rem; display: block; }
.tile.prio { border: 2px solid var(--bad); }
.tile.ok { border: 2px solid var(--good); }
.tile .flag { position: absolute; top: 6px; left: 6px; }

/* sheet / modal */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .overlay { align-items: center; } }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { border-radius: 20px; } }
.sheet .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet .head h2 { flex: 1; margin: 0; }

.scanbox { position: relative; border-radius: 14px; overflow: hidden; background: #000; min-height: 260px; }
.scanbox video { width: 100% !important; display: block; }
.scanlog { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 6px 24px #0004; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.good { background: var(--good); color: #fff; }

/* login */
.login { width: 100%; max-width: 460px; margin: 0 auto; padding: 32px 16px; }
.login .logo { text-align: center; margin: 20px 0 24px; }
.login .logo .mark { font-size: .8rem; letter-spacing: .3em; color: var(--accent); font-weight: 800; }
.users { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.users button { min-height: 76px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 16px auto 0; }
.pinpad button { height: 68px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.pindots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-2); }
.pindots span.on { background: var(--ink); border-color: var(--ink); }

/* list rows */
.listrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.listrow:last-child { border-bottom: 0; }
.listrow .grow { flex: 1; min-width: 0; }
.listrow .t1 { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listrow .t2 { font-size: .82rem; color: var(--muted); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.menu-grid a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; min-height: 96px; }
.menu-grid a svg { width: 26px; height: 26px; color: var(--accent); }
.menu-grid a small { font-weight: 500; color: var(--muted); }

.notice { padding: 12px 14px; border-radius: 12px; background: var(--info-soft); color: var(--ink); font-size: .9rem; margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); } .notice.good { background: var(--good-soft); }

.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reasons button { min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; padding: 6px 10px; }
.reasons button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* charts */
.chart { width: 100%; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--series-1); }
.chart .bar:hover, .chart .hit:hover + .bar { opacity: .8; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.hbar .track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hbar .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .78rem; }
.heat th { font-weight: 600; color: var(--muted); padding: 4px; text-align: left; }
.heat td { min-width: 44px; height: 32px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; font-weight: 700; }
.tip { position: fixed; z-index: 300; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: .8rem; box-shadow: 0 4px 16px #0003; }

.receipt-preview { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; border: 1px solid var(--line); max-width: 100%; }
.receipt-preview canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
@media (min-width: 900px) { .sticky-actions { bottom: 12px; } }
@media print { .topbar, .bottomnav, .noprint { display: none !important; } #app { padding: 0 !important; } main { padding: 0 !important; } }
.row > h1.grow { min-width: 180px; }
h1 svg, h2 svg, h3 svg, .listrow > svg, .notice svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.tip[hidden] { display: none; }

/* ---------- payment methods ---------- */
.paymethods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .paymethods { grid-template-columns: repeat(2, 1fr); } }
.paybtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }
.paybtn svg { width: 24px; height: 24px; color: var(--accent); }
.paybtn.on { border-color: var(--accent); background: var(--accent-soft); }
.payrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.payrow b svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }
.payrow .seg button { min-height: 36px; }

/* ---------- dashboard ---------- */
.daypills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: none; }
.daypills::-webkit-scrollbar { display: none; }
.daypills a { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .85rem; }
.daypills a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 600px) { .stiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stiles { grid-template-columns: repeat(4, 1fr); } }
.stile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .1s; }
.stile:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stile .si svg { width: 26px; height: 26px; }
.stile .si { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.stile .st { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stile b { display: block; font-size: 1rem; }
.stile .ss { display: block; font-size: .8rem; color: var(--ink-2); }
.stile .sb svg { width: 22px; height: 22px; }
.stile.good { border-color: var(--good); } .stile.good .si { background: var(--good-soft); color: var(--good); } .stile.good .sb { color: var(--good); }
.stile.bad { border-color: var(--bad); } .stile.bad .si { background: var(--bad-soft); color: var(--bad); } .stile.bad .sb { color: var(--bad); }
.stile.warn { border-color: var(--warn); } .stile.warn .si { background: var(--warn-soft); color: var(--warn); } .stile.warn .sb { color: var(--warn); }
.stile.idle .sb { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(260px, 1fr) 1.6fr; } }
.hero-n .l { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hero-n .v { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hero-n .s { font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.minis { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .85rem; color: var(--ink-2); }
.minis b { color: var(--ink); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 4px 0 14px; scrollbar-width: none; }
.tabs button { flex: none; border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; font-size: .92rem; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
section[hidden] { display: none; }
.pl { display: flex; flex-direction: column; gap: 6px; }
.plr { display: grid; grid-template-columns: minmax(120px, 42%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 3px 0; }
.plr .track { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.plr .fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.plr .fill.neg { background: var(--seq-3); }
.plr .num { font-variant-numeric: tabular-nums; text-align: right; min-width: 110px; }
.plr.strong { font-weight: 800; border-top: 1px solid var(--line); padding-top: 7px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }

/* ---------- customs verification ---------- */
.verify { border-width: 2px; }
.verify.good { border-color: var(--good); }
.verify.bad { border-color: var(--bad); }
.verify .vi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.verify .vi svg { width: 26px; height: 26px; }
.verify.good .vi { background: var(--good-soft); color: var(--good); }
.verify.bad .vi { background: var(--bad-soft); color: var(--bad); }

/* ---------- tasks & checklist ---------- */
.pbar { display: block; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pbar span { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.trow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow.done .t1 { text-decoration: line-through; color: var(--muted); }
.tick { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; cursor: pointer; flex: none; }
.tick svg { width: 20px; height: 20px; }
.tick.on { background: var(--good); border-color: var(--good); color: #fff; }
.cgroups { display: grid; gap: 14px; }
@media (min-width: 900px) { .cgroups, .team { grid-template-columns: repeat(2, 1fr); } }
.team { display: grid; gap: 14px; }
.cgroups .card, .team .card { margin-bottom: 0; }
.clist { display: flex; flex-direction: column; }
.citem { display: flex; gap: 6px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.pill { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 99px; padding: 0 12px; min-height: 36px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.pill.on { background: var(--good-soft); border-color: var(--good); color: var(--good); }

/* ---------- tally reports ---------- */
.report { border-width: 2px; }
.report.good { border-color: var(--good); } .report.bad { border-color: var(--bad); } .report.warn { border-color: var(--warn); }
