/* Shared digital instrument-panel theme. */
body.retro-app { background: #191c1b; color: #dad8c7; font-family: 'Courier New', monospace; }
.retro-app > header, .retro-app > footer { background: #151817; border-color: #41453f; }
.retro-app > header nav a { color: #c4c5b4; border-radius: 3px; background: #242824; border-color: #4c5047; font-family: inherit; font-size: 12px; }
.retro-app > header nav a:hover { color: #ffc16d; background: #30352e; }
.retro-app > footer p { color: #aaaE9f; }
.retro-app a:focus-visible, .retro-app input:focus-visible, .retro-app select:focus-visible { outline: 2px solid #ffc16d; outline-offset: 4px; }
.retro-dashboard { padding-top: 32px; }
.retro-console { border: 1px solid #52554c; border-radius: 12px; padding: 8px; background: linear-gradient(135deg,#373b35,#202420); box-shadow: 0 12px 28px #0005, inset 0 1px #6b6e61; }
.retro-console-top, .retro-console-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 10px; letter-spacing: .13em; color: #c0c1ad; }
.retro-status { color: #a6d98b; display: inline-flex; align-items: center; gap: 8px; }
.retro-status i { width: 6px; height: 6px; background: #a6d98b; border-radius: 50%; box-shadow: 0 0 8px #a6d98670; }
.retro-instruments { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 40px; border: 2px solid #101410; border-radius: 6px; background: repeating-linear-gradient(0deg,#0000 0px,#0000 3px,#0002 3px,#0002 4px),#111a16; box-shadow: inset 0 4px 20px #0009; }
.retro-eyebrow { color: #a8b49c; font-size: 10px; letter-spacing: .16em; line-height: 1.8; }
.retro-intro h1 { margin-top: 20px; font-size: clamp(36px,4.5vw,56px); font-weight: 700; line-height: 1.1; letter-spacing: -.06em; color: #e5e4cf; }
.retro-intro h1 span { color: #ffc16d; text-shadow: 0 0 20px #ffac4030; }
.retro-description { max-width: 460px; margin-top: 20px; font: 14px/1.9 'Courier New',monospace; color: #a8b49c; }
.retro-revs { display: flex; gap: 4px; height: 25px; margin-top: 30px; transform: skewX(-14deg); }
.retro-revs span { flex: 1; background: #8db579; box-shadow: 0 0 8px #8db57915; }
.retro-revs span:nth-child(n+23) { background: #ffc16d; }
.retro-revs span:nth-child(n+29) { background: #e08356; }
.retro-scale { display: flex; justify-content: space-between; margin-top: 8px; color: #89937f; font-size: 10px; }
.retro-readout { align-self: center; border-left: 1px solid #394535; padding-left: 36px; min-width: 0; }
.retro-digits { margin-top: 18px; font-size: clamp(38px,5vw,66px); font-weight: bold; letter-spacing: -.07em; line-height: 1.1; color: #ffc16d; text-shadow: 0 0 16px #ffbd6040; overflow-wrap: anywhere; }
.retro-readout-caption { margin-top: 12px; font-size: 10px; letter-spacing: .12em; color: #ba9b6e; }
.retro-indicators { display: grid; gap: 14px; margin-top: 28px; border-top: 1px solid #394535; padding-top: 22px; font-size: 10px; color: #a6c48f; }
.retro-indicators span::before { content: '▪'; margin-right: 10px; }
.retro-search-panel { margin-top: 26px; padding: 22px; border: 1px solid #484d43; background: #242923; border-radius: 4px; }
.retro-search-panel form { padding: 0; margin-top: 14px; background: transparent; border: 0; box-shadow: none; }
.retro-search-panel input[type=search], .retro-search-panel select { border: 1px solid #515c49; border-radius: 2px; color: #d0d8bf; background: #111a16; font: 14px 'Courier New',monospace; color-scheme: dark; box-shadow: inset 0 2px 5px #0006; }
.retro-search-panel input::placeholder { color: #8d9a83; }
.retro-search-panel input[type=submit] { border-radius: 3px; border: 1px solid #ffd297; background: #edb064; color: #241e14; font: bold 13px 'Courier New',monospace; text-transform: uppercase; letter-spacing: .1em; box-shadow: 0 3px #886332; }
.retro-search-panel input[type=submit]:hover { background: #ffca85; }
.retro-search-panel > p:last-child { color: #a3ae98; }
.retro-results h2 { margin-top: 9px; color: #e1dfcc; font-size: 24px; font-weight: 400; letter-spacing: -.04em; }
.retro-results h2 + p { color: #a2ad96; line-height: 1.8; }
.retro-results > p:not(.retro-eyebrow) { color: #bac6a9; background: #293127; border: 1px solid #46513f; border-radius: 2px; }
.retro-results ul { gap: 14px; }
.retro-model { display: flex; flex-direction: column; height: 100%; border: 1px solid #495143; border-radius: 4px; background: #20261f; transition: border-color .15s, background .15s; }
.retro-model:hover { border-color: #ffc16d; background: #293026; }
.retro-model-top, .retro-model-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 18px; font-size: 10px; letter-spacing: .08em; }
.retro-model-top { background: #2a3027; border-bottom: 1px solid #495143; color: #bcc4ab; text-transform: uppercase; }
.retro-model-top span:last-child { color: #9da88e; }
.retro-model-content { padding: 22px 18px; flex: 1; }
.retro-model-content > svg { color: #8d9f7f; width: 28px; height: 28px; margin-bottom: 16px; }
.retro-model h3 { color: #ffc16d; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.retro-model-content p { margin-top: 12px; color: #aab59c; font-size: 12px; line-height: 1.8; }
.retro-model-bottom { border-top: 1px solid #3b4536; color: #99a78c; letter-spacing: 0; }
.retro-model-bottom span { display: inline-flex; align-items: center; gap: 8px; }
.retro-model-bottom span:last-child { color: #d4d9bd; }
.retro-results > div:last-child { background: #242923; border-color: #495143; border-radius: 3px; }
.retro-results > div:last-child p { color: #adb69f; }
.retro-results > div:last-child h3 { color: #ffc16d; }
.retro-results > div:last-child a { background: #373f31; border: 1px solid #667057; border-radius: 3px; color: #e1dfcc; font-family: inherit; }
@media (max-width: 639px) {
  .retro-dashboard { padding-top: 20px; }
  .retro-console-top, .retro-console-bottom { padding: 12px 8px; font-size: 8px; letter-spacing: .04em; }
  .retro-instruments { grid-template-columns: 1fr; gap: 28px; padding: 24px 18px; }
  .retro-readout { padding: 22px 0 0; border-left: 0; border-top: 1px solid #394535; }
  .retro-digits { font-size: 52px; }
  .retro-indicators { gap: 10px; margin-top: 18px; padding-top: 16px; }
  .retro-search-panel { padding: 16px; }
}

/* Shared surfaces, controls and readouts also cover Turbo-loaded states. */
.retro-app main :is(.bg-white, .bg-slate-50) { background-color: #20261f; }
.retro-app main :is(.bg-slate-900, .bg-slate-950) { background-color: #111a16; }
.retro-app main :is(.bg-blue-50, .bg-blue-100) { background-color: #2c3828; }
.retro-app main .bg-slate-200 { background-color: #3b4735; }
.retro-app main :is(.border-slate-100, .border-slate-200, .border-slate-300, .border-slate-800, .border-blue-100) { border-color: #495143; }
.retro-app main :is(.text-slate-900, .text-slate-950, .text-white) { color: #e1dfcc; }
.retro-app main :is(.text-slate-300, .text-slate-400, .text-slate-500, .text-slate-600, .text-slate-700) { color: #adb99f; }
.retro-app main :is(.text-blue-300, .text-blue-700, .text-blue-800) { color: #ffc16d; }
.retro-app main :is(.rounded-2xl, .rounded-xl, .rounded-lg) { border-radius: 4px; }
.retro-app main :is(.shadow-sm, .shadow-lg) { box-shadow: inset 0 1px #ffffff06, 0 4px 12px #0002; }
.retro-app main h1 { color: #ffc16d; text-shadow: 0 0 18px #ffbd601a; }
.retro-app main :is(h1, h2, h3) { font-family: 'Courier New', monospace; }
.retro-app main header:not(.retro-console) { border: 1px solid #495143; border-radius: 6px; background: repeating-linear-gradient(0deg,#0000 0px,#0000 3px,#0001 3px,#0001 4px),#111a16; box-shadow: inset 0 2px 12px #0005; }
.retro-app main header:not(.retro-console) h1 { line-height: 1.15; }
.retro-app main form[role=search] { background: #242923; border-color: #495143; }
.retro-app main :is(input[type=search], select) { background: #111a16; border: 1px solid #515c49; border-radius: 2px; color: #d0d8bf; color-scheme: dark; font-family: inherit; box-shadow: inset 0 2px 5px #0006; }
.retro-app main input::placeholder { color: #8d9a83; }
.retro-app main :is(input[type=submit], button.bg-blue-800) { background: #edb064; border: 1px solid #ffd297; border-radius: 3px; color: #241e14; font-family: inherit; font-weight: bold; box-shadow: 0 3px #886332; }
.retro-app main :is(input[type=submit], button.bg-blue-800):hover { background: #ffca85; }
.retro-app main a.group:hover { border-color: #ffc16d; background-color: #293026; }
.retro-app main a.group:hover h3 { color: #ffc16d; }
.retro-app main .brand-logo { background: #fff; border: 1px solid #7e8971; border-radius: 3px; box-shadow: inset 0 1px 5px #0002; }
.retro-app main .brand-logo-fallback { color: #263321; }
.retro-app main .ring-slate-200 { --tw-ring-color: #495143; }
.retro-app main table { font-variant-numeric: tabular-nums; }
.retro-app main :is(th, td) { border-color: #495143; }
.retro-app main thead { background: #2c3828; color: #c9d9b6; }
.retro-app main tbody tr:nth-child(even) { background: #263023; }
.retro-app main tbody tr:hover { background: #303c29; }
.retro-app main summary { color: #ffc16d; }
.retro-app main [data-price-chart-target=plot] { padding: 8px; border: 1px solid #3d4936; border-radius: 3px; background: #111a16; }
.retro-app main [data-price-chart-target=plot] line { stroke: #384533; }
.retro-app main [data-price-chart-target=plot] text { fill: #adb99f; font-family: 'Courier New', monospace; }
.retro-app main [data-price-chart-target=plot] path[fill], .retro-app main [data-price-chart-target=plot] path.fill-none { fill: none; }
.retro-app main [data-price-chart-target=plot] path.stroke-blue-800 { stroke: #ffc16d; filter: drop-shadow(0 0 3px #ffbd6033); }
.retro-app main [data-price-chart-target=plot] path:not(.fill-none) { fill: #ffc16d0d; }
.retro-app main [data-price-chart-target=plot] circle { stroke: #ffc16d; fill: #111a16; }
.retro-app main [data-price-chart-target=plot] circle:is(:hover, :focus, .fill-blue-800) { fill: #ffc16d; outline: none; stroke: #fff1d6; stroke-width: 3px; }
.retro-app main [data-price-chart-target=tooltip] { background: #303a29; border: 1px solid #8c9a74; color: #ffc16d; font-family: inherit; }
.retro-app main [data-price-chart-target=button] { color: #adb99f; border-radius: 2px; }
.retro-app main [data-price-chart-target=button]:hover { background: #38452e; }
.retro-app main [data-price-chart-target=button][aria-pressed=true] { background: #edb064; color: #241e14; }
.retro-app main i.bg-blue-800 { background: #ffc16d; }
.retro-app main nav[aria-label] a { background: #242e20; border: 1px solid #495143; border-radius: 3px; color: #d0d8bf; }
.retro-app main nav[aria-label] a[aria-current] { background: #edb064; color: #241e14; }
.retro-app main nav[aria-label] a[aria-disabled]:not([aria-current]) { color: #919d84; }
.retro-app main nav[aria-label] a[href]:hover { border-color: #ffc16d; }
.retro-app main aside[data-ad-placement] { border-color: #495143; }
.retro-app main aside[data-ad-placement] > div { background: #1c211b; border-color: #495143; }
.retro-app > footer { font-family: inherit; }
@media (prefers-reduced-motion: reduce) {
  .retro-app *, .retro-app *::before, .retro-app *::after { scroll-behavior: auto; animation: none !important; transition: none !important; }
}

/* Shared reading surfaces follow the catalog's quieter retro style. */
body.retro-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f0f0e8; }
.retro-app > header nav a { font-family: inherit; font-size: 14px; border-radius: 6px; }
.retro-app main .catalog-system { font-family: inherit; }
.retro-app main .catalog-system :is(h1, h2, h3) { font-family: inherit; }
.retro-app main .catalog-system h1 { color: #f4f2e9; text-shadow: none; line-height: 1.2; }
.retro-app main .catalog-system :is(h2, h3) { color: #f4f2e9; }
.retro-app main .catalog-system header:not(.retro-console):not(.catalog-intro) { background: none; border: 0; box-shadow: none; padding: 0 0 24px; }
.retro-app main .catalog-system :is(.bg-white, .bg-slate-50) { background-color: #242c24; }
.retro-app main .catalog-system :is(.text-slate-300, .text-slate-400, .text-slate-500, .text-slate-600, .text-slate-700) { color: #bec8b5; }
.retro-app main .catalog-system :is(.rounded-2xl, .rounded-xl) { border-radius: 10px; }
.retro-app main .catalog-system .rounded-lg { border-radius: 6px; }
.retro-app main .catalog-system :is(.shadow-sm, .shadow-lg) { box-shadow: none; }
.retro-app main .catalog-system > div:not(.catalog-index) form[role=search] { background: #2b332b; border: 1px solid #67735e; border-top: 3px solid #edb064; padding: 20px; gap: 16px; border-radius: 10px; }
.retro-app main .catalog-system :is(input[type=search], select) { background: #182019; color: #f4f2e9; border: 1px solid #7d8974; border-radius: 6px; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: none; min-height: 52px; }
.retro-app main .catalog-system input::placeholder { color: #b5bfad; }
.retro-app main .catalog-system :is(input[type=submit], button.bg-blue-800) { min-height: 52px; background: #edb064; color: #241e14; border: 1px solid #ffd297; border-radius: 6px; box-shadow: none; font-family: inherit; }
.retro-app main .catalog-system :is(input[type=submit], button.bg-blue-800):hover { background: #ffca85; }
.retro-app main .catalog-system a.group:hover { background: #2c362b; border-color: #edb064; }
.retro-app main .catalog-system a.group:hover h3 { color: #ffe0ad; }
.retro-app main .catalog-system :is(a, button, input, select, summary):focus-visible { outline: 3px solid #ffc16d; outline-offset: 4px; }
.retro-app main .catalog-system .brand-logo { background: #fff; border-radius: 6px; }
.retro-app main .catalog-system [data-price-chart-target=plot] { background: #182019; border-color: #4d5848; border-radius: 8px; }
.retro-app main .catalog-system [data-price-chart-target=plot] text { fill: #c5cebd; font-family: inherit; }
.retro-app main .catalog-system [data-price-chart-target=tooltip] { background: #303c2a; border-color: #8c9a74; border-radius: 6px; }
.retro-app main .catalog-system [data-price-chart-target=button] { border-radius: 6px; font-size: 13px; color: #c5cebd; }
.retro-app main .catalog-system [data-price-chart-target=button][aria-pressed=true] { background: #edb064; color: #241e14; }
.retro-app main .catalog-system :is(thead, tbody tr:nth-child(even)) { background: #2b3528; }
.retro-app main .catalog-system tbody tr:hover { background: #3c4b32; }
.retro-app main .catalog-system .hover\:bg-blue-50:hover { background: #3c4b32; color: #ffe0ad; }
.price-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.price-metric { padding: 18px; border: 1px solid #4d5848; border-radius: 8px; background: #182019; min-width: 0; }
.price-metric p { color: #c2ceb8; font-size: 13px; line-height: 1.5; }
.price-metric strong { display: block; margin-top: 10px; color: #ffc16d; font-size: clamp(19px, 2vw, 26px); font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.price-metric span { display: block; margin-top: 8px; color: #bec8b5; font-size: 12px; line-height: 1.7; }
.price-metrics-note { color: #bec8b5; font-size: 12px; line-height: 1.8; margin-bottom: 24px; max-width: 75ch; }
@media (max-width: 639px) { .price-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .price-metric { padding: 14px; } }
@media (max-width: 359px) { .price-metrics { grid-template-columns: 1fr; } }

/* Direction is also expressed by the signed numbers, independently of color. */
.price-metric { transition: border-color .2s, background-color .2s; }
.price-metric[data-trend=positive] { border-color: #426b4a; background: linear-gradient(135deg, #223b29, #182019 85%); }
.price-metric[data-trend=negative] { border-color: #a84848; background: linear-gradient(135deg, #482121, #291a1a 85%); }
.price-metric[data-trend=positive] strong { color: #99e8ac; }
.price-metric[data-trend=negative] strong { color: #ff6b6b; }
.price-metric[data-trend=positive] [data-metric-detail] { color: #c0dfc5; }
.price-metric[data-trend=negative] [data-metric-detail] { color: #ffc0ba; }
.price-metric[data-trend=neutral] strong { color: #d4dacd; }
.model-options { scroll-margin-top: 24px; }
.model-option { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 64px; padding: 16px; border: 1px solid #4d5848; border-radius: 8px; background: #182019; }
.model-option span:first-child { font-weight: 600; color: #f4f2e9; }
.model-option span:last-child { font-size: 12px; color: #ffc16d; }
.model-option:hover { border-color: #edb064; background: #2c362b; }
.model-option[aria-current=page] { border-color: #edb064; background: #303b29; }
.year-modal-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid #ffd297; border-radius: 6px; background: #edb064; color: #241e14; font-weight: 650; cursor: pointer; }
.year-modal-trigger:hover { background: #ffca85; }
.year-modal { margin: auto; width: min(640px, calc(100vw - 32px)); max-height: 85dvh; padding: 24px; border: 1px solid #728267; border-radius: 12px; background: #242c24; color: #f4f2e9; box-shadow: 0 24px 80px #0009; overflow-y: auto; }
.year-modal::backdrop { background: #080d0bd9; backdrop-filter: blur(4px); }
.year-modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.year-modal-heading h2 { font-size: 22px; font-weight: 650; line-height: 1.4; }
.year-modal-heading p { margin-top: 8px; color: #bec8b5; font-size: 14px; line-height: 1.6; }
.year-modal-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #66735b; border-radius: 6px; background: #182019; color: #f4f2e9; cursor: pointer; }
.year-modal-close:hover { background: #3c4b32; }
.year-modal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 479px) { .year-modal { padding: 20px; } .year-modal-options { grid-template-columns: 1fr; } }
.retro-app main .catalog-system .vehicle-heading { display: flex; align-items: center; gap: 24px; padding-bottom: 0; }
.retro-app main .catalog-system .vehicle-heading h1 { font-size: clamp(25px, 3.2vw, 36px); max-width: none; }
.vehicle-heading .brand-logo { flex-shrink: 0; }
.vehicle-configuration { padding: 0 0 24px; border-bottom: 1px solid #46513f; }
.vehicle-configuration-values { display: flex; flex-wrap: wrap; gap: 24px 36px; }
.vehicle-configuration-values span { display: grid; gap: 6px; }
.vehicle-configuration-values small { color: #bec8b5; font-size: 12px; }
.vehicle-configuration-values strong { color: #f4f2e9; font-size: 18px; font-weight: 600; }
@media (max-width: 479px) { .retro-app main .catalog-system .vehicle-heading { gap: 16px; align-items: flex-start; } }
