:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fcfcfb;
  --ink: #111110;
  --ink-2: #52514e;
  --ink-3: #7a7872;
  --line: #e2dfd7;
  --grid: #ebe8e1;
  --accent: #e34948;
  --new: #eb6834;
  --used: #2a78d6;
  --good-bg: #e7f3ec;
  --good: #1f7a45;
  --warn-bg: #fdf1dc;
  --warn: #8a5a00;
  --bad-bg: #fbe6e5;
  --bad: #b3261e;
  --hero-bg: #111110;
  --hero-ink: #f6f4ef;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --ink: #f4f3ee;
    --ink-2: #c3c2b7;
    --ink-3: #97958c;
    --line: #2e2d2a;
    --grid: #262523;
    --accent: #e66767;
    --new: #d95926;
    --used: #3987e5;
    --good-bg: #16291e;
    --good: #6fcf97;
    --warn-bg: #2d2412;
    --warn: #f0c060;
    --bad-bg: #2f1716;
    --bad: #f28b82;
    --hero-bg: #0a0a09;
    --hero-ink: #f4f3ee;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #1a1a19; --ink: #f4f3ee; --ink-2: #c3c2b7; --ink-3: #97958c;
  --line: #2e2d2a; --grid: #262523; --accent: #e66767; --new: #d95926; --used: #3987e5;
  --good-bg: #16291e; --good: #6fcf97; --warn-bg: #2d2412; --warn: #f0c060;
  --bad-bg: #2f1716; --bad: #f28b82; --hero-bg: #0a0a09; --hero-ink: #f4f3ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p a[href^="#s-"], .lbl a { color: var(--ink-3); text-decoration: none; font-size: .8em; vertical-align: super; line-height: 0; }
p a[href^="#s-"]:hover { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; letter-spacing: -.02em; line-height: 1.05; margin: 0; }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 72px 0 64px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; opacity: .7; margin: 0 0 20px; }
.hero h1 { font-size: clamp(48px, 11vw, 128px); font-weight: 900; }
.strike { color: var(--accent); position: relative; }
.lede { max-width: 640px; font-size: clamp(17px, 2.2vw, 21px); margin: 28px 0 0; opacity: .9; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: var(--hero-ink); }
.btn:hover { filter: brightness(1.08); }

/* stats */
.stats { border-bottom: 1px solid var(--line); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 16px 26px 0; border-right: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
@media (min-width: 820px) { .stat, .stat:nth-child(2n) { border-right: 1px solid var(--line); padding: 30px 20px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -.02em; }
.lbl { color: var(--ink-2); font-size: 14px; line-height: 1.4; margin-top: 4px; }

/* blocks */
.block { padding: 72px 16px 8px; }
@media (min-width: 720px) { .block { padding: 88px 32px 8px; } }
.block h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; }
.sub { color: var(--ink-2); max-width: 720px; font-size: 18px; margin: 14px 0 28px; }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.chart-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: baseline; margin-bottom: 12px; }
.fig-title { font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.new { background: var(--new); } .sw.used { background: var(--used); }
.chart { width: 100%; height: 300px; position: relative; }
.chart.small { height: auto; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font: 500 12px Inter, sans-serif; fill: var(--ink-3); }
.chart .val { fill: var(--ink-2); font-weight: 600; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--ink-3); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.bar-new { fill: var(--new); } .bar-used { fill: var(--used); }
.chart .dim { opacity: .45; }
.note { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.5; }

.callout { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.callout-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: 40px; color: var(--ink); letter-spacing: -.02em; }

/* myths */
.myths { display: grid; gap: 18px; }
@media (min-width: 900px) { .myths { grid-template-columns: 1fr 1fr; } }
.myth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.myth-head { display: flex; flex-direction: column; gap: 8px; padding-right: 110px; }
.tag { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }
.myth h3 { font-size: 23px; font-weight: 700; }
.myth p { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }
.myth p strong { color: var(--ink); }
.verdict { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; max-width: 110px; text-align: center; line-height: 1.25; }
.verdict::before { margin-right: 4px; }
.verdict.busted { background: var(--bad-bg); color: var(--bad); }
.verdict.busted::before { content: "✕"; }
.verdict.partly { background: var(--warn-bg); color: var(--warn); }
.verdict.partly::before { content: "!"; }
.tip { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 15px !important; }

/* calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 900px) { .calc { grid-template-columns: 380px 1fr; align-items: start; } }
.inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.inputs label { display: flex; flex-direction: column; justify-content: flex-end; font-size: 13px; font-weight: 500; color: var(--ink-2); gap: 6px; position: relative; }
.inputs .unit { position: absolute; left: 11px; bottom: 11px; color: var(--ink-3); font-size: 14px; pointer-events: none; }
.inputs label:has(.unit) input { padding-left: 24px; }
.inputs .unit.pct { left: auto; right: 11px; }
.inputs label:has(.pct) input { padding-left: 11px; padding-right: 26px; }
.inputs input { font: 500 16px Inter, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
.inputs input:focus { outline: 2px solid var(--used); outline-offset: 1px; border-color: transparent; }
.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.save-lbl { font-size: 14px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.save-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(44px, 8vw, 72px); letter-spacing: -.03em; line-height: 1.05; }
.save-sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.breakdown { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; font-variant-numeric: tabular-nums; }
.breakdown th, .breakdown td { text-align: right; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; color: var(--ink-2); }
.breakdown thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.breakdown thead th.c-new::before, .breakdown thead th.c-used::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.breakdown thead th.c-new::before { background: var(--new); }
.breakdown thead th.c-used::before { background: var(--used); }
.breakdown tr.total td { font-weight: 700; color: var(--ink); border-bottom: 0; }

.fine { padding-left: 20px; color: var(--ink-2); max-width: 760px; }
.fine li { margin: 10px 0; }
#fine-print > p { max-width: 760px; font-size: 18px; }

.sources ol { color: var(--ink-2); font-size: 14px; padding-left: 22px; }
.sources li { margin: 6px 0; }
.sources li:target { background: var(--warn-bg); border-radius: 4px; }
.disclaimer { font-size: 13px; color: var(--ink-3); margin-top: 20px; }

.foot { margin-top: 80px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

.tooltip { position: fixed; z-index: 10; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; padding: 8px 10px; border-radius: 8px; line-height: 1.4; box-shadow: 0 4px 16px rgba(0,0,0,.18); max-width: 240px; }
.tooltip b { font-weight: 700; }

@media (max-width: 560px) {
  .myth-head { padding-right: 0; }
  .verdict { position: static; display: inline-block; margin-top: 12px; max-width: none; }
  .inputs { grid-template-columns: 1fr 1fr; }
}

/* ---------- v2: shared segmented control ---------- */
:root { --mute: #b9b6ad; --sweet-band: rgba(42,120,214,.07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mute: #5d5b55; --sweet-band: rgba(57,135,229,.10); } }
:root[data-theme="dark"] { --mute: #5d5b55; --sweet-band: rgba(57,135,229,.10); }
.sw.mute { background: var(--mute); }
.sw.line { height: 0; border-top: 2px dashed var(--ink-3); background: none; border-radius: 0; width: 16px; }
.bar-mute { fill: var(--mute); }

.pay-toggle, .rank-tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.pay-toggle { grid-column: 1 / -1; justify-self: start; }
.seg { font: 600 14px Inter, sans-serif; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.seg.on { background: var(--ink); color: var(--bg); }
.seg:focus-visible, .age-chips button:focus-visible, .rank-row:focus-visible { outline: 2px solid var(--used); outline-offset: 2px; }

.age-chips { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: -6px; flex-wrap: wrap; }
.age-chips button { font: 600 13px Inter, sans-serif; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.age-chips button.on { border-color: var(--used); color: var(--used); }
.inputs label.loan.off { opacity: .4; }
.cash-note { margin-top: 8px; font-size: 14px; color: var(--good); font-weight: 600; min-height: 1em; }

/* ---------- sweet spot ---------- */
.sweet-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sc-card.hl { border: 2px solid var(--used); }
.sc-lbl { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.sc-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.02em; }
.sc-sub { font-size: 13px; color: var(--ink-3); }
.sweet-why { max-width: 760px; color: var(--ink-2); margin: 20px 0 0; }
.chart .band { fill: var(--sweet-band); }
.chart .band-lbl { fill: var(--used); font-weight: 700; }
@media (max-width: 560px) { .sweet-compare { gap: 8px; } .sc-card { padding: 12px 10px; } }

/* ---------- depreciation by car ---------- */
.dep-tool { display: grid; gap: 20px; }
@media (min-width: 900px) { .dep-tool { grid-template-columns: 300px 1fr; align-items: start; } }
.dep-inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.dep-inputs label { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; color: var(--ink-2); gap: 6px; position: relative; }
.dep-inputs .unit { position: absolute; left: 11px; bottom: 11px; color: var(--ink-3); font-size: 14px; pointer-events: none; }
.dep-inputs input, .dep-inputs select { font: 500 16px Inter, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
.dep-inputs input { padding-left: 24px; }
.dep-results { display: grid; gap: 14px; min-width: 0; }
.dep-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dep-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.dep-lbl { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.dep-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(20px, 3.4vw, 30px); letter-spacing: -.02em; }
.dep-sub { font-size: 12px; color: var(--ink-3); }
.chart-card.flat .chart { height: 260px; }
.chart .line-sel { fill: none; stroke: var(--used); stroke-width: 2.5; }
.chart .line-avg { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .dot-sel { fill: var(--used); stroke: var(--surface); stroke-width: 2; }
.chart .dot-avg { fill: var(--ink-3); stroke: var(--surface); stroke-width: 2; }
.chart .xhair { stroke: var(--ink-3); stroke-width: 1; }
.chart .end-lbl { font-weight: 600; }

.rank-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.rank-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rank-head h3 { font-size: 20px; font-weight: 700; }
.rank-list { display: grid; gap: 4px; position: relative; }
.rank-row { display: grid; grid-template-columns: minmax(120px, 230px) 1fr 52px; align-items: center; gap: 10px; background: none; border: 0; padding: 3px 4px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.rank-row:hover { background: var(--bg); }
.rank-row.sel { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rank-name { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-track { position: relative; height: 16px; }
.rank-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.rank-bar.worse { background: var(--new); } .rank-bar.better { background: var(--used); }
.rank-avg { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed var(--ink-3); }
.rank-val { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dep-stats { grid-template-columns: 1fr 1fr; }
  .dep-stats > div:last-child { grid-column: 1 / -1; }
  .rank-row { grid-template-columns: 118px 1fr 46px; gap: 6px; }
  .rank-name { font-size: 12.5px; }
  .rank-tabs .seg { padding: 7px 10px; font-size: 13px; }
}

/* ---------- v3: punch line, 30-second version, retirement ---------- */
.lede.punch { margin-top: 16px; }
.hl-num { color: var(--accent); white-space: nowrap; }
.verdict-strip { padding-top: 56px; }
.verdict-strip h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 20px; }
.tldr-grid { display: grid; gap: 12px; }
@media (min-width: 820px) { .tldr-grid { grid-template-columns: repeat(3, 1fr); } }
.tldr-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; transition: border-color .15s; }
.tldr-card:hover { border-color: var(--ink-3); }
.tldr-card.hot { background: var(--hero-bg); color: var(--hero-ink); border-color: var(--hero-bg); }
.tldr-card.hot .tldr-num { color: var(--accent); }
.tldr-card.hot .tldr-lbl { color: var(--hero-ink); opacity: .85; }
.tldr-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; line-height: 1; }
.tldr-lbl { color: var(--ink-2); font-size: 15px; line-height: 1.45; }

.invest-link { display: block; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 15px; font-weight: 500; text-decoration: none; }
.invest-link:hover { filter: brightness(.97); }
.invest-link strong { font-weight: 800; }
.myth .tip a { color: var(--ink); font-weight: 600; }

.opp { display: grid; gap: 20px; }
@media (min-width: 900px) { .opp { grid-template-columns: 340px 1fr; align-items: start; } }
.opp-inputs .wide { grid-column: 1 / -1; }
.opp-sync, .opp-hint { margin: -4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.opp-hint a { color: var(--ink-3); text-decoration: none; font-size: .8em; vertical-align: super; line-height: 0; }
.opp-sync button { font: 600 13px Inter, sans-serif; color: var(--used); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.opp-chart { margin-top: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.opp-chart .chart { height: 260px; }
.chart .area-sel { fill: var(--sweet-band); }
.tldr-num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.tldr-card.hot { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- v4: two separate costs ---------- */
:root { --loan: #8a8780; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --loan: #8f8c84; } }
:root[data-theme="dark"] { --loan: #8f8c84; }
.sw.loan { background: var(--loan); }
.opp-inputs label > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.opp-inputs label:has(.unit) .unit { bottom: 11px; }
.split-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.split-list li { display: flex; gap: 8px; align-items: baseline; }
.split-list .sw { flex: none; transform: translateY(1px); }
.split-list b { color: var(--ink); }
.opp-split { display: grid; gap: 12px; }
@media (min-width: 620px) { .opp-split { grid-template-columns: 1fr 1fr; } }
.opp-cost { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.opp-cost.is-new { border: 2px solid var(--new); }
.opp-cost.zero .oc-num { color: var(--good); }
.oc-tag { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.oc-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.oc-num { font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -.02em; line-height: 1.1; margin-top: 10px; }
.opp-cost.is-new .oc-num { color: var(--bad); }
.oc-detail { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.oc-detail b { color: var(--ink); }
.opp-total { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.opp-total strong { color: var(--ink); }
.chart .area-new { fill: var(--new); opacity: .22; }
.chart .area-loan { fill: var(--loan); opacity: .22; }
.chart .line-new { fill: none; stroke: var(--new); stroke-width: 2.5; }
.chart .line-loan { fill: none; stroke: var(--loan); stroke-width: 2; }

/* ---------- v5: lump sum + shared retirement settings ---------- */
.opp-shared { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px; }
.opp-shared label { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; color: var(--ink-2); gap: 6px; position: relative; }
.opp-shared input { font: 500 16px Inter, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
.opp-shared input:focus { outline: 2px solid var(--used); outline-offset: 1px; border-color: transparent; }
.opp-shared .unit.pct { position: absolute; right: 11px; bottom: 11px; color: var(--ink-3); font-size: 14px; pointer-events: none; }
.opp-shared .opp-hint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .opp-shared { grid-template-columns: 1fr 1fr; } .opp-shared label:nth-of-type(3) { grid-column: 1 / -1; } }
.opp-h { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 44px 0 0; }
.opp-h span { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 17px; }
.opp-lead { color: var(--ink-2); max-width: 720px; margin: 10px 0 20px; }
.opp-lead strong { color: var(--ink); }
.lump-big { color: var(--good); }
.lump-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ls { display: flex; flex-direction: column; background: var(--bg); border-radius: 10px; padding: 8px 12px; min-width: 76px; }
.ls span { font-size: 12px; color: var(--ink-3); }
.ls b { font-family: Archivo, sans-serif; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.ls:last-child { background: var(--good-bg); }
.ls:last-child b { color: var(--good); }
.lump-nominal, .lump-fair { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.5; }
.lump-fair { padding-top: 12px; border-top: 1px solid var(--line); }
.lump-nominal b, .lump-fair b, .save-sub b { color: var(--ink); }

/* ---------- v6: older cars, repairs vs. depreciation ---------- */
:root { --repair: #c99a1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --repair: #d9ad3c; } }
:root[data-theme="dark"] { --repair: #d9ad3c; }
.sw.repair { background: var(--repair); }
.bar-repair { fill: var(--repair); }
.bar-loan { fill: var(--loan); }
.chart g.dim { opacity: .45; }
.older-tool { display: grid; gap: 20px; }
@media (min-width: 900px) { .older-tool { grid-template-columns: 300px 1fr; align-items: start; } }
.older-results { display: grid; gap: 14px; min-width: 0; }
.inputs select { font: 500 15px Inter, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; }
.inputs label.wide { grid-column: 1 / -1; }
.inputs label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.inputs label.check input { width: auto; margin: 2px 0 0; accent-color: var(--used); }
.older-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.older-cards .sc-num { font-size: clamp(20px, 3.2vw, 30px); }
.older-take { margin: 0; color: var(--ink-2); font-size: 16px; }
.older-take b { color: var(--ink); }
.older-note { max-width: 900px; }
@media (max-width: 560px) { .older-cards { gap: 8px; } .older-cards .sc-card { padding: 12px 10px; } }

/* ---------- v7: popular picks ---------- */
.pick-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.pick-chips button { font: 600 13px Inter, sans-serif; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.pick-chips button.on { border-color: var(--used); color: var(--used); }
.pick-chips button:focus-visible { outline: 2px solid var(--used); outline-offset: 2px; }
