/* SparkTracker. Look and feel from design/SparkTracker.html ("Cherry pop"; dark mode is its "Cherry noir"). */
:root {
  --bg: #FFF4F6; --ink: #1A0509; --ink-2: #3D1A22; --muted: #7A4E58; --faint: #B08591;
  --line: #F3CFD7; --line-2: #F8DDE3; --line-3: #EBC1CB; --soft: #FDE6EB; --tint: #FFE0E7;
  --accent: #E0123F; --on-accent: #FFFFFF; --hover: #5A2E38; --raise: #FFFFFF;
  --warn: #9A5B00; --warn-bg: #FFF0D6;
  --shadow: 0 1px 2px rgba(26,5,9,.04), 0 8px 24px rgba(26,5,9,.05);
  /* one spacing scale, on an 8px grid (4px only inside small pills and bars) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --measure: 66ch;   /* longest comfortable line of text */
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12060A; --ink: #FFF0F3; --ink-2: #F0D3DA; --muted: #C79AA6; --faint: #8E6772;
    --line: #3A1620; --line-2: #2A0F17; --line-3: #4A1D29; --soft: #22090F; --tint: #2A0D15;
    --accent: #FF2D55; --on-accent: #12060A; --hover: #FFD1DB; --raise: #1A080E;
    --warn: #FFC266; --warn-bg: #2E1D05;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12060A; --ink: #FFF0F3; --ink-2: #F0D3DA; --muted: #C79AA6; --faint: #8E6772;
  --line: #3A1620; --line-2: #2A0F17; --line-3: #4A1D29; --soft: #22090F; --tint: #2A0D15;
  --accent: #FF2D55; --on-accent: #12060A; --hover: #FFD1DB; --raise: #1A080E;
  --warn: #FFC266; --warn-bg: #2E1D05;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); font-feature-settings: "tnum" 1; }
a { color: var(--ink); }
a:hover { color: var(--hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 8px 8px; background: var(--ink); color: var(--bg); z-index: 99; border-radius: 8px; }
.muted { color: var(--muted); }
.display { font-family: var(--display); }

/* ---------- header ---------- */
.top { max-width: 1200px; margin: 0 auto; padding: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mainnav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mainnav a { text-decoration: none; color: var(--muted); }
.mainnav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.topright { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.topright a, .linkbtn { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.topright a:hover, .linkbtn:hover { color: var(--ink); }
.topright a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.count { display: inline-block; min-width: 18px; padding: 0 4px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; text-align: center; line-height: 18px; }
.banner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.banner p { margin: 0; padding: 8px 16px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--ink-2); }

/* ---------- page frames ---------- */
main { margin: 0 auto; padding: 64px 32px 96px; display: flex; flex-direction: column; gap: 40px; }
main.w720 { max-width: 720px; padding-top: 96px; gap: 40px; }
main.w1000 { max-width: 1000px; }
main.w1100 { max-width: 1100px; }
main.w1200 { max-width: 1200px; }
h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 48px; line-height: 1.06; letter-spacing: -.04em; }
h1.big { font-size: 52px; line-height: 1.05; }
h1.model { font-size: 56px; line-height: 1; letter-spacing: -.045em; }
h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.lede { margin: 0; font-size: 17px; color: var(--muted); max-width: 700px; }
.verdict { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
main > * { min-width: 0; }   /* a wide table scrolls inside its box instead of widening the page */
.headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.note { margin: 0; font-size: 13px; color: var(--muted); max-width: 900px; }
.swipe { display: none; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: rise .35s ease-out both; }
  main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; } main > *:nth-child(4) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- controls ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover { color: var(--ink); background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(26,5,9,.12); font-weight: 500; color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn { all: unset; cursor: pointer; font-size: 14px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-3); text-align: center; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.btn.primary:hover { opacity: .9; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
select { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-3); border-radius: 10px; padding: 8px 8px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slider { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); flex: 1 1 300px; }
.slider input { flex: 1; accent-color: var(--accent); }
.slider output { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--ink); min-width: 48px; text-align: right; }
.field { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

/* ---------- search dialog (top bar icon, Ctrl K) ---------- */
.iconbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 10px; border: 1px solid var(--line-3); background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.iconbtn:hover { color: var(--ink); background: var(--soft); }
.kbd { font-size: 11px; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line-3); border-radius: 6px; white-space: nowrap; }
.searchdlg { position: fixed; inset: 0; z-index: 40; background: rgba(26,5,9,.32); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.searchcard { width: min(640px, 100%); background: var(--bg); border: 1px solid var(--line-3); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
.searchcard label { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; color: var(--muted); }
.searchcard input { all: unset; flex: 1; min-width: 0; font-size: 17px; color: var(--ink); }
.results { margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line); max-height: 50vh; overflow: auto; }
.results[hidden] { display: none; }
.results a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 8px; border-radius: 9px; text-decoration: none; }
.results a:hover, .results a[aria-selected="true"] { background: var(--soft); }
.results small { color: var(--muted); font-size: 13px; }

/* ---------- home ---------- */
.top.wide, .banner.wide { max-width: 1400px; padding-left: 40px; padding-right: 40px; }
main.home { max-width: 1400px; padding: 40px 40px 112px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; row-gap: 48px; align-items: start; }
.hometop { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.hometop h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.04em; max-width: 900px; }
.hometop .lede { margin-top: 8px; font-size: 18px; }
.hometop .checked { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hometop .checked time { color: var(--ink); font-weight: 500; }
.homemain { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.homerail { grid-column: span 4; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.sechead h2 { font-size: 15px; font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select { font-size: 13px; padding: 8px 8px; background: var(--raise); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.meta .who { color: var(--ink); font-weight: 600; }
.autotag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-3); border-radius: 999px; padding: 4px 8px; }

.lead { background: var(--raise); border: 1px solid var(--line); border-radius: 24px; padding: 40px 40px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.lead h2 { font-size: 38px; font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.titlebtn { all: unset; cursor: pointer; }
.titlebtn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--line-3); }
.titlebtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.lead .summary { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.lead blockquote { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; }
.actions a { color: var(--muted); }

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.story:hover { border-color: var(--line-3); transform: translateY(-2px); }
.story:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.story .meta { justify-content: space-between; align-items: flex-start; }
.story .headline { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.story .summary { font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.more { align-self: flex-start; font-size: 14px; color: var(--muted); }

.railbox { background: var(--raise); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px; }
.railhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.railhead h3 { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.railhead a { font-size: 13px; color: var(--muted); }
.railnote { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.raillist { list-style: none; margin: 0; padding: 0; }
.raillist li { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.raillist li:first-child { border-top: 0; padding-top: 4px; }
.raillist .rt { font-size: 15px; font-weight: 600; text-decoration: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.raillist .rt .n { font-size: 12px; font-weight: 400; color: var(--muted); }
.raillist .rs { font-size: 14px; color: var(--ink-2); }
.raillist .rd { font-size: 12px; color: var(--muted); }
.raillist .linkish { all: unset; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.raillist .linkish:hover { text-decoration: underline; }
.raillist .linkish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.raillist b.down { color: var(--ink); }
.raillist b.up { color: var(--accent); }
.tag.gap { font-size: 11px; font-weight: 500; color: var(--accent); }
.attention .rt { color: var(--ink); }
.comps li { padding: 8px 0; gap: 4px; }
.comps .linkish { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .story { animation: rise .35s ease-out both; }
}
@media (prefers-reduced-motion: reduce) { .story { transition: none; } }
@media (max-width: 1100px) {
  main.home { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .homemain, .homerail { grid-column: 1 / -1; }
  .homerail { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
}

/* ---------- moves ---------- */
.moves { display: flex; flex-direction: column; }
.move { all: unset; cursor: pointer; display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.move:last-child { border-bottom: 1px solid var(--line); }
.move:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.move .t { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.move .s { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.move .d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.impact { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.impact i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.impact.critical { color: var(--accent); font-weight: 600; } .impact.critical i { background: var(--accent); border-color: var(--accent); }
.impact.high { color: var(--ink); font-weight: 500; } .impact.high i { background: var(--ink); border-color: var(--ink); }
.empty { padding: 40px 0; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }

/* ---------- pricing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; min-height: 240px; background: var(--tint); color: var(--ink); transition: transform .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-2px); }
.card.hot { background: var(--accent); color: var(--on-accent); }
.card.hot .sub, .card.hot .tag { color: var(--on-accent); opacity: .85; }
.card.quiet { background: none; border: 1px dashed var(--line-3); }
.card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.card .sub { font-size: 13px; color: var(--muted); }
.card .verdict2 { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.card .verdict2.dim { color: var(--faint); font-size: 24px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-3); font-size: 14px; }
.card.hot .prow { border-color: rgba(255,255,255,.35); }
.prow .bar { height: 8px; border-radius: 4px; background: currentColor; opacity: .3; min-width: 4px; }
.prow .bar.best { opacity: 1; background: var(--ink); }
.prow .val { text-align: right; font-weight: 500; white-space: nowrap; }
.prow .tag { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.card .foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.latest { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.latest .k { font-size: 13px; color: var(--muted); }
.latest a.more { margin-left: auto; font-size: 14px; color: var(--muted); }

/* ---------- price table ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%; }
table.prices { width: 100%; min-width: 640px; border-collapse: collapse; }
.prices th, .prices td { padding: 16px 16px; text-align: right; vertical-align: middle; }
.prices thead th { vertical-align: bottom; font-weight: 400; }
.prices thead .pn { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink); }
.prices thead .pt { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.prices tbody tr { border-top: 1px solid var(--line); }
.prices tbody th { text-align: left; padding-left: 0; font-family: var(--display); font-size: 20px; font-weight: 500; white-space: nowrap; }
.prices tbody tr.sel th, .prices tbody tr.sel td.cell { background: var(--tint); }
.prices tbody tr.sel th { box-shadow: -12px 0 0 var(--tint); }
.cell button { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; border-radius: 8px; padding: 4px 4px; }
.cell button:hover .num { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cell button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.lowest { font-size: 12px; font-weight: 600; color: var(--accent); }
.dash { font-size: 14px; color: var(--faint); }
td.rangecol { border-left: 1px solid var(--line); vertical-align: middle; }
td.rangecol .num { font-size: 22px; }
td.rangecol p { margin: 8px 0 0 auto; font-size: 12px; color: var(--muted); max-width: 180px; text-align: right; }

/* ---------- flags ---------- */
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.flag.stale { color: var(--warn); background: var(--warn-bg); padding: 4px 8px; border-radius: 999px; font-weight: 500; }
.flags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; margin-top: 4px; }

/* ---------- side panel ---------- */
.scrim { position: fixed; inset: 0; background: rgba(26,5,9,.32); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.scrim.on { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 21; overflow-y: auto; padding: 32px 32px 48px; transform: translateX(104%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 16px; visibility: hidden; }
.panel.on { transform: none; visibility: visible; }
.panel .close { align-self: flex-end; }
.panel h2 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.panel p { margin: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
blockquote { margin: 0; padding: 8px 16px; border-left: 3px solid var(--line-3); color: var(--ink-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .panel, .scrim, .card { transition: none; } }

/* ---------- login / loading ---------- */
.center { min-height: 80vh; display: grid; place-items: center; padding: 32px 16px; }
.login { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
.login input { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); padding: 16px 16px; border-radius: 14px; border: 1px solid var(--line-3); }
.login .google { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; padding: 16px; border-radius: 14px; }
.login .google[disabled] { opacity: .6; cursor: progress; }
.login .google .g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 14px; }
.login-alt summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.login-alt summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.login-email { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.skel { height: 22px; border-radius: 8px; background: var(--soft); }
@media (prefers-reduced-motion: no-preference) { .skel { animation: pulse 1.2s ease-in-out infinite alternate; } @keyframes pulse { to { opacity: .45; } } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 12px; font-size: 14px; z-index: 30; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .top { padding: 16px; gap: 8px 16px; }
  .topright { margin-left: 0; width: 100%; }
  .banner { padding: 0 16px; }
  main, main.w720 { padding: 40px 16px 64px; gap: 32px; }
  h1, h1.big { font-size: 34px; }
  h1.model { font-size: 40px; }
  .move { grid-template-columns: 1fr; gap: 8px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-width: 0; padding: 24px; }
  .top.wide, .banner.wide { padding-left: 16px; padding-right: 16px; }
  main.home { padding: 24px 16px 72px; row-gap: 32px; }
  .hometop h1 { font-size: 30px; }
  .hometop .checked { white-space: normal; }
  .lead { padding: 24px 24px; border-radius: 18px; }
  .lead h2 { font-size: 26px; }
  .lead .summary { font-size: 16px; }
  .stories { grid-template-columns: 1fr; }
  .homerail { grid-template-columns: minmax(0, 1fr); }
  .filters, .filters select { width: 100%; }
  .filters select { flex: 1; width: auto; }
  .iconbtn .kbd { display: none; }
  .swipe { display: block; }
}

/* ---------- details panel: our position per rival, impact breakdown ---------- */
.srcpill { font-size: 11px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--muted); white-space: nowrap; }
.srcpill.ai { border-color: var(--accent); color: var(--accent); }
.srcpill.data { background: var(--soft); }


/* ---------- features: compare table ---------- */
.cmp { min-width: 720px; }
.cmprow { all: unset; box-sizing: border-box; display: grid; width: 100%; align-items: center; border-bottom: 1px solid var(--line); }
.cmprow > span { padding: 8px 8px; text-align: center; font-size: 14px; color: var(--ink-2); }
.cmprow > span:first-child { text-align: left; padding-left: 0; display: flex; align-items: center; gap: 8px; }
.cmprow > span.us { background: var(--tint); }
.cmprow.head { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--ink); }
.cmprow.head > span { padding: 16px 8px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); }
.cmprow.head > span.us { border-radius: 12px 12px 0 0; }
.cmprow.area { cursor: pointer; }
.cmprow.area > span:first-child { font-size: 15px; font-weight: 500; color: var(--ink); }
.cmprow.area > span.us { font-weight: 600; color: var(--ink); }
.cmprow.area:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cmprow.area .chev { font-style: normal; color: var(--muted); width: 12px; }
.cmprow.feat { border-bottom-color: var(--line-2); }
.cmprow.feat > span:first-child { padding-left: 24px; }
.linkbtn.feat { font-size: 14px; color: var(--ink-2); text-align: left; }
.linkbtn.feat:hover { color: var(--ink); text-decoration: underline; }
.mark { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; color: var(--ink); }
.mark small { font-size: 11px; color: var(--muted); }
.mark.weak { opacity: .7; }
.mark.none { color: var(--faint); }
.mark.unk { font-size: 12px; color: var(--muted); }
.mark .pill { font-size: 11px; font-weight: 500; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--ink); }

/* ---------- competitors ---------- */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ccard { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; padding: 24px 24px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.ccard:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--line-3); }
.ccard .meta { justify-content: space-between; }
.ccard .name { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ccard .sub { font-size: 13px; color: var(--muted); }
.ccard .latest { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.ccard .latest small { font-size: 12px; color: var(--muted); }
.ccard .stats { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.ccard .stats b { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .ccard { animation: rise .35s ease-out both; } }
@media (prefers-reduced-motion: reduce) { .ccard { transition: none; } }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.stat .n { font-family: var(--display); font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat .l { font-size: 14px; color: var(--ink-2); }
.stat .s { font-size: 12px; color: var(--muted); }
.featlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.featlist li { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.featlist .linkbtn, .featlist a { font-size: 15px; color: var(--ink); text-align: left; text-decoration: none; }
.featlist .linkbtn:hover, .featlist a:hover { text-decoration: underline; }
.featlist small { font-size: 12px; color: var(--muted); }
.areabars { display: flex; flex-direction: column; gap: 8px; }
.areabar { display: grid; grid-template-columns: minmax(160px, 260px) 1fr 64px; gap: 16px; align-items: center; font-size: 14px; }
.areabar .an { color: var(--ink-2); }
.areabar .track { position: relative; height: 10px; border-radius: 5px; background: var(--soft); }
.areabar .track .them { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--ink); }
.areabar .track .usmark { position: absolute; top: -4px; width: 3px; height: 18px; border-radius: 2px; background: var(--accent); transform: translateX(-1px); }
.areabar .av { text-align: right; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .stats3 { grid-template-columns: 1fr; }
  .areabar { grid-template-columns: 1fr 64px; }
  .areabar .an { grid-column: 1 / -1; }
  .ccards { grid-template-columns: 1fr; }
}

/* ---------- admin: review and health ---------- */
.raillist li.hl .rt b { font-weight: 500; color: var(--ink-2); font-size: 14px; text-align: right; }
.raillist li.hl.bad { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }
.raillist li.hl.warn { box-shadow: inset 3px 0 0 var(--warn); padding-left: 8px; }
.raillist .rd a { color: var(--muted); overflow-wrap: anywhere; }
details.allpages { border-top: 1px solid var(--line); padding-top: 16px; }
details.allpages summary { cursor: pointer; font-size: 14px; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; min-width: 560px; }
table.plain th, table.plain td { text-align: left; padding: 8px 8px 8px 0; border-top: 1px solid var(--line-2); }
table.plain th { color: var(--muted); font-weight: 500; }

/* ---------- the same pattern on every page: heading, toolbar, content ---------- */
.pagehead { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.pagehead .lede, .lede { max-width: var(--measure); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.chiplabel { font-size: 14px; color: var(--muted); margin-right: var(--s1); }
.viewswitch { display: flex; }
.callout { margin: 0; padding: var(--s2) var(--s3); border-radius: 12px; background: var(--warn-bg); color: var(--ink); font-size: 14px; line-height: 1.55; max-width: var(--measure); }
.small { font-size: 13px; }
p.small { margin: 0; }

/* ---------- impact label in lists ---------- */
.impact > span { display: inline-flex; flex-direction: column; line-height: 1.25; }
.impact .prov { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ---------- details sidebar: one shape everywhere ---------- */
.panel { width: min(520px, 100%); padding: var(--s3) var(--s5) var(--s6); gap: var(--s3); }
.phead { display: flex; flex-direction: column; gap: var(--s2); }
.phead h2 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.phead .unit { font-size: 18px; font-weight: 400; color: var(--muted); }
.phead .actions { gap: var(--s1); }
.pblock { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.pblock h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pblock p { margin: 0; max-width: var(--measure); line-height: 1.55; }
.pblock .lead2 { font-size: 17px; color: var(--ink); }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--s1); font-size: 14px; color: var(--muted); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-3); font-size: 12px; line-height: 1; }
.fold[open] > summary::before { content: "−"; }
.fold > summary:hover { color: var(--ink); }
.foldbody { padding-top: var(--s2); display: flex; flex-direction: column; gap: var(--s2); }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s2); border: 1px solid var(--line-3); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; }
.linkrow:hover { background: var(--soft); color: var(--ink); }
.linkrow small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.linkrow .host { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }
.reasons li { position: relative; padding-left: var(--s3); line-height: 1.45; }
.reasons li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.reasons.warn li::before { background: var(--warn); }
.panel ul.who { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); font-size: 14px; }
.panel ul.who li { padding-top: var(--s1); border-top: 1px solid var(--line-2); }
.panel ul.who li:first-child { border-top: 0; padding-top: 0; }
.panel .q { display: block; margin-top: 4px; }
.linkbtn.inline { color: var(--ink); font-size: 14px; text-align: left; }
.linkbtn.inline:hover { text-decoration: underline; }
.kv { grid-template-columns: 136px minmax(0, 1fr); gap: var(--s1) var(--s2); }
.srclink { font-size: 14px; }

/* impact explained: level, a four-band bar, plain reasons; the numbers fold away */
.impactbox { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.ibhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--tint); color: var(--ink); }
.badge.critical { background: var(--accent); color: var(--on-accent); }
.badge.high { background: var(--ink); color: var(--bg); }
.badge.low { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); }
.provchip { font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px dashed var(--faint); color: var(--muted); }
.mtrack { display: flex; gap: 4px; }
.mtrack span { flex-basis: 0; height: 8px; border-radius: 4px; background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mtrack i { display: block; height: 100%; background: var(--muted); }
.meter.high .mtrack i { background: var(--ink); }
.meter.critical .mtrack i { background: var(--accent); }
.mlabels { display: flex; gap: 4px; margin-top: var(--s1); font-size: 12px; color: var(--faint); }
.mlabels span { flex-basis: 0; }
.mlabels .cur { color: var(--ink); font-weight: 600; }
table.parts { width: 100%; border-collapse: collapse; font-size: 13px; }
table.parts td b { font-weight: 600; }
.srcline { display: block; margin-top: 4px; }
table.parts th, table.parts td { text-align: left; padding: var(--s1) var(--s1) var(--s1) 0; border-top: 1px solid var(--line-2); vertical-align: top; }
table.parts th { font-weight: 500; color: var(--ink-2); width: 34%; }

/* ---------- review queue: calm cards; colour only for the impact level ---------- */
.rcards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.rcard { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: var(--s4); padding: var(--s3) var(--s4); border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.rbody { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.rquiet { margin: 0; font-size: 13px; color: var(--muted); }
.rcard h2 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; max-width: var(--measure); }
.rsum { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rside { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); }
.rbtns { display: flex; flex-direction: column; gap: var(--s1); }
.rside .linkbtn { text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.rcard.done { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s2) var(--s4); background: var(--soft); border-style: dashed; }
.rcard.done p { margin: 0; font-size: 14px; color: var(--ink-2); }
.decided { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.decided li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s2); padding: var(--s1) 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.decided .dstate { width: 72px; flex: none; font-size: 13px; color: var(--muted); }
.decided .linkbtn.undo { margin-left: auto; }
.nolist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s1); }

/* ---------- features: proof by area ---------- */
.quiet { margin: 0; padding: var(--s2) var(--s3); border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.quiet b { color: var(--ink); }
.areasec { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.areasec > h2, .unknown > h2 { font-size: 20px; font-weight: 600; }
.prooflist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.prow2 { display: flex; flex-direction: column; gap: 4px; padding: var(--s2) 0; border-top: 1px solid var(--line-2); }
.prow2:first-child { border-top: 0; padding-top: 0; }
.pname { all: unset; cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1); font-size: 16px; font-weight: 500; color: var(--ink); }
.pname:hover { text-decoration: underline; text-underline-offset: 4px; }
.pname:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.pname .plain { font-size: 12px; font-weight: 400; color: var(--muted); }
.pwhy { font-size: 13px; color: var(--muted); }
.pwhy a { color: var(--muted); }
.pquote { font-size: 14px; color: var(--ink-2); max-width: var(--measure); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2hconf { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2); border-radius: 12px; border: 1px solid var(--line-3); }
.unknown { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); padding: var(--s3); border-radius: 16px; border: 1px dashed var(--line-3); }
.unknown > p { margin: 0; max-width: var(--measure); }
.unknown h3 { margin: 0; font-size: 15px; font-weight: 600; }
.plainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.unknown .foldbody p { margin: 0; line-height: 1.55; }

@media (max-width: 720px) {
  .panel { padding: var(--s2) var(--s2) var(--s5); }
  .phead h2 { font-size: 24px; }
  .impactbox { padding: var(--s2); }
  .kv { grid-template-columns: 112px minmax(0, 1fr); }
  .rcard { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s3) var(--s2); }
  .rcard h2 { font-size: 19px; }
  .rside { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .rbtns { flex-direction: row; order: 3; width: 100%; }
  .rbtns .btn { flex: 1; }
  .rcard.done { padding: var(--s2); }
  .unknown { padding: var(--s2); }
  .toolbar { align-items: flex-start; }
}
