@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
/* Tokens */
:root {
  --bg: #dfe3ea;
  --surface: #fff;
  --surface-2: #f3f5f8;
  --stage: #e8ebf0;
  --stage-glow: linear-gradient(120deg, color-mix(in srgb, var(--stage) 85%, var(--accent)), color-mix(in srgb, var(--stage) 40%, var(--accent)));
  --row-glow: .5;
  --ink: #0f1115;
  --ink-2: #343d4f;
  --line: #d2d8e1;
  --muted: #4f5a70;
  --line-strong: #b2bbc8;
  --accent: #ffd60a;
  --accent-ink: #0f1115;
  --accent-strong: #b58500;
  --down: #036b34;
  --down-bg: #d6f5e1;
  --up: #a83400;
  --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;
  --stage-glow: linear-gradient(120deg, color-mix(in oklch, var(--stage) 90%, var(--accent)), color-mix(in oklch, var(--stage) 60%, var(--accent)));
  --row-glow: 1;
  --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;
    --stage-glow: linear-gradient(120deg, color-mix(in oklch, var(--stage) 90%, var(--accent)), color-mix(in oklch, var(--stage) 60%, var(--accent)));
    --row-glow: 1;
    --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; }
.delta, .detail-stats strong { font-variant-numeric: tabular-nums; }

/* Layout and header */
.shell { max-width: 1520px; margin: 0 auto; padding: 0 40px; }
.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; }
.admin-link { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.admin-link[hidden] { display: none; }
.admin-link:hover { background: var(--surface); color: var(--ink); }
.admin-link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.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; }

/* Mobile navigation */
.mobile-nav, .label-short { display: none; }

/* Cards and rows */
.row-trim { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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); }
.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); }
.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; }
.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%); }
.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); }
.solid { background: var(--ink); color: var(--bg); border: 0; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500; }

/* Animations */
@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); } }

/* 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 p a { text-decoration: underline; text-underline-offset: 2px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 18px; flex: none; }

/* Price stats, charts and quotes */
.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); }

/* 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; }
.version-table .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) {
  .nav-live { animation: none; }
}

@media (max-width: 1100px) {
  .shell { padding: 0 24px; }
}

@media (max-width: 800px) {
  .admin-link { min-height: 44px; box-sizing: border-box; }
  .shell { padding: 0 16px; }
  .top { gap: 12px; height: 56px; border-bottom: 0; }
  .updated { display: none; }
  .theme-toggle { margin-left: auto; width: 44px; height: 44px; }
  .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:has(.filters:modal, .deals-sheet:modal) { overflow: hidden; }
  .label-long { display: none; }
  .label-short { display: inline; }
  body[data-mobile-view="changes"] .footer { display: none; }
  .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; }
  .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); }
}

@media (max-width: 520px) {
  .top:has(.admin-link:not([hidden])) .app-updated { 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; }
}

/* 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 { margin: 0 0 22px; 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 .tier-pill { display: inline-block; margin: 2px 0 2px 8px; vertical-align: 1px; }
.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); }
.row-links tr, .stat-link { position: relative; }
.row-links td:first-child a::after, .stat-link a::after { content: ""; position: absolute; inset: 0; }
.version-table .go { width: 28px; padding-left: 0; text-align: right; color: var(--muted); }
.row-links tbody tr:hover .go { color: var(--ink); }
.stat-link a { color: inherit; text-decoration: none; }
.stat-link small::after { content: " →"; }
.stat-link:hover { background: var(--surface-2); }
.head-actions { margin-top: 18px; padding-top: 0; border-top: 0; }
.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; }
  .head-actions { display: none; }
  .page-side.plain { margin: 0; }
}
@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; }
}
