/* CPOTrack — a price comparison, presented like one. Solid surfaces, hairline borders,
   one typeface, colour reserved for data. A retailer is its mark and its name, never a
   colour. Text colours meet 4.5:1 on every surface they sit on, in both themes. */

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --sunk: #f1f3f6;
  --raise: #fafbfc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5f6c80;
  --faint: #94a3b8;
  --line: #e2e6ec;
  --line-2: #eef1f4;
  --accent: #1e3a8a;
  --accent-soft: #e8edf8;
  --gold: #a7844b;
  --gold-ink: #8a6a35;     /* gold as small text: 4.6:1 on --bg, where --gold is 3.2:1 */
  --good: #15803d; --good-bg: #e8f5ec;
  --warm: #b45309; --warm-bg: #fdf1e3;
  --s1: #2f6fb5;
  --band: #dde3ea;
  --heat: 30, 58, 138;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .32);
  --thumb: #cbd2db; --thumb-hover: #94a3b8;
  --r: 12px; --r-sm: 8px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 60px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f14; --surface: #111821; --sunk: #16202b; --raise: #131b25;
    --ink: #e7ecf2; --ink-2: #c0cad6; --muted: #8b98a8; --faint: #5b6878;
    --line: #223041; --line-2: #1a2633;
    --accent: #8fb0ea; --accent-soft: #172438; --gold: #c9a46a; --gold-ink: #c9a46a;
    --good: #4ade80; --good-bg: rgba(74, 222, 128, .1); --warm: #fbbf24; --warm-bg: rgba(251, 191, 36, .1);
    --s1: #4f86d0; --band: #2a3646; --heat: 143, 176, 234;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
    --thumb: #2b3a4c; --thumb-hover: #46586d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f14; --surface: #111821; --sunk: #16202b; --raise: #131b25;
  --ink: #e7ecf2; --ink-2: #c0cad6; --muted: #8b98a8; --faint: #5b6878;
  --line: #223041; --line-2: #1a2633;
  --accent: #8fb0ea; --accent-soft: #172438; --gold: #c9a46a; --gold-ink: #c9a46a;
  --good: #4ade80; --good-bg: rgba(74, 222, 128, .1); --warm: #fbbf24; --warm-bg: rgba(251, 191, 36, .1);
  --s1: #4f86d0; --band: #2a3646; --heat: 143, 176, 234;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  --thumb: #2b3a4c; --thumb-hover: #46586d;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
/* `scrollbar-gutter: stable` keeps the page the same width when a sheet locks scrolling;
   without it the scrollbar vanished, every card reflowed, and the grid visibly blinked. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 70px); scrollbar-color: var(--thumb) transparent; scrollbar-width: thin; scrollbar-gutter: stable; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--sans); font-feature-settings: "cv11", "ss01", "tnum"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
h1, h2, h3 { letter-spacing: -.02em; }
.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* Custom scrollbars: thin, rounded, quiet. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--thumb-hover); border-width: 2px; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* Magnetic controls: a pixel or two of lean, never more. */
.mag { transition: transform .35s var(--ease), border-color .15s, background .15s, color .15s, box-shadow .15s; }
.mag.pulled { transition: transform .12s linear, border-color .15s, background .15s, color .15s, box-shadow .15s; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1320px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 22px; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #0f172a; display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.bm-dots { fill: #cbd5e1; }
.bm-hand { stroke: #c9a46a; stroke-width: 3.4; stroke-linecap: round; fill: none; }
.brand-name { font: 700 16px/1 var(--sans); letter-spacing: -.01em; }
.bn-2 { color: var(--gold-ink); }
.topnav { display: flex; gap: 2px; }
.topnav a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 7px; color: var(--muted); font: 500 13.5px var(--sans); }
.topnav a:hover { color: var(--ink); background: var(--sunk); }
.topbar-search { flex: 1; min-width: 0; display: flex; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.topbar.compact .topbar-search { opacity: 1; pointer-events: auto; }
.topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.updated { font: 500 12.5px var(--sans); color: var(--muted); white-space: nowrap; }
.updated b { color: var(--ink-2); font-weight: 600; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { border-color: var(--faint); color: var(--ink); }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; } :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; } }
.mini-search { width: min(380px, 100%); height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); color: var(--muted); font: 500 13.5px var(--sans); text-align: left; }
.mini-search:hover { border-color: var(--faint); }
.mini-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-search span.has { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- hero */
.hero { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 44px 0 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 600 12.5px var(--sans); color: var(--muted); letter-spacing: .01em; }
.eyebrow .ic { width: 16px; height: 16px; color: var(--gold); }
.hero h1 { margin: 0; font: 700 clamp(32px, 4.2vw, 52px)/1.08 var(--sans); letter-spacing: -.035em; max-width: 19ch; }
.lede { margin: 18px 0 26px; max-width: 60ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.search { position: relative; display: flex; align-items: center; height: 56px; padding: 0 6px 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); max-width: 680px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-soft); }
.search-icon { width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; font: 500 16px var(--sans); }
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.search-clear:hover { background: var(--sunk); color: var(--ink); }
.search-go { height: 44px; padding: 0 20px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 14px var(--sans); }
.search-go:hover { opacity: .92; }
/* Above the sticky tab bar (.controls, 30), below the top bar (40): the list opens over the tabs. */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 36; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: min(60vh, 440px); overflow: auto; overscroll-behavior: contain; }
.suggest-head { padding: 8px 10px 4px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.suggest li[role="option"] { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 7px; cursor: pointer; min-height: 50px; }
.suggest li[role="option"][aria-selected="true"], .suggest li[role="option"]:hover { background: var(--sunk); }
.sg-ico { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; background: var(--sunk); color: var(--muted); flex: none; }
.sg-ref { font: 600 14.5px var(--sans); font-variant-numeric: tabular-nums; }
.sg-model { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sg-side { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sg-side strong { display: block; color: var(--ink); font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.sg-logos { display: flex; padding-left: 6px; }
.sg-logos .logo { margin-left: -6px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.chips .lbl { font: 500 12.5px var(--sans); color: var(--muted); margin-right: 4px; }
.chip { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-watch { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; display: block; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.kpi { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi dt { font: 500 12.5px var(--sans); color: var(--muted); }
.kpi dd { margin: 6px 0 0; font: 700 26px/1.15 var(--sans); letter-spacing: -.025em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi dd small { font: 600 12.5px var(--sans); letter-spacing: 0; color: var(--muted); }
.kpi dd .name { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lo { color: var(--good); } .hi { color: var(--warm); }

/* ---------------------------------------------------------------- controls */
.controls { position: sticky; top: calc(var(--top) + env(safe-area-inset-top)); z-index: 30; margin-top: 18px; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.controls.stuck { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.controls-inner { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters-btn { display: none; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--sans); align-items: center; gap: 8px; }
.active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 4px; }
.active:empty { display: none; }
.tag { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 11px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font: 600 12.5px var(--sans); }
.tag .ic { width: 14px; height: 14px; }
.tag-clear { height: 30px; padding: 0 8px; color: var(--muted); font: 500 12.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; }

/* Custom dropdown */
.dd { position: relative; }
.dd-trigger { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 500 13.5px var(--sans); white-space: nowrap; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.dd-trigger:hover { border-color: var(--faint); }
.dd-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dd-trigger > .ic:first-child { width: 16px; height: 16px; color: var(--muted); }
.dd-trigger.set { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dd-trigger.set > .ic:first-child, .dd-trigger.set .dd-label { color: var(--accent); opacity: .8; }
.dd-label { color: var(--muted); }
.dd-value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dd-chev { width: 15px; height: 15px; opacity: .55; transition: transform .2s var(--ease); }
.dd-trigger[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-panel { position: fixed; z-index: 80; min-width: 240px; max-width: min(340px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; display: flex; flex-direction: column; max-height: min(420px, 70vh); animation: pop .14s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-3px); } }
.dd-head { display: none; }
.dd-search { position: relative; margin: 2px 2px 5px; }
.dd-search input { width: 100%; height: 36px; border-radius: 7px; border: 1px solid var(--line); background: var(--sunk); padding: 0 10px 0 34px; outline: 0; font: 500 13.5px var(--sans); }
.dd-search input:focus { border-color: var(--accent); background: var(--surface); }
.dd-search .ic { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.dd-list { list-style: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; outline: 0; }
.dd-opt { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font: 500 13.5px var(--sans); }
.dd-opt.active { background: var(--sunk); }
.dd-check { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.2; visibility: hidden; }
.dd-opt[aria-selected="true"] { font-weight: 600; }
.dd-opt[aria-selected="true"] .dd-check { visibility: visible; }
.dd-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.dd-count { color: var(--muted); font: 500 12px var(--sans); font-variant-numeric: tabular-nums; }
.dd-empty { padding: 12px 10px; color: var(--muted); font-size: 13.5px; }
.dd-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(8, 12, 18, .45); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- sections */
.main { max-width: 1320px; margin: 0 auto; padding: 8px 24px calc(88px + env(safe-area-inset-bottom)); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 14px; }
.sec-kicker { margin: 0 0 4px; font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.sec-head h2 { margin: 0; font: 700 24px/1.2 var(--sans); letter-spacing: -.025em; }
.sec-head h2 small { font: 500 14px var(--sans); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.sec-note { margin: 0; max-width: 58ch; font-size: 13px; color: var(--muted); text-align: right; }

/* Analytics grid */
.an-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 16px; min-width: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font: 650 15px/1.3 var(--sans); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ic { color: var(--muted); }
.card-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.card-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.chart-slot { position: relative; width: 100%; }
.chart-slot svg { display: block; width: 100%; overflow: visible; }
.chart-slot text { font: 500 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-slot .lbl { font: 600 12px var(--sans); fill: var(--ink-2); }
.chart-slot .val { font: 600 12px var(--sans); fill: var(--ink); }
[data-tip] { cursor: default; }
.empty-chart { padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Head-to-head rows */

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--raise); }
.tbl .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.tbl .ref { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
.tbl .only-sm { display: none; }
.tbl .linkish.ref { text-align: left; }
.pct { display: inline-block; min-width: 54px; padding: 2px 7px; border-radius: 5px; font: 600 12px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.pct.lo { background: var(--good-bg); color: var(--good); } .pct.hi { background: var(--warm-bg); color: var(--warm); } .pct.mid { background: var(--sunk); color: var(--ink-2); }


/* ---------------------------------------------------------------- browse */
.results-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line-2); }
.seg button { height: 32px; padding: 0 12px; border-radius: 6px; font: 600 13px var(--sans); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.seg button .ic { width: 15px; height: 15px; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
:root[data-theme="dark"] .seg button[aria-checked="true"] { background: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-checked="true"] { background: var(--line); } }
.lg-band { width: 18px; height: 8px; border-radius: 2px; background: var(--band); }
.lg-med { width: 2px; height: 12px; background: var(--ink-2); }

.logo { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1.5px var(--c, var(--line)); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo b { display: none; font: 700 11px var(--sans); color: var(--surface); }
.logo.fallback img { display: none; }
.logo.fallback b { display: block; }
.logo.lg { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.logo.lg b { font-size: 16px; }
.logo.sm { width: 18px; height: 18px; }
.logo.sm b { font-size: 9px; }
/* A retailer is its mark and its name, never a colour: the list is too long for a palette. */
.logo.fallback { background: var(--ink-2); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.watches { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.animate > * { animation: rise-in .3s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } }

.ref-card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.ref-card:hover { border-color: var(--faint); box-shadow: var(--shadow-md); }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rc-model { font: 650 17px/1.25 var(--sans); font-weight: 650; letter-spacing: -.015em; }
.rc-ref { margin-top: 3px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 12.5px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rc-ref .bare { font: 600 10.5px var(--sans); letter-spacing: 0; color: var(--muted); background: var(--sunk); padding: 1px 6px; border-radius: 4px; }
.rc-rows { display: grid; margin-top: 12px; }
.rc-row { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 9px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-2); font: 500 13.5px var(--sans); }
.rc-row:first-child { border-top: 0; }
.rc-row .nm { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-row .ct, .rc-row .ct-in { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rc-row .ct-in { display: none; }
.rc-row .pr { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 76px; text-align: right; }
.rc-row.best .pr { color: var(--good); }
.rc-row.best .nm::after { content: "Lowest"; margin-left: 7px; font: 600 10px var(--sans); color: var(--good); background: var(--good-bg); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.rc-row.none { opacity: .45; }
.rc-open { position: absolute; inset: 0; border-radius: var(--r); z-index: 2; }

.w-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.w-card:hover { border-color: var(--faint); box-shadow: var(--shadow-md); }
/* The photo sits flush inside the card's own clip, with no transform anywhere in the
   chain: rounding plus a transformed child is what drew hairline seams at the edges. */
.w-photo { position: relative; aspect-ratio: 1 / 1; background: #0b0b0c; overflow: hidden; display: block; border-bottom: 1px solid var(--line); }
.w-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); background: var(--sunk); }
.w-photo .ph .ic { width: 40px; height: 40px; stroke-width: 1.2; }
.w-photo img + .ph { display: none; }
.w-photo img[hidden] + .ph { display: grid; }
.w-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.w-model { font: 650 15px/1.3 var(--sans); font-weight: 650; }
.w-ref { font: 600 12px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.w-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.w-price { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.w-price .big { font: 700 19px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-price .native { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.peer { font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; padding: 3px 7px; border-radius: 5px; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.peer.lo { background: var(--good-bg); color: var(--good); } .peer.hi { background: var(--warm-bg); color: var(--warm); }
.w-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; margin-top: 10px; border-top: 1px solid var(--line-2); }
.w-seller { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--sans); color: var(--ink-2); min-width: 0; }
.w-seller span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font: 600 12.5px var(--sans); white-space: nowrap; }
.go:hover { border-color: var(--faint); }
.go .ic { width: 14px; height: 14px; }
.gone { position: absolute; right: 10px; top: 10px; z-index: 1; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(15, 23, 42, .88); color: #fff; font: 600 11px var(--sans); display: inline-flex; align-items: center; }
.linkish { position: relative; z-index: 3; text-decoration: underline dotted; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; }
.linkish:hover { color: var(--accent); }

.more { display: flex; justify-content: center; padding: 24px 0 0; }
.more button { height: 42px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--sans); }
.more button:hover { border-color: var(--faint); }
.more .count { color: var(--muted); font-weight: 500; margin-left: 8px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.empty h3 { margin: 0 0 6px; font: 650 18px var(--sans); }
.empty p { margin: 0 auto 16px; color: var(--muted); max-width: 46ch; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn { height: 40px; padding: 0 18px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 600 13.5px var(--sans); display: inline-flex; align-items: center; }
.loader { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 56px 0; color: var(--muted); font-size: 13.5px; }
.loader i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- comparison block */
.spot { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 18px; margin: 22px 0 8px; box-shadow: var(--shadow-md); }
.spot + .spot { margin-top: 14px; }
.spot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.spot-kicker { margin: 0; font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.spot h3 { margin: 6px 0 0; font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--sans); letter-spacing: -.03em; }
.spot h3 .r { font: 600 .55em var(--sans); color: var(--muted); margin-left: 10px; letter-spacing: .02em; vertical-align: middle; }
.verdict { max-width: 380px; padding: 12px 14px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line-2); }
.verdict .v { display: flex; align-items: center; gap: 8px; font: 700 15px var(--sans); }
.verdict p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.panel-title { margin: 0 0 8px; font: 600 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chart-cap { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* ---------------------------------------------------------------- sheet */
/* No backdrop blur: blurring the grid behind and then removing it was half the blink. */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 18, .5); animation: fade .2s; }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(860px, 100vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .28s var(--ease); }
@keyframes slidein { from { transform: translateX(32px); opacity: 0; } }
.sheet-grip { display: none; }
.sheet-scroll { overflow: auto; overscroll-behavior: contain; padding: 0 26px calc(36px + env(safe-area-inset-bottom)); flex: 1; }
.sh-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.close { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.close:hover { border-color: var(--faint); }
.sheet .spot { margin: 16px 0 18px; box-shadow: var(--shadow); }
.sh-list { display: grid; gap: 8px; }
.sh-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.sh-item:hover { border-color: var(--faint); }
.sh-img { width: 60px; height: 60px; border-radius: 7px; background: #0b0b0c; overflow: hidden; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-main { min-width: 0; }
.sh-main .t { font: 600 13.5px var(--sans); display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sh-main .m { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-price { text-align: right; }
.sh-price strong { display: block; font: 700 15px var(--sans); font-variant-numeric: tabular-nums; }
.sh-price small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sh-section { margin: 22px 0 10px; font: 650 17px var(--sans); font-weight: 650; }

.tooltip { position: fixed; z-index: 90; pointer-events: none; background: #0f172a; color: #f1f5f9; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow-lg); max-width: 280px; transform: translate(-50%, calc(-100% - 10px)); }
:root[data-theme="dark"] .tooltip { background: #e7ecf2; color: #0b0f14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tooltip { background: #e7ecf2; color: #0b0f14; } }
.tooltip strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.tooltip .tt-sub { opacity: .72; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 34px 24px calc(84px + env(safe-area-inset-bottom)); }
.footer h2 { margin: 0 0 14px; font: 700 18px var(--sans); }
.method-body { columns: 3 300px; column-gap: 34px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.method-body p { margin: 0 0 12px; break-inside: avoid; }
/* Coverage: the whole width above the columns of notes. */
.cov { column-span: all; margin: 0 0 22px; }
.cov-sum { margin: 0 0 10px; color: var(--ink); }
.cov-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cov-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cov-t th { text-align: right; font-weight: 600; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cov-t td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.cov-t th:first-child, .cov-t td:first-child { text-align: left; padding-left: 0; }
.cov-t td:first-child b { color: var(--ink); font-weight: 600; margin-right: 8px; }
.cov-t td:first-child small { color: var(--muted); font-size: 12px; }
.cov-t td:first-child small .flag { margin-right: 4px; }
.cov-ok { color: var(--good); font-weight: 600; }
.cov-short { color: var(--warm); font-weight: 600; }
.cov-aside { color: var(--muted); }
.cov-aside::before { content: "· "; }
.cov-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  .cov-t { font-size: 12.5px; }
  .cov-t th, .cov-t td { padding: 6px 5px; }
  .cov-t td:first-child { white-space: normal; }
  .cov-t td:first-child small { display: none; }
  .cov-aside { display: block; width: 68px; margin-left: auto; white-space: normal; font-size: 11.5px; line-height: 1.3; }
  .cov-aside::before { content: none; }
}
.upd-link { color: inherit; text-decoration: none; }
.upd-link:hover b { text-decoration: underline; text-underline-offset: 2px; }
.fineprint { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); max-width: 100ch; }
.fineprint .legal-links { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fineprint .legal-links:hover { color: var(--ink); }

/* Filters sheet */
.fs-body { display: grid; gap: 10px; padding: 8px 0; }
.fs-body .dd, .fs-body .dd-trigger { width: 100%; }
.fs-body .dd-trigger { height: 50px; border-radius: 10px; padding: 0 14px; }
.fs-body .dd-trigger .dd-value { margin-left: auto; }
.fs-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 0 4px; background: var(--bg); }
.fs-actions button { height: 48px; border-radius: 10px; font: 600 14px var(--sans); }
.fs-actions .ghost { border: 1px solid var(--line); background: var(--surface); }
.fs-actions .solid { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .filters { display: none; }
  .filters-btn { display: inline-flex; }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .hero-art { order: -1; min-height: 0; }
  .hero-watch { max-width: 270px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --top: 56px; }
  body { font-size: 14px; }
  .topbar-inner { gap: 10px; padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
  .updated { display: none; }
  .topbar.compact .brand-name { display: none; }
  .hero { padding: 0 14px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 36px); }
  .lede { font-size: 15px; margin: 14px 0 20px; }
  .search { height: 52px; padding-left: 13px; }
  .search input { font-size: 16px; padding: 0 9px; }
  .search-go { padding: 0 14px; height: 40px; }
  .kpi { padding: 13px 14px; }
  .kpi dd { font-size: 22px; }
  .kpi dd .name { font-size: 15px; }
  .controls-inner { padding: 8px 14px; }
  .main { padding: 4px 14px calc(80px + env(safe-area-inset-bottom)); }
  .sec-head { margin-top: 24px; }
  .sec-head h2 { font-size: 21px; }
  .sec-note { text-align: left; }
  .card { padding: 15px 14px 13px; }
  .results-tools { width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .results-tools #sortSlot .dd, .results-tools #sortSlot .dd-trigger { width: 100%; }
  .seg { width: 100%; } .seg button { flex: 1; justify-content: center; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .grid.watches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ref-card { padding: 15px 14px 12px; }
  .rc-row { grid-template-columns: 18px 1fr auto; }
  .rc-row .ct { display: none; }
  .rc-row .ct-in { display: inline; }
  .w-body { padding: 10px 10px 11px; }
  .w-model { font-size: 14px; }
  .w-price .big { font-size: 16.5px; }
  .w-price { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sheet.fit { height: auto; }
  .w-foot { flex-direction: column; align-items: stretch; gap: 7px; padding-top: 9px; }
  .w-foot .go { justify-content: center; }
  .spot { padding: 16px 14px 14px; }
  .verdict { max-width: none; width: 100%; }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { padding-left: 6px; padding-right: 6px; }
  .tbl .hide-sm { display: none; }
  .tbl .who .hide-sm { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl .only-sm { display: block; }
  .tbl.arch .ref { white-space: normal; }
  .sheet { width: 100vw; top: auto; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: calc(100vh - 24px); border-left: 0; border-radius: 14px 14px 0 0; animation: rise .28s var(--ease); }
  @keyframes rise { from { transform: translateY(32px); opacity: 0; } }
  .sheet-grip { display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 8px auto 0; flex: none; }
  .sheet-scroll { padding: 0 14px calc(28px + env(safe-area-inset-bottom)); }
  .sh-item { grid-template-columns: 52px 1fr auto; gap: 10px; }
  .sh-img { width: 52px; height: 52px; }
  .dd-panel.sheet-mode { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100vw; max-width: none; min-width: 0; border-radius: 14px 14px 0 0; max-height: 78vh; padding: 0 8px calc(10px + env(safe-area-inset-bottom)); animation: rise .22s var(--ease); }
  .dd-panel.sheet-mode .dd-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 6px 10px; }
  .dd-panel.sheet-mode .dd-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line); }
  .dd-panel.sheet-mode .dd-head strong { font: 650 17px var(--sans); font-weight: 650; }
  .dd-panel.sheet-mode .dd-opt { min-height: 48px; font-size: 15px; }
  .dd-panel.sheet-mode .dd-search input { height: 44px; font-size: 16px; }
}
@media (max-width: 380px) {
  .grid.watches { gap: 8px; }
  .w-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- chart helpers */
.divrow { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 72px; align-items: center; gap: 12px; }
.divlbl { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--sans); min-width: 0; }
.divlbl span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divtrack { position: relative; height: 22px; background: var(--sunk); border-radius: 4px; }
.divzero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--faint); }
.divbar { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; }
.nm-short { display: none; }
.divaxis { margin-top: 6px; font-size: 11px; color: var(--muted); }
.divaxis > span:nth-child(2) { display: flex; justify-content: space-between; }
.barhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 13px var(--sans); margin-bottom: 6px; }
.barhead > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.barhead .pct { min-width: 0; margin-left: 6px; }
.dim { color: var(--muted); font-weight: 500; }
.bartrack { height: 10px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bartrack i { display: block; height: 100%; border-radius: 3px; }
.rangetrack { position: relative; height: 12px; background: var(--sunk); border-radius: 3px; }
.rangetrack .range { position: absolute; top: 5px; height: 2px; opacity: .5; }
.rangetrack .medmark { position: absolute; top: 1px; bottom: 1px; width: 3px; margin-left: -1.5px; border-radius: 2px; }
.rangeaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tbl td.lo, .tbl td .lo { color: var(--good); }
.tbl td .sub.lo { color: var(--good); } .tbl td .sub.hi { color: var(--warm); }
@media (max-width: 760px) {
  .divrow { grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 62px; gap: 8px; }
  .divlbl { font-size: 12px; }
  .nm-full { display: none; } .nm-short { display: inline; }
}

/* ---------------------------------------------------------------- comparison, in plain words */
.spot-title h3 { margin-top: 6px; }
.answer-box { margin-top: 16px; padding: 16px 18px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line-2); }
.answer { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.answer .logo { margin-top: 3px; }
.answer strong { font-weight: 700; }
.answer .dim { color: var(--muted); font-weight: 400; }
.answer-sub { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.related > span { font-size: 13px; color: var(--muted); margin-right: 2px; }
.rel { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; }
.rel:hover { border-color: var(--accent); }
.rel b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rel small { color: var(--muted); font-size: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fact { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact span[title] { text-decoration: underline dotted; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: help; }
.fact b { display: block; margin-top: 4px; font: 700 18px/1.25 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--muted); min-width: 0; }
.panel { margin-top: 22px; }
.panel .panel-title { margin: 0 0 4px; }
.chart-help { margin: 0 0 10px; font-size: 13px; color: var(--muted); max-width: 80ch; }
.chart-slot text.hint { font: 500 11px var(--sans); fill: var(--faint); }
.tbl.ret th[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .answer { font-size: 15.5px; }
  .answer-box { padding: 13px 13px; }
  .fact b { font-size: 16px; }
  .tbl.ret th:last-child { font-size: 10px; white-space: normal; max-width: 90px; }
}

/* ---------------------------------------------------------------- member app: welcome */
.welcome { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.welcome-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 32px; align-items: start; padding: 34px 0 22px; }
.welcome h1 { margin: 0; font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--sans); letter-spacing: -.035em; max-width: 22ch; }
.welcome .lede { margin: 12px 0 22px; font-size: 16px; }
@keyframes skel { 50% { opacity: .55; } }

.tour { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; }
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.tour-x { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.tour-x:hover { background: var(--sunk); color: var(--ink); }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tour-tile { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); }
.tour-tile:hover { border-color: var(--faint); }
.tour-tile strong { display: block; font: 650 14px var(--sans); }
.tour-tile small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tt-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.tt-ic .ic { color: var(--ink); }

.topnav a.on { color: var(--ink); background: var(--sunk); }
.nav-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 700 11px/18px var(--sans); text-align: center; }

/* ---------------------------------------------------------------- member app: saving */
.w-card { position: relative; }
.save-btn { display: inline-grid; place-items: center; color: var(--ink-2); transition: color .15s, background .15s, border-color .15s; }
.save-btn .ic { width: 18px; height: 18px; }
.save-btn.on { color: var(--gold); }
/* On the left: retailers print their certification seal in the photo's top right corner. */
.save-btn.photo { position: absolute; top: 10px; left: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0f172a; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.save-btn.photo.on { color: #a7844b; }
.save-btn.tile { position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.save-btn.tile:hover, .save-btn.wide:hover { border-color: var(--faint); color: var(--ink); }
.ref-card .rc-top { padding-right: 42px; }
.save-btn.wide { display: inline-flex; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--sans); }
.save-btn.wide.on { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

.grid.saved { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.saved-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.saved-card.has-img { flex-direction: row; gap: 14px; }
.sc-img { width: 104px; height: 104px; flex: none; border-radius: 10px; background: #0b0b0c; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sc-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.sc-kind .ic { width: 15px; height: 15px; }
.saved-card h3 { margin: 0; font: 650 16px/1.3 var(--sans); }
.saved-card h3 .r { margin-left: 4px; font: 600 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-meta { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.sc-price { display: flex; gap: 22px; flex-wrap: wrap; }
.sc-price .lbl { display: block; font-size: 11.5px; color: var(--muted); }
.sc-price b { display: block; font: 700 19px var(--sans); font-variant-numeric: tabular-nums; }
.sc-price .muted-b { color: var(--muted); font-weight: 600; font-size: 16px; }
.sc-price small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.sc-gone { margin: 0; font-size: 13px; color: var(--ink-2); background: var(--sunk); padding: 9px 11px; border-radius: 8px; }
.delta { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font: 650 12.5px var(--sans); }
.delta .ic { width: 15px; height: 15px; }
.delta small { font-weight: 500; }
.delta.down { background: var(--good-bg); color: var(--good); }
.delta.up { background: var(--warm-bg); color: var(--warm); }
.delta.flat { background: var(--sunk); color: var(--muted); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.btn-mini { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 600 12.5px var(--sans); color: var(--ink-2); }
.btn-mini:hover { border-color: var(--faint); color: var(--ink); }
.btn-mini .ic { width: 15px; height: 15px; }
.btn-mini.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.saved-empty .se-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--sunk); }
.saved-empty .se-ic .ic { width: 26px; height: 26px; color: var(--gold); }

@media (max-width: 1080px) { .welcome-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; } .since { min-height: 0; } }
@media (max-width: 760px) {
  .welcome { padding: 0 14px; }
  .welcome-inner { padding: 20px 0 14px; }
  .welcome .lede { font-size: 14.5px; margin-bottom: 16px; }
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .grid.saved { grid-template-columns: minmax(0, 1fr); }
  .sc-img { width: 84px; height: 84px; }
  .topbar-meta .updated { display: none; }
}

/* ---------------------------------------------------------------- no badges
   Labels are plain text: no pills, no tinted backgrounds, no dots. Colour alone (plus
   the words themselves) carries meaning. */
.pct, .pct.lo, .pct.hi, .pct.mid { background: none; padding: 0; min-width: 0; border-radius: 0; font-weight: 650; }
.pct.lo { color: var(--good); } .pct.hi { color: var(--warm); } .pct.mid { color: var(--ink-2); }
.rc-ref .bare { background: none; padding: 0; font: 500 11.5px var(--sans); color: var(--muted); }
.w-meta { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer, .peer.lo, .peer.hi { background: none; padding: 0; font-weight: 650; }
.peer.lo { color: var(--good); } .peer.hi { color: var(--warm); }
.nav-count { margin-left: 5px; min-width: 0; height: auto; padding: 0; background: none; color: var(--muted); font: 600 13px var(--sans); }
.delta, .delta.down, .delta.up, .delta.flat { height: auto; padding: 0; background: none; border-radius: 0; }
.delta.down { color: var(--good); } .delta.up { color: var(--warm); } .delta.flat { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- live demo */
.demo-bar { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.demo-bar-inner { max-width: 1320px; margin: 0 auto; padding: 10px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.demo-text { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.demo-text .ic { color: var(--accent); margin-top: 2px; }
.demo-text strong { color: var(--ink); }
.demo-bar .row { gap: 8px; }
@media (max-width: 760px) { .demo-bar-inner { padding: 10px 14px; } .demo-bar .row { width: 100%; } .demo-bar .row .btn { flex: 1; } }

/* ---------------------------------------------------------------- calmer layout
   One column, one navigation, one line of numbers. The tabs replace the long scroll:
   the board, the watches, the insights, the archive and the watchlist are each a view. */
.welcome-inner { display: block; padding: 30px 0 4px; }
.welcome h1 { max-width: none; margin: 0 0 18px; }
.welcome .search { max-width: 780px; }
.since-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.since-line[hidden] { display: none; }
.since-line button { color: var(--ink-2); font: 500 13.5px var(--sans); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.since-line button:hover { color: var(--ink); text-decoration-color: var(--faint); }
.since-line b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.controls { margin-top: 16px; border-bottom-color: var(--line); }
.controls.stuck { box-shadow: none; }
.controls-inner { padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
.tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; height: 50px; padding: 0 13px; color: var(--muted); font: 550 14px var(--sans); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.tabs a:first-child { padding-left: 2px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.controls .filters { flex-wrap: nowrap; flex: none; }
.filters-btn { flex: none; }
#filtersCount { font-weight: 500; color: var(--muted); margin-left: -4px; }

.scope { max-width: 1320px; margin: 0 auto; padding: 16px 24px 0; }
.retailers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rt-label { font: 600 12.5px var(--sans); color: var(--muted); margin-right: 2px; }
.rt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13.5px var(--sans); white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.rt:hover { border-color: var(--faint); }
.rt-check { width: 16px; height: 16px; border-radius: 4.5px; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.rt-check .ic { width: 12px; height: 12px; stroke-width: 2.8; color: var(--surface); opacity: 0; transition: opacity .15s; }
.rt.on .rt-check { background: var(--ink); border-color: var(--ink); }
.rt.on .rt-check .ic { opacity: 1; }
.rt:not(.on) { background: transparent; color: var(--muted); }
.rt:not(.on) .logo { opacity: .45; filter: grayscale(1); }
.rt .nm-short { display: none; }
.rt-all { height: 40px; padding: 0 6px; color: var(--ink-2); font: 500 13px var(--sans); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.scope .active { margin: 12px 0 0; }
@media (max-width: 1240px) { .rt .nm-full { display: none; } .rt .nm-short { display: inline; } .rt-note { display: none; } }

.main { padding-top: 0; }
.sec-head { margin: 22px 0 14px; align-items: center; }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--sans); color: var(--ink-2); transition: border-color .15s, color .15s; }
.tool-btn:hover { border-color: var(--faint); color: var(--ink); }
.tool-btn .ic { width: 16px; height: 16px; }
.tool-btn[hidden], .browse[hidden], .an[hidden] { display: none; }
.tool-btn.locked { color: var(--muted); }

.w-price .native:empty { display: none; }
.was { display: block; margin-top: 2px; font: 600 12px var(--sans); }
.was.lo { color: var(--good); } .was.hi { color: var(--warm); }
.facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.answer-box .answer-sub { margin-bottom: 0; }
/* The cheapest retailer is the first row, in green: no label needed. */
.rc-row.best .nm::after { content: none; }

/* ---------------------------------------------------------------- archive */
.grid.archive { display: block; }
.arch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 18px 8px; }
.tbl.arch th, .tbl.arch td { padding-top: 11px; padding-bottom: 11px; }
.tbl.arch td b { font-weight: 650; font-variant-numeric: tabular-nums; }
.tbl.arch .dim { color: var(--muted); }
.arch-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 12px; padding: 11px 14px; border-radius: 10px; background: var(--sunk); font-size: 13px; color: var(--ink-2); }
.arch-note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); flex: none; }
.arch-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* What left: above the archive's list. */
.left .wl-tabs { margin-bottom: 16px; }
.left-rows { display: grid; gap: 14px; }
.left-rows .barhead > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daybars { display: flex; align-items: stretch; gap: 2px; height: 190px; }
.daybars span { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 20px minmax(0, 1fr) 22px; justify-items: center; }
.daybars b { font: 600 12px/20px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.daybars i { align-self: end; width: 100%; max-width: 46px; border-radius: 4px 4px 0 0; background: var(--s1); }
.daybars span:hover i { filter: brightness(1.08); }
.daybars em { align-self: end; font: 500 11px/16px var(--sans); color: var(--muted); white-space: nowrap; font-style: normal; }
.sh-left { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
/* A watch no longer listed: a dashed edge and a dimmed photo, its words at full contrast. */
.sh-item.past { border-style: dashed; }
.sh-item.past .sh-img { opacity: .6; }
.fs-label { margin: 4px 0 8px; font: 600 12.5px var(--sans); color: var(--muted); }
.fs-retailers { margin-bottom: 14px; }

/* ---------------------------------------------------------------- methodology, folded */
.method summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 600 14px var(--sans); color: var(--ink-2); }
.method summary::-webkit-details-marker { display: none; }
.method summary:hover { color: var(--ink); }
.method summary .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.method[open] summary .ic { transform: rotate(180deg); }
.method .method-body { margin-top: 18px; }
.method + .fineprint { margin-top: 18px; }

@media (max-width: 760px) {
  .welcome-inner { padding: 20px 0 2px; }
  .welcome h1 { margin-bottom: 14px; }
  .controls { margin-top: 12px; }
  .controls-inner { padding: 0 14px; gap: 8px; }
  .tabs { padding-right: 20px; }
  .tabs.to-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .tabs.from-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
  .tabs.from-start.to-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
  .tabs a { height: 46px; padding: 0 10px; font-size: 13.5px; }
  .filters-btn { width: 38px; padding: 0; justify-content: center; }
  .filters-btn span:not(#filtersCount) { display: none; }
  #filtersCount { margin-left: 0; }
  #filtersCount:empty { display: none; }
  .scope { padding: 12px 14px 0; }
  .scope > .retailers { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .scope > .retailers::-webkit-scrollbar { display: none; }
  .rt { flex: none; height: 38px; }
  .rt-label { display: none; }
  .rt-all { flex: none; }
  .sec-head { margin-top: 18px; }
  .results-tools { grid-template-columns: auto 1fr; }
  .arch-card { padding: 2px 10px 4px; }
}

/* ---------------------------------------------------------------- assistant
   A chat over the data already in the page (assistant.js). */
.asst-fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px 0 15px; border-radius: 14px; background: var(--ink); color: var(--bg); font: 650 14px var(--sans); box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), opacity .2s; }
.asst-fab:hover { transform: translateY(-2px); }
.asst-fab .ic { width: 19px; height: 19px; }
.asst-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.92); }
.asst { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 55; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 96px)); height: min(640px, calc(100dvh - 96px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: asst-in .28s var(--ease); }
.asst[hidden] { display: none; }
@keyframes asst-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.asst-head { display: flex; align-items: center; gap: 11px; padding: 13px 10px 13px 16px; border-bottom: 1px solid var(--line); }
.asst-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.asst-mark .ic { width: 18px; height: 18px; }
.asst-title { flex: 1; min-width: 0; }
.asst-title strong { display: block; font: 650 14.5px var(--sans); }
.asst-title small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.asst-ib { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.asst-ib:hover { background: var(--sunk); color: var(--ink); }
.asst-ib .ic { width: 17px; height: 17px; }
.asst-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); overscroll-behavior: contain; }
.asst-msg { font-size: 14px; line-height: 1.5; animation: asst-msg .3s var(--ease); }
@keyframes asst-msg { from { opacity: 0; transform: translateY(6px); } }
.asst-msg.me { align-self: flex-end; max-width: 86%; background: var(--ink); color: var(--bg); padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.asst-msg.bot { align-self: stretch; margin-right: 22px; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px 14px 14px 4px; }
.asst-msg.bot p { margin: 0; color: var(--ink-2); }
.asst-msg.bot p + p { margin-top: 8px; }
.asst-msg.bot strong { color: var(--ink); font-weight: 650; }
.asst-msg.bot .asst-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.asst-msg.bot .asst-list li + li { margin-top: 4px; }
.asst-msg.bot p + .asst-list, .asst-msg.bot .asst-list + p { margin-top: 8px; }
.asst-ref { font: inherit; font-weight: 650; color: var(--ink); text-decoration: underline dotted; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: pointer; }
.asst-ref:hover { text-decoration-color: var(--ink); }
.asst-msg.bot .lo { font-weight: 650; } .asst-msg.bot .hi { font-weight: 650; }
.asst-rows { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.asst-rows li { border-bottom: 1px solid var(--line-2); }
.asst-rows li:last-child { border-bottom: 0; }
.asst-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 8px 0; text-align: left; color: inherit; }
.asst-row.plain { grid-template-columns: minmax(0, 1fr) auto; }
a.asst-row:hover .t, button.asst-row:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.asst-row .t { display: block; font: 600 13.5px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-row .s { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-row .v { font: 650 13.5px var(--sans); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.asst-row .v small { display: block; font: 500 11.5px var(--sans); color: var(--muted); }
.asst-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.asst-act { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 600 12.5px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.asst-act:hover { border-color: var(--faint); color: var(--ink); }
.asst-act.solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.asst-act:disabled, .asst-sug:disabled { opacity: .5; cursor: default; }
.asst-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.asst-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: asst-dot 1s ease-in-out infinite; }
.asst-typing i:nth-child(2) { animation-delay: .15s; } .asst-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asst-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.asst-sugs { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-top: 1px solid var(--line); }
.asst-sugs::-webkit-scrollbar { display: none; }
.asst-sug { flex: none; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: 500 12.5px var(--sans); color: var(--ink-2); white-space: nowrap; }
.asst-sug:hover { border-color: var(--faint); color: var(--ink); }
.asst-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); }
.asst-form input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 14px var(--sans); outline: none; }
.asst-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.asst-form button { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; transition: opacity .15s; }
.asst-form button:disabled { opacity: .35; }
.asst-form button .ic { width: 18px; height: 18px; }
.asst-lock { margin: auto; max-width: 300px; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.asst-lock .ic { width: 26px; height: 26px; color: var(--muted); margin-bottom: 10px; }
.asst-lock strong { display: block; margin-bottom: 6px; font: 650 16px var(--sans); color: var(--ink); }
.asst-lock .btn { margin-top: 14px; }
@media (max-width: 760px) {
  .asst { right: 0; left: 0; bottom: 0; width: 100vw; height: min(88vh, 720px); height: min(88dvh, 720px); border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  .asst-fab { height: 46px; padding: 0 15px 0 13px; }
  .asst-form input { font-size: 16px; }
  .asst-msg.bot { margin-right: 8px; }
}

/* ============================================================================
   Clearer app, second pass (2026-11-16). One primary thing per screen, plain words,
   and no chart that has to be decoded: the dot strips, the scatter, the percentile
   boxes, the model table and the head-to-head tiles are gone, with their rules.
   ========================================================================== */
.retailers[hidden] { display: none; }

/* Retailer switches: a quiet row of names. How they compare is the Retailers tab. */
.rt { height: 34px; padding: 0 11px 0 9px; border-radius: 9px; font-size: 13px; gap: 7px; }
.rt-all { height: 34px; }
.rt-label { font-weight: 500; }

/* Reference card: the model, the reference, then who sells it and from how much. */
.ref-card { padding: 18px 18px 16px; }
.ref-card .rc-top { display: block; padding-right: 42px; }
.rc-ref { gap: 0 8px; }
.rc-count { font-weight: 500; letter-spacing: 0; color: var(--muted); }
.rc-count::before { content: "·"; margin-right: 8px; color: var(--faint); }
.rc-rows { margin-top: 14px; }
.rc-row { grid-template-columns: 18px minmax(0, 1fr) auto; padding: 8px 0; }
.rc-row .nm { color: var(--ink); }
.rc-row .pr { min-width: 0; font-weight: 650; }
.rc-row .pr small { margin-right: 5px; font: 500 12px var(--sans); color: var(--muted); }
.rc-foot { margin: 4px 0 0; padding-top: 11px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.rc-foot b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Watch card: the price, then at most three quiet lines under it. */
.w-meta { display: block; margin-top: 4px; font: 500 12.5px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The price follows the watch's details and the retailer row sits at the bottom, so a row of
   cards lines its prices up whatever each one has to say underneath. */
.w-price { display: block; margin-top: 8px; padding: 0 0 12px; }
.w-foot { margin-top: auto; }
.w-price .big { display: block; }
.w-price .native { margin-top: 5px; }
.peer, .peer.lo, .peer.hi { display: block; margin-top: 3px; padding: 0; background: none; font: 600 12px var(--sans); white-space: normal; }

/* The comparison: title, one answer, three figures, the retailers. */
.spot-title h3 { margin-top: 0; }
.spot-kicker + h3 { margin-top: 6px; }
.spot-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.answer-box { margin-top: 18px; padding: 18px 20px; }
.answer { font-size: 18px; }
.panel .panel-title { margin: 0 0 8px; letter-spacing: 0; text-transform: none; font: 650 15px var(--sans); color: var(--ink); }
.panel .chart-help { margin: -4px 0 10px; }
.tbl.ret td { padding-top: 11px; padding-bottom: 11px; }
.tbl.ret td b { font-size: 14px; font-weight: 650; }
p.related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.rel { height: 32px; }
.sh-section { display: flex; align-items: baseline; gap: 10px; }
.sh-section small { font: 500 13px var(--sans); color: var(--muted); }
.sh-more { display: block; width: 100%; height: 42px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--sans); color: var(--ink-2); }
.sh-more:hover { border-color: var(--faint); color: var(--ink); }
.sh-price small { display: block; }

/* Suggestions: "from" sits over the price it belongs to. */
.sg-side { line-height: 1.25; }

/* The Retailers tab: titles without icons, tables that read as sentences. */
.an-grid .card { padding: 20px 22px 18px; }
.an-grid .card-head { margin-bottom: 16px; }
.an-grid .card-head h3 { font-size: 16px; }
.an-grid .card-head p { margin-top: 4px; font-size: 13px; max-width: 62ch; }
.an-grid .card-head p b { color: var(--ink); font-weight: 650; }
.sec-note { text-align: left; }
@media (max-width: 760px) {
  .rt { height: 36px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fact { padding: 11px 12px; }
  .answer { font-size: 16.5px; }
  .answer-box { padding: 15px 16px; }
}

/* ==========================================================================
   Many retailers, many countries (2026-11-17). Flags beside country names, regions in the
   Location filter, a retailer row that shows the biggest few and opens the rest, and
   bars in one colour: a retailer is told apart by its mark and name.
   ========================================================================== */
.flag { display: inline-block; flex: none; width: 18px; height: 12px; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .3); }
.chart-slot svg.flag { display: inline-block; width: 18px; height: 12px; overflow: hidden; }   /* not a chart: keep its own size */
.flags { display: inline-flex; align-items: center; gap: 4px; }
.flags i { font: 600 11px var(--sans); font-style: normal; color: var(--muted); }
.w-meta .flag, .sc-meta .flag, .sh-main .m .flag, .tbl .sub .flag, .answer .dim .flag { margin-right: 6px; }
.dd-opt.dd-group { font-weight: 650; }
.dd-opt.dd-group:not(:first-child) { margin-top: 4px; }
.divbar.lo { background: var(--good); } .divbar.hi { background: var(--warm); } .divbar.mid { background: var(--faint); }
.bartrack i { background: var(--s1); }
.rc-row.rc-more .nm { color: var(--muted); font-size: 13px; }

.rt-pick { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 9px 0 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--sans); white-space: nowrap; flex: none; transition: border-color .15s; }
.rt-pick:hover { border-color: var(--faint); }
.rt-pick > .ic:first-child { width: 16px; height: 16px; color: var(--muted); }
.rt-pick .dd-chev { width: 14px; height: 14px; }
.rt-pick.set, .rt-pick[aria-expanded="true"] { border-color: var(--ink); }
.rt-pick[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-panel.rp { width: 400px; max-width: min(400px, calc(100vw - 24px)); padding: 6px; max-height: min(560px, 76vh); outline: 0; }
.rp-body { overflow: auto; overscroll-behavior: contain; }
.rp-body h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 10px 4px; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rp-body h4:first-child { margin-top: 6px; }
.rp-body h4 span { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.rp-body ul { list-style: none; margin: 0; padding: 0; }
.rp-row { display: flex; align-items: center; border-radius: 8px; }
.rp-row:hover, .rp-row:focus-within { background: var(--sunk); }
.rp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; text-align: left; border-radius: 8px; }
.rp-name { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rp-name b { font: 600 14px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-name small { display: flex; align-items: center; gap: 6px; min-height: 14px; font-size: 12px; color: var(--muted); }
.rp-n { font: 600 13px var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-only { flex: none; margin-right: 6px; padding: 6px 9px; border-radius: 6px; font: 600 12px var(--sans); color: var(--accent); opacity: 0; }
.rp-only:hover { background: var(--surface); }
.rp-row:hover .rp-only, .rp-row:focus-within .rp-only { opacity: 1; }
.rp-row.on .rt-check { background: var(--ink); border-color: var(--ink); }
.rp-row.on .rt-check .ic { opacity: 1; }
.rp-row:not(.on) .rp-name b { color: var(--muted); font-weight: 500; }
.rp-row:not(.on) .logo { opacity: .45; filter: grayscale(1); }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-top: 6px; padding: 6px 10px 2px; border-top: 1px solid var(--line-2); font: 500 12.5px var(--sans); color: var(--muted); }
.rp-foot .rt-all { height: 28px; }
@media (hover: none) { .rp-only { opacity: 1; } }
@media (max-width: 760px) {
  .rt-pick { height: 38px; }
  .dd-panel.rp.sheet-mode { width: 100vw; max-width: none; max-height: 82vh; padding: 0 8px calc(10px + env(safe-area-inset-bottom)); }
  .rp-main { padding: 11px 6px 11px 8px; }
  .rp-name b { font-size: 15px; }
}

/* The tax and currency switches in the top bar: their labels show on wide screens only. */
.pick-dd .dd-trigger { height: 34px; padding: 0 8px 0 10px; gap: 6px; font-size: 13px; }
.pick-dd .dd-label { font-size: 12.5px; }
@media (max-width: 1100px) { .pick-dd .dd-label { display: none; } }
@media (max-width: 760px) { .topbar-meta { gap: 6px; } .pick-dd .dd-trigger { padding: 0 6px 0 8px; } }
/* A phone keeps the mark and drops the name, so both switches and the account fit. */
@media (max-width: 480px) { .topbar-inner .brand-name { display: none; } }

/* ==========================================================================
   Photo loading: an image being generated. While a watch photo loads, a soft field of
   gold, steel and night churns where it will be; when it arrives it resolves out of a blur.
   Pure CSS, one moving layer per photo (transform only), stopped once the photo is in.
   ========================================================================== */
.fx { position: relative; isolation: isolate; }
.fx::before, .fx::after { content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none; transition: opacity .7s ease; }
.fx::before {
  background:
    radial-gradient(closest-side at 30% 35%, rgba(214, 176, 112, .72), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(104, 144, 214, .66), transparent 70%),
    radial-gradient(closest-side at 45% 80%, rgba(160, 128, 214, .45), transparent 72%);
  animation: fx-churn 7s ease-in-out infinite alternate;
}
.fx::after {
  background:
    radial-gradient(closest-side at 65% 25%, rgba(236, 240, 246, .3), transparent 70%),
    radial-gradient(closest-side at 25% 70%, rgba(201, 164, 106, .3), transparent 70%);
}
@keyframes fx-churn { 0% { transform: translate(-6%, -4%) rotate(0deg) scale(1); } 50% { transform: translate(5%, 3%) rotate(40deg) scale(1.12); } 100% { transform: translate(-3%, 6%) rotate(85deg) scale(.96); } }
.fx > img { z-index: 1; opacity: 0; filter: blur(16px) saturate(1.3); transform: scale(1.06); transition: opacity .8s ease, filter .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.fx.in > img { opacity: 1; filter: none; transform: none; }
.fx.in::before, .fx.in::after { opacity: 0; animation: none; }
.fx > .ph { z-index: 1; }
.sh-img.fx > img, .sc-img.fx > img { position: relative; }   /* the grid's photo is already positioned */
/* A photo that never comes: the field rests and the watch outline shows instead. */
.fx.none::before, .fx.none::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .fx::before, .fx::after { animation: none; }
  .fx > img { filter: none; transform: none; transition: opacity .4s ease; }
}

/* ==========================================================================
   The team's watchlist: a two-way switch above the cards, notes in plain text.
   ========================================================================== */
.wl-tabs { grid-column: 1 / -1; justify-self: start; display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunk); margin-bottom: 2px; }
.wl-tabs button { height: 34px; padding: 0 14px; border-radius: 7px; display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--sans); color: var(--muted); }
.wl-tabs button span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.wl-tabs button[aria-pressed="true"] span { color: var(--muted); }
.sc-note:empty { display: none; }
.sc-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--sunk); }
.sc-note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-note small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sc-note-form { display: grid; gap: 8px; }
.sc-note-form textarea { width: 100%; resize: vertical; min-height: 64px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13.5px/1.45 var(--sans); outline: 0; }
.sc-note-form textarea:focus { border-color: var(--accent); }
.sc-note-form .row { gap: 8px; }
.sc-note-form small { margin-left: auto; font-size: 12px; }
.btn-mini.quiet { border-style: dashed; color: var(--muted); cursor: default; }
.spot-saves { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.save-btn.team-share .ic { width: 17px; height: 17px; }
.save-btn.team-share.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ==========================================================================
   Steadier, readable everywhere (2026-11-20).
   ========================================================================== */
/* Room kept for what arrives with the index (the popular references, the retailer row), so
   the page does not jump under the reader when the board loads. */
.chips { min-height: 30px; }
.scope > .retailers { min-height: 34px; }
@media (max-width: 760px) { .scope > .retailers { min-height: 38px; } }
/* Waiting for the index: filters and sort cannot be opened yet. */
.dd-trigger:disabled, .filters-btn:disabled { opacity: .5; cursor: default; }
/* Targets of at least 24 px on a phone: a card's reference, the since-your-visit links. */
.w-ref .linkish { display: inline-flex; align-items: center; min-height: 24px; }
.since-line button { min-height: 24px; }
/* The top bar fits a 320 px screen: the switches and the account shrink to fit, and below
   360 px the theme follows the system (the toggle goes). */
.topbar-meta { min-width: 0; }
@media (max-width: 360px) {
  .topbar-inner { gap: 8px; padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .topbar-meta { gap: 4px; }
  .topbar-meta #themeBtn { display: none; }
}
/* On a phone the "since your last visit" line is one row that scrolls sideways, like the
   tabs: its counts join the date on the same line, never as new lines that push the board. */
@media (max-width: 760px) {
  .since-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .since-line::-webkit-scrollbar { display: none; }
  .since-line > * { flex: none; }
  .tbl.arch td.n { white-space: normal; }
}
.since-line { min-height: 24px; }
.since-line.reserve { visibility: hidden; }
/* The demo bar is in the page from the start and shows in the demo only (app.html). */
.demo-bar { display: none; }
.is-demo .demo-bar { display: block; }
.is-demo .since-line { display: none; }
/* The popular references stay one row on a phone, scrolling sideways, so their height is
   known before they are drawn. */
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips > * { flex: none; }
}
/* Cards off screen are laid out when they come near it, not on every tap (a phone spent
   most of a tab change laying out cards nobody could see). */
/* Only a height is remembered: a remembered width kept cards wide after the screen narrowed. */
.grid > .ref-card, .grid > .w-card, .grid > .saved-card { content-visibility: auto; contain-intrinsic-height: auto 280px; }
