/* Pulse design system: shared by c3-pulse and its variations. */
/* ---------- Tokens: Pulse ---------- */
:root {
  --deep: #071318; --surface: #0D1C23; --raise: #132830; --line: #1B323C;
  --text: #EAF5F6; --mute: #85A0A7; --faint: #76929C;
  /* the decision colours: one of each, set here and nowhere else (DESIGN.md, The One Colour Rule; check_system.py holds it) */
  --buy: #39E6A0; --fair: #7AB8FF; --wait: #F5B83D; --bad: #FF7A85; --sell: #C79BFF;
  /* spacing: a 2px rhythm. The main steps 4 8 12 16 24 32 48; the half steps (2 6 10 14 20 28 40) are the ones the
     screens actually use between them; --pad (18) is inside a feature card. Padding, margins and gaps use these only;
     a layout distance over 48 (clearing the tab bar, a hero's air) is written as itself */
  --sp-05: 2px; --sp-1: 4px; --sp-15: 6px; --sp-2: 8px; --sp-25: 10px; --sp-3: 12px; --sp-35: 14px; --sp-4: 16px;
  --sp-45: 20px; --sp-5: 24px; --sp-55: 28px; --sp-6: 32px; --sp-65: 40px; --sp-7: 48px;
  --r: 16px; --r-s: 12px;
  /* one corner for everything you can tap (the Buy button's), and for a button inside a group of them (a segmented
     choice, a stepper): change these and every button, pill and chip follows. Labels and cards keep their own shapes */
  --r-act: 14px; --r-act-in: 10px;
  /* a feature card (the hero, a pick, a panel with its own heading) and its padding; the small uppercase label in the
     display face (BUY, NEXT DROP, a tag): one size, at the 11px floor */
  --r-l: 22px; --pad: 18px; --fs-label: 11px;
  /* no capsules: a corner is about a quarter of the thing's height (the Get Pro button: 14 on 54). A label or badge
     (18-30px tall) takes --r-tag; tiny bits (a bar's end, a mini thumbnail) --r-xs. Only dots, avatars, rings and the
     camera shutter are round */
  --r-tag: 6px; --r-xs: 4px;
  /* the type scale: every font size is one of these. 11 is the floor (--fs-label); the --fs-d steps are prices and
     headings in the display face. Only the welcome hero's numerals (64, 72) sit outside it */
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 14px; --fs-b: 15px; --fs-l: 16px; --fs-lead: 17px; --fs-xl: 18px;
  --fs-d1: 20px; --fs-d2: 22px; --fs-d3: 24px; --fs-d4: 28px; --fs-d5: 34px; --fs-d6: 44px;
  /* the star/held gold */
  --gold: #FFD27A;
  /* Pro's lilac text (on dark, beside the holo border), and the red of something live right now */
  --pro-ink: #D4C2FF; --live: var(--bad);
  --f-big: 'Unbounded', system-ui, sans-serif; --f-ui: 'Onest', system-ui, sans-serif;
  /* motion (docs/redesign/MOTION_AUDIT.md): 120 a press, 180 a small state change (chips, toggles, colour), 240 something
     moving on screen (an indicator, a row opening), 300 a sheet coming in; exits faster. --ease-out to enter and leave,
     --ease-in-out to move, --ease-drawer for sheets. Nothing in the app runs longer than 300; hand-typed curves fail check_ui */
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 240ms; --dur-4: 300ms;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1); --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  /* drawn things that keep their own colours: the silver and bronze medals, the holo shine's stops, Pro's deep gold, the
     welcome page's phone, ticket and camera mock-ups, a spotlight's glow behind a sheet; Google's own button ink; the
     dark text on a green (--buy) button */
  --on-buy: #04140E; --silver-hi: #F2F5F7; --silver-lo: #A9B4BC; --bronze-hi: #F3C49B; --bronze-lo: #B87A4B;
  --holo-pink: #FF7EB3; --holo-mint: #7AF0C8; --holo-blue: #7AB8FF; --gold-deep: #C98A2B; --google-ink: #1F1F1F;
  --glow-teal: #12323A; --glow-steel: #1D3A44; --cam-hi: #2A3B40; --cam-lo: #0B1418;
  --phone-hi: #23353B; --phone-lo: #0B171B; --ticket-hi: #10262E; --ticket-lo: #0A1A20;
  --rail: 320px; --gut: var(--sp-6);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--deep); color: var(--text); font: 400 var(--fs-b)/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--v, var(--fair)); outline-offset: 3px; border-radius: var(--r-tag); }
.v-BUY { --v: var(--buy); } .v-FAIR { --v: var(--fair); } .v-WAIT { --v: var(--wait); } .v-THIN { --v: var(--mute); }   /* too few sales to price: no verdict colour */
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.vtag { font: 700 var(--fs-label) var(--f-big); letter-spacing: .05em; text-transform: uppercase; color: var(--v); }

.switch { display: flex; gap: var(--sp-2); justify-content: center; padding: var(--sp-2); background: #000; font: 600 var(--fs-xs) var(--f-ui); flex-wrap: wrap; }
.switch a { padding: var(--sp-1) var(--sp-25); border-radius: var(--r-act-in); color: var(--mute); text-decoration: none; }
.switch a[aria-current] { background: var(--text); color: #000; }

/* ---------- Shell ---------- */
.appbar { display: flex; align-items: center; gap: var(--sp-5); height: 64px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.brand { font: 700 var(--fs-b) var(--f-big); letter-spacing: -.02em; display: flex; gap: var(--sp-2); align-items: center; }
.brand svg { color: var(--buy); }
.tabs { display: flex; gap: var(--sp-5); margin-left: var(--sp-5); align-self: stretch; }
.tabs a { color: var(--mute); text-decoration: none; font-weight: 600; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--text); border-color: var(--text); }
.layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }

/* ---------- Watch list (rail on desktop, bottom sheet on phones) — built to scale to hundreds ---------- */
.wl { display: flex; flex-direction: column; min-height: 0; }
.rail { border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.wl-h { padding: var(--sp-4) var(--sp-4) var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-3); }
.wl-h .t { display: flex; justify-content: space-between; align-items: baseline; }
.wl-h .t b { font: 600 var(--fs-l) var(--f-ui); }
.wl-h .t span { color: var(--faint); font-size: var(--fs-s); }
.srch { height: 40px; border-radius: var(--r-s); background: var(--surface); display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3); color: var(--mute); }
.srch input { all: unset; flex: 1; min-width: 0; color: var(--text); font-size: var(--fs-l); }   /* 16px: iOS zooms into smaller inputs */
.chips { display: flex; gap: var(--sp-15); flex-wrap: wrap; }
/* ---------- Pill: one component for counts, status and filters ----------
   Card corners, not capsules. A tone square that echoes the product squares on the Watch strip. Numbers in the display face.
   Kinds: .stat (the number leads, in its tone) · .live (freshness, with a heartbeat) · .chip (a filter you press).
   Tone: .tone-buy / .tone-fair / .tone-wait / .tone-bad, or none for neutral. .hchip is the same pill (older name). */
/* chips and status pills: their size and shape are in kit.css; their colours and states here */
.pill, .chip, .hchip { --tone: var(--mute); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); }
button.pill, button.chip, button.hchip { cursor: pointer; transition: background var(--dur-2), box-shadow var(--dur-2), color var(--dur-2); }
@media (hover: hover) and (pointer: fine) { button.pill:hover, button.chip:hover, button.hchip:hover { background: var(--raise); color: var(--text); } }
button.pill:focus-visible, button.chip:focus-visible, button.hchip:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--text); }
.pill .dot, .chip .dot { background: var(--tone); }
.pill .n, .chip b, .hchip b { color: var(--text); }
.chip b { color: var(--faint); }
.pill.stat .n { color: var(--tone); }
.pill.live .dot { animation: pillLive 2.4s ease-out infinite; }
@keyframes pillLive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .pill.live .dot { animation: none; } }
.chip[aria-pressed=true] { --tone: var(--text); background: color-mix(in srgb, var(--tone) 14%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 55%, transparent); color: var(--text); }
.chip[aria-pressed=true] b { color: var(--tone); }
.tone-buy, .chip.tone-buy[aria-pressed=true] { --tone: var(--buy); } .tone-fair, .chip.tone-fair[aria-pressed=true] { --tone: var(--fair); }
.tone-wait, .chip.tone-wait[aria-pressed=true] { --tone: var(--wait); } .tone-bad, .chip.tone-bad[aria-pressed=true] { --tone: var(--bad); }
.tone-sell { --tone: var(--sell); }
/* the kit's own names (kit.css sets their size and shape): their colours. A tone class picks the colour: .tone-buy,
   -fair, -wait, -sell, -bad */
.btn-l, .btn-m { all: unset; cursor: pointer; background: var(--buy); color: var(--deep); text-decoration: none; transition: filter var(--dur-1), transform var(--dur-1); }
.btn-sec, .btn-s { all: unset; cursor: pointer; background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .btn-l:hover, .btn-m:hover { filter: brightness(1.08); } } @media (hover: hover) and (pointer: fine) { .btn-sec:hover, .btn-s:hover { box-shadow: inset 0 0 0 1px var(--mute); } }
.btn-l:active, .btn-m:active, .btn-sec:active, .btn-s:active, .ibtn:active { transform: scale(.97); }
.btn-l:focus-visible, .btn-m:focus-visible, .btn-sec:focus-visible, .btn-s:focus-visible, .ibtn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ibtn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--surface); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.ibtn.sm { width: 36px; height: 36px; }
.label { background: var(--mute); color: var(--deep); } .label.soft { background: color-mix(in srgb, var(--mute) 16%, transparent); color: var(--mute); }
.badge-v { background: var(--raise); color: var(--mute); }
.count { background: color-mix(in srgb, var(--fair) 20%, transparent); color: var(--fair); }
.card-f { display: block; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; }
.card-i { display: block; background: var(--surface); color: var(--text); text-decoration: none; }
.tile { display: block; background: var(--deep); color: var(--text); }
.list-card { list-style: none; margin: 0; background: var(--surface); } .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--line); } .row:first-child { border-top: 0; } .row.pic { grid-template-columns: 48px minmax(0, 1fr) auto; } .row-d { border-top: 1px solid var(--line); }
.pg-sw .seg a svg { color: var(--faint); transition: color var(--dur-2) var(--ease-out); } .pg-sw .seg a[aria-current=page] svg { color: var(--sw, var(--text)); }
.sw-live { --sw: var(--live); } .sw-star { --sw: var(--gold); } .sw-news { --sw: var(--fair); } .sw-trade { --sw: var(--sell); } .sw-box { --sw: var(--buy); } .sw-eye { --sw: var(--fair); }
.fmt-strip, .fmt-k { --t: var(--text); color: var(--t); } .fmt-strip.auc, .fmt-k.auc { --t: var(--gold); } .fmt-strip.hot, .fmt-k.hot { --t: var(--live); }
.fmt-strip { background: color-mix(in srgb, var(--t) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--t) 28%, transparent); } .fmt-strip .off, .fmt-k.off { color: var(--sell); }
.stepper { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .stepper button { all: unset; cursor: pointer; display: grid; place-items: center; color: var(--text); }
/* a tone class on a kit component colours it */
.btn-l[class*="tone-"], .btn-m[class*="tone-"], .label[class*="tone-"] { background: var(--tone); }
.label.soft[class*="tone-"], .badge-v[class*="tone-"] { background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
.wl-list { overflow-y: auto; padding: 0 var(--sp-2) var(--sp-4); flex: 1; overscroll-behavior: contain; }
.wl-sec { position: sticky; top: 0; background: var(--deep); padding: var(--sp-3) var(--sp-2) var(--sp-1); z-index: 1; }
.wi { all: unset; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 0 var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-2); border-radius: var(--r-act-in); width: 100%; box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) { .wi:hover { background: var(--surface); } }
.wi[aria-current=true] { background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--v) 45%, transparent); }
.wi img { grid-row: span 2; width: 36px; height: 36px; object-fit: contain; border-radius: var(--r-tag); background: #fff; padding: var(--sp-05); }
.wi .nm { font-size: var(--fs-m); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi .px { font-size: var(--fs-m); font-weight: 600; text-align: right; }
.wi .sub { font-size: var(--fs-xs); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi .sub .in { color: var(--buy); }
.wi .vt { text-align: right; }
.wl-empty { color: var(--mute); padding: var(--sp-5) var(--sp-3); font-size: var(--fs-m); }

/* ---------- Main ---------- */
main { min-width: 0; padding-bottom: max(var(--sp-7), calc(var(--float-clear, 0px) + var(--sp-5))); }   /* clear of whatever floats at the bottom (pulse-motion.js measures it), plus 24 */
.pick { display: none; }
/* hero: big price + edge-to-edge chart, no panel (from C) */
.hero { padding: var(--sp-5) var(--gut) 0; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 360px; background: radial-gradient(60% 70% at 25% 30%, color-mix(in srgb, var(--v) 16%, transparent), transparent 70%); pointer-events: none; }
.who { display: flex; align-items: center; gap: var(--sp-3); position: relative; }
.who img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-act-in); background: #fff; padding: var(--sp-05); }
.who h1 { font: 600 var(--fs-lead)/1.25 var(--f-ui); }
.who p { color: var(--mute); font-size: var(--fs-s); }
.big { margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3) var(--sp-4); flex-wrap: wrap; position: relative; }
.big .px { font: 700 clamp(44px, 7vw, 72px)/1 var(--f-big); letter-spacing: -.045em; }
.big .badge { color: var(--deep); background: var(--v); }
.big .chg { font-weight: 600; font-size: var(--fs-b); }
.big .chg.up { color: var(--buy); } .big .chg.dn { color: var(--wait); }
.when { color: var(--mute); font-size: var(--fs-s); margin-top: var(--sp-2); position: relative; }
.plot { position: relative; margin-top: var(--sp-4); height: 300px; touch-action: pan-y; cursor: crosshair; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .line { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--v) 70%, transparent)); }
.ranges { display: flex; gap: var(--sp-1); padding: var(--sp-2) 0 0; }
.ranges button { all: unset; cursor: pointer; padding: var(--sp-15) var(--sp-3); border-radius: var(--r-act); font-weight: 600; font-size: var(--fs-s); color: var(--mute); }
.ranges button[aria-pressed=true] { color: var(--deep); background: var(--v); }

/* summary row: verdict · in stock · consensus */
.sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); padding: var(--sp-5) var(--gut) 0; align-items: stretch; }
.card { background: var(--surface); border-radius: var(--r); padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.card h2 { font: 600 var(--fs-s) var(--f-ui); color: var(--mute); letter-spacing: .02em; }
.card .lead { font-size: var(--fs-m); line-height: 1.45; color: var(--mute); }
.card .lead b { color: var(--text); font-weight: 600; }
.gauge { position: relative; height: 38px; margin-top: auto; }
.gauge .bar { position: absolute; top: 12px; left: 0; right: 0; height: 8px; border-radius: var(--r-xs); background: linear-gradient(90deg, var(--buy) 0 var(--g), var(--fair) var(--g) var(--c), var(--wait) var(--c) 100%); opacity: .85; }
.gauge .you { position: absolute; top: 4px; width: 4px; height: 24px; border-radius: 2px; background: var(--text); transform: translateX(-2px); box-shadow: 0 0 0 3px var(--surface); }
.gauge .lbl { position: absolute; top: 24px; font-size: var(--fs-xs); color: var(--mute); white-space: nowrap; }
.instock { display: flex; flex-direction: column; }
.is { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; border-top: 1px solid var(--line); }
.is:first-child { border-top: 0; padding-top: 0; }
a.is { color: inherit; text-decoration: none; min-height: 44px; } @media (hover: hover) and (pointer: fine) { a.is:hover .r { text-decoration: underline; text-underline-offset: 3px; } }
.is .r { font-weight: 600; }
.is .r small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--mute); }
.is .r small.ok { color: var(--buy); } .is .r small.hi { color: var(--wait); }
.is .p { font: 600 var(--fs-l) var(--f-ui); }
.is.best .p { color: var(--buy); }
.outline { font-size: var(--fs-s); color: var(--faint); margin-top: auto; }
.none { color: var(--mute); font-size: var(--fs-m); }
.cons b.c { font: 700 var(--fs-d4)/1 var(--f-big); letter-spacing: -.03em; }
.cons .sub { font-size: var(--fs-s); color: var(--mute); }
.spread { position: relative; height: 54px; margin-top: auto; }
.spread .axis { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.spread .agree { position: absolute; top: 22px; height: 18px; border-radius: var(--r-act-in); background: color-mix(in srgb, var(--fair) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fair) 50%, transparent); }
.spread .dot { position: absolute; top: 31px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--surface); }
.spread .dot.out { background: var(--bad); }
.spread .cm { position: absolute; top: 14px; height: 34px; width: 2px; background: var(--text); transform: translateX(-1px); border-radius: 1px; }
.spread .lb { position: absolute; top: 0; font-size: var(--fs-label); color: var(--mute); transform: translateX(-50%); white-space: nowrap; }
.spread .lb.out { color: var(--bad); }
/* the readable spread: taller, each source named at its dot, alternating above and below the line */
.spread.sp2 { height: 84px; margin-top: var(--sp-4); }
.spread.sp2 .axis { top: 41px; } .spread.sp2 .agree { top: 33px; height: 18px; } .spread.sp2 .dot { top: 42px; } .spread.sp2 .cm { top: 28px; height: 28px; }
.spread .sl { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-xs); color: var(--mute); }
.spread .sl b { color: var(--text); font-weight: 700; }
.spread .sl.hi { top: 4px; } .spread .sl.lo { top: 60px; }
.spread .sl.out, .spread .sl.out b { color: var(--bad); }

/* details tabs: sources · sales · stats (keeps the page short) */
.det { margin: var(--sp-5) var(--gut) 0; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--r-act); padding: var(--sp-1); gap: var(--sp-05); }
.seg button, .seg a { all: unset; cursor: pointer; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-act-in); font-weight: 600; font-size: var(--fs-m); color: var(--mute); text-align: center; }
.seg button[aria-selected=true], .seg a[aria-current=page] { background: var(--raise); color: var(--text); }
.pane { margin-top: var(--sp-3); background: var(--surface); border-radius: var(--r); padding: var(--sp-2) var(--sp-5); }
.src { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.src:first-child { border-top: 0; }
.src .n { font-weight: 600; }
.src .n small { display: block; font-weight: 400; color: var(--mute); font-size: var(--fs-s); }
.src .v { text-align: right; font: 600 var(--fs-lead) var(--f-ui); }
.src .v small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--mute); }
.src.out .v, .src.out .v small { color: var(--bad); }
.note { margin: var(--sp-2) 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-s); background: color-mix(in srgb, var(--bad) 10%, transparent); font-size: var(--fs-m); }
.sale { display: grid; grid-template-columns: 64px 92px minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-25) 0; border-top: 1px solid var(--line); font-size: var(--fs-m); align-items: center; }
.sale:first-child { border-top: 0; }
.sale .d { color: var(--mute); } .sale .d small { display: block; font-size: var(--fs-label); color: var(--faint); }   /* the year, when it isn't this one */ .sale .s { font-size: var(--fs-xs); font-weight: 600; color: var(--mute); }
.sale .t { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale .p { font-weight: 600; }
.sale.dim .p { color: var(--faint); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); padding: var(--sp-3) 0; }
.stats div { background: var(--raise); border-radius: var(--r-s); padding: var(--sp-3); }
.stats span { color: var(--mute); font-size: var(--fs-xs); }
.stats b { display: block; font: 600 var(--fs-xl) var(--f-ui); margin-top: var(--sp-05); }
.empty { color: var(--mute); padding: var(--sp-4) 0; font-size: var(--fs-m); }

.bottom, .scrim { display: none; }
@media (max-width: 1100px) { .sum { grid-template-columns: 1fr 1fr; } .sum .cons { grid-column: 1 / -1; } :root { --rail: 280px; } }
@media (max-width: 760px) {
  :root { --gut: var(--sp-4); }
  .appbar { display: none; }
  .layout { display: block; }
  .rail { display: none; }
  /* phone: product picker bar replaces the rail; the list opens as a sheet */
  .pick { display: flex; align-items: center; gap: var(--sp-2); position: sticky; top: var(--top-bar); transition: top var(--dur-3) var(--ease-out); z-index: 5; padding: var(--sp-2) var(--sp-3); background: color-mix(in srgb, var(--deep) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .pick .cur { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-15) var(--sp-25); border-radius: var(--r-s); background: var(--surface); }
  .pick .cur img { width: 32px; height: 32px; object-fit: contain; border-radius: var(--r-tag); background: #fff; padding: var(--sp-05); flex: none; }
  .pick .cur span { min-width: 0; display: flex; flex-direction: column; }
  .pick .cur b { font-size: var(--fs-m); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pick .cur small { font-size: var(--fs-xs); color: var(--mute); }
  .pick .cur svg { margin-left: auto; flex: none; color: var(--mute); }
  
  .who { display: none; }
  .hero { padding-top: var(--sp-3); }
  .big { margin-top: 0; }
  .plot { height: 230px; }
  .sum { grid-template-columns: 1fr; gap: var(--sp-3); padding-top: var(--sp-4); }
  .card { padding: var(--sp-4); }
  .det { margin-top: var(--sp-4); }
  .seg { display: flex; } .seg button, .seg a { flex: 1; text-align: center; padding: var(--sp-2) 0; }
  .pane { padding: var(--sp-1) var(--sp-4); }
  .sale { grid-template-columns: 52px 1fr auto; } .sale .t { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  main { padding-bottom: calc(var(--float-clear, 76px) + var(--sp-5)); }
  .sheet { display: flex; position: fixed; top: auto; left: 0; right: 0; bottom: 0; height: 86vh; z-index: 20; background: var(--deep); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -10px 40px #000a; transform: translateY(105%); transition: transform var(--dur-4) var(--ease-out); }
  .sheet[data-open] { transform: none; }
  .sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: var(--sp-25) auto 0; flex: none; }
  .scrim { display: block; position: fixed; inset: 0; background: #0009; z-index: 19; opacity: 0; pointer-events: none; transition: opacity var(--dur-4); }
  .scrim[data-open] { opacity: 1; pointer-events: auto; }
  .wi { padding: var(--sp-25) var(--sp-2); }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--deep); border-top: 1px solid var(--line); z-index: 32; }   /* above the page (up to 30), under sheets (34+) */
  /* solid, and its background carries on below the screen edge: while a phone's browser toolbar slides away, or the page
     bounces at the end, nothing shows underneath it */
  .bottom::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 200px; background: var(--deep); pointer-events: none; }
  .bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-05); font-size: var(--fs-label); font-weight: 600; color: var(--mute); text-decoration: none; }
  .bottom a[aria-current] { color: var(--text); }
  .bottom svg { width: 22px; height: 22px; }
  .bottom .scan span { width: 52px; height: 52px; border-radius: var(--r-act); display: grid; place-items: center; background: var(--buy); color: var(--deep); margin-top: calc(-1 * var(--sp-45)); box-shadow: 0 0 0 5px var(--deep), 0 0 24px color-mix(in srgb, var(--buy) 50%, transparent); }
}
@media (min-width: 761px) { .sheet .grab { display: none; } }
/* reduced motion (motion audit #6): nothing moves (no slides, scales, lifts, reveals, loops), but colour and opacity
   still fade and a press still shows, because they help you follow what changed */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color, box-shadow, filter !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.ranges { flex-wrap: wrap; }
.ranges button[disabled] { opacity: .3; cursor: default; }

/* verdict reasons */
.why { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-15); font-size: var(--fs-m); line-height: 1.35; }
.why li { position: relative; padding-left: var(--pad); color: var(--text); }
.why li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--fair); }
.why li.ok::before { background: var(--buy); } .why li.bad::before { background: var(--wait); }
.hchips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); position: relative; }

/* tab bar: everyday tabs grouped on the left, the premium Outlook tab on its own on the right */
.tabbar { display: flex; align-items: center; gap: var(--sp-3); }
.tabbar .seg { min-width: 0; }
.tab-pro { all: unset; cursor: pointer; flex: none; margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: var(--sp-15); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-act); font-weight: 700; font-size: var(--fs-m); color: var(--gold);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--gold), var(--wait) 45%, var(--gold-deep)) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 0 0 transparent, 0 0 22px -6px color-mix(in srgb, var(--wait) 55%, transparent); transition: box-shadow var(--dur-3), background var(--dur-3), color var(--dur-3); }
@media (hover: hover) and (pointer: fine) { .tab-pro:hover { box-shadow: 0 0 28px -4px color-mix(in srgb, var(--wait) 70%, transparent); } }
.tab-pro[aria-selected=true] { color: var(--deep); background: linear-gradient(135deg, var(--gold), var(--wait)) padding-box, linear-gradient(135deg, var(--gold), var(--wait)) border-box; box-shadow: 0 0 30px -4px color-mix(in srgb, var(--wait) 75%, transparent); }
.tab-pro svg { flex: none; }
.pane.pro-pane { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, rgba(255, 210, 122, .75), color-mix(in srgb, var(--wait) 15%, transparent) 40%, color-mix(in srgb, var(--wait) 5%, transparent)) border-box; border: 1.5px solid transparent; box-shadow: 0 0 40px -18px color-mix(in srgb, var(--wait) 60%, transparent); }
@media (max-width: 760px) {
  .tabbar { gap: var(--sp-2); }
  .tabbar .seg { flex: 1; overflow-x: auto; scrollbar-width: none; display: flex; }
  .tabbar .seg button { flex: none; padding: var(--sp-2) var(--sp-3); }
  .tab-pro { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-s); }
  .tl-long { display: none; }   /* 'Sold listings' reads as 'Sold' on phones so all three fit */
}

.tabbar .seg { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: auto; }   /* the everyday tabs fill the row, each as wide as its label needs */
.tabbar .seg button { white-space: nowrap; }      /* one line: "Recent sales" wrapped to two in an equal third and made the row 80px tall */
.tabbar .seg button { text-align: center; }

.exportrow { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0 var(--sp-2); }
.exportrow .sub { font-size: var(--fs-s); color: var(--mute); }

.nohist { height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-15); text-align: center; border-radius: var(--r-s); border: 1px dashed var(--line); color: var(--mute); font-size: var(--fs-m); padding: var(--sp-4); }
.nohist b { color: var(--text); font-weight: 600; }

/* audit (ui-ux-pro-max): skip link, and 44px touch targets wherever the pointer is a finger */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: var(--sp-25) var(--sp-35); border-radius: var(--r-act-in); background: var(--text); color: var(--deep); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
@media (pointer: coarse) {
  button.chip, button.pill, button.hchip { height: 44px; padding: 0 var(--sp-35); }
  .star { width: 44px; height: 44px; }
}

/* the way back: breadcrumb on desktop, a back arrow first in the phone bar */
.crumb { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--gut) 0; font-size: var(--fs-m); color: var(--faint); min-width: 0; }
.crumb a { display: inline-flex; align-items: center; gap: var(--sp-15); color: var(--mute); font-weight: 600; text-decoration: none; padding: var(--sp-15) var(--sp-25) var(--sp-15) var(--sp-15); margin-left: calc(-1 * var(--sp-15)); border-radius: var(--r-act-in); }
@media (hover: hover) and (pointer: fine) { .crumb a:hover { color: var(--text); background: var(--surface); } } .crumb a:focus-visible { box-shadow: 0 0 0 2px var(--text); outline: none; }
.crumb #crumbName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 760px) {
  .crumb { display: none; }
  .pick .step.back { color: var(--text); background: none; width: 40px; margin-right: var(--sp-05); position: relative; }
  .pick .step.back::after { content: ""; position: absolute; right: -5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
  .pick.has-back .star { display: none; }   /* the star is on the title too; the bar keeps back, previous, product, next */
}

/* state changes glide (View Transitions): the page cross-fades and named elements move to their new places */
::view-transition-group(*) { animation-duration: var(--dur-3); animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-2); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* best price now: under the value, the price you can actually pay, coloured against your buy price and ceiling */
.bnow { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); padding: var(--sp-25) var(--sp-35); border-radius: var(--r-act); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 640px; transition: background var(--dur-1); }
@media (hover: hover) and (pointer: fine) { .bnow:hover { background: var(--raise); } } .bnow:focus-visible { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--text); }
.bn-t { display: flex; flex-direction: column; } .bn-t small { font-size: var(--fs-label); font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.bn-t b { font: 700 var(--fs-d1)/1.15 var(--f-big); letter-spacing: -.03em; }
.bn-who { flex: 1; min-width: 160px; font-size: var(--fs-s); color: var(--mute); }
.bnow > svg { color: var(--mute); flex: none; }
.bnow.z-ok { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--buy) 55%, transparent); } .bnow.z-ok .bn-t b { color: var(--buy); }
.bnow.z-fair { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fair) 55%, transparent); } .bnow.z-fair .bn-t b { color: var(--fair); }
.bnow.z-hi { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--wait) 55%, transparent); } .bnow.z-hi .bn-t b { color: var(--wait); }
.bnow.none { cursor: default; } .bnow.none .bn-t b { font: 600 var(--fs-b) var(--f-ui); }
.is .r { display: flex; align-items: center; gap: var(--sp-25); } .is .r > span { display: flex; flex-direction: column; }
@media (pointer: coarse), (max-width: 760px) { .bnow { min-height: 56px; } }
/* best price now: mark, price and arrow on one line; who and how it compares underneath */
.bnow { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) 16px; grid-template-areas: "mark price who chev"; align-items: center; column-gap: var(--sp-3); }
.bnow > .store-mark { grid-area: mark; } .bnow .bn-t { grid-area: price; } .bnow .bn-who { grid-area: who; min-width: 0; } .bnow > svg { grid-area: chev; }
.bnow.none { grid-template-columns: auto 1fr; grid-template-areas: "price act"; } .bnow.none .btn-s { justify-self: end; }
@media (max-width: 760px) {
  .bnow { grid-template-columns: 28px minmax(0, 1fr) 16px; grid-template-areas: "mark price chev" "who who who"; row-gap: var(--sp-15); }
  .bnow.none { grid-template-columns: 1fr; grid-template-areas: "price" "act"; } .bnow.none .btn-s { justify-self: start; }
}
@media (pointer: coarse), (max-width: 760px) { .ranges button { min-height: 44px; min-width: 44px; } .cmp-open { min-height: 44px; } }

/* product tabs + range pills: border-box sizing so the 44px touch rule never stacks on padding (all:unset resets box-sizing) */
.ranges button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.tabbar .seg button { box-sizing: border-box; height: 36px; line-height: normal; padding-block: 0; display: inline-flex; align-items: center; justify-content: center; }
.tab-pro { box-sizing: border-box; height: 44px; padding-block: 0; }
@media (pointer: coarse), (max-width: 760px) {
  .ranges { flex-wrap: nowrap; justify-content: space-between; gap: var(--sp-05); }
  .ranges button { min-height: 44px; min-width: 44px; padding: 0 var(--sp-25); }
  .tabbar .seg { padding: var(--sp-05); } .tabbar .seg button { height: 44px; } .tab-pro { height: 48px; }
}

/* no page ever scrolls sideways: decorative glows can reach past the edge, so clip them (clip keeps sticky headers working) */
html, body { overflow-x: clip; }

/* the Add hub: the centre of the tab bar on phones, a button in the app bar on desktop */
.bottom button.scan { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bottom button.scan:focus-visible span { box-shadow: 0 0 0 3px var(--text); }
.ab-add { all: unset; cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-15); height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-act); background: var(--buy); color: var(--deep); font-weight: 700; font-size: var(--fs-m); }
@media (hover: hover) and (pointer: fine) { .ab-add:hover { filter: brightness(1.08); } } .ab-add:focus-visible { box-shadow: 0 0 0 2px var(--text); }
@media (max-width: 760px) { .ab-add { display: none; } }

/* the summary the server writes into #page for search engines and link previews (backend/app/pages.py); the app
   replaces it as soon as it draws, so this only shows without JavaScript or for a moment on a slow phone */
/* the summary the server puts in the page for search engines and link previews (backend/app/pages.py): read by them and by
   screen readers, never seen; shown, it was a second of plain text before the app drew the page (Faris, 2026-11-03) */
.seo-sum { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.seo-sum h1 { font: 700 var(--fs-d4)/1.15 var(--f-big); color: var(--text); margin: var(--sp-2) 0 var(--sp-3); } .seo-sum h2 { font: 700 var(--fs-lead) var(--f-big); color: var(--text); margin: var(--sp-45) 0 var(--sp-2); }
.seo-sum .seo-answer { color: var(--text); font-size: var(--fs-lead); } .seo-sum a { color: var(--text); } .seo-sum dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-1) var(--sp-4); margin: var(--sp-35) 0; }
.seo-sum dt { color: var(--faint); } .seo-sum dd { margin: 0; } .seo-sum ul { padding-left: var(--pad); } .seo-crumbs { font-size: var(--fs-s); }
/* recent sales: the listing title links to the sale; on a phone it's a second line instead of hidden */
.sale .t a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; } @media (hover: hover) and (pointer: fine) { .sale .t a:hover { text-decoration-color: var(--mute); } }
@media (max-width: 760px) { .sale .t { display: block; grid-column: 1 / -1; order: 9; font-size: var(--fs-xs); color: var(--mute); margin-top: calc(-1 * var(--sp-1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* the big price keeps one width while you scrub the chart, so nothing beside it shuffles; today's badges fade meanwhile */
#bigPx { font-variant-numeric: tabular-nums; display: inline-block; min-width: 6.2ch; }
.big .badge, .big .vhelp, .big .hbadge { transition: opacity var(--dur-2); }
.big.scrubbing .badge, .big.scrubbing .vhelp, .big.scrubbing .hbadge { opacity: 0; pointer-events: none; }
.st-hit { cursor: pointer; }
/* recent sales: eBay | TCGplayer, the low/median/high/trend summary, pages */
.ss-seg { display: inline-flex; margin: 0; }   /* the Segmented control (.seg) placed in a row: as wide as its options, no margin of its own */
.ss-seg button { padding: 0 var(--sp-3); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-15); } .ss-seg button:disabled { opacity: .4; cursor: default; }
.ss-span { margin: var(--sp-3) 0 var(--sp-2); } .ss-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--sp-2); }
.ss-stats .up { color: var(--buy); } .ss-stats .dn { color: var(--wait); } .ss-why, .ss-of { margin: 0 0 var(--sp-2); padding: 0; }
.ss-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.ss-pager button { all: unset; cursor: pointer; padding: 0 var(--sp-35); min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-act); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: var(--fs-m); }
.ss-pager button:disabled { opacity: .4; cursor: default; } .ss-pager button:focus-visible { outline: 2px solid var(--text); } .ss-pager span { font-size: var(--fs-s); color: var(--mute); }
@media (max-width: 520px) { .ss-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ss-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-25); flex-wrap: wrap; }
.ss-head .ss-seg { flex: 0 1 auto; }
.ss-csv { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-15); min-height: 40px; padding: 0 var(--sp-35); border-radius: var(--r-act);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: var(--fs-m); color: var(--text); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .ss-csv:hover { box-shadow: inset 0 0 0 1px var(--mute); } } .ss-csv:focus-visible { outline: 2px solid var(--text); }
@media (max-width: 420px) { .ss-head .ss-seg { flex: 1 1 auto; } .ss-seg button { flex: 1; justify-content: center; } }
/* the Pro tab in holo foil: a foil edge, foil text, a soft many-coloured glow */
.tab-pro { color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box;
  box-shadow: 0 0 22px -6px rgba(199, 155, 255, .55); }
.tab-pro > :not(svg) { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tab-pro svg { color: var(--sell); }
@media (hover: hover) and (pointer: fine) { .tab-pro:hover { box-shadow: 0 0 28px -4px color-mix(in srgb, var(--fair) 60%, transparent); } }
.tab-pro[aria-selected=true] { color: var(--deep); background: var(--holo) padding-box, var(--holo) border-box; box-shadow: 0 0 30px -4px rgba(199, 155, 255, .7); }
.tab-pro[aria-selected=true] > :not(svg) { background: none; color: var(--deep); } .tab-pro[aria-selected=true] svg { color: var(--deep); }

/* the reading above the chart while you drag it, when the big price is scrolled off screen */
.plot-read { position: absolute; left: 8px; z-index: 3; display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-1) var(--sp-25); border-radius: var(--r-act-in); pointer-events: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-2), transform var(--dur-2); }
.plot-read.on { opacity: 1; transform: none; }
.plot-read b { font: 700 var(--fs-d1) var(--f-big); letter-spacing: -.02em; } .plot-read small { color: var(--mute); font-size: var(--fs-s); }

/* between pages: a quick cross-fade instead of a blank flash (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
.appbar, nav.bottom { view-transition-name: chrome-top; } nav.bottom { view-transition-name: chrome-bottom; }
::view-transition-group(chrome-top), ::view-transition-group(chrome-bottom) { animation: none; }
/* one app (pulse-nav.js, Faris 2026-11-18: "android like navigation"): the phone's top bar holds still too. A tab fades through: the
   old screen out, then the new one in, settling from 98%. A screen pushed inside a tab slides on one axis, the new one in from the
   right just as the old one has left to the left (one at a time, not a muddle of both); Back the other way. Reduce motion: none of it (above) */
#mbar { view-transition-name: chrome-mbar; }
::view-transition-group(chrome-mbar) { animation: none; }
html.vt-tab::view-transition-old(root) { animation: vt-gone var(--dur-1) var(--ease-out) both; }
html.vt-tab::view-transition-new(root) { animation: vt-through var(--dur-2) var(--ease-out) calc(var(--dur-1) * .75) both; }
html.vt-push::view-transition-old(root) { animation: vt-off-l var(--dur-1) var(--ease-out) both; }
html.vt-push::view-transition-new(root) { animation: vt-on-r var(--dur-3) var(--ease-out) calc(var(--dur-1) * .6) both; }
html.vt-pop::view-transition-old(root) { animation: vt-off-r var(--dur-1) var(--ease-out) both; }
html.vt-pop::view-transition-new(root) { animation: vt-on-l var(--dur-3) var(--ease-out) calc(var(--dur-1) * .6) both; }
@keyframes vt-gone { to { opacity: 0; } }
@keyframes vt-through { from { opacity: 0; transform: scale(.98); } }
@keyframes vt-off-l { to { opacity: 0; transform: translateX(calc(var(--sp-5) * -1)); } }
@keyframes vt-on-r { from { opacity: 0; transform: translateX(var(--sp-5)); } }
@keyframes vt-off-r { to { opacity: 0; transform: translateX(var(--sp-5)); } }
@keyframes vt-on-l { from { opacity: 0; transform: translateX(calc(var(--sp-5) * -1)); } }
/* while a page builds itself from the catalogue, a calm placeholder instead of an empty page */
main#page:empty { min-height: 70vh; background:
  linear-gradient(var(--surface), var(--surface)) 0 24px / 46% 28px no-repeat,
  linear-gradient(var(--surface), var(--surface)) 0 72px / 72% 14px no-repeat,
  linear-gradient(var(--surface), var(--surface)) 0 112px / 100% 180px no-repeat,
  linear-gradient(var(--surface), var(--surface)) 0 316px / 100% 120px no-repeat;
  background-origin: content-box; animation: pageWait 1.4s ease-in-out infinite; }
@keyframes pageWait { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { main#page:empty { animation: none; } }

/* spotted in store (tips) */
.tipbox { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.tip-h { font-size: var(--fs-s); font-weight: 600; margin: 0 0 var(--sp-2); } .tips { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.tips li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-25); align-items: center; } .tips b { display: block; font-size: var(--fs-m); font-weight: 600; } .tips small { display: block; font-size: var(--fs-xs); color: var(--mute); }
.tip-go { font-size: var(--fs-s); }

/* indicators (Stats tab, Pro) */
.ind { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.ind li { --k: var(--mute); display: grid; gap: var(--sp-05); padding: var(--sp-3); border-radius: var(--r-s); background: var(--raise); }   /* a kit tile; the verdict colour is on the value */
.ind li.buy { --k: var(--buy); } .ind li.wait { --k: var(--wait); } .ind li.buy b, .ind li.wait b { color: var(--k); }
.ind span { font-size: var(--fs-xs); color: var(--mute); } .ind b { font: 700 var(--fs-d2) var(--f-big); letter-spacing: -.02em; } .ind small { font-size: var(--fs-xs); color: var(--mute); line-height: 1.4; }
@media (max-width: 640px) { .ind { grid-template-columns: 1fr; } }

/* sales volume (Recent sales tab) */
.vol { margin: var(--sp-3) 0 var(--sp-1); padding: var(--sp-35); border-radius: var(--r); background: var(--raise); }
.vol-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-25); flex-wrap: wrap; font-size: var(--fs-s); color: var(--mute); } .vol-top b { font: 700 var(--fs-d1) var(--f-big); color: var(--text); }
.vol-r { font-weight: 600; } .vol-r.up { color: var(--buy); } .vol-r.dn { color: var(--wait); }
.vol-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-1); align-items: end; height: 64px; margin-top: var(--sp-25); }
.vol-bars i { display: block; height: max(var(--h), 2px); border-radius: var(--r-xs) var(--r-xs) 2px 2px; background: linear-gradient(to top, var(--fair) 0 var(--e), color-mix(in srgb, var(--buy) 85%, transparent) var(--e) 100%); }
.vol-key { display: flex; justify-content: space-between; margin-top: var(--sp-15); font-size: var(--fs-label); color: var(--faint); } .vol-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 var(--sp-05) 0 var(--sp-15); } .k-e { background: var(--fair); } .k-t { background: var(--buy); }
/* the installed app doesn't zoom (and common.js): pans only, every finger gesture in it is a scroll or a tap */
@media (display-mode: standalone) { html { touch-action: pan-x pan-y; } }
/* pinch-zoomed in: the bottom bar steps aside (see common.js) */
html.zoomed nav.bottom { opacity: 0; pointer-events: none; transition: opacity var(--dur-2); }

/* ---------- select: every dropdown in the app. Safari (iPhone) draws its own white box and ignores the background
   unless the native look is switched off, so it's off here for all of them, with the app's own chevron. The chevron
   properties are !important because many selects set `background:` (which would wipe it); their colour still applies. */
select:not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: var(--sp-5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%2385A0A7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 9px center !important; background-size: 10px !important; }
select:not([multiple]):not([size]):not([class*=bg]) { background-color: var(--deep); color: var(--text); }
select::-ms-expand { display: none; }
/* Not enough data yet (.nodata): its colours (the kit owns its size and shape) */
.nodata { border-color: var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nodata-ic { color: var(--mute); background: var(--raise); }
.nodata-t b { color: var(--text); } .nodata-t span { color: var(--mute); }
