:root {
  /* Soft dark (16 Nov 2026). Rey turned down the teal Binder & sleeves ("i dont like this color") and then the
     bright Holo light ("too bright"), and picked "A. Soft dark" from mockups/colours-calmer.html: dark grey
     everywhere, nothing white, a toned-down red only for the main button and the page you're on. It's the look
     in every theme (Auto, Light and Dark are the same; Show mode is a higher-contrast version for the table).
     Role names (from Binder & sleeves): --accent: live state as a line or text; --accent-fill: live state as a
     fill, --on-accent on it; --tint: a soft highlight fill (badges, pressed segments), always with --ink on it;
     --ink / --cream: the fixed dark and light (the toast, the hover window, the Poke Ball); --hi: the highlight
     as a line; --g-* / --gs-*: the menu groups' icons, one colour; --sleeve: no sleeve edge in this look.
     Every colour, corner and shadow on the page comes from here. */
  --ink: #16181D; --cream: #E6E7EA;
  --bg: #1E2026; --surface: #272A31; --surface-2: #30343C; --text: #E6E7EA; --muted: #9A9FA9;
  --line: #363A43; --side: #16181D; --side-text: #E6E7EA; --side-muted: #8A8F99;
  --ok: #7CC79A; --ok-bg: #1F3328; --warn: #E3B45C; --warn-bg: #3A3120; --bad: #E8838A; --bad-bg: #3D2226;
  --bad-fill: #B8434C; --ref: #B3A6E8; --ref-bg: #2E2B45;
  --accent: #C8505A; --accent-deep: #A9414A; --accent-fill: #C8505A; --accent-fill-hover: #A9414A; --on-accent: #FFFFFF;
  --tint: #9AA1AF; --hi: #A9B2C8;
  --g-table: #A9B2C8; --g-show: #A9B2C8; --g-stock: #A9B2C8; --g-office: #A9B2C8;
  --gs-table: #A9B2C8; --gs-show: #A9B2C8; --gs-stock: #A9B2C8; --gs-office: #A9B2C8;
  --ball-red: #D92D3A; --ball-red-dark: #A51E29;
  --sleeve: inset 0 0 0 0 transparent;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.25);
  --foil: linear-gradient(135deg, #2B2F3A, #3A3F4C 55%, #6B3A44);
  --r-s: 12px; --r: 18px; --r-l: 22px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: dark;
}
/* Dark (the Theme button, or the device's own setting): the same soft dark. */
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
/* Show mode: chosen by hand for the table, with bigger text and higher contrast so it reads from across a table. */
body.show-mode {
  color-scheme: dark;
  --bg: #121317; --surface: #1C1E24; --surface-2: #262931; --text: #FFFFFF; --muted: #C3C7CF;
  --line: #3A3E48; --side: #0D0E11; --side-text: #FFFFFF; --side-muted: #A4A9B3;
  --ok: #8FE0AE; --ok-bg: #1F3328; --warn: #F0C46C; --warn-bg: #3A3120; --bad: #F2979D; --bad-bg: #3D2226;
  --ref: #C7BCF2; --ref-bg: #2E2B45;
  --accent: #E05A65; --accent-deep: #C04A54; --accent-fill: #E05A65; --accent-fill-hover: #C04A54; --on-accent: #FFFFFF;
  --tint: #B4BAC6; --hi: #C3CBDD;
  --g-table: #C3CBDD; --g-show: #C3CBDD; --g-stock: #C3CBDD; --g-office: #C3CBDD;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 10px 28px rgba(0,0,0,.45);
  font-size: 16.5px;
}
/* On paper the page is black on white, whatever the screen's look (a report printed from the browser). */
@media print {
  :root, body.show-mode {
    color-scheme: light;
    --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F0F0F0; --text: #000000; --muted: #444444; --line: #CCCCCC;
    --ok: #1B6B3F; --warn: #7A4E08; --bad: #A01C24; --ref: #4B3DA8; --accent: #A01C24; --shadow: none;
  }
}
body.show-mode .btn.primary { background: var(--accent-fill); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--body); }
button, input, select { font: inherit; color: inherit; }
::placeholder { color: var(--muted); opacity: 1; }
button { cursor: pointer; }
input, select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.app { display: grid; grid-template-columns: 216px 1fr; min-height: 100%; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 20px 14px; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: grid; justify-items: center; gap: 2px; padding: 0 6px; }
.brand img { width: 168px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.ball { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(var(--ball-red) 0 46%, var(--ink) 46% 54%, var(--cream) 54%); border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--cream); flex: none; }
.brand b { font: 700 19px/1 var(--display); }
.brand small { display: block; color: var(--side-muted); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }
nav { display: flex; flex-direction: column; gap: 2px; }
/* icons with words, never instead of them; 48 px rows so the iPad and the TC57 can't miss */
nav button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--side-text); text-align: left; padding: 0 10px; min-height: 44px; border-radius: var(--r-s); font-weight: 500; transition: background .15s, transform .15s; }
nav button svg, .tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
nav button > span:first-of-type { flex: 1; }
/* With a mouse the rows can be shorter, so the whole column fits a laptop screen; touch keeps 44 px */
@media (pointer: fine) { nav button { min-height: 38px; } }
.side { scrollbar-width: thin; scrollbar-color: rgba(214,245,240,.2) transparent; }
nav button:hover { background: rgba(214,245,240,.08); }
nav button:active { transform: scale(.98); }
nav button[aria-current="page"] { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 6px 18px rgba(255,77,94,.35); }
nav button[aria-current="page"] svg { opacity: 1; }
.side-tools { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.side-tools #showMode { grid-column: 1 / -1; }
.tool { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 1px solid rgba(214,245,240,.14); color: var(--side-muted); border-radius: var(--r-s); padding: 7px 6px; font-size: 13px; font-weight: 600; }
.tool:hover { color: var(--side-text); background: rgba(214,245,240,.08); }
.tool[aria-pressed="true"] { color: var(--ink); background: var(--tint); border-color: var(--tint); }
.tool svg { width: 16px; height: 16px; }
.side-tools .tool span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* three to a row in a 188 px column: the word under its icon, so "Sound" never pushes past the edge */
.side-tools .tool:not(#showMode) { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 12px; min-width: 0; }
/* the names deal in like cards */
.who-btn { animation: card-in .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
/* peek: a card picture at full size, next to the thumbnail it came from */
.peek { position: fixed; z-index: 40; border-radius: var(--r); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 3px var(--cream); pointer-events: none; animation: peek-in .18s cubic-bezier(.2,.9,.3,1.2) both; background: var(--surface-2); }
@keyframes peek-in { from { opacity: 0; transform: scale(.7); } }
[data-peek] { cursor: zoom-in; }
/* a line or order that's done slides off */
.leaving { animation: leave .38s cubic-bezier(.4,0,.8,.4) both; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: translateX(60px) scale(.97); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; } }
.btn.done { background: var(--ok); color: var(--on-accent); }
.ring .bar { animation: ring-in .7s cubic-bezier(.2,.8,.3,1) both; }
@keyframes ring-in { from { stroke-dasharray: 0 999; } }
/* the help note: two sentences about the page, under the banner */
.help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--surface); border: 1px dashed var(--tint); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; font-size: 15px; animation: hero-in .25s ease; }
.help b { font-family: var(--display); font-size: 16px; }
.help p { margin: 4px 0 0; }
.badge { background: var(--tint); color: var(--ink); font: 600 12px/1 var(--mono); padding: 3px 7px; border-radius: 999px; }
.badge:empty, .badge[data-n="0"] { display: none; }
/* who's working: the chip under the brand, the picker, and who else is here */
.me { display: flex; align-items: center; gap: 8px; background: rgba(214,245,240,.08); border: 1px solid rgba(214,245,240,.14); color: var(--side-text); border-radius: 999px; padding: 6px 12px 6px 8px; font-weight: 600; font-size: 14px; margin: -8px 6px 0; justify-content: flex-start; }
.me:hover { background: rgba(214,245,240,.14); }
.me .dot { width: 14px; height: 14px; background: var(--side-muted); }
.me.nobody { color: var(--side-muted); font-weight: 500; }
.who { position: fixed; inset: 0; background: rgba(3,16,18,.72); display: grid; place-items: center; padding: 16px; z-index: 18; animation: fade-in .2s ease; }
.who-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; width: min(560px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; animation: sheet-up .3s cubic-bezier(.2,.8,.3,1); }
.pin-input { font: 700 32px/1 var(--display); letter-spacing: .4em; text-align: center; width: 200px; padding: 10px 0 10px .4em; border-radius: var(--r); border: 2px solid var(--line); background: var(--bg); color: var(--text); }
.who.pin .who-box { width: min(400px, 100%); }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
.who-btn { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); font: 700 20px var(--display); }
.who-btn:hover, .who-btn:focus-visible { border-color: var(--p); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.who-btn .face { width: 56px; height: 56px; border-radius: 50%; background: var(--p); color: var(--on-accent); display: grid; place-items: center; font: 800 26px/1 var(--display); }
.who-btn small { font: 500 12px var(--body); color: var(--muted); }
.here { display: grid; gap: 5px; font-size: 13px; color: var(--side-muted); padding: 0 10px; }
.here div { display: flex; align-items: center; gap: 8px; }
.here b { color: var(--side-text); font-weight: 600; }
body:not(.can-admin) [data-admin] { display: none !important; }
.feedlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feedlog li { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feedlog li:last-child { border-bottom: 0; }
.feedlog time { font: 500 12px var(--mono); color: var(--muted); }
.feedlog .dot { width: 12px; height: 12px; background: var(--p, var(--muted)); }
.feedlog b { font-weight: 600; }
.feedlog .empty-row { display: block; color: var(--muted); }
.person-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; }
.person-row .act-row { gap: 6px; }
.person-row .dot { width: 14px; height: 14px; background: var(--p); }
.person-row.retired { opacity: .5; }
.show-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.show-row .when { font-weight: 600; white-space: nowrap; }
.health { margin-top: auto; display: grid; gap: 6px; font-size: 13px; color: var(--side-muted); padding: 10px; border: 1px solid rgba(214,245,240,.12); border-radius: var(--r-s); }
.health div { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5BBF7E; flex: none; }
.dot.amber { background: var(--warn); }
.dot.red { background: #E5484D; }

main { padding: 22px 26px 60px; min-width: 0; }
h1 { font: 700 26px/1.1 var(--display); margin: 0; text-wrap: balance; }
h2 { font: 600 16px var(--display); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 4px 0 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.searchbar { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px 14px; margin-bottom: 6px; }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar input { flex: 1; border: 0; background: none; font-size: 18px; padding: 8px 0; outline: none; min-width: 0; }
.kbd { font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-s); padding: 2px 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.group-label { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.group-label h2 { font-size: 15px; margin: 0; }
.group-label span { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: transform .18s, box-shadow .18s, border-color .18s; animation: tile-in .35s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 28ms); }
.tile:hover { border-color: var(--tint); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.art { aspect-ratio: 5 / 7; border-radius: var(--r-s); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; max-width: 100%; position: relative; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.has-img { padding: 0; }
/* holo shimmer: a sweep of light across the art of a card we have in stock, on hover or tap */
.tile.in-stock .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, rgba(255,120,200,.45) 52%, rgba(120,220,255,.45) 58%, transparent 70%);
  background-size: 250% 100%; background-position: 150% 0; transition: opacity .2s; }
.tile.in-stock:hover .art::after, .tile.in-stock:focus-visible .art::after { opacity: 1; animation: shine 1.1s ease-out 1 both; }
.order-line .art.has-img, .intake-lines .art.has-img, .feedlog .art.has-img { position: relative; overflow: hidden; }
.order-line .art.has-img::after, .intake-lines .art.has-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, rgba(255,120,200,.45) 52%, rgba(120,220,255,.45) 58%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; }
.order-line:hover .art.has-img::after, .intake-lines li:hover .art.has-img::after { opacity: 1; animation: shine 1.1s ease-out 1 both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.tile .name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.tile .set { color: var(--muted); font-size: 12px; line-height: 1.3; }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; }
.price { font: 600 16px var(--mono); }
.pill { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pill.out { background: var(--surface-2); color: var(--muted); }
.pill.in { background: var(--ok-bg); color: var(--ok); }
.pill.ref { background: var(--ref-bg); color: var(--ref); letter-spacing: .4px; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

.detail { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; }
.detail-top { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.detail h3 { font: 700 19px/1.15 var(--display); margin: 2px 0 4px; text-wrap: balance; }
.refnote { background: var(--ref-bg); color: var(--ref); border-radius: var(--r-s); padding: 8px 10px; font-size: 13px; font-weight: 500; }
.flagnote { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-s); padding: 8px 10px; font-size: 13px; }
/* The import preview on the Data page */
.import-preview { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.import-preview h3 { margin: 0; font-size: 14px; }
.import-preview .table-wrap { max-height: 340px; overflow: auto; }
/* A card's history in the Search detail panel (the ledger) */
.history { margin-top: 14px; }
.history h4 { margin: 0 0 8px; font-size: 13px; }
.hist-list { list-style: none; margin: 8px 0 0; padding: 0; }
.hist { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: start; }
.hist-when { color: var(--muted); }
.hist-n { font-weight: 600; white-space: nowrap; }
.hist.price .hist-what { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: var(--surface-2); }
tr[aria-selected="true"] td { background: var(--warn-bg); }
.table-wrap { overflow-x: auto; }
.actions { display: grid; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.act-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 0; border-radius: var(--r-s); padding: 9px 14px; font-weight: 600; font-size: 14px; transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.95); }
.btn.primary { background: var(--accent-fill); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-fill-hover); }
.btn.ghost { background: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--tint); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.rate { width: 64px; }
.qty { width: 56px; }
.offer { font-size: 13px; color: var(--muted); }
.offer b { color: var(--text); font-family: var(--mono); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-s); font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 10; max-width: calc(100% - 32px); }
.toast.error { background: var(--bad-fill); color: #FFFFFF; }
.toast-undo { margin-left: 10px; padding: 4px 12px; border-radius: var(--r-s); border: 1.5px solid currentColor; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.toast-undo:hover { background: rgba(255,255,255,.12); }

.stat .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; text-align: left; transition: transform .18s, box-shadow .18s, border-color .18s; animation: tile-in .35s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 50ms); }
.stat:hover { border-color: var(--tint); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.stat { position: relative; overflow: hidden; }
.stat .ico { position: absolute; top: 12px; right: 12px; opacity: .3; }
.stat .n { font: 600 34px/1 var(--mono); }
.stat.attn .n { color: var(--accent); }
/* a sweep of light across a tile on hover, like the holo shimmer on a card */
.stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, rgba(255,120,200,.25) 54%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; }
.stat:hover::after, .stat:focus-visible::after { opacity: 1; animation: shine .9s ease-out 1 both; }
.stat .l { font-weight: 600; }
.stat .d { color: var(--muted); font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stack { display: grid; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two.top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.totals { display: flex; gap: 24px; flex-wrap: wrap; }
.totals div { display: grid; }
.totals .n { font: 600 22px var(--mono); }
.scan { display: flex; gap: 10px; }
.scan input { flex: 1; min-width: 0; font: 500 18px var(--mono); padding: 12px 14px; }
.log { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.log li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 12px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.log time { font: 500 12px var(--mono); color: var(--muted); }
.log li.ok { border-left: 4px solid var(--ok); }
.log li.warn { border-left: 4px solid var(--warn); }
.log li.bad { border-left: 4px solid var(--bad); }
.empty { color: var(--muted); padding: 14px 0; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }

/* ---------- show day ---------- */
.showgrid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; margin: 14px 0 22px; }
.hero { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center;
  min-height: 236px; padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 2px solid var(--line); overflow: hidden; }
.hero.ok { border-color: var(--ok); background: linear-gradient(120deg, var(--ok-bg), var(--surface) 55%); }
.hero.warn { border-color: var(--warn); background: linear-gradient(120deg, var(--warn-bg), var(--surface) 55%); }
.hero.bad { border-color: var(--bad); background: linear-gradient(120deg, var(--bad-bg), var(--surface) 55%); }
.hero.pop > * { animation: hero-in .38s cubic-bezier(.2,.9,.3,1.25) both; }
.hero.pop > .art { animation-name: card-in; }
.hero .art { box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.hero h3 { font: 700 26px/1.1 var(--display); margin: 6px 0 4px; text-wrap: balance; }
.hero-info { display: grid; gap: 6px; justify-items: start; }
.hero-price { font: 700 48px/1 var(--mono); margin-top: 6px; }
.hero-price small { font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-left: 8px; vertical-align: middle; }
.stamp { font: 800 13px/1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-s);
  border: 2px solid currentColor; transform: rotate(-3deg); }
.hero.ok .stamp { color: var(--ok); } .hero.warn .stamp { color: var(--warn); } .hero.bad .stamp { color: var(--bad); }
.hero-mark { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
  font: 800 60px/1 var(--display); color: #FFFFFF; background: var(--bad-fill); }
.hero.warn .hero-mark { background: var(--warn); color: var(--ink); }
.hero.idle { grid-template-columns: 120px 1fr; }
.hero.idle b { font: 700 24px var(--display); }
.hero-ball { width: 104px; height: 104px; justify-self: center; border-radius: 50%; border: 5px solid var(--ink);
  background: radial-gradient(circle, var(--cream) 0 13%, var(--ink) 13% 19%, transparent 19%),
              linear-gradient(var(--ball-red) 0 45%, var(--ink) 45% 55%, var(--cream) 55%);
  box-shadow: 0 0 0 3px var(--cream); animation: wobble 2.6s ease-in-out infinite; }
.today { display: grid; align-content: center; gap: 4px; padding: 18px; border-radius: var(--r-l); background: var(--side); color: var(--side-text); }
.today .eyebrow { color: var(--side-muted); }
.today-total { font: 700 46px/1 var(--mono); }
.today-count { color: var(--side-muted); margin-bottom: 10px; }
.today .btn { color: var(--side-text); border-color: rgba(214,245,240,.25); justify-self: start; }
#scanLog li { display: grid; grid-template-columns: 64px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
#scanLog .art { width: 34px; padding: 0; border-radius: 4px; font-size: 0; }
.sale-name { display: grid; min-width: 0; }
.sale-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scanLog li.undone { opacity: .55; } #scanLog li.undone .sale-name b { text-decoration: line-through; }
#scanLog li.empty-row { display: block; color: var(--muted); }
.binder { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; border-style: dashed; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes card-in { from { opacity: 0; transform: perspective(600px) rotateY(-70deg) scale(.85); } }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(9deg); } 93% { transform: rotate(-4deg); } }

/* ---------- customer screen ---------- */
body.customer-mode .side { display: none; }
body.customer-mode .app { grid-template-columns: 1fr; }
body.customer-mode main { padding: 0; }
body.customer-mode .banner { display: none; }
.view.customer { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #145052 0%, #061416 70%); color: var(--cream); }
.customer.idle { gap: 6px; align-content: center; }
.cust-brand { display: flex; align-items: center; gap: 18px; font: 700 clamp(44px, 8vw, 96px)/1 var(--display); }
.cust-brand .ball { width: clamp(52px, 8vw, 96px); height: clamp(52px, 8vw, 96px); animation: wobble 3.2s ease-in-out infinite; }
.customer.idle p { font-size: clamp(18px, 2.4vw, 28px); color: #A9D6D1; margin: 0; }
.customer.sold { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); text-align: left; }
.cust-card { position: relative; animation: cust-card 0.9s cubic-bezier(.2,.9,.3,1.2) both; }
.cust-card .art { border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 3px rgba(214,245,240,.15); }
.cust-shine { position: absolute; inset: 0; border-radius: var(--r-l); pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 45%, rgba(255,120,200,.4) 52%, rgba(120,220,255,.4) 58%, transparent 70%);
  background-size: 250% 100%; animation: shine 2.4s ease-in-out .6s infinite; }
.cust-info { display: grid; gap: 8px; justify-items: start; animation: hero-in .6s ease .35s both; }
.cust-info h2 { font: 700 clamp(34px, 5vw, 64px)/1.05 var(--display); margin: 8px 0 0; text-wrap: balance; }
.cust-info p { font-size: clamp(16px, 2vw, 24px); color: #A9D6D1; margin: 0; }
.cust-price { font: 700 clamp(56px, 9vw, 120px)/1 var(--mono); color: #FFE7A3; text-shadow: 0 0 40px rgba(255,200,90,.35); }
.customer .stamp { color: #FF8A7A; font-size: clamp(16px, 2vw, 24px); }
@keyframes cust-card { from { opacity: 0; transform: perspective(900px) rotateY(-90deg) translateX(-40px) scale(.8); } }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- show prep: the cases, drawn like the photo (from above, back row at the top) ---------- */
.case-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.case-tab { display: grid; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; min-width: 150px; }
.case-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.case-tab b { font: 700 16px var(--display); }
.case-tab .small { color: var(--muted); }
.case-tab.home { opacity: .55; }
.case-tab .home-toggle { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
/* A gentle tilt seen from far off, so the cards keep a card's shape (5:7) from the back row to the front;
   16deg at 1600px had them squashed at the back and stretched at the front (Carlos, 20 Oct 2026). */
.case3d { position: relative; width: 100%; max-width: 760px; margin: 0 auto; perspective: 2600px; perspective-origin: 50% 10%; padding: 6px 0 18px; }
.case-bed { position: relative; transform: rotateX(10deg); transform-origin: 50% 100%; transform-style: preserve-3d; background: #1A1816; border-radius: var(--r);
  padding: 16px 16px 20px; box-shadow: inset 0 0 0 6px #2A2623, inset 0 0 40px rgba(0,0,0,.8), 0 24px 50px rgba(0,0,0,.35); display: grid; gap: 0; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.case-row { display: grid; gap: 7px; position: relative; }
.case-row + .case-row { margin-top: -3.2%; }      /* shingled: this row's top edge lies over the bottom of the row behind (z-index set in renderCase) */
.slot.filled:hover, .slot[aria-pressed="true"] { z-index: 20; }
.slot { position: relative; aspect-ratio: 5 / 7; border-radius: var(--r-s); background: rgba(255,255,255,.05); border: 1.5px dashed rgba(214,245,240,.18); overflow: visible; padding: 0; color: var(--cream); transition: transform .18s, box-shadow .18s; }
/* after a fill the cards fly out of a deck in the corner onto their slots, back row first (dealIn in app.js
   sets --dx/--dy per slot); the price tag pops once the card has landed; then light sweeps the case */
.case-bed.dealt .slot.filled { animation: fly-in .6s cubic-bezier(.2,.8,.25,1) both; animation-delay: calc(var(--i, 0) * var(--deal, 26ms) + .35s); }
@keyframes fly-in { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -200px)) rotate(-25deg) scale(.5); } 60% { opacity: 1; } 80% { transform: translateY(-5px) rotate(2deg) scale(1.05); } }
.case-bed.dealt .slot.filled .price-tag { animation: tag-pop .35s cubic-bezier(.2,.9,.3,1.5) both; animation-delay: calc(var(--i, 0) * var(--deal, 26ms) + .85s); }
@keyframes tag-pop { from { opacity: 0; transform: translateX(-50%) scale(.2); } }
.case-bed.swept::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; mix-blend-mode: screen; z-index: 30;
  background: linear-gradient(115deg, transparent 30%, rgba(255,240,210,.4) 45%, rgba(255,120,200,.22) 52%, rgba(120,220,255,.28) 58%, transparent 70%); background-size: 250% 100%; animation: shine 1s ease-out both; }
.deck { position: absolute; left: 2%; top: -8px; width: 58px; aspect-ratio: 5 / 7; z-index: 40; border-radius: var(--r-s); display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(135deg, var(--ball-red), var(--ball-red-dark)); border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 var(--ball-red-dark), 4px 4px 0 #4E0A0D, 6px 6px 0 #2E0507, 0 12px 20px rgba(0,0,0,.5);
  animation: deck-in .3s ease both, deck-wobble .5s ease-in-out .3s infinite; }
.deck .ball { width: 22px; height: 22px; }
.deck.gone { animation: deck-out .5s ease both; }
@keyframes deck-in { from { opacity: 0; transform: translateY(-30px) rotate(-10deg); } }
@keyframes deck-wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
@keyframes deck-out { to { opacity: 0; transform: translateY(-20px) scale(.6); } }
.fill-meter { position: absolute; right: 10px; top: -8px; z-index: 40; pointer-events: none; background: var(--ink); color: var(--cream); border: 2px solid var(--tint); border-radius: 999px; padding: 7px 16px; font: 700 15px var(--mono); box-shadow: 0 10px 24px rgba(0,0,0,.45); animation: hero-in .25s ease both; }
.fill-meter.done { background: var(--tint); color: var(--ink); animation: meter-done .35s cubic-bezier(.2,.9,.3,1.4) both, fade-out .5s ease 2s both; }
@keyframes meter-done { from { transform: scale(.9); } 60% { transform: scale(1.12); } }
@keyframes fade-out { to { opacity: 0; } }
/* the one button a page is waiting on, until it has been pressed once */
.btn.pulse { animation: pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring { from { box-shadow: 0 0 0 0 rgba(255,77,94,.6); } to { box-shadow: 0 0 0 16px rgba(255,77,94,0); } }
@keyframes case-turn { from { opacity: 0; transform: rotateX(10deg) rotateY(-8deg) translateX(-20px); } }
.case3d.turning .case-bed { animation: case-turn .45s cubic-bezier(.2,.8,.3,1) both; }
.slot.slab { aspect-ratio: 3 / 5; }
.slot .art, .slot .face { position: absolute; inset: 0; border-radius: var(--r-s); overflow: hidden; background: #2F2A26; border: 0; padding: 0; display: grid; place-items: center; font-size: 10px; text-align: center; }
.slot.slab .face::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 18%; background: linear-gradient(#E8E2D6, #D9D2C3); border-bottom: 2px solid #B7222A; }
.slot.slab .art img { top: 18%; height: 82%; position: absolute; object-fit: cover; }
.slot.filled { border: 0; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.slot.filled:hover { transform: translateY(-6px) scale(1.04); z-index: 5; box-shadow: 0 16px 28px rgba(0,0,0,.55); }
.slot.stack { box-shadow: 3px 3px 0 #CFC6B8, 6px 6px 0 #ABA398, 0 10px 18px rgba(0,0,0,.5); }
.slot[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 6; }
.slot .price-tag { position: absolute; top: 50%; left: 50%; transform: translateX(-50%); background: #FFFDF8; color: #111; border-radius: 999px; padding: 2px 7px; font: 700 11px var(--mono); box-shadow: 0 1px 3px rgba(0,0,0,.4); white-space: nowrap; }
.slot .cond { position: absolute; top: 3px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #FFFDF8; color: #111; font: 700 9px/22px var(--body); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.slot .count { position: absolute; top: 13%; left: 4px; background: var(--accent-fill); color: var(--on-accent); border-radius: 999px; padding: 1px 6px; font: 700 10px var(--mono); }
.slot .pin { position: absolute; top: 32%; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
/* SOLD: an online order took it, take it out of the case. NEW: a card taken in at Intake, put it in here. */
.slot .flag { position: absolute; top: 34%; left: 50%; transform: translateX(-50%) rotate(-12deg); z-index: 4; background: var(--bad-fill); color: #FFFFFF; font: 800 10px/1 var(--display); letter-spacing: 1.2px; padding: 4px 8px; border-radius: 4px; border: 1.5px solid var(--on-accent); box-shadow: 0 3px 8px rgba(0,0,0,.5); animation: flag-in .4s cubic-bezier(.2,.9,.3,1.4) both, flag-pulse 1.8s ease-in-out .4s infinite; }
.slot .flag.new { background: var(--tint); color: var(--ink); }
@keyframes flag-in { from { opacity: 0; transform: translateX(-50%) rotate(-12deg) scale(2); } }
@keyframes flag-pulse { 50% { box-shadow: 0 3px 8px rgba(0,0,0,.5), 0 0 0 5px rgba(200,30,30,.3); } }
.slot-panel .banner { margin: 0; }
.slot .empty-mark { color: rgba(214,245,240,.35); font: 600 11px var(--body); }
.slot-panel { position: sticky; top: 16px; display: grid; gap: 12px; }
.slot-panel .detail-top { grid-template-columns: 96px 1fr; }
.slot-panel h3 { font: 700 18px/1.15 var(--display); margin: 2px 0 4px; }
.leftover { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.leftover .tile { padding: 5px; gap: 3px; }
.leftover .tile .name { font-size: 12px; }
.item-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.item-row .art { width: 44px; padding: 0; border-radius: 4px; font-size: 0; aspect-ratio: 3 / 4; }
.item-row.out { opacity: .5; }
/* ---------- intake: big targets for the iPad at the table ---------- */
.intake-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 16px; align-items: start; }
.intake-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 10px 0; }
.intake-results .tile { padding: 6px; }
.rows-pick { display: grid; gap: 6px; }
.row-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-size: 15px; }
.row-pick:hover { border-color: var(--tint); }
.row-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.row-pick .price { font-size: 18px; }
.discrepancy { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-s); padding: 10px 12px; display: grid; gap: 8px; }
.discrepancy .seg button { font-size: 14px; padding: 8px 14px; }
.label-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.label-preview iframe { width: 176px; height: 70px; border: 1px solid var(--line); border-radius: var(--r-s); background: #777; }
/* The print station's own pictures (304 x 104 dots), shown dot for dot: pixelated, never smoothed. */
.label-preview img { width: 176px; height: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; image-rendering: pixelated; }
#labelPrice { width: 96px; }
#labelRetag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--warn); border-radius: var(--r-s); background: var(--warn-bg); }
#labelRetag span { flex: 1 1 200px; }
#labelLog li { display: flex; gap: 10px; align-items: center; }
#labelLog .line-name { flex: 1; min-width: 0; display: grid; }
#labelLog .btn { flex: none; }
#labelLog li.day-head { display: block; background: none; border: 0; padding: 8px 2px 0; font: 700 12px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
#labelLog li.day-head:first-child { padding-top: 0; }
#labelLog .line-name b { overflow-wrap: anywhere; }
#labelLog time { white-space: nowrap; }
@media (max-width: 420px) { #labelLog li:not(.day-head) { flex-wrap: wrap; } #labelLog li:not(.day-head) .btn { margin-left: auto; } }
/* The print queue (Labels page): the stations' printers, this laptop's switches if it is one, the jobs in order. */
#printQueuePanel .group-label { flex-wrap: wrap; gap: 8px; }
#printQueuePanel select { max-width: 100%; }
.station-line { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.station-line .pill { white-space: normal; font-size: 12px; }
.station-here { display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.station-here p { margin: 0; font-weight: 600; }
.station-here label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.station-setup { border-top: 1px solid var(--line); padding-top: 8px; }
/* The numbered batch list (PLAN-PRINT-TOOLS.md #9): 1, 2, 3… in print order, each line's state on the right. */
.batch-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 4px; max-height: 420px; overflow-y: auto; }
.batch-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.batch-list li .line-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.batch-list li .n { font: 600 13px var(--mono); color: var(--muted); min-width: 2.2em; text-align: right; }
.batch-list li.printing { border-left: 4px solid var(--warn); }
.batch-list li.failed { border-left: 4px solid var(--bad); }
.batch-on input { width: 5em; margin-left: 4px; }
/* To print (#11): the same list look as the history, a little taller before it scrolls. */
.log.to-print { max-height: 360px; overflow-y: auto; }
.log.to-print li { align-items: center; }
.log.to-print .line-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.log.to-print li.pending { border-left: 4px solid var(--warn); }
#toPrintPanel .group-label .btn { white-space: nowrap; }
.damaged-row { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-list li.divider { border-style: dashed; }
#batchPanel .group-label .btn { white-space: nowrap; }
.batch-list li.divider b { letter-spacing: 0.04em; }
.batch-list li.flash { outline: 2px solid var(--warn); }
/* The roll strip (#10): a small box a card, a tall dark one a divider, coloured as the list's states. */
.batch-roll { display: flex; flex-wrap: wrap; gap: 3px; align-items: flex-end; margin: 6px 0 4px; }
.roll-box { width: 12px; height: 14px; padding: 0; border: 1.5px solid var(--muted); border-radius: 2px; background: var(--surface); cursor: pointer; }
.roll-box.printed, .roll-box.sent { background: var(--muted); }
.roll-box.on { background: var(--ok); border-color: var(--ok); }
.roll-box.printing { background: var(--warn); border-color: var(--warn); }
.roll-box.failed { background: var(--bad); border-color: var(--bad); }
.roll-box.divider { width: 6px; height: 22px; background: var(--text); border-color: var(--text); }
.station-setup summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.station-setup[open] { display: grid; gap: 8px; }
.station-setup p { font-weight: 400; }
.nudge-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-areas: ". up ." "left reset right" ". down ."; gap: 4px; }
.nudge-pad [data-nudge="up"] { grid-area: up; } .nudge-pad [data-nudge="down"] { grid-area: down; }
.nudge-pad [data-nudge="left"] { grid-area: left; } .nudge-pad [data-nudge="right"] { grid-area: right; }
.nudge-pad .btn { width: 100%; justify-content: center; }
.nudge-pad [data-nudge="reset"] { grid-area: reset; padding-inline: 0; }
#stationTest { justify-self: start; }
#printQueue li { display: grid; gap: 8px; }
#printQueue .line-name { min-width: 0; display: grid; gap: 2px; }
#printQueue .line-name b { overflow-wrap: anywhere; }
#printQueue .act-row:empty { display: none; }
#printQueue .pill { justify-self: start; white-space: normal; }
#printQueue progress { width: 100%; height: 6px; accent-color: var(--accent); }
.take-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.take-row .btn.primary { font-size: 16px; padding: 12px 22px; }
.intake-lines li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.intake-lines .art { width: 34px; padding: 0; border-radius: 4px; font-size: 0; }
.intake-lines .line-name { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* "goes in Case 1 row 6 slot 7, between ..." is long: it wraps rather than pushing the page sideways. */
.intake-lines .line-name .pill { display: inline-block; white-space: normal; border-radius: var(--r-s); }
.intake-lines .line-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intake-lines li.sold { opacity: .6; }
.intake-lines li.empty-row { display: block; color: var(--muted); }
/* the newest line lands with a stamp */
.intake-lines li.just-in { animation: hero-in .35s ease both; }
.intake-lines li.just-in .line-name b::after { content: "TAKEN IN"; display: inline-block; margin-left: 8px; font: 800 10px/1 var(--display); letter-spacing: 1.4px; color: var(--ok); border: 2px solid currentColor; border-radius: 4px; padding: 3px 5px; transform: rotate(-4deg); animation: stamp .45s cubic-bezier(.2,.9,.3,1.6) both; vertical-align: middle; }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(2.2); } }
@media (max-width: 1000px) { .intake-grid { grid-template-columns: 1fr; } }  /* Tonight beside the search on a sideways iPad (U4) */

.stickers { display: grid; gap: 12px; }
.sticker-jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.sticker-job { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); }
.sticker-job .n { font: 600 26px/1 var(--mono); }
.sticker-job .n small { font: 500 12px var(--body); color: var(--muted); margin-left: 6px; }
.changes-list { margin: 6px 0 0; padding-left: 18px; }
.changes-list li { margin: 2px 0; }
@media (max-width: 1150px) { .stage { grid-template-columns: 1fr; } .slot-panel { position: static; } .case-bed { transform: none; } }
@media (max-width: 760px) { .case-bed { padding: 8px; } .case-row { gap: 4px; } .slot .price-tag { font-size: 9px; padding: 1px 5px; } .slot .cond { width: 16px; height: 16px; font-size: 7px; line-height: 16px; } }

/* ---------- orders: one card per order, a ring for how far along it is ---------- */
.orders { display: grid; gap: 12px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; animation: tile-in .3s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.order.done { opacity: .6; }
.order-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ring { width: 46px; height: 46px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--ok); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .5s ease; }
.ring text { font: 700 12px var(--mono); fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.order-title { display: grid; gap: 2px; min-width: 0; }
.order-title b { font: 700 16px var(--display); }
.order-lines { display: grid; gap: 6px; }
.order-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--r-s); background: var(--surface-2); }
.order-line .art { width: 34px; padding: 0; border-radius: 4px; font-size: 0; }
.order-line .ln { display: grid; min-width: 0; }
.order-line .ln b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-line .qty { font: 600 15px var(--mono); }
.order-line.pulled { opacity: .55; }
.resolve { grid-column: 1 / -1; padding: 6px 0 2px; }
.claim { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.claim .dot { width: 10px; height: 10px; }
@media (max-width: 760px) { .order-line { grid-template-columns: 34px minmax(0, 1fr); } .order-line .actions-cell { grid-column: 1 / -1; } }

.notice { margin-bottom: 14px; }
.feed { display: grid; gap: 8px; }
.feed.only-review .sortitem:not(.review) { display: none; }
.sortitem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; }
.sortitem.review { border-left: 5px solid var(--warn); }
.sortrow { display: grid; grid-template-columns: 34px 58px 58px minmax(0, 1fr) 80px 56px; gap: 12px; align-items: center; }
.sortrow .price { text-align: right; }
.pile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); font: 700 30px/1 var(--display); }
.pile.tiny { display: inline-grid; width: 18px; height: 18px; border-radius: 5px; font-size: 12px; vertical-align: -3px; }
.pile.pA { background: var(--accent-fill); color: var(--on-accent); }
.pile.pB { background: var(--tint); color: var(--ink); }
.pile.pC { background: var(--surface-2); color: var(--muted); border: 1.5px dashed var(--muted); }
.chooser { display: grid; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.cands { display: flex; gap: 8px; flex-wrap: wrap; }
.cands:empty { display: none; }
.cand { width: 124px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px; text-align: left; display: grid; gap: 4px; }
.cand:hover { border-color: var(--accent); }
.sortq { flex: 1; min-width: 180px; }
.deal { position: fixed; inset: 0; background: var(--bg); z-index: 15; padding: 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.deal-top { display: flex; justify-content: space-between; align-items: center; }
.deal-card { display: grid; grid-template-columns: minmax(0, 360px) auto; gap: 40px; align-items: center; justify-content: center; }
.deal .pile.big { width: 220px; height: 220px; border-radius: 32px; font-size: 160px; }
.deal-pile { font: 700 40px/1.1 var(--display); margin-top: 12px; }
.deal p { font-size: 18px; }
.deal .act-row { justify-content: center; }
.deal .act-row .btn { font-size: 18px; padding: 14px 28px; }

.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r-s); margin-bottom: 16px; }
.banner.offline { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner .btn { background: var(--ink); color: var(--cream); }
.login { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; padding: 16px; z-index: 20; }
.login-logo { width: min(260px, 70%); justify-self: center; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); animation: hero-in .4s ease both; }
/* The sign-in moment: the logo comes in, a holo shimmer sweeps across it twice (masked to the logo's own
   shape), sparkles twinkle around the ball, and it dissolves to the app. */
.vault { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #145052, #061416 70%); animation: fade-in .25s ease both; }
.vault.gone { animation: fade-out .5s ease both; }
.vault-logo { position: relative; width: min(78vw, 560px); aspect-ratio: 893 / 579; animation: vault-zoom .8s cubic-bezier(.2,.8,.3,1) both; }
.vault-logo img { display: block; width: 100%; height: auto; animation: vault-bloom 2.6s ease-in-out both; }
.holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url(/static/logo.svg) center / contain no-repeat; mask: url(/static/logo.svg) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 22%, rgba(255,90,190,.75) 36%, rgba(255,245,140,.85) 46%, rgba(90,245,255,.85) 56%, rgba(190,130,255,.75) 66%, transparent 80%);
  background-size: 250% 100%; background-position: 150% 0; animation: shine 1.15s ease-in-out .35s 2 alternate both; }
.spark { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; pointer-events: none; opacity: 0; animation: twinkle .9s ease-in-out var(--d) 2; }
.spark::before, .spark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--on-accent); border-radius: 2px; box-shadow: 0 0 10px 2px rgba(255,240,200,.9); }
.spark::before { width: 18px; height: 3px; transform: translate(-50%, -50%); }
.spark::after { width: 3px; height: 18px; transform: translate(-50%, -50%); }
@keyframes vault-zoom { from { opacity: 0; transform: scale(.6); } to { transform: scale(1.1); } }
@keyframes vault-bloom { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,120,120,0)); } 50% { filter: drop-shadow(0 0 28px rgba(255,140,140,.75)) drop-shadow(0 0 70px rgba(255,80,80,.35)); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.login form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; width: min(380px, 100%); }

/* card detail: a panel beside the results on a wide screen; under 1150px it slides up over them */
.sheet-close, .sheet-backdrop { display: none; }
@media (max-width: 1150px) {
  .split { grid-template-columns: 1fr; }
  .detail {
    position: fixed; left: 88px; right: 0; bottom: 0; top: auto; z-index: 13;  /* beside the iPad rail */
    max-height: min(82vh, 760px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: var(--r-l) var(--r-l) 0 0; border-bottom: 0; padding-top: 22px;
    box-shadow: 0 -18px 50px rgba(0,0,0,.35);
    animation: sheet-up .28s cubic-bezier(.2,.8,.3,1);
  }
  .detail::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--line); }
  .sheet-close { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 22px; line-height: 1; }
  body.sheet-open .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 12; background: rgba(3,16,18,.45); animation: fade-in .2s ease; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  /* the menu on a phone: see "U2" at the end of this file */
.who-grid { grid-template-columns: 1fr 1fr; }
  .who-btn { padding: 14px 8px; font-size: 17px; }
  .feedlog li { grid-template-columns: 16px minmax(0, 1fr); }
  .feedlog time { display: none; }
  .detail { left: 0; }
  /* Show Day on the TC57 / a phone: scan box, the last card, then the totals */
  .showgrid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 14px; }
  .hero h3 { font-size: 20px; }
  .hero-price { font-size: 36px; }
  .hero-mark, .hero-ball { width: 80px; height: 80px; font-size: 40px; }
  .today { grid-template-columns: 1fr auto; align-items: center; }
  .today-total { font-size: 34px; }
  .today .btn { grid-column: 1 / -1; }
  #scanLog li { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
  #scanLog time { display: none; }
  .customer.sold { grid-template-columns: 1fr; text-align: center; }
  .customer.sold .cust-card { max-width: 260px; justify-self: center; }
  .cust-info { justify-items: center; }
  main { padding: 16px; }
  .two, .two.top { grid-template-columns: minmax(0, 1fr); }
  .detail-top { grid-template-columns: 90px 1fr; }
  .sortrow { grid-template-columns: 24px 44px minmax(0, 1fr) 44px; }
  .sortrow > .art:nth-of-type(2), .sortrow .price { display: none; }
  .pile { width: 40px; height: 40px; font-size: 22px; }
  .deal-card { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .deal-card .art { max-width: 200px; }
  .deal .pile.big { width: 140px; height: 140px; font-size: 100px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .tabbar, .toast { display: none; } }


/* ---------- Reach: mission control (21 Oct 2026). Its own dark stage in either theme; one cyan ramp for magnitude. ---------- */
.reach .stage { --st-bg: #070b12; --st-line: #13202e; --st-ink: #d9f6ff; --st-mute: #6f98ad; --glow: #19d3ff;
  --seq-1: #0e4b5e; --seq-2: #0f6f8a; --seq-3: #119ec0; --seq-4: #2fd0f0; --seq-5: #a8f0ff;
  background: radial-gradient(ellipse at 50% 0%, #0d1a2a 0%, var(--st-bg) 60%); color: var(--st-ink); border: 1.5px solid var(--st-line); border-radius: var(--r-l);
  padding: 16px 18px 12px; margin-bottom: 14px; position: relative; overflow: hidden; font-family: var(--mono); }
.reach .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); }
.reach .board { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.reach .board .cell { border: 1px solid var(--st-line); border-radius: var(--r-s); padding: 10px 12px; background: rgba(13, 26, 42, .55); position: relative; z-index: 1; }
.reach .board .cell .l { font-size: 11px; letter-spacing: .12em; color: var(--st-mute); text-transform: uppercase; }
.reach .board .cell .n { font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--st-ink); text-shadow: 0 0 12px rgba(25, 211, 255, .45); font-variant-numeric: tabular-nums; }
.reach .stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.reach .stage > * { grid-column: 1; min-width: 0; }
.reach .stage .corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--glow); opacity: .7; pointer-events: none; }
.reach .stage .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; } .reach .stage .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.reach .stage .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; } .reach .stage .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.reach .ticker { font-size: 12px; letter-spacing: .08em; color: var(--seq-5); min-height: 16px; margin: 6px 2px 0; text-shadow: 0 0 8px rgba(25,211,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reach .ticker::before { content: "▸ "; color: var(--glow); }
.reach .stage .title { font-size: 11px; letter-spacing: .22em; color: var(--st-mute); margin: 0 0 10px 2px; }
.reach .stage .title b { color: var(--st-ink); font-weight: 600; }
.reach .stage .title i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); margin: 0 6px 1px 0; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { to { opacity: .25; } }
.reach .map-title { font-size: 11px; letter-spacing: .18em; color: var(--st-mute); margin: 0 0 4px 2px; }
.reach .map svg { width: 100%; height: auto; display: block; overflow: visible; }
.reach .home { fill: #fff; stroke: var(--glow); stroke-width: 2; filter: drop-shadow(0 0 6px var(--glow)); }
.reach .arc { fill: none; stroke: var(--glow); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--glow)); pointer-events: none; }
.reach .ping { fill: none; stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.reach .readout { display: flex; align-items: center; gap: 14px; margin-top: 10px; position: relative; z-index: 1; font-size: 12px; color: var(--st-mute); flex-wrap: wrap; }
.reach .readout .when { font-size: 18px; font-weight: 600; letter-spacing: .14em; color: var(--st-ink); min-width: 120px; text-shadow: 0 0 10px rgba(25,211,255,.4); }
.reach .readout .bar { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: #0f1d2b; overflow: hidden; }
.reach .readout .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--seq-2), var(--seq-5)); box-shadow: 0 0 8px var(--glow); }
.reach .legend { display: flex; gap: 10px; align-items: center; }
.reach .legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.reach .empty-row { position: relative; z-index: 1; color: var(--st-mute); padding: 20px 10px; text-align: center; letter-spacing: .04em; }
.reach-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.reach-tables h2 { margin: 0 0 8px; }
.reach-tables td.num, .reach-tables th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 30; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; max-width: 240px; }
.tip b { display: block; margin-bottom: 2px; }

.reach .globe-box { position: relative; z-index: 1; height: clamp(360px, 50vw, 640px); }
.reach .globe-box canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.reach .globe-box canvas:active { cursor: grabbing; }
.reach .globe-box .map-title { position: absolute; top: 6px; left: 4px; transition: opacity .4s; }
.reach .globe-hint { position: absolute; bottom: 6px; right: 6px; font-size: 10px; letter-spacing: .18em; color: var(--st-mute); opacity: .7; }
@media (max-width: 1000px) { .reach-tables { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .reach .arc, .reach .ping { display: none; } }

/* Reach controls, timeline scrubber and the pinned place (21 Oct 2026, second pass) */
.reach .controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; position: relative; z-index: 1; }
.reach .controls .seg button { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.reach .stage .seg { border-color: var(--st-line); background: rgba(13, 26, 42, .55); }
.reach .stage .seg button { color: var(--st-mute); }
.reach .stage .seg button[aria-pressed="true"] { color: var(--st-ink); background: #11314a; box-shadow: inset 0 0 0 1px var(--glow); }
.reach .play { gap: 8px; }
.reach .timeline { position: relative; height: 44px; margin-top: 10px; cursor: pointer; z-index: 1; user-select: none; touch-action: none; }
.reach .timeline .months { position: absolute; left: 0; right: 0; top: 0; height: 28px; display: flex; align-items: flex-end; gap: 1px; }
.reach .timeline .months i { flex: 1; background: var(--seq-2); opacity: .55; border-radius: 2px 2px 0 0; min-height: 2px; transition: opacity .2s; }
.reach .timeline .months i.now, .reach .timeline .months i:hover { opacity: 1; background: var(--seq-4); }
.reach .timeline .bar { position: absolute; left: 0; right: 0; bottom: 8px; height: 6px; border-radius: 3px; background: #0f1d2b; overflow: hidden; }
.reach .timeline .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--seq-2), var(--seq-5)); box-shadow: 0 0 8px var(--glow); }
.reach .timeline .cursor { position: absolute; top: 0; bottom: 4px; width: 2px; background: #fff; box-shadow: 0 0 8px var(--glow); left: 0; pointer-events: none; }
.reach .readout .when { min-width: 150px; }
.reach .focus { position: absolute; top: 28px; right: 8px; width: min(280px, 60%); background: rgba(7, 11, 18, .88); border: 1px solid var(--glow); border-radius: var(--r-s); padding: 10px 12px; color: var(--st-ink); font-size: 13px; box-shadow: 0 0 18px rgba(25,211,255,.25); backdrop-filter: blur(4px); }
.reach .focus h3 { margin: 0 0 4px; font: 600 15px var(--mono); letter-spacing: .06em; }
.reach .focus .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-top: 1px solid var(--st-line); }
.reach .focus .row:first-of-type { border-top: 0; }
.reach .focus .close { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: var(--st-mute); font-size: 16px; cursor: pointer; }
.reach .focus .share { height: 4px; background: #0f1d2b; border-radius: 2px; margin: 8px 0 2px; overflow: hidden; }
.reach .focus .share i { display: block; height: 100%; background: var(--seq-4); }
.reach-tables tbody tr { cursor: pointer; }
.reach-tables tbody tr:hover td { background: var(--surface-2); }
@media (max-width: 700px) { .reach .focus { position: static; width: auto; margin-top: 8px; } }

/* Reach fun facts: one at a time, fading through, tap for the next (21 Oct 2026) */
.reach .facts { display: flex; gap: 12px; align-items: baseline; width: 100%; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--st-line); border-radius: var(--r-s);
  background: rgba(13, 26, 42, .55); color: var(--st-ink); font: 13px var(--mono); text-align: left; cursor: pointer; position: relative; z-index: 1; }
.reach .facts .k { font-size: 11px; letter-spacing: .18em; color: var(--glow); white-space: nowrap; }
.reach .facts .f { flex: 1; line-height: 1.4; animation: fact-in .5s ease both; }
.reach .facts .f.out { animation: fact-out .35s ease both; }
@keyframes fact-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes fact-out { to { opacity: 0; transform: translateY(-4px); } }

/* ---------- Pricing: the stock box walk (22 Oct 2026) ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.letters button { position: relative; min-width: 44px; padding: 6px 8px 8px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--display); cursor: pointer; display: grid; gap: 2px; justify-items: center; }
.letters button small { font: 500 11px var(--mono); color: var(--muted); }
.letters button[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.letters button.clear small { color: var(--ok); }
.letters button.empty { opacity: .45; }
.letters button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ok) var(--done, 0%), var(--surface-2) var(--done, 0%)); }
/* The tiles: a card each, tap to verify it's going */
.pricing-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ptile { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; animation: tile-in .3s ease both; }
.ptile:hover { transform: translateY(-2px); }
.ptile .pic { aspect-ratio: 5 / 7; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 11px; position: relative; }
.ptile .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile .nm { font: 600 13px var(--body); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ptile .nm { cursor: help; }
/* the hover window: today's prices beside the tile under the mouse */
.hovercard { position: fixed; z-index: 9; width: 250px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--cream); box-shadow: 0 10px 28px rgba(0,0,0,.35); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateY(4px) scale(.98); pointer-events: none; transition: opacity .15s, transform .15s; }
.hovercard.on { opacity: 1; transform: none; pointer-events: auto; }
.hovercard .hv-name { font: 700 14px var(--body); }
.hovercard .hv-sub { color: var(--side-muted); margin-bottom: 8px; }
.hovercard .hv-vend { margin: 0 0 8px; padding: 7px 10px; border-radius: var(--r-s); background: #f2a516; color: #2a1a00; font: 800 15px var(--body); text-transform: uppercase; letter-spacing: .03em; }
.hovercard .hv-vend small { display: block; font: 600 11px var(--body); text-transform: none; letter-spacing: 0; }
.hovercard .hv-big { font: 700 26px var(--body); letter-spacing: -.02em; margin-bottom: 6px; }
.hovercard .hv-big small { font: 500 11px var(--body); color: var(--side-muted); margin-left: 6px; letter-spacing: 0; }
.hovercard .hv-rows { width: 100%; border-collapse: collapse; }
.hovercard .hv-rows td { padding: 2px 0; border-top: 1px solid rgba(255,255,255,.08); }
.hovercard .hv-rows td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hovercard .hv-call { margin-top: 8px; padding: 5px 8px; border-radius: var(--r-s); font-weight: 600; background: rgba(255,255,255,.08); }
.hovercard .hv-call.go { background: rgba(60,160,90,.25); }
.hovercard .hv-call.stay { background: rgba(71,85,105,.55); }   /* stays home: office slate, not danger */
.hovercard .hv-foot { margin-top: 8px; color: var(--side-muted); font-size: 11px; }
.hovercard a { color: var(--cream); }
.ptile .sm { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .price { position: absolute; left: 12px; bottom: 58px; padding: 4px 9px; border-radius: 999px; background: #fff; color: #111; font: 700 15px var(--mono); border: 1.5px solid #ccc; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: text; }
.ptile .price input { width: 56px; font: 700 15px var(--mono); border: 0; background: transparent; color: #111; text-align: right; outline: none; }
.ptile .count { position: absolute; bottom: 12px; left: 12px; padding: 3px 8px; border-radius: 999px; border: 0; background: rgba(0,0,0,.6); color: #fff; font: 700 12px var(--mono); cursor: pointer; }
.ptile .count input { width: 34px; font: 700 12px var(--mono); border: 0; background: transparent; color: #fff; text-align: center; outline: none; }
.ptile .count.off { background: var(--bad); }
.ptile .gone-btn { position: absolute; bottom: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font: 600 11px var(--body); cursor: pointer; }
.ptile.missing { border-color: var(--bad); }
.ptile.missing .mark { background: var(--bad); }
.ptile.missing .pic img { filter: saturate(.4); }
.ptile .band { position: absolute; left: 0; right: 0; top: 44px; padding: 2px 0; background: rgba(199,125,17,.85); color: #fff; font: 700 10px var(--mono); letter-spacing: .08em; text-align: center; }
.ptile .band.red { background: var(--g-office); color: var(--bg); }
.ptile .band.vend { padding: 5px 0; background: #f2a516; color: #2a1a00; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ptile:has(.band.vend) { outline: 3px solid #f2a516; outline-offset: 2px; }
.ptile.under { border-color: var(--g-office); }
.ptile .home-btn { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font: 600 11px var(--body); cursor: pointer; }
.ptile .mark { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--warn); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ptile.going { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.ptile.going .mark { background: var(--ok); }
.ptile.home { opacity: .55; border-style: dashed; }
.ptile.home .mark { background: var(--muted); }
.ptile.home .pic img { filter: grayscale(1); }
.ptile .was { font: 11px var(--mono); color: var(--warn); }
/* How far the market moved since the card was last priced (2 Nov 2026) */
.ptile .mv { font: 600 11px var(--mono); }
.ptile .pcheck { margin-top: 6px; padding: 6px 8px; border-radius: var(--r-s); border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); cursor: default; }
.ptile .pcheck-why { font-size: 11px; line-height: 1.35; }
.ptile .pcheck-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ptile .pcheck-acts .btn { flex: 1; min-width: 0; padding: 6px; font-size: 12px; white-space: nowrap; }
.ptile .mv.up { color: var(--ok); }
.ptile .mv.down { color: var(--bad); }
/* Other games: look only, no call to make */
.ptile.look { cursor: default; }
.ptile.look .price, .ptile.look .count { cursor: default; }
.letters.games { margin-bottom: 8px; }
.letters.games button { min-width: 0; padding: 6px 12px 8px; font-size: 13px; }
.letters.games button::after { display: none; }
label.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.pick select { padding: 5px 8px; font-size: 13px; color: var(--text); }
.ptile.just-done { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.04); } }

/* Pricing: the Update TCGplayer list */
.tell-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.tell-list .tick { width: 30px; height: 30px; border-radius: var(--r-s); border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 800; cursor: pointer; }
.tell-list .tick[aria-pressed="true"] { background: var(--ok, #3C9A5A); border-color: var(--ok, #3C9A5A); color: #fff; }
.tell-list li.done > div { opacity: .6; }
.tell-list li.stale .tick { border-color: var(--bad); }
.tell-list li.done > .line-name { opacity: .6; }
.tell-list .line-name { display: grid; gap: 2px; min-width: 0; }

/* Close out: one panel per step, a numbered dot that turns into a tick */
.co-step h2 { display: flex; align-items: center; gap: 10px; }
.co-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); font-size: 14px; font-weight: 800; flex: none; }
.co-step.done .co-num { background: var(--ok, #3C9A5A); border-color: var(--ok, #3C9A5A); color: #fff; }
.co-step.done { border-color: color-mix(in srgb, var(--ok, #3C9A5A) 45%, var(--line)); }
.co-group { border-top: 1px solid var(--line); padding-top: 8px; }
.co-group summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 4px 0 8px; }
.co-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.co-list .line-name { display: grid; gap: 2px; min-width: 0; }
.co-list .act-row { flex-wrap: wrap; }
.co-list li.skipped { opacity: .6; }
.co-list li.here { border-color: var(--accent, #c4442f); }
.co-find { display: grid; gap: 6px; }
.co-find input { width: 100%; }
.tell-list .warn-text { color: var(--bad); font-weight: 600; }
#pricingFoundResults:empty { display: none; }
#pricingFound { max-width: 900px; }

/* Intake: a PSA slab looked up by cert */
.slab-preview { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.slab-pics { display: flex; gap: 8px; }
.slab-pics img, .slab-pics .art { width: 110px; aspect-ratio: 5 / 8; object-fit: contain; border-radius: var(--r-s); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.warn-text { color: var(--bad); font-weight: 600; }
@media (max-width: 560px) { .slab-preview { grid-template-columns: 1fr; } }
#intakeSlabResults:empty { display: none; }
#intakeSlabPhotoBtn { cursor: pointer; }
#intakeItem.drop-on { outline: 2px dashed var(--tint); outline-offset: 4px; }

/* Show prep: price moves since the fill, split Dropped / Went up */
.price-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.price-side { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--surface); }
.price-side .side-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.price-side h3 { margin: 0; font-size: 15px; }
.price-side.down h3 { color: var(--bad); }
.price-side.up h3 { color: var(--ok); }
.price-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.price-moves li { display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-s); border: 1.5px solid transparent; }
.price-moves li:not(:has(input)) { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.price-moves li.picked { border-color: var(--tint); background: var(--surface-2); }
.price-moves .art { width: 40px; padding: 0; font-size: 0; border-radius: 4px; aspect-ratio: 5 / 7; }
.price-moves .mv-name { min-width: 0; }
.price-moves .mv-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-moves .mv-prices { text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.price-moves .mkt { font-size: 11px; color: var(--muted); }
.price-side.down .delta { color: var(--bad); font-weight: 700; }
.price-side.up .delta { color: var(--ok); font-weight: 700; }
.price-moves input[type=checkbox] { width: 20px; height: 20px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.price-moves .mv-acts { display: flex; gap: 6px; }

/* ---------- Listing: TCGplayer prices by the rule ---------- */
.listing .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.listing .step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.listing .step .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font: 800 16px var(--body); box-shadow: 0 0 0 4px rgba(255,77,94,.18); }
.listing .step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.listing .how { margin-bottom: 14px; }
.listing .how h3 { margin: 0 0 8px; }
.listing .how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.listing-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.listing-stats .stat[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.listing-stats .stat .n { font: 800 28px var(--body); letter-spacing: -.02em; }
.listing-stats .stat .l { font-weight: 700; }
.listing-stats .stat .d { font-size: 11px; color: var(--muted); }
.listing-bar { margin-bottom: 6px; }
.listing-bar .btn .badge { margin-left: 6px; }
.btn.pulse { animation: pulse-ring 1.8s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.45); } 70% { box-shadow: 0 0 0 10px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
.listing-list { display: grid; gap: 8px; }
.lrow { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); animation: tile-in .3s ease both; animation-delay: calc(var(--i, 0) * 18ms); transition: border-color .18s; }
.lrow[open], .lrow:hover { border-color: var(--tint); }
.lrow.leaving { opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .35s; }
.lrow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 2fr) repeat(3, minmax(70px, 1fr)) minmax(110px, 1.3fr) auto; gap: 12px; align-items: center; padding: 8px 10px; }
.lrow summary::-webkit-details-marker { display: none; }
.lrow .art { width: 44px; padding: 0; font-size: 0; border-radius: 4px; aspect-ratio: 5 / 7; }
.lrow .lwho { min-width: 0; }
.lrow .lwho b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .col { display: grid; }
.lrow .col .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lrow .col .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.lrow .col .val small { font-weight: 400; color: var(--muted); }
.lrow .col.big .val { font: 800 20px var(--body); }
.lrow .col.market .lbl { color: var(--text); font-weight: 700; }
.lrow .col.market .val { font: 800 18px var(--body); }
.lrow .reason { grid-column: 2 / -2; grid-row: 2; margin-top: -4px; font-size: 12px; color: var(--muted); }
.lrow .col.big .val.up .delta { color: var(--ok); } .lrow .col.big .val.down .delta { color: var(--bad); }
.lrow .col.big .delta { font: 600 12px var(--body); }
.lrow .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.lrow .acts .price { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 2px 6px; background: var(--surface-2); font-weight: 700; }
.lrow .acts .price input { width: 64px; border: 0; background: transparent; padding: 2px; font: 700 14px var(--body); color: inherit; }
.lrow .why { padding: 4px 12px 12px 66px; font-size: 13px; }
.lrow .why ol { margin: 6px 0; padding-left: 18px; display: grid; gap: 3px; }
.lrow.held { opacity: .85; } .lrow.held .col.big .val { color: var(--muted); font-weight: 600; font-size: 16px; }
.lrow.approved .col.big .val { color: var(--ok); }
@media (max-width: 900px) {
  .lrow summary { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .lrow .col { display: none; } .lrow .col.big { display: grid; }
  .lrow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .lrow .reason { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .lrow .why { padding-left: 12px; }
}

/* ---------- Trade (the calculator, 25 Oct 2026): phone first, totals pinned to the bottom ---------- */
.trade-modes { margin-bottom: 12px; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.trade-cols:has(> #tradeInPanel[hidden]) { grid-template-columns: 1fr; }
.trade-side h2 { display: flex; gap: 6px; align-items: baseline; }
.trade-side .searchbar { margin-bottom: 10px; }
.trade-results { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-bottom: 10px; }
.trade-results:empty { display: none; }
.trade-quick { margin-bottom: 14px; }
.trade-quick label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 18px var(--display); }
.money-in { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); }
.trade-quick input { width: 150px; font: 600 26px var(--mono); padding: 6px 10px; }
.trade-manual { margin: 4px 0 10px; }
.trade-manual summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.trade-manual form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0 4px; }
.trade-manual #tradeManualName { flex: 1 1 220px; }
.trade-manual #tradeManualPrice { width: 90px; }
.slab-fields { display: flex; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; }
.trade-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trade-lines .empty { font-size: 14px; }
.tline { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); }
.tpic { width: 44px; height: 61px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.tpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tname { font-weight: 600; line-height: 1.25; }
.tmain a { color: inherit; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tmeta select { padding: 4px 8px; font-size: 13px; }
.chips { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.chips button { border: 0; background: none; padding: 5px 8px; font: 600 12px var(--mono); min-width: 34px; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.have { color: var(--ok); font-weight: 600; }
.tnums { display: grid; gap: 6px; justify-items: end; }
.price-box { display: inline-flex; align-items: center; gap: 2px; font: 600 15px var(--mono); }
.price-box input { width: 86px; font: 600 16px var(--mono); padding: 6px 8px; text-align: right; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.stepper button { border: 0; background: var(--surface-2); width: 32px; height: 32px; font-size: 18px; line-height: 1; }
.stepper input { width: 42px; border: 0; border-radius: 0; text-align: center; padding: 4px 0; }
.tremove { border: 0; background: none; font-size: 22px; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; }
.tremove:hover { background: var(--bad-bg); color: var(--bad); }
.trade-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
.tb-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.tb-row > div:not(.seg) { display: grid; }
.tb-row .n { font: 600 20px var(--mono); }
.tb-row.settle { border-top: 1px solid var(--line); padding-top: 10px; }
.final { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.final input { width: 110px; font: 700 20px var(--mono); padding: 6px 8px; border-color: var(--accent); }
.trade-tools { margin-top: 12px; justify-content: flex-end; }
/* Customer view: a receipt, no percentages, no stock counts, nothing to edit (body.trade-receipt) */
body.trade-receipt .side, body.trade-receipt .banner, body.trade-receipt #help { display: none; }
body.trade-receipt .app { grid-template-columns: 1fr; }
.receipt { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.receipt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.receipt h2 { font-size: 15px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.rname { display: grid; font-weight: 600; }
.rname small { font-weight: 400; color: var(--muted); font-size: 13px; }
.rname a { color: inherit; }
.rtotals { margin-top: 14px; display: grid; gap: 6px; }
.rline { display: flex; justify-content: space-between; font-size: 17px; }
.rline.big { font: 700 26px var(--display); padding-top: 6px; border-top: 2px solid var(--text); }
.rline.big b { font-family: var(--mono); }
.receipt-back { justify-self: center; }
@media (max-width: 1000px) { .trade-cols { grid-template-columns: 1fr; } }  /* side by side on a sideways iPad (U4) */
@media (max-width: 760px) {
  main:has(#view-buy:not([hidden])) { padding: 14px 12px 40px; }
  .tline { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .tline .tnums { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
  .tline .tremove { grid-row: 1; grid-column: 3; }
  .tpic { width: 40px; height: 56px; }
  .tb-row { gap: 8px 16px; } .tb-row .n { font-size: 17px; }
  .final input { width: 96px; }
  .receipt-card { padding: 14px; } .receipt li, .rline { font-size: 16px; } .rline.big { font-size: 22px; }
}
/* Complete & Receive: the review sheet, and the deals done (Phase 2, 25 Oct 2026) */
.trade-review { position: fixed; inset: 0; z-index: 30; background: rgba(3,16,18,.55); display: grid; place-items: end center; padding: 16px; animation: fade-in .2s ease; }
.trade-review-box { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 12px; animation: sheet-up .28s cubic-bezier(.2,.8,.3,1); }
@media (min-width: 761px) { .trade-review { place-items: center; } }
.trade-review h3 { font: 600 14px var(--display); margin: 6px 0 4px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.review-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.review-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); }
.review-lines li.bad { border-color: var(--bad); background: var(--bad-bg); }
.review-lines .price-box input { width: 80px; font-size: 15px; }
.review-lines .discrepancy { margin-top: 6px; display: grid; gap: 6px; }
.trade-review-acts { justify-content: flex-end; }
/* A long deal's card list scrolls; Back and Complete & Receive stay at the bottom of the sheet (12 Nov 2026).
   The -18px is the sheet's own bottom padding, so nothing shows through under the buttons. */
.trade-review-acts { position: sticky; bottom: -18px; margin: 0 -18px -18px; padding: 12px 18px 18px;
  background: var(--surface); border-top: 1px solid var(--line); }
/* "Coming in as": the condition every card added after it comes in at, until changed (12 Nov 2026) */
.trade-add-as { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0 4px; }
.trade-review-acts .btn.primary { font-size: 16px; padding: 12px 22px; }
.trade-recent { margin-top: 18px; }
.trade-deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deal-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 4px 14px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); }
.deal-row > .small { grid-column: 1 / -1; }
.deal-lines { display: grid; gap: 4px; padding: 6px 10px 10px; }
.deal-lines > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .deal-row { grid-template-columns: minmax(0, 1fr) auto; } .deal-row .num { grid-column: 1 / -1; } }

/* ---------- the Holo layer (10 Nov 2026): what a token alone can't say ---------- */
body { background: var(--bg); }
input, select { border-radius: var(--r-s); }
input[type=file] { max-width: 100%; min-width: 0; }
input:focus, select:focus { border-color: var(--hi); outline: 2px solid var(--hi); outline-offset: 0; }
.searchbar input:focus { outline: none; }  /* the bar itself turns teal (--accent) */
.panel, .tile, .stat, .detail, .who-box { box-shadow: var(--sleeve), var(--shadow); }
.btn { border-radius: 999px; padding: 9px 16px; }
.btn.small { padding: 5px 12px; }
.btn.ghost { background: var(--surface-2); border: 1px solid transparent; }
.seg { border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }
.badge { background: var(--tint); color: var(--ink); }
nav button { border-radius: var(--r-s); }
nav button[aria-current="page"] { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 6px 18px rgba(255,77,94,.35); }
.brand img { filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
th { letter-spacing: .06em; }
tr[aria-selected="true"] td { background: var(--surface-2); }
.toast { background: var(--ink); color: var(--cream); border: 1px solid rgba(214,245,240,.18); border-radius: 999px; }
:root[data-theme="dark"] .toast, body.show-mode .toast { background: var(--cream); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--cream); color: var(--ink); } }

/* Foil: only on the few pieces that should catch the eye, never behind a card's picture. */
.hero.ok { background: var(--foil); border-color: transparent; color: #FFFFFF; }
.hero.ok .stamp { color: #FFFFFF; }
.hero.ok .muted, .hero.ok .hero-price small { color: #CFF3EE; }
.hero.ok .btn.ghost { background: rgba(255,255,255,.18); color: #FFFFFF; }
.today { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.today .eyebrow, .today-count { color: var(--muted); }
.today-total { color: var(--text); }
.today .btn { color: var(--text); border-color: var(--line); }

/* ---------- U2 (11 Nov 2026): the menu at each width ----------
   Wide screen: the side menu, grouped by job under small headings.
   iPad (761-1150px): a narrow rail, icon over a short label, the groups split by a thin line.
   Phone (760px and under): a slim strip at the top (logo, who's working), a bar at the bottom with the four
   pages used most at a table, and More, which opens the whole side menu over the page. */
.nav-head { margin: 8px 10px 2px; font: 600 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
nav button { min-height: 36px; }
@media (min-width: 1151px) { .side { gap: 12px; } .brand img { width: 144px; } }
.tabbar { display: none; }
body.customer-mode .tabbar { display: none; }

@media (min-width: 761px) and (max-width: 1150px) {
  .app { grid-template-columns: 88px 1fr; }
  .side { padding: 14px 8px; gap: 12px; }
  .brand img { width: 64px; }
  .brand small { display: none; }
  .me { margin: 0; justify-content: center; padding: 8px; }
  .me #meName { display: none; }
  .nav-head { height: 1px; margin: 6px 12px; background: rgba(214,245,240,.14); font-size: 0; }
  nav button { position: relative; flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 2px; font-size: 11px; text-align: center; }
  nav button > span:first-of-type { flex: none; }
  nav button .badge { position: absolute; top: 3px; right: 3px; font-size: 10px; padding: 2px 5px; }
  .side-tools { grid-template-columns: 1fr; }
  .side-tools .tool span { display: none; }
  .here { display: none; }
  .health { padding: 8px 4px; }
  .health div { font-size: 0; justify-content: center; }
}

@media (max-width: 760px) {
  :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 10px; }
  .brand { grid-template-columns: auto; justify-content: start; }
  .brand img { width: 92px; }
  .brand small { display: none; }
  .me { margin: 0 0 0 auto; }
  .side > nav, .side-tools, .here, .health { display: none; }
  /* More: the whole menu over the page, above the bar */
  body.menu-open .side { position: fixed; inset: 0 0 var(--tabbar-h) 0; z-index: 11; flex-direction: column; align-items: stretch; overflow-y: auto; padding: 16px; gap: 12px; animation: fade-in .15s ease; }
  body.menu-open .me { margin: 0; align-self: flex-start; }
  body.menu-open .side > nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  body.menu-open .side-tools { display: grid; }
  body.menu-open .here, body.menu-open .health { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  body.menu-open .health { margin-top: 0; padding: 8px 10px; font-size: 12px; }
  .side > nav .nav-head { grid-column: 1 / -1; margin: 10px 4px 2px; }
  .side > nav button { min-height: 48px; }
  /* the bar */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
    gap: 0; padding: 4px 4px env(safe-area-inset-bottom, 0px); background: var(--side); border-top: 1px solid rgba(214,245,240,.12); }
  .tabbar button { flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 4px 0; font-size: 11px; font-weight: 600; text-align: center; color: var(--side-muted); background: none; }
  .tabbar button:hover { background: none; }
  .tabbar button > span:first-of-type { flex: none; }
  .tabbar button svg { box-sizing: border-box; width: 52px; height: 30px; padding: 5px 16px; border-radius: 999px; opacity: 1; transition: background .15s; }
  .tabbar button[aria-current="page"], .tabbar button.current, .tabbar button[aria-expanded="true"] { background: none; color: var(--side-text); box-shadow: none; }
  .tabbar button[aria-current="page"] svg, .tabbar button.current svg, .tabbar button[aria-expanded="true"] svg { background: var(--accent-fill); color: var(--on-accent); }
  /* room for the bar under the page, and what sits at the bottom of the screen moves up above it */
  main, main:has(#view-buy:not([hidden])) { padding-bottom: calc(var(--tabbar-h) + 24px); }
  body.menu-open .tabbar button[aria-current="page"] { color: var(--side-muted); }
  body.menu-open .tabbar button[aria-current="page"] svg { background: none; color: inherit; }
  .toast { bottom: calc(var(--tabbar-h) + 12px); }
  .trade-bar { bottom: calc(var(--tabbar-h) + 8px); }
}

/* ---------- The Riftbound page (Phase 2b, 12 Nov 2026) ----------
   One row per card and printing, laid out like Listing's: picture, name, the three money columns, then whether
   we have it. On a phone the money columns shrink to "You keep" and the have-it line goes under the name. */
.rb-age { margin: -6px 0 10px; }
.rb-bar #rbFloor { width: 64px; padding: 5px 6px; font-size: 13px; color: var(--text); }
.rb-leave { margin: 0 0 10px; padding: 8px 12px; }
.rb-leave summary { cursor: pointer; font-size: 13px; }
.rb-kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; }
.rb-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rb-kind.locked { color: var(--muted); }
.rb-list { display: grid; gap: 8px; }
.rbrow { display: grid; grid-template-columns: 44px minmax(0, 2fr) repeat(3, minmax(70px, 1fr)) minmax(150px, 1.2fr);
  gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); animation: tile-in .3s ease both; animation-delay: calc(var(--i, 0) * 18ms); }
.rbrow .art { width: 44px; padding: 0; font-size: 0; border-radius: 4px; aspect-ratio: 5 / 7; }
.rbrow .lwho { min-width: 0; }
.rbrow .lwho b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbrow .col { display: grid; }
.rbrow .col .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rbrow .col .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.rbrow .col.market .val { font: 800 18px var(--body); }
.rbrow .col.big .val { font: 800 18px var(--body); color: var(--ok); }
.rb-have { display: grid; justify-items: start; gap: 2px; font-size: 12px; }
.rbrow.none, .rbrow.sold_out { background: var(--surface-2); }
@media (max-width: 760px) {
  .filterbar.rb-bar { position: static; }  /* four lines on a phone: too tall to hold at the top */
  .rb-bar #rbFloorPick { flex: none; order: 1; }
  .rb-bar #rbDownload { flex: 1 1 0; order: 2; }
  .rb-bar label.pick:not(#rbFloorPick) { flex: 1 1 40%; order: 3; }
  .rbrow { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 10px; }
  .rbrow .col { display: none; } .rbrow .col.big { display: grid; justify-items: end; }
  .rbrow .rb-have { grid-column: 2 / -1; grid-template-columns: auto auto; justify-content: start; gap: 2px 8px; }
  .rbrow .rb-have a { grid-column: 1 / -1; }
}

/* ---------- U3 (11 Nov 2026): one filter bar ----------
   Pricing and Listing: the find box, the "show" buttons, the selects and the page's own buttons in one bar
   that stays at the top while the long list scrolls under it. On a phone the bar runs edge to edge, the find
   box gets its own line, the "show" buttons are one row that scrolls sideways (no more two-line labels), and
   the rows of tiles above it (games, letters, Listing's counts) scroll sideways instead of stacking up. */
.filterbar { position: sticky; top: 8px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 -9px 0 var(--bg), var(--shadow); }  /* the first shadow covers the gap above the bar while it's held */
.filterbar .find { flex: 1 1 160px; min-width: 0; }
.filterbar .seg { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filterbar .seg button { flex: none; white-space: nowrap; }
.letters button[aria-selected="true"] { border-color: var(--hi); box-shadow: inset 0 0 0 1px var(--hi); }  
.order-title b { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .filterbar { top: 0; margin-left: -16px; margin-right: -16px; padding: 8px 16px; border-width: 0 0 1px; border-radius: 0; }
  .filterbar .find { order: -1; flex-basis: 100%; }
  .filterbar.listing-bar { position: static; }  /* with its two buttons it's too tall to hold on a phone screen */
  .filterbar .seg { display: flex; flex: 1 1 100%; }
  .filterbar label.pick { flex: 1 1 0; min-width: 0; }
  .filterbar label.pick select { flex: 1; min-width: 0; }
  .letters, .listing-stats { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 2px 16px 8px; }
  .letters button { flex: none; }
  .listing-stats .stat { flex: 0 0 128px; padding: 10px 12px; }
  .listing-stats .stat .n { font-size: 22px; }
  .listing-stats .stat .d { display: none; }
  /* an order's header: its number gets the width; the two buttons go on a line of their own */
  .order-head { grid-template-columns: 46px minmax(0, 1fr); }
  .order-head > .act-row { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- U4 (11 Nov 2026): Trade and Intake on the iPad ----------
   Fingers, not a mouse: on a touch screen or anything narrower than 1150px the buttons tapped over and over at
   the table are at least 44px (a condition, - and +, remove a line, the "show" buttons). A sideways iPad has
   Cards in and Cards out side by side; there a line puts its price and count under the name so the condition
   buttons fit. Intake's "which condition, how many" panel sits above the results (it was below all 24). */
#intakePick { margin: 10px 0 0; }
@media (pointer: coarse), (max-width: 1150px) {
  .chips button { min-width: 44px; min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .stepper button { width: 44px; height: 44px; font-size: 22px; }
  .stepper input { width: 48px; height: 44px; }
  .price-box input { padding: 10px 8px; }
  .tline { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
  .tremove { width: 44px; height: 44px; }
  .seg button { min-height: 40px; }
  .row-pick { padding: 14px; }
  .take-row .qty { height: 44px; }
}
@media (min-width: 1001px) and (max-width: 1350px) {
  .tline { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .tline .tnums { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
  .tline .tremove { grid-row: 1; grid-column: 3; }
}
/* the phone's stacked line, with the bigger remove button; the five conditions share the name's width */
@media (max-width: 760px) {
  .tline { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .tline .chips { display: flex; width: 100%; }
  .tline .chips button { flex: 1 1 0; min-width: 0; padding: 8px 0; }
}

/* ---------- Trade on the phone (12 Nov 2026) ----------
   Rey: "on the phone the UI is very clunky for the trade". Up to 760px wide: a short top (the rates behind one
   button), their cards and ours as two tabs, results as a list, each line short until tapped open, and the
   totals bar one line with Complete until tapped open. Wider screens keep the layout above (U4). */
.trade-tabs, .trade-rates-btn, .tb-sum, .tline .tsub { display: none; }
@media (max-width: 760px) {
  #view-buy .head { margin-bottom: 10px; gap: 8px; }
  #view-buy .head .sub { display: none; }
  .trade-modes { gap: 8px; margin-bottom: 10px; }
  .trade-rates-btn { display: inline-flex; }
  .trade-modes .trade-rates { display: none; }
  .trade-modes.rates-open .trade-rates { display: flex; flex-basis: 100%; gap: 14px; }
  .trade-tabs { display: flex; margin: 0 0 12px; }
  .trade-tabs[hidden] { display: none; }
  .trade-tabs button { flex: 1 1 0; }
  .trade-tabs button[aria-selected="true"] { background: var(--tint); color: var(--ink); }
  .trade-cols[data-tab="in"] > #tradeOutPanel, .trade-cols[data-tab="out"] > #tradeInPanel { display: none; }
  .trade-side > h2 { display: none; }   /* the tabs say which side it is */
  .trade-review-acts { flex-wrap: nowrap; gap: 8px; padding-top: 10px; }   /* one row, not two, under the list */
  .trade-review-acts .btn, .trade-review-acts .btn.primary { flex: 1 1 0; padding: 12px 8px; font-size: 15px; white-space: normal; }
  .trade-add-as .seg { flex: 1 1 100%; display: flex; }
  .trade-add-as .seg button { flex: 1 1 0; }
  /* results: one row each, the picture small */
  .trade-results { grid-template-columns: 1fr; gap: 6px; }
  .trade-results .trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px;
    align-items: center; padding: 6px 8px; animation: none; }
  .trade-results .trow:hover { transform: none; }
  .trade-results .trow .art { grid-row: 1 / 3; width: 40px; padding: 0; }
  .trade-results .trow .name, .trade-results .trow .set { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trade-results .trow .row { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; margin: 0; }
  /* lines: name and a short line, then the price and count; tap the name for conditions, printing, remove */
  .tline { grid-template-columns: 40px minmax(0, 1fr); }
  .tline.open { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .tline .tmain { cursor: pointer; }
  .tline .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tline .tsub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tline .tdetail, .tline .tremove { display: none; }
  /* round 2 (12 Nov 2026, Rey adds a stack fast): the condition buttons stay on the short row, one tap each;
     the printing picker waits for the row to open */
  .tline:not(.open) .tmeta > :not(.chips) { display: none; }
  .tline.open .tname { white-space: normal; }
  .tline.open .tdetail { display: block; }
  .tline.open .tremove { display: inline-grid; place-items: center; }
  /* the bar: one line and Complete; tap the line for the full totals */
  .trade-bar { padding: 8px 10px 8px 14px; gap: 8px; }
  .tb-sum { display: flex; align-items: center; gap: 8px; }
  /* the offer is a box to type in (round 2); the arrow beside it opens the full totals */
  .tb-what { flex: 1; min-width: 0; display: grid; gap: 2px; }
  .tb-what .n { font: 600 19px var(--mono); }
  .tb-final input { width: 100%; max-width: 130px; font: 700 19px var(--mono); padding: 6px 8px; border-color: var(--accent); }
  .tb-open { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line);
    border-radius: 999px; background: none; padding: 0; color: var(--muted); }
  .tb-open .tb-caret { transition: transform .15s; }
  #tradeBar.open .tb-caret { transform: rotate(180deg); }
  .tb-sum .btn { min-height: 44px; padding: 0 18px; }
  #tradeBar:not(.open) > .tb-row { display: none; }
  .trade-tools #tradeComplete { display: none; }   /* the bar has it */
}

/* ---------- U5 (11 Nov 2026): Home ----------
   The to-do notes: the most urgent four, then a "Show N more" button (they were ten in a row, pushing the
   numbers below the fold). */
/* Data: the file picker matches the other buttons (it was the browser's grey box) */
input[type=file] { color: var(--muted); font-size: 14px; padding: 6px; border: 1px dashed var(--line); border-radius: var(--r-s); background: none; }
input[type=file]::file-selector-button { font: 600 14px var(--body); margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--tint); color: var(--ink); }

/* ---------- The calmer Home (16 Nov 2026, PLAN-HOME.md) ----------
   One header (the greeting, today and who's here, a search), one to-do list where each thing is said once,
   and the Today log. No foil, no ring, no tiles: the number in each row is the only thing that's big, and
   colour marks only what's urgent. */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 4px 0 20px; }
.home-head h1 { font-size: 30px; }
.home-head .sub { margin-top: 6px; text-wrap: pretty; }
.home-search { flex: 0 1 420px; margin: 0; }
.home-search input { font-size: 16px; padding: 6px 0; }
.todo { padding: 6px 0 8px; margin-bottom: 16px; }
.todo-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 18px 8px; }
.todo-head h2 { margin: 0; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-row { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 10px 12px 10px 18px; border-top: 1px solid var(--line); }
.todo-row .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.todo-n { font: 650 22px/1 var(--body); font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -.01em; }
.todo-what { line-height: 1.4; text-wrap: pretty; }
.todo-for { color: var(--muted); }
.todo-flag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #FFFFFF; background: var(--bad-fill); vertical-align: 1px; }
.todo-row.bad .todo-n { color: var(--bad); }
.todo-row .x { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; padding: 6px 8px; border-radius: var(--r-s); }
.todo-row .x:hover { color: var(--text); background: var(--surface-2); }
.todo-empty { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); }
.todo-empty b { color: var(--text); font-weight: 600; }
.todo-more { margin: 8px 0 0 18px; }
.feed { padding: 6px 0 8px; }
.feed .feedlog { padding: 0 18px; }
.feed .todo-head { padding-bottom: 4px; }
/* The office server's line at the bottom of the menu sits on the dark menu in both themes. */
.health .muted { color: var(--side-muted); }
/* Show prep: before the show (was Home's ready ring). */
.ready-panel { margin-bottom: 14px; padding: 0; }
.ready-panel summary { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.ready-panel summary::-webkit-details-marker { display: none; }
.ready-panel summary::before { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; align-self: center; flex: none; }
.ready-panel[open] summary::before { transform: rotate(45deg); }
.ready-title { font: 600 16px var(--display); }
.ready-title a { color: inherit; text-underline-offset: 3px; }
.ready-count { color: var(--warn); font-weight: 600; font-size: 14px; margin-left: auto; }
.ready-count.all { color: var(--ok); }
.ready-panel .checks { padding: 0 16px 14px 35px; gap: 6px; font-size: 14px; }
.ready-panel .checks li { align-items: flex-start; }
.ready-panel .checks .dot { margin-top: 7px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .home-head h1 { font-size: 26px; }
  .home-search { flex-basis: 100%; }
  .todo-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 10px 8px 10px 12px; }
  .todo-row .ico { display: none; }
  .todo-n { font-size: 19px; align-self: start; padding-top: 1px; }
  .todo-row .btn { grid-column: 2; justify-self: start; }
  .todo-row .x { grid-column: 3; grid-row: 1; }
  .todo-head { padding: 10px 12px 8px; }
  .todo-more { margin-left: 12px; }
  .feed .feedlog { padding: 0 12px; }
}

/* ---------- Binder & sleeves: the group sleeves and state by shape (16 Nov 2026) ----------
   Each menu group wears its own sleeve colour on its icons; the menu is always the dark cover, so it uses the
   light sleeve shades (--gs-*). The current page is the teal fill, its icon in the fill's own text colour. */
nav button[data-view="show"] svg, nav button[data-view="buy"] svg { color: var(--gs-table); opacity: 1; }
nav button[data-view="prep"] svg, nav button[data-view="intake"] svg, nav button[data-view="labels"] svg, nav button[data-view="closeout"] svg { color: var(--gs-show); opacity: 1; }
nav button[data-view="pricing"] svg, nav button[data-view="listing"] svg, nav button[data-view="riftbound"] svg, nav button[data-view="orders"] svg { color: var(--gs-stock); opacity: 1; }
nav button[data-view="reports"] svg, nav button[data-view="reach"] svg, nav button[data-view="data"] svg { color: var(--gs-office); opacity: 1; }
nav button[aria-current="page"] svg { color: inherit; }
.tabbar button svg { color: inherit; }
/* Home's to-do icons take the sleeve of the page they open. */
.todo-row .ico[data-group="table"] { color: var(--g-table); }
.todo-row .ico[data-group="show"] { color: var(--g-show); }
.todo-row .ico[data-group="stock"] { color: var(--g-stock); }
.todo-row .ico[data-group="office"] { color: var(--g-office); }
/* Before the show: done is a filled dot, to fix is a ring. */
.checks .dot { background: var(--ok); }
.checks .dot.amber { background: transparent; box-shadow: inset 0 0 0 2px var(--warn); }
.today .today-label { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Phase 2c (16 Nov 2026): how old the prices are ----------
   One small line under each price page's heading (Search, Trade, Listing, Pricing, Show Day). Plain when fresh;
   amber with a dot after 2 days (stock: 7); red with a dot when the last price update failed. */
.data-age { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.data-age .warn, .data-age .bad { font-weight: 600; }
.data-age .warn { color: var(--warn); } .data-age .bad { color: var(--bad); }
.data-age .warn::before, .data-age .bad::before { content: ""; display: inline-block; width: 7px; height: 7px;
  margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.not-found { margin-top: 8px; font-size: 13px; }
.not-found summary { cursor: pointer; color: var(--muted); }
.not-found table { margin-top: 6px; }
