/* ZeroWrong — console, on the same dark system as the landing page.
   Denser than marketing: this is a working surface, so motion is limited to
   state changes (a row arriving, a status advancing). */

.app-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 11, 17, .82); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--edge);
}
.app-nav-in { display: flex; align-items: center; gap: 20px; height: 62px; }

.store-pick {
  font: 500 13.5px/1 var(--sans); color: var(--ink); background: var(--panel);
  border: 1px solid var(--edge); border-radius: 9px; padding: 9px 11px; cursor: pointer;
}
.store-pick option { background: #0B0F16; color: var(--ink); }

.tabs { display: flex; gap: 3px; margin-left: 6px; }
.tab {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: 9px 15px; border-radius: 9px; font: 600 14px/1 var(--sans); color: var(--muted);
  transition: color .16s, background .16s;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] {
  color: var(--acc); background: rgba(0,227,155,.1);
  box-shadow: inset 0 0 0 1px rgba(0,227,155,.28);
}
.app-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Block padding ONLY. `padding: 26px 0 90px` is more specific than `.wrap`'s
   `padding: 0 26px`, so it was silently zeroing the side gutters on every console page
   that carries both classes. At desktop width max-width centres the column and nothing
   looks wrong; at 390px the text ran into both edges and off the right of the screen. */
main.app { padding-block: 26px 90px; position: relative; z-index: 2; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 23px; letter-spacing: -.028em; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--edge); }
.stat dt { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat dd {
  margin: 10px 0 0; font: 700 26px/1 var(--mono); font-variant-numeric: tabular-nums;
  letter-spacing: -.03em; color: var(--ink);
}
.stat dd.bad { color: var(--bad); text-shadow: 0 0 26px rgba(255,92,87,.45); }
.stat dd.ok { color: var(--acc); text-shadow: 0 0 26px rgba(0,227,155,.4); }
.stat dd.warn { color: var(--warn); }

/* progress */
.bar { height: 4px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--acc-2), var(--acc));
  box-shadow: 0 0 16px rgba(0,227,155,.75); transition: width .25s ease;
}

/* live */
.live { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.box { border-radius: 13px; background: var(--panel); border: 1px solid var(--edge); overflow: hidden; }
.box-h {
  padding: 13px 17px; border-bottom: 1px solid var(--edge); display: flex; align-items: center; gap: 10px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: rgba(255,255,255,.02);
}
.box-b { max-height: 560px; overflow-y: auto; }
.box-b::-webkit-scrollbar { width: 8px; }
.box-b::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }

.feed-row {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 17px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px;
  animation: slide .24s ease;
}
@keyframes slide { from { transform: translateY(-4px); } to { transform: none; } }
.feed-row .ord { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.feed-row b { font-weight: 600; color: var(--ink); }
.feed-row .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.feed-row .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.feed-row.is-blocked { background: rgba(255,92,87,.09); box-shadow: inset 2px 0 0 var(--bad); }
.feed-row.is-blocked .amt { color: var(--bad); }
.feed-row.is-review { background: rgba(255,184,77,.08); box-shadow: inset 2px 0 0 var(--warn); }

.blocked-row { padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.8px; }
.blocked-row .ord { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.blocked-row b { color: var(--ink); }
.blocked-row p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.blocked-row .risk { margin: 8px 0 0; font-size: 13px; color: var(--bad); }
.blocked-row .risk b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--bad); }
.empty { padding: 32px 17px; color: var(--muted); font-size: 14px; text-align: center; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type="search"], .filters select {
  font: 400 14px/1 var(--sans); padding: 10px 12px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--edge); color: var(--ink);
}
.filters input[type="search"]::placeholder { color: var(--muted); }
.filters input[type="search"] { min-width: 265px; }
.filters input[type="search"]:focus-visible, .filters select:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 1px;
  border-color: rgba(0,227,155,.5); box-shadow: 0 0 0 3px rgba(0,227,155,.12);
}
.filters select option { background: #0B0F16; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.8px; color: var(--ink-2); cursor: pointer; }
.check-inline input { accent-color: #00E39B; }

/* table */
.tbl-wrap { border-radius: 13px; background: var(--panel); border: 1px solid var(--edge); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
thead th {
  text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 14px 15px; white-space: nowrap;
  /* Not sticky: .tbl-wrap owns an overflow-x scroll context, so a sticky header
     pins to THAT box and floats over the first data row instead of the viewport.
     Opaque background kept — the panel behind it is translucent. */
  background: #0B0F16; border-bottom: 1px solid var(--edge);
}
tbody td { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; color: var(--ink-2); }
tbody tr:hover { background: rgba(255,255,255,.028); }
tbody tr.flagged { background: rgba(255,92,87,.055); box-shadow: inset 2px 0 0 var(--bad); }
tbody tr.flagged:hover { background: rgba(255,92,87,.085); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
td.ord a { font-family: var(--mono); font-weight: 600; color: var(--acc); text-decoration: none; }
td.ord a:hover { text-decoration: underline; }
.cust { font-weight: 500; color: var(--ink); }
.wb { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.wrongp { display: block; font-size: 12px; color: var(--bad); margin-top: 3px; }

/* per-row delivery progress */
.track { display: flex; align-items: center; gap: 9px; }
.track-dots { display: flex; align-items: center; gap: 3px; }
.track-dots i {
  width: 16px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.14); display: block;
  transition: background .3s, box-shadow .3s;
}
.track-dots i.on { background: var(--acc); box-shadow: 0 0 8px rgba(0,227,155,.8); }
.track-dots i.bad { background: var(--bad); box-shadow: 0 0 8px rgba(255,92,87,.8); }
.track-label { font-size: 12.8px; white-space: nowrap; }
.track-label.ok { color: var(--acc); }
.track-label.transit { color: #8FC6FF; }
.track-label.pending { color: var(--muted); }
.track-label.bad { color: var(--bad); }

.sev { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font: 600 10.5px/1.5 var(--sans); }
.sev-critical { color: var(--bad); background: rgba(255,92,87,.13); box-shadow: inset 0 0 0 1px rgba(255,92,87,.3); }
.sev-review { color: var(--warn); background: rgba(255,184,77,.13); box-shadow: inset 0 0 0 1px rgba(255,184,77,.3); }

.row-toggle {
  appearance: none; background: var(--panel); border: 1px solid var(--edge); border-radius: 6px;
  width: 22px; height: 22px; cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 13px;
  line-height: 1; display: grid; place-items: center; padding: 0;
}
.row-toggle:hover { color: var(--acc); border-color: rgba(0,227,155,.4); }
.findings { padding: 2px 15px 15px; background: rgba(0,0,0,.24); }
.finding { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 9px 0; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.05); color: var(--ink-2); }
.finding code {
  font: 500 10.5px/1 var(--mono); color: var(--acc); background: rgba(0,227,155,.08);
  border: 1px solid rgba(0,227,155,.22); border-radius: 5px; padding: 5px 7px; justify-self: start;
}

.note {
  border-radius: 11px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 18px;
  background: rgba(61,139,255,.09); border: 1px solid rgba(61,139,255,.26); color: #CFE2FF;
}
.note b { color: #fff; font-weight: 600; }

.mode {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 99px;
  background: rgba(255,184,77,.1); border: 1px solid rgba(255,184,77,.3); color: var(--warn);
  font-size: 12.3px; cursor: pointer;
}
.mode input { accent-color: #FFB84D; }

@media (max-width: 1080px) {
  .live { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}


/* ================= DOPAMINE STATS ================= */
.stats.big { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stats.big .stat {
  position: relative; overflow: hidden; padding: 20px 20px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
.stats.big .stat::after {                     /* sheen that sweeps once on load */
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: statsheen 1.5s ease .25s 1 forwards;
}
@keyframes statsheen { to { transform: translateX(130%); } }
.stats.big .stat dd {
  font-size: clamp(20px, 2vw, 30px); margin-top: 12px; letter-spacing: -.04em;
  white-space: nowrap;                      /* "17 527,43 €" must not wrap */
}
.stats.big .stat .spark { display: block; height: 3px; border-radius: 99px; margin-top: 13px;
  background: rgba(255,255,255,.09); overflow: hidden; }
.stats.big .stat .spark i { display: block; height: 100%; width: 0; border-radius: 99px;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.stats.big .stat .spark i.ok { background: var(--acc); box-shadow: 0 0 10px rgba(0,227,155,.8); }
.stats.big .stat .spark i.bad { background: var(--bad); box-shadow: 0 0 10px rgba(255,92,87,.8); }
.stats.big .stat .spark i.neutral { background: var(--acc-2); box-shadow: 0 0 10px rgba(61,139,255,.7); }
.stats.big .stat .sub { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* ================= GROUPED CRM ================= */
.group { border-radius: 13px; border: 1px solid var(--edge); background: var(--panel);
  margin-bottom: 12px; overflow: hidden;
  /* it is a <section>, and the global `section` rule adds 84px of padding */
  padding: 0; }
.group.is-bad { border-color: rgba(255,92,87,.3); }
.ghead {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 17px;
  background: rgba(255,255,255,.028); border: 0; cursor: pointer; text-align: left;
  color: var(--ink); font: 600 14.5px/1 var(--sans); transition: background .16s;
}
.ghead:hover { background: rgba(255,255,255,.05); }
.ghead .caret { color: var(--muted); font-family: var(--mono); font-size: 12px; transition: transform .22s; width: 12px; }
.group.open .ghead .caret { transform: rotate(90deg); }
.ghead .gdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.gdot.ok { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.gdot.transit { background: #6EA8FF; box-shadow: 0 0 10px #6EA8FF; }
.gdot.pending { background: var(--muted); }
.gdot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.ghead .gcount {
  font: 600 11.5px/1 var(--mono); color: var(--muted); background: rgba(255,255,255,.06);
  border-radius: 99px; padding: 5px 9px;
}
.ghead .gsum { margin-left: auto; font: 600 13.5px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ghead .gflag { font: 600 10.5px/1.5 var(--sans); color: var(--bad);
  background: rgba(255,92,87,.13); border-radius: 99px; padding: 3px 8px; }
.gbody { display: none; }
.group.open .gbody { display: block; }

/* compact rows */
table.compact { font-size: 13.2px; }
table.compact thead th { padding: 10px 14px; }
table.compact tbody td { padding: 9px 14px; }
table.compact .cust { font-size: 13.4px; }
table.compact .wrongp { margin-top: 1px; }


/* ================= VISUAL HIERARCHY =================
   The complaint was that everything looked the same. Three zones now read as
   three different materials: the stats are RAISED (light, glowing), the toolbar
   is RECESSED (darker than the page, inset), and the groups are PANELS with a
   colour-coded spine. Nothing here is decoration — it is depth doing wayfinding. */

/* --- zone 1: raised stats --- */
.stats.big {
  padding: 4px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(0,227,155,.09), rgba(61,139,255,.05) 60%, transparent);
  border: 1px solid rgba(255,255,255,.08); margin-bottom: 18px;
}
.stats.big .stat {
  border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  background: linear-gradient(165deg, rgba(20,26,34,.92), rgba(10,14,20,.92));
  box-shadow: 0 14px 34px -22px rgba(0,0,0,.9);
}
.stats.big .stat dt { color: #8A97A6; }

/* --- zone 2: recessed toolbar --- */
.filters {
  gap: 8px; margin-bottom: 16px; padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.5);
}
.filters input[type="search"], .filters select {
  font-size: 13px; padding: 7px 10px; border-radius: 8px;
  background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.08);
}
.filters input[type="search"] { min-width: 210px; flex: 1 1 210px; max-width: 320px; }
.filters select { max-width: 160px; }
.check-inline { font-size: 12.7px; padding: 0 4px; }
.filters .small { font-size: 12px; }
.filters .sep { width: 1px; height: 22px; background: rgba(255,255,255,.09); }

/* --- zone 3: group panels with a colour-coded spine --- */
.group { background: rgba(255,255,255,.022); border-color: rgba(255,255,255,.07); }
.group::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.group { position: relative; }
.group[data-g="problem"]::before { background: linear-gradient(180deg, var(--bad), transparent); }
.group[data-g="waiting"]::before { background: linear-gradient(180deg, #6D7C8C, transparent); }
.group[data-g="sent"]::before    { background: linear-gradient(180deg, #4D93FF, transparent); }
.group[data-g="delivered"]::before { background: linear-gradient(180deg, var(--acc), transparent); }
.group[data-g="failed"]::before  { background: linear-gradient(180deg, var(--bad), transparent); }

.ghead { padding: 15px 18px 15px 20px; font-size: 15px; letter-spacing: -.01em; }
.group[data-g="problem"] .ghead { background: rgba(255,92,87,.07); }
.group[data-g="delivered"] .ghead { background: rgba(0,227,155,.05); }
.ghead .gsum { font-size: 14.5px; color: var(--ink); }

/* --- rows: give the columns different weights so the eye can scan --- */
tbody td { color: #93A1B0; }
table.compact .cust { color: var(--ink); font-weight: 600; }
table.compact td.num { color: #C9D4DF; }
table.compact td:nth-child(5) { color: var(--ink); font-weight: 600; font-size: 14px; }
.wb { color: #5D6B7A; font-size: 12px; }
table.compact thead th { color: #5D6B7A; background: rgba(0,0,0,.22); }
tbody tr + tr td { border-top: 0; }
table.compact tbody tr:nth-child(4n+3) td { background: rgba(255,255,255,.012); }
table.compact tbody tr.flagged:nth-child(4n+3) td { background: transparent; }


/* Long lists: skip rendering work for collapsed/offscreen group bodies. */
.gbody { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* Cells must cope with very long customer names and office strings. */
table.compact .cust, table.compact td { overflow-wrap: anywhere; }

/* ── Per-order stock flag ───────────────────────────────────────────────────
   Three states, one click each. Neutral is deliberately quiet so a row that has
   not been answered does not shout; "Няма" is loud because it is lost money. */
.stockb {
  appearance: none; cursor: pointer; border-radius: 6px; padding: 5px 9px;
  font: 600 11.5px/1 var(--sans); border: 1px solid var(--edge);
  background: transparent; color: var(--muted); min-width: 48px;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.stockb:hover { border-color: var(--edge-2); color: var(--ink-2); }
.stockb.st-yes { color: var(--acc); border-color: rgba(0,227,155,.38); background: rgba(0,227,155,.09); }
.stockb.st-no  { color: var(--bad); border-color: rgba(255,92,87,.42); background: rgba(255,92,87,.11); }

/* ── Packaging panel ────────────────────────────────────────────────────────
   Together-or-separate changes the COD on every label, so this is a decision the
   operator makes explicitly. The numbers are returned by the server planner. */
.acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.packb {
  appearance: none; cursor: pointer; border-radius: 6px; padding: 5px 10px;
  font: 600 11.5px/1 var(--sans); border: 1px solid var(--edge);
  background: transparent; color: var(--muted); white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.packb:hover { border-color: var(--edge-2); color: var(--ink-2); }
.packb.is-split { color: var(--acc-2); border-color: rgba(61,139,255,.42); background: rgba(61,139,255,.10); }

.packpanel { padding: 0 !important; background: rgba(0,0,0,.22); }
.pk { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.pk-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pk-disc { font-size: 12px; color: var(--muted); }
.pk-disc b { color: var(--acc); font-family: var(--mono); }
.pk-note { font-size: 12px; color: var(--muted); margin: 0; }
.pk-note.bad { color: var(--bad); }

.pk-items { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pk-items th {
  text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0;
}
.pk-items th.r, .pk-items td.r { text-align: right; }
.pk-items td { padding: 8px 10px 8px 0; border-top: 1px solid var(--edge); color: var(--ink-2); }
.pk-items td.dim { color: var(--muted); }
.pk-items td.mono { font-family: var(--mono); color: var(--ink); }
.pk-items select {
  appearance: none; background: var(--panel); border: 1px solid var(--edge); border-radius: 6px;
  color: var(--ink); font: 500 12px/1 var(--sans); padding: 6px 10px; cursor: pointer;
}

.pk-out { display: flex; flex-direction: column; gap: 1px; background: var(--edge);
  border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.pk-parcel {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: baseline;
  background: var(--panel); padding: 11px 14px;
}
.pk-p { font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-it { font-size: 12.5px; color: var(--ink-2); }
.pk-cod { font: 700 14px/1 var(--mono); color: var(--ink); }

/* The invariant, stated where the operator will look: the parcels must add up to the
   order. If they do not, something is wrong and no label should be printed. */
.pk-sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 14px; font-size: 12.5px;
}
.pk-sum b { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.pk-sum.ok  { background: rgba(0,227,155,.10); color: var(--acc); }
.pk-sum.bad { background: rgba(255,92,87,.12); color: var(--bad); }

/* The packaging column pushed the table past its width and everything started
   hyphen-less wrapping ("Печат" -> "Печа т"). Let the table keep its natural width
   and scroll inside .tbl-wrap instead of crushing every cell. */
table.compact { min-width: 1080px; }
table.compact .acts .btn,
table.compact .packb,
table.compact .stockb,
table.compact .sev,
table.compact .wb,
table.compact .num { white-space: nowrap; }
table.compact .cust { min-width: 150px; overflow-wrap: normal; }

/* A packing claim the courier ledger contradicts. Stated, not hinted — the operator
   is about to clear a real overcharge with one click. */
.pk-block {
  border: 1px solid rgba(255,92,87,.42); background: rgba(255,92,87,.10);
  border-radius: 9px; padding: 11px 14px; font-size: 12.5px; line-height: 1.55;
  color: var(--ink-2);
}
.pk-block b { color: var(--bad); }
.seg-b[disabled] { opacity: .38; cursor: not-allowed; }

/* ── Attention badge ────────────────────────────────────────────────────────
   How many orders in the last batch are waiting on a human. Amber asks, red blocks. */
.attn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  padding: 6px 11px; border-radius: 7px; white-space: nowrap;
  font: 500 12px/1 var(--sans); color: var(--warn);
  border: 1px solid rgba(255,184,77,.40); background: rgba(255,184,77,.10);
}
.attn b { font-family: var(--mono); font-weight: 700; }
.attn .attn-dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.attn.blocking { color: var(--bad); border-color: rgba(255,92,87,.45); background: rgba(255,92,87,.11); }
#notify-toggle.on { color: var(--acc); border-color: rgba(0,227,155,.40); background: rgba(0,227,155,.09); }

/* The nav gained a badge and a notifications toggle; at this width the buttons started
   wrapping to two lines. Keep every control on one line and let the nav scroll instead.

   THE SECOND HALF OF THAT SENTENCE WAS NEVER IMPLEMENTED. `nowrap` alone makes the nav
   wider than a phone, which widened the page, which `body { overflow-x: hidden }` then
   silently cut off — so on a 390px screen the console's headings were sliced down the
   right edge with no scrollbar to reveal them. The nav has to own its own scroll. */
.app-nav-in { flex-wrap: nowrap; }
/* The scroll belongs on the TAB STRIP, not on the bar around it, and the strip has to be
   allowed to shrink first. A flex item defaults to min-width:auto, so `.tabs` refused to
   go below its content width (503px), widened the whole layout, and `body{overflow-x:clip}`
   then sliced every page down the right edge at 390px with nothing to scroll. Measured,
   not guessed: DIV.tabs right=503 against a 390 viewport. */
.app-nav-in > * { min-width: 0; }
.tabs {
  overflow-x: auto;
  scrollbar-width: none;              /* the strip scrolls; the bar itself is noise */
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; }
.app-actions { flex: 0 0 auto; gap: 8px; }
.app-actions .btn, .app-nav .attn { white-space: nowrap; }
.app-actions .btn-sm { padding: 7px 11px; }
.store-pick { min-width: 0; max-width: 210px; }
