/* FruitCast store order portal — "signal band" system (2026-11-02).
   One signal colour, signage yellow, means exactly one thing: this line needs you. Sign black carries the shell and the
   pictogram tiles; everything handled or normal sits quietly on grey and white. Green only for done, red only for
   errors and the last minutes of the window. */

:root {
  --ink: #0b0b0b; --ink-2: #33332f; --muted: #5c5c56; --ground: #ecece8; --panel: #ffffff; --hair: #d6d6d0; --hair-2: #bdbdb6;
  --signal: #ffcc00; --on-signal: #0b0b0b; --on-signal-2: #4a3b00; --signal-soft: #fff2b8;
  --shell: #0b0b0b; --shell-2: #1d1d1b; --on-shell: #ffffff; --on-shell-2: #b9b9b1;
  --done: #1d6f42; --done-bg: #e2f1e7; --on-done: #ffffff;
  --error: #b3261e; --error-bg: #fbe9e7;
  --edit: #0b0b0b;
  --focus: #0b0b0b;
  --radius: 6px; --tile: 4px;
  --font: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1ec; --ink-2: #d4d4cd; --muted: #a2a29a; --ground: #0b0b0b; --panel: #171716; --hair: #2e2e2b; --hair-2: #45453f;
    --signal: #ffcc00; --on-signal: #0b0b0b; --on-signal-2: #4a3b00; --signal-soft: #3b3205;
    --shell: #000000; --shell-2: #1d1d1b;
    --done: #63c98d; --done-bg: #12291b; --on-done: #08140c;
    --error: #ff8a80; --error-bg: #3a1714;
    --edit: #f1f1ec; --focus: #ffcc00;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--hair-2) transparent; scroll-padding-top: calc(var(--shell-h) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--font); font-feature-settings: "kern"; }
::selection { background: var(--signal); color: var(--on-signal); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
b, strong { font-weight: 700; }
button, input, select { font: inherit; color: inherit; }
input, select { caret-color: var(--ink); accent-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.hidden { display: none !important; }
.inline { display: inline; margin: 0; }
.muted { color: var(--muted); }
.num, .qty-num, .tally-num, .stat dd, #countdown { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- shell */
.shell { position: sticky; top: 0; z-index: 20; height: var(--shell-h); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
         gap: 16px; padding: 0 16px; background: var(--shell); color: var(--on-shell); }
.shell :focus-visible { outline-color: var(--signal); }
.shell-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.mark { width: 28px; height: 28px; }
.shell-context { min-width: 0; }
.ctx-store { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding-left: 16px; border-left: 1px solid #2f2f2c; }
.ctx-store b { font-size: 1.05rem; }
.ctx-name { color: var(--on-shell-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.shell-actions { display: flex; align-items: center; gap: 4px; }
.shell-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius); background: transparent;
             color: var(--on-shell); font-size: .875rem; cursor: pointer; }
.shell-btn:hover { background: var(--shell-2); }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-right: 4px; border-radius: var(--radius);
         background: var(--shell-2); color: var(--signal); }
.clock b { font-size: 1.15rem; letter-spacing: .02em; min-width: 4.2ch; text-align: right; }
.clock.urgent { background: var(--error); color: #fff; }
@media (max-width: 640px) {
  .shell { gap: 10px; padding: 0 10px; }
  .shell-name, .hide-sm, .ctx-name, .shell-btn span { display: none; }
  .ctx-store { padding-left: 10px; }
}

/* ---------------------------------------------------------------- page frame */
main.page { max-width: 1680px; margin: 0 auto; padding: 20px 16px 132px; }
@media (min-width: 900px) { main.page { padding: 28px 32px 64px; } }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); margin-top: 12px; font-weight: 600; }
.alert.error { background: var(--error-bg); color: var(--error); }
.alert.ok { background: var(--done-bg); color: var(--done); }
.empty { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); color: var(--done); font-weight: 600; }

/* pictogram tile: the sign system's black inset square */
.pict { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: var(--tile); background: var(--shell); color: #ffffff; }
.pict .ic { width: 28px; height: 28px; }
.pict.big { width: 72px; height: 72px; }
.pict.big .ic { width: 40px; height: 40px; }
.pict .done-ic { display: none; }

/* ---------------------------------------------------------------- buttons */
.primary, .secondary, .ok-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px 0 6px;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.primary { background: var(--ink); color: var(--panel); border: 0; }
.primary:hover { background: var(--ink-2); }
.btn-tile, .ok-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--tile); background: var(--signal); color: var(--on-signal); }
.secondary { padding: 0 20px; background: var(--panel); color: var(--ink); border: 1px solid var(--ink); }
.secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.wide { width: 100%; white-space: normal; text-align: left; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }
.secondary.wide { justify-content: center; text-align: center; }
.panel > * { min-width: 0; }
.primary:active, .secondary:active, .ok-btn:active, .step:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- order layout */
.order { display: grid; gap: 24px; }
@media (min-width: 1100px) {
  .order.phase-open { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
}
.order-head { display: grid; gap: 6px; }
.answer { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dot-state { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: 0 0 auto; }
.dot-state.done { background: var(--done); border-color: var(--done); }
.dot-state.live { background: var(--signal); border-color: var(--ink); }
.intro { margin: 16px 0 20px; max-width: 70ch; color: var(--ink-2); }

/* tier headings: one tile shape, three weights */
.tier { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.tier .count { color: var(--muted); font-weight: 600; }
.tier-tile { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--tile); flex: 0 0 auto; }
.tier-tile .ic { width: 20px; height: 20px; }
.tier-tile.signal { background: var(--signal); color: var(--on-signal); }
.tier-tile.outline { border: 2px solid var(--ink); color: var(--ink); }
.tier-tile.quiet { background: var(--hair); color: var(--ink-2); }
.tier-tile.sm { width: 14px; height: 14px; border-width: 1.5px; }
.sec { margin-bottom: 28px; }

/* ---------------------------------------------------------------- red: sign bands */
.bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.band { border-radius: var(--radius); }
.band-sign { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 44px; align-items: center; gap: 16px; min-height: 64px;
  padding: 8px 10px 8px 12px; border: 0; border-radius: var(--radius); text-align: left; cursor: pointer;
  background-color: var(--signal-soft); color: var(--on-signal); }
@media (prefers-color-scheme: dark) { .band:not(.is-next):not(.checked):not(.changed) .band-sign { color: var(--ink); } .band:not(.is-next):not(.checked):not(.changed) .why-main, .band:not(.is-next):not(.checked):not(.changed) .why-more { color: var(--ink-2); } }
.band-text { display: grid; gap: 1px; min-width: 0; }
.band .name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.why-main { font-weight: 600; font-size: .9rem; color: var(--on-signal-2); }
.why-more { font-size: .8rem; color: var(--on-signal-2); opacity: .85; }
.band-qty { display: inline-flex; align-items: baseline; gap: 4px; justify-self: end; }
.band .qty-num { font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.qty-unit { font-size: .9rem; font-weight: 600; }
.edge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--tile); background: transparent; color: transparent; }
.edge .ic { width: 24px; height: 24px; }
.band-body { display: none; padding: 16px; background: var(--panel); border: 1px solid var(--hair); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* the next decision: full signal, monumental quantity, arrow locked to the panel edge, body open */
.band.is-next .band-sign, .no-js .band .band-sign { background-color: var(--signal); min-height: 88px; padding: 12px 12px 12px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.band.is-next .qty-num { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.band.is-next .edge { background: var(--shell); color: var(--signal); }
.band.is-next .band-body, .band.is-open .band-body, .band.changed .band-body, .no-js .band .band-body { display: grid; }
.band.is-open:not(.is-next) .band-sign, .band.changed:not(.is-next) .band-sign { border-radius: var(--radius) var(--radius) 0 0; }

/* handled: drops back to quiet, green tick in the tile */
.band.checked:not(.is-next) .band-sign, .band.changed:not(.is-next) .band-sign { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.band.checked .pict { background: var(--done); color: var(--on-done); }
.band.checked .why-ic { display: none; }
.band.checked .done-ic { display: inline-block; }
.band.checked:not(.is-next) .why-main, .band.checked:not(.is-next) .why-more, .band.changed:not(.is-next) .why-main, .band.changed:not(.is-next) .why-more { color: var(--muted); }
.band.checked:not(.is-next) .qty-num { font-size: 1.5rem; }
.band.changed .band-sign { box-shadow: inset 0 0 0 2px var(--edit); }

.band-body { gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .band-body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
  .band-body .facts { grid-column: 1; }
  .band-body .rec-note { grid-column: 1; }
  .band-body .controls { grid-column: 2; grid-row: 1 / span 2; }
  .band-body .why-fields, .band-body .engine-why { grid-column: 1 / -1; }
}
.rec-note { font-size: .9rem; color: var(--muted); }
.rec-note b { color: var(--ink); }

/* signature motion: the next band paints in from the left edge, like a sign panel being updated */
@keyframes paint { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.band.arrived .band-sign { background-color: var(--signal-soft); background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat;
  background-size: 100% 100%; animation: paint .55s cubic-bezier(.16, 1, .3, 1) both; }
.band.arrived .band-body { animation: rise .45s cubic-bezier(.16, 1, .3, 1) .1s both; }
@media (prefers-reduced-motion: reduce) { .band.arrived .band-sign, .band.arrived .band-body { animation: none; } }

/* ---------------------------------------------------------------- facts, stock state */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .875rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 700; }
/* stock state: a stockout is the worst outcome, so "out of stock" is the one red label on a working line */
.stock { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--tile); background: var(--ground); color: var(--ink); font-weight: 700; }
.stock .ic { width: 16px; height: 16px; }
.stock.low { background: var(--ink); color: var(--panel); }
.stock.out { background: var(--error); color: #ffffff; }
.stock.unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.band-body .stock { background: var(--ground); }
.band-body .stock.low { background: var(--ink); }
.band-body .stock.out { background: var(--error); }
.band-body .stock.unknown { background: transparent; }
.suggest-label { font-size: .875rem; font-weight: 700; color: var(--ink-2); }

/* ---------------------------------------------------------------- controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.step { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--hair-2); background: var(--panel);
        color: var(--ink); cursor: pointer; }
.step:hover { border-color: var(--ink); }
.stepper input { width: 5.5rem; height: 48px; text-align: center; font-weight: 700; font-size: 1.15rem; border: 1px solid var(--hair-2); border-radius: var(--radius);
                 background: var(--panel); font-variant-numeric: tabular-nums; }
.stepper input:focus { border-color: var(--ink); }
.unit { color: var(--muted); font-weight: 600; min-width: 2ch; }
.ok-btn { min-height: 48px; padding: 0 16px 0 4px; background: var(--ink); color: var(--panel); border: 0; }
.ok-btn .ok-tile { background: var(--panel); color: var(--ink); }
.ok-btn:hover { background: var(--ink-2); }
.ok-btn[aria-pressed="true"] { background: var(--done); color: var(--on-done); }
.ok-btn[aria-pressed="true"] .ok-tile { background: var(--on-done); color: var(--done); }
.no-js .ok-btn { display: none; }

.why-fields { display: none; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .why-fields { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.changed .why-fields, .no-js .why-fields { display: grid; }
select, .why-fields input, .search input, .gate input, .short { min-height: 48px; padding: 10px 12px; border: 1px solid var(--hair-2); border-radius: var(--radius); background: var(--panel); width: 100%; }
select:focus, .why-fields input:focus, .search input:focus, .gate input:focus { border-color: var(--ink); }
select:required:invalid { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.engine-why { font-size: .8rem; color: var(--muted); }
.engine-why summary { cursor: pointer; width: max-content; }
.engine-why p { margin-top: 6px; max-width: 90ch; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- yellow / green / add: hairline grid of rows */
details.sec > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; margin: 0;
  background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); cursor: pointer; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary:hover { border-color: var(--hair-2); }
details.sec .chev { margin-left: auto; transition: transform .2s; }
details.sec[open] .chev { transform: rotate(180deg); }
details.sec[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
.tier-hint { flex-basis: 100%; order: 5; font-size: .875rem; font-weight: 400; color: var(--muted); padding-left: 44px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair);
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
details.sec .rows { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.row { display: grid; gap: 10px; align-content: start; padding: 14px 16px; background: var(--panel); }
.row .name { font-weight: 700; overflow-wrap: anywhere; }
.row-head { display: grid; gap: 6px; }
.row-why { display: flex; flex-wrap: wrap; gap: 6px; }
.why-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border: 1px solid var(--hair-2); border-radius: var(--tile); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.why-tag .ic { width: 14px; height: 14px; }
.row.changed { box-shadow: inset 0 0 0 2px var(--edit); }
.row .step, .row .stepper input { height: 44px; }
.row .step { width: 44px; }
.final-qty { display: flex; align-items: baseline; gap: 6px; }
.final-qty .qty-num { font-size: 1.5rem; font-weight: 800; }
.was { color: var(--muted); }

.card.add { margin-top: 8px; padding: 20px 16px 16px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); display: grid; gap: 10px; }
.card.add .rows { margin-top: 4px; border-radius: var(--radius); overflow: hidden; }
.card.add .rows:not(:has(.line:not(.hidden))) { display: none; }
.search { position: relative; display: block; max-width: 36rem; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; }

/* ---------------------------------------------------------------- progress (segments: one per red line) */
.progress { display: grid; gap: 8px; }
.segs { display: flex; gap: 4px; }
.seg { flex: 1 1 0; height: 10px; border-radius: 2px; background: var(--hair); transition: background-color .25s; }
.seg.on { background: var(--ink); }
.progress.done .seg { background: var(--done); }
.progress-text { font-size: .875rem; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- aside panel (desktop) */
.panel { display: grid; gap: 18px; min-width: 0; padding: 20px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); }
@media (min-width: 1100px) { .panel { position: sticky; top: calc(var(--shell-h) + 24px); } }
.tally { display: grid; gap: 2px; }
.tally-num { font-size: 6rem; font-weight: 800; line-height: .9; letter-spacing: -0.04em; }
.tally-label { font-weight: 600; color: var(--ink-2); max-width: 22ch; }
.tally.done .tally-num { color: var(--done); }
.jump { display: grid; border-top: 1px solid var(--hair); }
.jump a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--hair);
          text-decoration: none; font-weight: 600; }
.jump a:hover span:not(.tier-tile) { text-decoration: underline; }
.jump b { font-variant-numeric: tabular-nums; }
.panel-note { font-size: .875rem; color: var(--muted); text-align: center; }
.no-changes { margin: 0; }

/* ---------------------------------------------------------------- bottom bar (phone / tablet) */
.bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
       padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--shell); color: var(--on-shell); }
.bar-info { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.bar .seg { background: #3a3a36; }
.bar .seg.on { background: var(--on-shell); }
.bar .progress.done .seg { background: var(--done); }
.bar .progress-text, .change-count { color: var(--on-shell-2); font-size: .8rem; }
.change-count:empty { display: none; }
.bar .primary { background: var(--signal); color: var(--on-signal); padding-right: 16px; }
.bar .primary .btn-tile { background: var(--shell); color: var(--signal); }
.bar .primary:hover { background: #ffd633; }
@media (min-width: 1100px) { .bar { display: none; } }

/* ---------------------------------------------------------------- waiting */
.sign-panel { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--signal); color: var(--on-signal); }
.sign-panel p { margin-top: 6px; max-width: 60ch; color: var(--on-signal-2); }
.sign-panel.quiet { background: var(--panel); color: var(--ink); border: 1px solid var(--hair); }
.sign-panel.quiet p { color: var(--muted); }
.waiting { max-width: 900px; margin: 8vh auto 0; display: grid; gap: 24px; }
.pulse { width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(.8); } 70% { opacity: .2; transform: scale(1.6); } 100% { opacity: 1; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---------------------------------------------------------------- gate: login / first password */
main.gate { display: grid; min-height: calc(100vh - var(--shell-h)); }
@media (min-width: 900px) { main.gate { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.gate-sign { display: grid; align-content: center; gap: 16px; padding: 32px 20px; background: var(--signal); color: var(--on-signal); }
@media (min-width: 900px) { .gate-sign { padding: 64px clamp(32px, 6vw, 96px); } }
.gate-word { font-size: clamp(2.25rem, 1rem + 3.4vw, 4.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; max-width: 12ch; }
.gate-sub { margin-top: 8px; max-width: 34ch; font-size: 1.1rem; color: var(--on-signal-2); }
.gate-form { display: grid; align-content: center; gap: 16px; width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 20px 48px; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-weight: 600; }

/* ---------------------------------------------------------------- admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.window { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 0; background: var(--hair); border: 1px solid var(--hair);
         border-radius: var(--radius); overflow: hidden; flex: 1 1 520px; max-width: 760px; }
.stat { padding: 12px 16px; background: var(--panel); }
.stat dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.stat dd { margin: 2px 0 0; font-size: 2.25rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.stat dd small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat.signal { background: var(--signal); color: var(--on-signal); }
.stat.signal dt, .stat.signal dd small { color: var(--on-signal-2); }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.extend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.extend label { display: inline-flex; align-items: center; gap: 8px; }
.short { width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.tool-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); }
table.board { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.board th { position: sticky; top: 0; padding: 12px 14px; text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--panel);
            border-bottom: 2px solid var(--ink); white-space: nowrap; }
.board td { padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr:hover td { background: color-mix(in srgb, var(--ground) 55%, var(--panel)); }
.board .num { text-align: right; white-space: nowrap; }
.store-cell a { display: grid; gap: 1px; text-decoration: none; min-width: 12rem; }
.store-cell a:hover .store-id { text-decoration: underline; }
.store-id { font-size: 1.1rem; }
.store-name { font-size: .8rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: var(--tile); font-size: .8125rem; font-weight: 700; white-space: nowrap;
          border: 1px solid var(--hair-2); color: var(--muted); }
.status .ic { width: 16px; height: 16px; }
.status.st-viewed { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.status.st-submitted, .status.st-no_changes { background: var(--done-bg); color: var(--done); border-color: transparent; }
.redcheck { display: inline-flex; align-items: center; gap: 10px; }
.redcheck .segs { width: 84px; }
.redcheck .seg { height: 8px; }
.redcheck.full .seg { background: var(--done); }

/* ---------------------------------------------------------------- phone: the band keeps the name readable, OK is the thumb target */
@media (max-width: 640px) {
  .band-sign { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 8px 12px 8px 10px; }
  .band.is-next .band-sign, .no-js .band .band-sign { padding: 12px 12px 12px 12px; min-height: 80px; }
  .band .pict { width: 40px; height: 40px; }
  .band .pict .ic { width: 24px; height: 24px; }
  .edge { display: none; }
  .band .qty-num { font-size: 1.4rem; }
  .band.is-next .qty-num { font-size: 2.25rem; }
  .band .ok-btn { flex: 1 1 100%; justify-content: flex-start; min-height: 56px; font-size: 1.05rem; }
  .band-body { padding: 14px 12px; }
  .stepper input { width: 4.75rem; }
  .intro { margin: 12px 0 16px; font-size: .95rem; }
  .tally-num { font-size: 4.5rem; }
  .board th:nth-child(n+6), .board td:nth-child(n+6) { display: none; }
}
