/* Tokens */
:root {
  --bg: #dfe3ea;
  --surface: #fff;
  --surface-2: #f3f5f8;
  --stage: #e8ebf0;
  --ink: #0f1115;
  --ink-2: #343d4f;
  --line: #d2d8e1;
  --muted: #4f5a70;
  --line-strong: #b2bbc8;
  --accent: #ffd60a;
  --accent-ink: #0f1115;
  --accent-strong: #b58500;
  --down: #047a3c;
  --down-bg: #d6f5e1;
  --up: #bb3a00;
  --up-bg: #ffe3d1;
  --flat-bg: #dfe3ea;
  --chart-fill: #2f5bd30e;
  --shadow: 0 1px 0 #0000000a, 0 12px 32px -18px #00000040;
  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #191c22;
  --surface-2: #1e2229;
  --stage: #242830;
  --ink: #eceff4;
  --ink-2: #c8cfdc;
  --muted: #98a2b6;
  --line: #292e38;
  --line-strong: #3c414e;
  --down: #5cd194;
  --down-bg: #143222;
  --up: #f3925f;
  --up-bg: #3b2114;
  --flat-bg: #262a33;
  --accent: #ffd02e;
  --accent-strong: var(--accent);
  --chart-fill: #8ab4ff14;
  --shadow: inset 0 1px 0 #ffffff0d, 0 14px 34px -18px #000000b0;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #191c22;
    --surface-2: #1e2229;
    --stage: #242830;
    --ink: #eceff4;
    --ink-2: #c8cfdc;
    --muted: #98a2b6;
    --line: #292e38;
    --line-strong: #3c414e;
    --down: #5cd194;
    --down-bg: #143222;
    --up: #f3925f;
    --up-bg: #3b2114;
    --flat-bg: #262a33;
    --accent: #ffd02e;
    --accent-strong: var(--accent);
    --chart-fill: #8ab4ff14;
    --shadow: inset 0 1px 0 #ffffff0d, 0 14px 34px -18px #000000b0;
    color-scheme: dark;
  }
}

/* Base */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.num, .price, .stats strong, .delta, .detail-stats strong { font-variant-numeric: tabular-nums; }
.text-button { border: 0; background: none; padding: 2px; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Layout and header */
.shell { max-width: 1520px; margin: 0 auto; padding: 0 40px; }
.workspace { display: grid; padding: 0 0 64px; border-top: 1px solid var(--line); grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.top { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variation-settings: "wdth" 112; }
.brand b { font-weight: 800; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px; font-variation-settings: "wdth" 125; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { position: relative; border: 0; background: none; padding: 8px 12px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav [aria-current="page"] { color: var(--ink); }
.nav [aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--ink); }
.nav em { font-style: normal; font-size: 12px; margin-left: 4px; padding: 1px 6px; border-radius: 10px; background: var(--flat-bg); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.updated { margin-left: auto; font-size: 13px; font-weight: 600; }
.app-updated { margin: 0 0 0 auto; font-weight: 400; color: var(--muted); }
.app-updated strong { color: var(--ink); font-weight: 600; }
.theme-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.theme-toggle:hover { background: var(--line); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }

/* Intro */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 20px 0; }
.intro h1 { margin: 0; line-height: 1; letter-spacing: -.035em; font-weight: 700; font-variation-settings: "wdth" 115; white-space: nowrap; font-size: clamp(28px, 2.8vw, 38px); }
.intro-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.stats { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.stats > div, .deals { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 84px; padding: 10px 14px; }
.stats > div + div, .stats .deals { border-left: 1px solid var(--line); }
.stats strong { font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 108; font-size: 22px; }
.stats span { font-size: 12px; color: var(--muted); }
.deals { position: relative; border: 0; text-align: left; background: var(--accent); color: var(--accent-ink); min-width: 84px; transition: filter .15s; }
.deals span { color: inherit; opacity: .75; }
.deals i { position: absolute; top: 9px; right: 14px; font-style: normal; font-size: 18px; transition: transform .15s; }
.deals:hover { filter: brightness(.97); }
.deals:hover i { transform: translateX(3px); }
.deals[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.deals[aria-pressed="true"] i { transform: rotate(90deg); }
.stats .deals { min-width: 140px; }

/* Filters */
.filters { position: sticky; top: 0; inset: auto; align-self: start; width: auto; height: auto; max-width: none; max-height: 100vh; margin: 0; padding: 20px 0 24px; border: 0; background: none; color: inherit; overflow-y: auto; scrollbar-width: thin; }
.filter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.filter-head-actions { display: flex; align-items: center; gap: 12px; }
.filters-close { display: none; }
.filter-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.field { margin-bottom: 18px; }
.field > label, .filter-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field select, .budget input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 10px; font-size: 13px; min-height: 38px; }
.budget { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.budget label { flex: 1; min-width: 0; }
.budget input::placeholder { color: var(--muted); }
.type-options { display: flex; flex-wrap: wrap; gap: 5px; }
.type-options button { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 12.5px; padding: 6px 11px; color: var(--ink-2); }
.type-options button:hover { border-color: var(--line-strong); }
.type-options .active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-section { padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }
.check { display: flex; align-items: start; gap: 9px; font-size: 13px; line-height: 1.35; margin-bottom: 11px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--ink); margin: 1px 0 0; width: 15px; height: 15px; flex: none; }
.check small { color: var(--muted); font-size: 12px; }
.multi-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 10px; font-size: 13px; min-height: 38px; text-align: left; color: var(--muted); }
.multi-trigger.has-value { color: var(--ink); font-weight: 600; }
.multi-trigger:hover { border-color: var(--line-strong); }
.multi-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-more { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; line-height: 17px; font-variant-numeric: tabular-nums; }
.multi-trigger svg { width: 13px; height: 13px; flex: none; color: var(--muted); transition: transform .15s; }
.multi-trigger[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-2); }
.multi-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.multi-trigger:focus-visible { outline-offset: 1px; }
.multi-panel { position: fixed; inset: auto; margin: 0; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.multi-panel:popover-open { display: flex; flex-direction: column; }
.multi-search { flex: none; width: auto; margin: 8px 8px 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; min-width: 0; background: var(--surface-2); }
.multi-search::placeholder { color: var(--muted); }
.multi-options { flex: 0 1 auto; min-height: 0; padding: 4px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.field label.multi-option { display: flex; align-items: center; gap: 9px; padding: 7px 12px; margin: 0; font-size: 13px; font-weight: 400; color: var(--ink); cursor: pointer; }
.multi-option[hidden], .multi-no-options[hidden], .multi-panel-foot[hidden] { display: none !important; }
.multi-option:hover, .multi-option:has(:focus-visible) { background: var(--surface-2); }
.multi-option:has(:checked) span { font-weight: 600; }
.multi-option input { accent-color: var(--ink); width: 15px; height: 15px; flex: none; margin: 0; }
.multi-option input:focus-visible { outline: none; }
.multi-option span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-option small { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.multi-panel-foot { flex: none; display: flex; justify-content: flex-end; padding: 6px 8px; border-top: 1px solid var(--line); }
.multi-clear { border: 0; background: none; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 5px 8px; }
.multi-clear:hover { background: var(--surface-2); color: var(--ink); }
.multi-no-options { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.more-filters { margin-top: 4px; }
.more-filters summary { padding: 6px 0 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.more-filters[open] summary { color: var(--ink); }
.field-hint { margin: 7px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* Results toolbar */
.results { padding-top: 20px; min-width: 0; }
.results-bar { display: flex; gap: 10px; align-items: center; }
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; pointer-events: none; }
.search-wrap input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; }
.search-wrap input:hover { border-color: var(--line-strong); }
.search-wrap input::placeholder { color: var(--muted); }
.select-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sort { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; height: 44px; padding: 0 10px; }
.results-meta { display: flex; align-items: center; font-size: 13px; color: var(--muted); margin: 14px 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.results-meta strong { color: var(--ink); font-weight: 600; }
.results-summary { display: flex; gap: 12px; align-items: center; flex: none; margin-left: auto; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters:not(:empty) { margin-bottom: 14px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 16px; padding: 4px 6px 4px 11px; font-size: 12.5px; color: var(--ink); }
.active-filters button::after { content: "×"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--flat-bg); color: var(--muted); font-size: 13px; line-height: 1; }
.active-filters button:hover::after { background: var(--ink); color: var(--bg); }
.mobile-filter, .filters-done { display: none; }
.results-meta .active-filters { display: contents; }
.results-meta .active-filters:not(:empty) { margin-bottom: 0; }
.browse-toolbar { display: contents; }
.mobile-nav, .mobile-view-heading, .mobile-deals, .label-short { display: none; }
.density { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.density button { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.density button:hover { color: var(--ink); }
.density button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.density svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* List */
.grid.compact { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.grid.compact:has(.empty) { border: 0; background: none; }
.car-row { display: flex; align-items: center; gap: 4px; padding-right: 8px; border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 76px; }
.car-row:last-child { border-bottom: 0; }
.row-link { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 4px 10px 12px; color: inherit; text-decoration: none; }
.row-link:active { background: var(--surface-2); }
@media (hover: hover) {
  .row-link:hover { background: var(--surface-2); }
}
.row-link:focus-visible { outline-offset: -3px; }
.model-image.row-image { width: 76px; height: 48px; margin: 0; border-radius: 8px; }
.model-image.row-image img { transform: scale(1.15) translateY(4%); }
.row-image .image-fallback svg { width: 80%; }
.row-name { min-width: 0; }
.row-name strong { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-trim { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; font-size: 12px; color: var(--muted); }
.row-meta:empty { display: none; }
.row-meta .row-specs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta .deal-tag, .row-meta .change-tag { flex: none; }
.row-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.row-price strong { font-size: 16px; font-weight: 650; white-space: nowrap; }
.row-price .delta { font-size: 12.5px; }
.row-price s { font-size: 12px; color: var(--muted); }
.car-row .save-button { flex: none; width: 40px; height: 40px; margin: 0; }
.grid.compact:not(.table) .row-link { position: relative; isolation: isolate; }
.grid.compact:not(.table) .row-chart { position: absolute; z-index: -1; inset: 14px 6px 14px auto; width: min(36%, 160px); pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.grid.compact:not(.table) .row-chart:has(.chart-empty), .grid.compact:not(.table) .row-chart :is(.chart-typical, .chart-current) { display: none; }
.grid.compact:not(.table) .row-chart :is(.spark, .sparkline) { height: 100%; margin: 0; }
.grid.compact:not(.table) .row-chart .chart-line { stroke: var(--muted); stroke-width: 1.2; opacity: .25; }
.grid.compact:not(.table) .row-chart .chart-area { opacity: .4; }
.grid.compact:not(.table) .row-chart .spark-now { width: 6px; height: 6px; margin: -3px -3px 0 0; box-shadow: none; opacity: .4; }
.list-head { display: none; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; content-visibility: auto; contain-intrinsic-size: auto 510px; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-main { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 0; }
.card-main > :has(+ .facts) { margin-bottom: 12px; }
.card-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.car-make { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tier-pill { font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tier-pill[data-tier="Top"] { border-color: var(--ink); color: var(--ink); }
.save-button { margin-left: auto; width: 32px; height: 32px; margin-right: -6px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; padding: 0; }
.save-button:hover { background: var(--surface-2); color: var(--ink); }
.save-button svg { width: 18px; height: 18px; }
.save-button.saved { color: var(--ink); }
.save-button.saved svg path { fill: var(--accent); stroke: var(--ink); }
.card h2 { margin: 4px 0 2px; font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "wdth" 118; }
.card h2 a { all: unset; cursor: pointer; }
.card h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card h2 a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.trim { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.specs { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.specs span + span::before { content: "·"; margin-right: 6px; }
.model-image { position: relative; height: 128px; margin: 12px -4px 0; border-radius: 10px; background: var(--stage); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.model-image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12) translateY(4%); }
.image-fallback { display: none; flex-direction: column; align-items: center; gap: 6px; width: 100%; color: var(--muted); font-size: 11.5px; }
.image-fallback svg { width: min(66%, 230px); height: auto; overflow: visible; }
.ph-body { fill: var(--surface); stroke: var(--muted); stroke-width: 1.25; stroke-linejoin: round; }
.ph-glass { fill: var(--stage); stroke: var(--muted); stroke-width: 1; stroke-linejoin: round; }
.ph-wheel { fill: var(--ink-2); opacity: .55; }
.ph-hub { fill: var(--stage); }
.ph-ground { stroke: var(--line-strong); stroke-width: 1; stroke-linecap: round; }
.model-image.failed img { display: none; }
.model-image.failed .image-fallback { display: flex; }
.detail-image .image-fallback span, .row-image .image-fallback span { display: none; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 0; }
.price { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 106; }
.price small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: auto 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.facts > div { background: var(--surface); padding: 8px 10px; min-width: 0; }
.facts dt { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts dd { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.delta.down { color: var(--down); }
.delta.up { color: var(--up); }
.delta.flat, .delta.thin { color: var(--muted); font-weight: 500; }
.deal-tag { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 10px; background: var(--down-bg); color: var(--down); white-space: nowrap; }
.spark { position: relative; margin: 14px 0 4px; }
.sparkline { display: block; width: 100%; height: 52px; overflow: visible; }
.sparkline * { vector-effect: non-scaling-stroke; }
.spark-now { position: absolute; right: calc(6 / 290 * 100%); width: 8px; height: 8px; margin: -4px -4px 0 0; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 2px var(--surface); }
.spark-now.up { background: var(--up); }
.chart-empty { height: 52px; margin: 14px 0 4px; display: grid; place-items: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.range-note { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-foot { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 16px; margin-top: 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.card-foot small { font-size: 12px; color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; }
.detail-button, .source-link { border: 0; background: none; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.source-link { font-weight: 500; color: var(--muted); }
.detail-button:hover, .source-link:hover { background: var(--line); color: var(--ink); }
.card-change { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; padding: 56px 20px; }
.empty h2 { margin: 0 0 6px; font-size: 20px; font-weight: 650; }
.empty p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.empty button, .solid { background: var(--ink); color: var(--bg); border: 0; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500; }

/* Recent changes */
.changes { border: 1px solid var(--line); background: var(--surface); overflow: hidden; margin: 14px 0 0; border-radius: 10px; }
.changes-head { display: flex; align-items: center; flex-wrap: wrap; padding: 9px 12px; gap: 8px; }
.changes-title { display: flex; align-items: center; margin-right: auto; min-width: 0; gap: 6px; }
.changes-title h2 { margin: 0; font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -.01em; white-space: nowrap; font-size: 14px; }
.changes-title small { color: var(--muted); font-size: 12.5px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); animation: live-glow 2.8s ease-in-out infinite; }
.live-dot.idle { background: var(--line-strong); animation: none; }
@keyframes live-glow { 0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 5px 1px color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes nav-glow { 0%, 100% { box-shadow: 0 0 0 2px var(--surface); } 50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px color-mix(in srgb, var(--down) 25%, transparent); } }
.changes-link { border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--ink); padding: 4px 2px; white-space: nowrap; }
.changes-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.changes-toggle { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); padding: 4px 7px; white-space: nowrap; }
.changes-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.changes-toggle:hover { color: var(--ink); }
.period { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--surface-2); }
.period button { border: 0; background: none; border-radius: 7px; padding: 4px 9px; font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: baseline; white-space: nowrap; }
.period em { font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.period button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.period button[aria-pressed="true"] em { color: inherit; opacity: .7; }
.period button:disabled { color: var(--line-strong); cursor: default; }
.period button:disabled em { color: inherit; }
.changes-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.changes-col + .changes-col { border-left: 1px solid var(--line); }
.col-head { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid transparent; }
.col-name { margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-count { font-variant-numeric: tabular-nums; color: var(--ink); }
.col-go { text-transform: none; letter-spacing: 0; color: var(--ink); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.col-head:hover, .col-head[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.col-head:hover .col-go, .col-head[aria-pressed="true"] .col-go { opacity: 1; }
.col-head[aria-pressed="true"] { border-bottom-color: var(--accent-strong); }
.col-head:disabled { cursor: default; opacity: .55; background: none; }
.col-head:disabled .col-go { display: none; }
.col-head:focus-visible, .changes-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.change-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; border: 0; background: none; padding: 7px 14px; text-align: left; color: var(--ink); }
.change-row:hover { background: var(--surface-2); }
.change-name { min-width: 0; }
.change-name b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.change-name span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.change-side { text-align: right; }
.change-price { display: block; margin-top: 3px; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.change-price b { font-weight: 650; }
.change-price s { margin-right: 5px; font-size: 11.5px; color: var(--muted); }
.changes-none { margin: 0; padding: 10px 14px 12px; font-size: 12.5px; color: var(--muted); }
.change-tag { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.change-tag.drop { background: var(--down-bg); color: var(--down); }
.change-tag.new, .change-tag.back { background: var(--flat-bg); color: var(--ink-2); }
.changes-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.changes-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; border-bottom: 2px solid transparent; padding: 8px 12px 10px; column-gap: 8px; }
.changes-tile + .changes-tile { border-left: 1px solid var(--line); }
.changes-tile strong { grid-row: span 2; align-self: center; font-weight: 700; line-height: 1; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; font-size: 20px; }
.tile-name { font-weight: 650; font-size: 12px; }
.changes-tile:hover, .changes-tile[aria-pressed="true"] { background: var(--surface-2); }
.changes-tile[aria-pressed="true"] { border-bottom-color: var(--accent-strong); }
.changes-tile:disabled { opacity: .5; cursor: default; background: none; }
.changes-tile:disabled strong { color: var(--muted); }
.tile-discount { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; line-height: 1.6; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 18px; flex: none; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }

/* Dialogs */
.detail-dialog { width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 16px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 30px 80px -20px #00000070; }
.detail-dialog::backdrop { background: #0f111599; backdrop-filter: blur(2px); }
.dialog-top { display: flex; align-items: center; gap: 20px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.dialog-top > div:first-child { flex: 1; min-width: 0; }
.dialog-top h2 { margin: 2px 0 4px; font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 118; }
.method-dialog .dialog-top h2 { font-size: 24px; font-variation-settings: "wdth" 108; }
.dialog-top p { margin: 0; color: var(--ink-2); font-size: 14px; }
.close-dialog { align-self: flex-start; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--ink-2); }
.close-dialog:hover { border-color: var(--ink); color: var(--ink); }
.dialog-buttons { display: flex; gap: 8px; align-self: flex-start; flex: none; }
.open-page { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; color: var(--ink-2); }
.open-page:hover { border-color: var(--ink); color: var(--ink); }
.open-page svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-image { width: 200px; height: 100px; margin: 0; flex: none; }
.dialog-content { padding: 22px 26px 26px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.detail-stats > div { padding: 14px 16px; min-width: 0; }
.detail-stats > div + div { border-left: 1px solid var(--line); }
.detail-stats > div:first-child { background: var(--down-bg); }
.detail-stats small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.detail-stats strong { display: block; font-weight: 650; font-size: 22px; letter-spacing: -.02em; font-variation-settings: "wdth" 106; }
.detail-stats > div:first-child strong { font-size: 30px; }
.detail-stats > div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.detail-stats .delta { font-size: 12.5px; }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.chart-title h3, .section-title { margin: 0; font-size: 15px; font-weight: 650; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.legend i { width: 14px; border-top: 2px solid var(--ink); display: inline-block; margin-right: 5px; vertical-align: middle; }
.legend i.typical { border-top: 1.5px dashed var(--muted); }
.legend i.now { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--down); }
.big-chart { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.chart-axis { fill: var(--muted); font-size: 11px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.chart-grid { stroke: var(--line); }
.chart-line { stroke: var(--ink); fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--chart-fill); }
.chart-typical { stroke: var(--muted); stroke-dasharray: 3 4; opacity: .8; }
.chart-current { stroke: var(--down); stroke-dasharray: 2 3; opacity: .7; }
.chart-current.up { stroke: var(--up); }
.chart-dot { fill: var(--ink); }
.chart-now { fill: var(--down); stroke: var(--surface); stroke-width: 2; }
.chart-now.up { fill: var(--up); }
.history-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.history-note strong { color: var(--up); font-weight: 600; }
.section-title { margin: 26px 0 10px; }
.quote-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.quote-table td, .quote-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.quote-table tr:last-child td { border-bottom: 0; }
.quote-table td:first-child { font-variant-numeric: tabular-nums; }
.quote-table small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.method-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.detail-specs span { font-size: 12.5px; padding: 4px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.dialog-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-actions button, .dialog-actions a { font-size: 14px; font-weight: 500; border-radius: 8px; padding: 10px 16px; text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); }
.dialog-actions button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dialog-actions a { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.method-dialog { max-width: 640px; }
.method-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px 20px; margin: 0; }
.method-list dt { font-size: 14px; font-weight: 650; }
.method-list dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* Brand index */
.brand-index { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; }
.brand-index h2 { margin: 0 0 14px; font-size: 15px; font-weight: 650; }
.brand-index ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.brand-index a { color: var(--ink); text-decoration: none; }
.brand-index a:hover { text-decoration: underline; }
.brand-index small { color: var(--muted); font-size: 12px; }
.brand-index [aria-current] { font-weight: 650; }
.home-index { margin-top: 40px; }
.home-index .brand-index { margin-top: 0; }
.home-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px 48px; border-top: 1px solid var(--line); padding: 24px 0 8px; }
.home-lists h2 { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.home-list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.home-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.home-list li:first-child { border-top: 0; }
.home-list a { color: var(--ink); text-decoration: none; }
.home-list a:hover { text-decoration: underline; }
.home-list li > a:not(.home-list-type) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-list-type { flex: 0 0 104px; font-weight: 650; }
.home-list strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.home-list .delta { flex: 0 0 auto; }
.version-table .row-trim, .home-list .row-trim { font-weight: 400; }
.section-more { margin: 10px 0 0; font-size: 14px; }
.section-more a { color: var(--ink); font-weight: 600; }

/* Responsive */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .nav-live { animation: none; }
}

@media (min-width: 801px) {
  .results { container: results / inline-size; }
  .grid.table { --cols: 84px minmax(0, 1fr) 104px 112px 84px 92px 120px; }
  .list-head, .grid.table .row-link { grid-template-columns: var(--cols); column-gap: 16px; }
  .list-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .list-head { display: grid; align-items: end; padding: 10px 56px 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .grid.table .car-row { contain-intrinsic-size: auto 82px; }
  .grid.table .row-image { width: 84px; height: 52px; }
  .grid.table .row-name strong { font-size: 15px; white-space: normal; }
  .grid.table .row-trim { font-size: 12.5px; }
  .grid.table .row-specs { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--muted); }
  .grid.table .row-specs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid.table .row-specs span:first-child { color: var(--ink-2); }
  .grid.table .row-price { flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; }
  .row-num { text-align: right; font-variant-numeric: tabular-nums; }
  .row-num .delta { font-size: 13.5px; }
  .row-chart .spark { margin: 0; }
  .row-chart .sparkline { height: 32px; }
  .row-chart .chart-empty { height: 32px; margin: 0; font-size: 11px; text-align: center; }
  @container results (max-width: 959px) {
    .grid.table { --cols: 72px minmax(0, 1fr) 96px 104px 76px 84px; }
    .grid.table .row-image { width: 72px; height: 46px; }
    .grid.table .row-chart { display: none; }
  }
  @container results (max-width: 759px) {
    .grid.table { --cols: 72px minmax(0, 1fr) 104px 76px 84px; }
    .list-head span:nth-child(3) { display: none; }
    .grid.table .row-link { row-gap: 4px; }
    .grid.table .row-link > * { grid-row: 1 / 3; }
    .grid.table .row-link > .row-name { grid-row: 1; align-self: end; }
    .grid.table .row-link > .row-specs { grid-row: 2; grid-column: 2; align-self: start; flex-direction: row; gap: 0; }
    .grid.table .row-specs span + span:not(:empty)::before { content: '\00a0· '; }
  }
  @container results (max-width: 639px) {
    .grid.table { --cols: 72px minmax(0, 1fr) 104px 76px; }
    .grid.table :is(.list-head, .row-link) > :nth-child(6) { display: none; }
  }
  .changes-head { padding-bottom: 8px; }
  .changes-tile { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 6px 8px; }
  .changes-tile strong { grid-row: auto; }
  .tile-discount { display: inline-block; padding: 2px 6px; font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; }
  .changes { container-type: inline-size; }
  .changes-col { container-type: inline-size; }
  .changes-head:has(.period) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .changes-head .changes-title { grid-column: 1; grid-row: 1; margin-right: 0; }
  .changes-head .period { grid-column: 2; grid-row: 1; justify-self: center; }
  .changes-head .changes-link { grid-column: 3; grid-row: 1; justify-self: end; }
  @container (max-width: 900px) {
    .tile-discount { max-width: 7ch; }
  }
  @container (max-width: 340px) {
    .change-price s { display: none; }
  }
  @container (max-width: 760px) {
    .changes-head:has(.period) { grid-template-columns: minmax(0, 1fr) auto; }
    .changes-head .changes-link { grid-column: 2; }
    .changes-head .period { grid-column: 1 / -1; grid-row: 2; }
  }
}

@media (max-width: 1100px) {
  .shell { padding: 0 24px; }
  .intro h1 { font-size: 30px; }
  .stats > div { display: none; }
  .stats .deals { border-left: 0; }
}

@media (max-width: 800px) {
  .shell { padding: 0 16px; }
  .top { gap: 12px; height: 56px; border-bottom: 0; }
  .updated { display: none; }
  .theme-toggle { margin-left: auto; width: 44px; height: 44px; }
  .workspace { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .app-updated { display: block; font-size: 12px; white-space: nowrap; }
  .app-updated + .theme-toggle { margin-left: 4px; }
  .top .nav { display: none; }
  body:has(.mobile-nav) .shell { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  body[data-mobile-view] .home-index { display: none; }
  .home-list-type { flex-basis: 88px; }
  .intro { display: none; }
  .deals i { display: none; }
  .filters:not(:modal) { display: none; }
  .filters:modal { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line-strong); border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: 0 -20px 60px -10px #00000060; }
  .filters::backdrop { background: #0f111580; }
  .filter-head { align-items: center; }
  .filter-head-actions #reset { min-height: 44px; }
  .filters-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); }
  .filters-close:hover { border-color: var(--ink); }
  .multi-trigger { min-height: 44px; font-size: 14px; }
  .multi-search { font-size: 16px; }
  .field label.multi-option { min-height: 44px; font-size: 14px; }
  .filters-done { display: block; position: sticky; bottom: 0; width: calc(100% + 32px); margin: 20px -16px 0; border-radius: 0; padding: 16px; font-size: 15px; }
  body:has(.filters:modal) { overflow: hidden; }
  .results { padding-top: 0; }
  .results-bar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; grid-template-areas: "search search filter" "deals sort sort"; padding: 0; gap: 8px; }
  .results-bar .search-wrap { grid-area: search; }
  .mobile-filter { grid-area: filter; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); height: 46px; padding: 0 12px; font-size: 13px; font-weight: 600; }
  .mobile-filter em { font-style: normal; font-size: 11.5px; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--ink); color: var(--bg); text-align: center; font-variant-numeric: tabular-nums; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .mobile-filter[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .sort { width: 100%; }
  .browse-toolbar { display: block; position: sticky; top: 0; z-index: 25; padding: 4px 0 12px; background: var(--bg); }
  .search-wrap input { font-size: 16px; height: 46px; padding-left: 36px; }
  .search-wrap svg { left: 11px; }
  .mobile-deals { grid-area: deals; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--accent); border-radius: 9px; min-width: 0; padding: 9px 10px; min-height: 44px; }
  .mobile-deals span { font-size: 13px; font-weight: 650; opacity: 1; }
  .mobile-deals strong { font-size: 12px; font-weight: 650; background: color-mix(in srgb, currentColor 12%, transparent); padding: 2px 5px; border-radius: 5px; }
  .mobile-deals[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); outline: 2px solid var(--ink); outline-offset: -3px; }
  .sort-control { grid-area: sort; min-width: 0; position: relative; }
  .sort-control .sort { width: 100%; min-width: 0; height: 44px; font-size: 12px; padding: 12px 8px 0; }
  .search-wrap input::placeholder { font-size: 14px; }
  .sort-control > .label-short { display: block; position: absolute; top: 4px; left: 10px; z-index: 1; font-size: 11px; line-height: 12px; pointer-events: none; color: var(--muted); }
  body[data-mobile-view="changes"] .browse-toolbar { display: none; }
  .results-meta { font-size: 13px; display: flex; gap: 10px; margin: 2px 0 12px; }
  .results-meta .active-filters { display: flex; order: 0; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 4px; gap: 6px; scrollbar-width: none; }
  .results-meta .active-filters:empty { display: none; }
  .active-filters button { flex: none; min-height: 32px; }
  .results-summary { order: 1; width: 100%; margin-left: 0; min-height: 28px; }
  #share-results { margin-left: auto; font-size: 13px; min-height: 32px; }
  .density { margin-left: auto; }
  #share-results:not([hidden]) + .density { margin-left: 4px; }
  .density button { width: 36px; height: 32px; }
  body[data-mobile-view="saved"] .mobile-view-heading { display: block; margin: 8px 0 10px; font-size: 24px; }
  .active-filters [data-remove="opportunities"] { display: none; }
  .results-meta .active-filters:not(:has(button:not([data-remove="opportunities"]))) { display: none; }
  #changes { display: none; }
  body[data-mobile-view="changes"] #changes { display: block; background: transparent; border: 0; border-radius: 0; overflow: visible; margin: 10px 0 0; }
  body[data-mobile-view="changes"] #grid, body[data-mobile-view="changes"] .results-meta, body[data-mobile-view="changes"] .footer { display: none; }
  .mobile-changes-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; line-height: 1.15; }
  .mobile-changes-heading p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
  .mobile-change-period { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
  .mobile-change-period button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 10px 6px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 13px; }
  .mobile-change-period em { font-style: normal; font-size: 11px; border-radius: 5px; background: var(--flat-bg); padding: 2px 5px; font-variant-numeric: tabular-nums; }
  .mobile-change-period [aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 650; }
  .mobile-change-period [aria-pressed="true"] em { background: var(--bg); color: var(--ink); }
  .mobile-change-period button:hover:not([aria-pressed="true"]) { background: var(--surface-2); }
  .mobile-change-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; font-size: 13px; color: var(--muted); }
  .mobile-change-summary button { flex: none; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); padding: 9px 12px; min-height: 40px; font-size: 13px; font-weight: 600; }
  .mobile-change-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
  .mobile-change-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; font-size: 15px; font-weight: 650; background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .mobile-change-group h3 span { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }
  .mobile-change-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; gap: 10px 8px; align-items: center; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
  .mobile-change-entry:hover, .mobile-change-entry:active { background: var(--surface-2); }
  .mobile-change-entry:focus-visible { outline-offset: -3px; }
  .mobile-change-vehicle { grid-column: 1 / 3; min-width: 0; }
  .mobile-change-vehicle strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
  .mobile-change-vehicle > span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.4; }
  .mobile-change-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 28px; color: var(--muted); }
  .mobile-change-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; font-variant-numeric: tabular-nums; }
  .mobile-change-price strong { font-size: 17px; font-weight: 650; white-space: nowrap; }
  .mobile-change-price s { font-size: 11px; color: var(--muted); white-space: nowrap; }
  .mobile-change-delta { justify-self: end; }
  .mobile-change-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; min-height: 46px; border: 0; background: var(--surface-2); font-size: 13px; font-weight: 650; color: var(--ink); }
  .mobile-change-action:hover, .mobile-change-summary button:hover { background: var(--flat-bg); }
  .mobile-change-action span { font-size: 18px; }
  .mobile-changes-empty { padding: 28px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
  .mobile-changes-empty h3 { font-size: 17px; margin: 0 0 8px; }
  .mobile-changes-empty p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
  .mobile-nav { position: fixed; z-index: 30; inset: auto 0 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 5px 12px calc(5px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav a { text-decoration: none; position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
  .mobile-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav [aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--surface-2); }
  .mobile-nav [aria-current="page"]::before { content: ''; position: absolute; height: 3px; width: 24px; background: var(--accent-strong); border-radius: 2px; top: 0; }
  .mobile-nav em { font-style: normal; margin-left: 4px; }
  .nav-icon { position: relative; display: flex; }
  .nav-live { display: none; position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 2px var(--surface); animation: nav-glow 2.8s ease-in-out infinite; }
  .mobile-nav [data-fresh] { color: var(--ink); }
  .mobile-nav [data-fresh] svg { stroke: var(--down); }
  .mobile-nav [data-fresh] .nav-live { display: block; }
  .footer { flex-direction: column; align-items: flex-start; }
  .dialog-top, .dialog-content { padding-left: 18px; padding-right: 18px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .detail-stats > div:nth-child(3) { border-left: 0; }
  .detail-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .detail-image { width: 110px; height: 70px; }
  .dialog-top h2 { font-size: 26px; }
  .method-list { grid-template-columns: 1fr; gap: 4px; }
  .method-list dd { margin-bottom: 12px; }
  .detail-dialog .detail-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-dialog .detail-stats > div { padding: 12px 10px; }
  .detail-dialog .detail-stats > div:first-child { grid-column: 1/-1; }
  .detail-dialog .detail-stats > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .detail-dialog .detail-stats > div:nth-child(2) { border-left: 0; }
  .detail-dialog .detail-stats > div:nth-child(3) { border-left: 1px solid var(--line); }
  .detail-dialog .detail-stats strong { font-size: 16px; }
  .detail-dialog .detail-stats > div:first-child strong { font-size: 34px; }
  .detail-dialog .quote-table { display: block; border: 0; }
  .detail-dialog .quote-table tbody { display: block; }
  .detail-dialog .quote-table thead, .detail-dialog .quote-table tr:has(th) { display: none; }
  .detail-dialog .quote-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; gap: 6px 14px; }
  .detail-dialog .quote-table td { border: 0; padding: 0; font-size: 13px; }
  .detail-dialog .quote-table td:nth-child(1) { font-size: 19px; font-weight: 650; }
  .detail-dialog .quote-table td:nth-child(2) { text-align: right; white-space: nowrap; }
  .detail-dialog .quote-table td:nth-child(3)::before { content: attr(data-label) ': '; color: var(--muted); }
  .detail-dialog .quote-table td:nth-child(4) { text-align: right; }
  .detail-dialog .dialog-actions { position: sticky; bottom: -26px; padding: 12px 0; background: var(--surface); flex-direction: row; flex-wrap: wrap; }
  .detail-dialog .dialog-actions a { flex: 1; }
  .detail-dialog .dialog-actions button { padding: 10px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .results-meta { flex-wrap: wrap; }
  .detail-image { display: none; }
  .quote-table td, .quote-table th { padding: 8px 10px; font-size: 12.5px; }
  .dialog-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}

@media (max-width: 360px) {
  .mobile-deals { gap: 4px; padding: 8px 6px; }
  .mobile-deals span { font-size: 12px; }
  .sort-control .sort { font-size: 11px; }
}

/* Static pages */
.documentation { max-width: 760px; }
.documentation p, .feed-fields dd { line-height: 1.65; color: var(--ink-2); }
.feed-fields dt { margin-top: 20px; overflow-wrap: anywhere; }
.feed-fields dd { margin: 6px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 18px 0 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.page { max-width: 1240px; padding: 8px 0 40px; }
.page-head { display: flex; align-items: center; gap: 24px; padding: 14px 0 20px; }
.page-head > div:first-child { flex: 1; min-width: 0; }
.page-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -.025em; font-variation-settings: "wdth" 118; }
.page-trim { display: block; margin-top: 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 550; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); font-variation-settings: "wdth" 100; }
.page-zero { color: var(--muted); font-weight: 600; }
.page-head p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.page-summary { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.detail-stats { background: var(--surface); }
.detail-stats > div:first-child strong { font-size: 24px; }
.page-chart { margin-top: 4px; }
.chart-title h2 { margin: 0; font-size: 15px; font-weight: 650; }
.page-side { margin-top: 26px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.page-side > .section-title:first-child { margin-top: 0; }
.page-side .quote-table { border: 0; border-radius: 0; }
.page-side .quote-table th { background: none; padding-top: 0; }
.page-side .quote-table td:first-child, .page-side .quote-table th:first-child { padding-left: 0; }
.page-side .quote-table td:last-child, .page-side .quote-table th:last-child { padding-right: 0; }
.page-side .detail-specs { margin-top: 14px; }
.page-side .dialog-actions { margin-top: 16px; padding-top: 16px; }
.page-side.plain > .dialog-actions:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-side .quote-table td:nth-child(-n+3) { white-space: nowrap; }
.page-side.plain { padding: 0; border: 0; background: none; }
.page-media .model-image { height: 180px; margin: 0 0 20px; }
.page-media:has(.failed) { display: none; }
.chart-narrow { display: none; }
.version-table .trend { width: 132px; }
.version-table .spark { margin: 0; }
.version-table .sparkline { height: 30px; }
.version-table .chart-empty { height: 30px; margin: 0; border: 0; }
.page-section { margin-top: 12px; }
.page-related { margin-top: 48px; padding: 28px 0 40px; background: var(--surface-2); box-shadow: 0 0 0 100vmax var(--surface-2); clip-path: inset(0 -100vmax); }
.page-related .section-title { margin-top: 0; font-size: 18px; }
.page:has(.page-related) { padding-bottom: 0; }
body:has(.page-related) .footer { border-top: 0; }
.version-table { background: var(--surface); }
.version-table td:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.version-table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.version-table a:hover { text-decoration: underline; }
.version-table tbody tr:hover td { background: var(--surface-2); }
.version-table [aria-current] td { background: var(--surface-2); }
.version-table [aria-current] td:first-child { box-shadow: inset 3px 0 0 var(--accent-strong); }
.version-table .wide { color: var(--ink-2); }
.page-actions { justify-content: flex-start; }
.page-actions a:not(.solid) { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.page-actions a:not(.solid):hover { border-color: var(--ink); }
.page-actions a.solid:hover { opacity: .88; }
.page > .detail-stats { margin-bottom: 26px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.model-card { height: 100%; padding: 16px; color: inherit; text-decoration: none; content-visibility: visible; }
.model-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.model-card h2 { margin: 4px 0 0; font-size: 22px; font-weight: 700; line-height: 1.1; font-variation-settings: "wdth" 118; }
.model-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 14px; }
.model-card-price small { width: 100%; font-size: 12px; color: var(--muted); }
.model-card-price strong { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 106; }
.model-card-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (min-width: 801px) {
  .split-page { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 0 32px; }
  .split-page > .page-head { grid-area: 1 / 1; }
  .split-page > .page-media { grid-area: 1 / 2; align-self: center; }
  .split-page > .page-main, .split-page > .page-side { grid-column: 1 / -1; }
  .page-media .model-image { height: 130px; margin: 0; }
}
@media (min-width: 1200px) {
  .split-page { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; gap: 0 44px; }
  .split-page > .page-media { align-self: start; margin-top: 14px; }
  .split-page > .page-main { grid-area: 2 / 1; }
  .split-page > .page-side { grid-area: 2 / 2; position: sticky; top: 24px; align-self: start; margin-top: 14px; }
  .page-media .model-image { height: 200px; }
  .page-side .quote-table td, .page-side .quote-table th { padding: 10px; }
  .page-side .dialog-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 800px) {
  .version-table .wide { display: none; }
  .page-side { padding: 14px; }
  .cta-bar { position: fixed; z-index: 30; inset: auto 0 calc(67px + env(safe-area-inset-bottom, 0px)); flex-direction: row; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface); }
  .page-side .cta-bar { margin: 0; padding-top: 10px; }
  body:has(.cta-bar) .shell { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .cta-bar a { flex: 1; padding: 11px 8px; font-size: 13.5px; text-align: center; }
}
@media (max-width: 640px) {
  .chart-wide { display: none; }
  .chart-narrow { display: block; }
  .page-related .version-table, .page-related .version-table tbody { display: block; }
  .page-related .version-table thead { display: none; }
  .page-related .version-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .page-related .version-table tr:last-child { border-bottom: 0; }
  .page-related .version-table td { padding: 0; border: 0; white-space: nowrap; }
  .page-related .version-table td:first-child { grid-column: 1 / -1; }
  .page-related .version-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--muted); }
  .page-related .version-table tbody tr:hover td { background: none; }
}
@media (max-width: 520px) {
  .page-actions:not(.cta-bar) { flex-direction: column; align-items: stretch; text-align: center; }
  .page-side .quote-table td, .page-side .quote-table th { padding-left: 6px; padding-right: 6px; }
  .version-table .trend { display: none; }
}
.rank-list { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, 30%); align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: rank; }
.rank-list li::before { content: counter(rank); grid-row: span 2; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-list a { color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { text-decoration: underline; }
.rank-meta { grid-column: 2; font-size: 13px; color: var(--muted); }
.rank-bar { grid-column: 3; grid-row: 1 / span 2; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--accent-strong); }
@media (max-width: 520px) {
  .rank-list li { grid-template-columns: 24px minmax(0, 1fr); }
  .rank-bar { grid-column: 2; grid-row: auto; }
}
