/* 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;
  --buy: #39E6A0; --fair: #6FB6FF; --wait: #FFB84D; --bad: #FF7A85;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --r: 16px; --r-s: 12px;
  --f-big: 'Unbounded', system-ui, sans-serif; --f-ui: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* motion: one rhythm everywhere. Press feedback, small state changes, layout moves; exits run faster than entries */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
  --rail: 320px; --gut: var(--sp-6);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--deep); color: var(--text); font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; 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: 8px; }
.v-BUY { --v: var(--buy); } .v-FAIR { --v: var(--fair); } .v-WAIT { --v: var(--wait); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.vtag { font: 700 10px 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 12px var(--f-ui); flex-wrap: wrap; }
.switch a { padding: 4px 10px; border-radius: 99px; 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 15px 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 16px var(--f-ui); }
.wl-h .t span { color: var(--faint); font-size: 13px; }
.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; color: var(--text); font-size: 16px; }   /* 16px: iOS zooms into smaller inputs */
.chips { display: flex; gap: 6px; 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). */
.pill, .chip, .hchip { --tone: var(--mute); appearance: none; border: 0; margin: 0; font: 600 13px/1 var(--f-ui); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; box-sizing: border-box; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); white-space: nowrap; text-decoration: none; position: relative; }
button.pill, button.chip, button.hchip { cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
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 { width: 8px; height: 8px; border-radius: 3px; background: var(--tone); flex: none; }
.pill .n, .chip b, .hchip b { font: 700 13px/1 var(--f-big); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; margin: 0; }
.chip b { color: var(--faint); }
.pill.stat .n { color: var(--tone); font-size: 15px; }
.pill.live .dot { border-radius: 50%; 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); }
.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: 8px var(--sp-2); border-radius: 10px; width: 100%; box-sizing: border-box; }
.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: 8px; background: #fff; padding: 2px; }
.wi .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi .px { font-size: 14px; font-weight: 600; text-align: right; }
.wi .sub { font-size: 12px; 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: 14px; }

/* ---------- Main ---------- */
main { min-width: 0; padding-bottom: var(--sp-7); }
.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: 10px; background: #fff; padding: 2px; }
.who h1 { font: 600 17px/1.25 var(--f-ui); }
.who p { color: var(--mute); font-size: 13px; }
.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 { font: 700 12px var(--f-big); letter-spacing: .05em; text-transform: uppercase; color: var(--deep); background: var(--v); padding: 7px 12px; border-radius: 10px; }
.big .chg { font-weight: 600; font-size: 15px; }
.big .chg.up { color: var(--buy); } .big .chg.dn { color: var(--bad); }
.when { color: var(--mute); font-size: 13px; 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: 6px 12px; border-radius: 99px; font-weight: 600; font-size: 13px; 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 13px var(--f-ui); color: var(--mute); letter-spacing: .02em; }
.card .lead { font-size: 14px; 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: 4px; 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: 12px; 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: 9px 0; border-top: 1px solid var(--line); }
.is:first-child { border-top: 0; padding-top: 0; }
.is .r { font-weight: 600; }
.is .r small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); }
.is .r small.ok { color: var(--buy); } .is .r small.hi { color: var(--wait); }
.is .p { font: 600 16px var(--f-ui); }
.is.best .p { color: var(--buy); }
.outline { font-size: 13px; color: var(--faint); margin-top: auto; }
.none { color: var(--mute); font-size: 14px; }
.cons b.c { font: 700 30px/1 var(--f-big); letter-spacing: -.03em; }
.cons .sub { font-size: 13px; 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: 9px; 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: 11px; color: var(--mute); transform: translateX(-50%); white-space: nowrap; }
.spread .lb.out { 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: 12px; padding: 4px; gap: 2px; }
.seg button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--mute); }
.seg button[aria-selected=true] { 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: 13px; }
.src .v { text-align: right; font: 600 17px var(--f-ui); }
.src .v small { display: block; font-size: 12px; 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: 14px; }
.sale { display: grid; grid-template-columns: 64px 92px minmax(0, 1fr) auto; gap: var(--sp-3); padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.sale:first-child { border-top: 0; }
.sale .d { color: var(--mute); } .sale .s { font-size: 12px; 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: 12px; }
.stats b { display: block; font: 600 18px var(--f-ui); margin-top: 2px; }
.empty { color: var(--mute); padding: var(--sp-4) 0; font-size: 14px; }

.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: 0; 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: 6px 10px; border-radius: 12px; background: var(--surface); }
  .pick .cur img { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; background: #fff; padding: 2px; flex: none; }
  .pick .cur span { min-width: 0; display: flex; flex-direction: column; }
  .pick .cur b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pick .cur small { font-size: 12px; color: var(--mute); }
  .pick .cur svg { margin-left: auto; flex: none; color: var(--mute); }
  .pick .step { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--mute); flex: none; }
  .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 { flex: 1; text-align: center; padding: 8px 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: 100px; }
  .sheet { display: flex; position: fixed; top: auto; left: 0; right: 0; bottom: 0; height: 86vh; z-index: 20; background: var(--deep); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px #000a; transform: translateY(105%); transition: transform .3s var(--ease); }
  .sheet[data-open] { transform: none; }
  .sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 0; flex: none; }
  .scrim { display: block; position: fixed; inset: 0; background: #0009; z-index: 19; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim[data-open] { opacity: 1; pointer-events: auto; }
  .wi { padding: 10px 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: 3px; font-size: 11px; 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: 50%; display: grid; place-items: center; background: var(--buy); color: var(--deep); margin-top: -20px; 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; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !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: 6px; font-size: 14px; line-height: 1.35; }
.why li { position: relative; padding-left: 18px; 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: 7px; padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #FFD27A;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #FFE29A, #FFB84D 45%, #C98A2B) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 0 0 transparent, 0 0 22px -6px rgba(255, 184, 77, .55); transition: box-shadow .25s, background .25s, color .25s; }
.tab-pro:hover { box-shadow: 0 0 28px -4px rgba(255, 184, 77, .7); }
.tab-pro[aria-selected=true] { color: var(--deep); background: linear-gradient(135deg, #FFE29A, #FFB84D) padding-box, linear-gradient(135deg, #FFE29A, #FFB84D) border-box; box-shadow: 0 0 30px -4px rgba(255, 184, 77, .75); }
.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), rgba(255, 184, 77, .15) 40%, rgba(255, 184, 77, .05)) border-box; border: 1.5px solid transparent; box-shadow: 0 0 40px -18px rgba(255, 184, 77, .6); }
@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: 8px 12px; }
  .tab-pro { padding: 9px 12px; font-size: 13px; }
  .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: minmax(0, 1fr); }   /* the everyday tabs share the width equally */
.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: 13px; color: var(--mute); }

.nohist { height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border-radius: 12px; border: 1px dashed var(--line); color: var(--mute); font-size: 14px; 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: 10px 14px; border-radius: 10px; 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 14px; }
  .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: 14px; color: var(--faint); min-width: 0; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-weight: 600; text-decoration: none; padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 10px; }
.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: 2px; 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: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 640px; transition: background var(--dur-1); }
.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: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.bn-t b { font: 700 20px/1.15 var(--f-big); letter-spacing: -.03em; }
.bn-who { flex: 1; min-width: 160px; font-size: 13px; 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 15px var(--f-ui); }
.is .r { display: flex; align-items: center; gap: 10px; } .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 .linkbtn { 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: 6px; }
  .bnow.none { grid-template-columns: 1fr; grid-template-areas: "price" "act"; } .bnow.none .linkbtn { justify-self: start; }
}
@media (pointer: coarse), (max-width: 760px) { .ranges button, .ranges .lockd { 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: 2px; }
  .ranges button { min-height: 44px; min-width: 44px; padding: 0 10px; }
  .tabbar .seg { padding: 2px; } .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: 6px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--buy); color: var(--deep); font-weight: 700; font-size: 14px; }
.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 */
.seo-sum { max-width: 760px; padding: var(--sp-5) 0; line-height: 1.6; color: var(--mute); }
.seo-sum h1 { font: 700 28px/1.15 var(--f-big); color: var(--text); margin: 8px 0 12px; } .seo-sum h2 { font: 700 17px var(--f-big); color: var(--text); margin: 20px 0 8px; }
.seo-sum .seo-answer { color: var(--text); font-size: 17px; } .seo-sum a { color: var(--text); } .seo-sum dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 14px 0; }
.seo-sum dt { color: var(--faint); } .seo-sum dd { margin: 0; } .seo-sum ul { padding-left: 18px; } .seo-crumbs { font-size: 13px; }
