/* Autos by Hottub (https://hottub.autos)
   Rainbow-style, pixel-optimal automotive marketplace & VIN/TCO cockpit.
   Typeset in Hottub Thermae & Hottub Thermae Mono (v0.320). Zero inline styles, strict CSP.
   Supports all 5 live pixel-optimal Rainbow site styles via data-style="1..5":
     1: Prism Cockpit (asymmetric sticky facet rail + 3-up cards)
     2: Autobahn Telemetry (ultra-dense dark data grid)
     3: Sunlit Showroom (DEFAULT — full-width daylight ceramic gallery + Favicon 2)
     4: Swiss Spec Sheet (high-craft Swiss typographic hairline rows)
     5: Neon Circuit (midnight carbon split workbench) */

@font-face{font-family:"Hottub Thermae";src:url(/_fonts/thermae-latin-282cc5fbf4.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap}
@font-face{font-family:"Hottub Thermae";src:url(/_fonts/thermae-italic-latin-b49bafdc2d.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap}
@font-face{font-family:"Hottub Thermae Mono";src:url(/_fonts/thermae-mono-b960464c23.woff2) format("woff2");font-weight:300 800;font-style:normal;font-display:swap}
@font-face{font-family:"Hottub Thermae fallback";src:local("Arial"),local("ArialMT");font-weight:300 500;size-adjust:105.54%;ascent-override:87.98%;descent-override:27.07%;line-gap-override:0%}

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EFECE5;
  --ink: #10141C;
  --soft: #333E4D;
  --muted: #5C6776;
  --line: #DFDAD0;
  --line-2: #C9C2B6;
  --act: #10141C;
  --act-2: #242C3A;
  --on-act: #FFFFFF;
  --link: #1A56B0;
  --focus: #3B89E6;
  --ok: #0E7A4A;
  --ok-soft: #E1F7EC;
  --warn: #9A5504;
  --warn-soft: #FEF3DF;
  --danger: #B91C1C;
  --danger-soft: #FEE4E2;
  --six: #ea4545 0 16.67%, #f67a32 0 33.33%, #f2b526 0 50%, #34b370 0 66.67%, #3b89e6 0 83.33%, #8b5cf6 0;
  --prism: linear-gradient(95deg, #ea4545 0%, #f67a32 20%, #f2b526 40%, #34b370 60%, #3b89e6 80%, #8b5cf6 100%);
  --ui: "Hottub Thermae", "Hottub Thermae fallback", system-ui, -apple-system, sans-serif;
  --mono: "Hottub Thermae Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1480px;
  --gutter: 12px;
  --radius: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-style="3"]):not([data-style="4"]) {
    --bg: #080B10;
    --surface: #10151F;
    --surface-2: #171E2C;
    --ink: #F2F5FA;
    --soft: #C3CDD9;
    --muted: #8896AA;
    --line: #212B3D;
    --line-2: #31405A;
    --act: #F2F5FA;
    --act-2: #FFFFFF;
    --on-act: #080B10;
    --link: #85B8FA;
    --ok: #4ADE80;
    --ok-soft: rgba(52,179,112,.16);
    --warn: #FCD34D;
    --warn-soft: rgba(242,181,38,.16);
    --danger: #FCA5A5;
    --danger-soft: rgba(234,69,69,.18);
  }
}

/* Style 2: Autobahn Telemetry (forced dark precision telemetry) */
html[data-style="2"] {
  --bg: #06090E; --surface: #0D121B; --surface-2: #131B28; --ink: #F3F6FB; --soft: #BCC7D8;
  --muted: #7C8CA3; --line: #1E293B; --line-2: #324159; --act: #F3F6FB; --act-2: #FFFFFF;
  --on-act: #06090E; --link: #7FB5FA; --ok: #4ADE80; --ok-soft: rgba(52,179,112,.15);
  --warn: #FCD34D; --warn-soft: rgba(242,181,38,.16); --danger: #FCA5A5; --danger-soft: rgba(234,69,69,.18);
  --wrap: 1600px; --radius: 5px;
}

/* Style 3: Sunlit Showroom (forced daylight full-width gallery) */
html[data-style="3"] {
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #F2EEE6; --ink: #12151C; --soft: #36404D;
  --muted: #5E6876; --line: #E5DFD3; --line-2: #CFC6B7; --act: #12151C; --act-2: #28303E;
  --on-act: #FFFFFF; --wrap: 1560px; --radius: 14px;
}

/* Style 4: Swiss Spec Sheet (warm porcelain paper + crisp 1.5px obsidian rules) */
html[data-style="4"] {
  --bg: #FBF9F5; --surface: #FFFFFF; --surface-2: #F4F1EA; --ink: #0E1116; --soft: #2D3642;
  --muted: #5A6472; --line: #1C2330; --line-2: #10141C; --act: #0E1116; --act-2: #2A3342;
  --on-act: #FFFFFF; --wrap: 1520px; --radius: 2px;
}

/* Style 5: Neon Circuit (midnight carbon + frosted prism split workbench) */
html[data-style="5"] {
  --bg: #07080F; --surface: #101322; --surface-2: #171B30; --ink: #F5F7FF; --soft: #C6CEE3;
  --muted: #8692B2; --line: #252C4A; --line-2: #3A4573; --act: #8B5CF6; --act-2: #A78BFA;
  --on-act: #FFFFFF; --link: #93C5FD; --ok: #34D399; --ok-soft: rgba(52,211,153,.15);
  --warn: #FBBF24; --warn-soft: rgba(251,191,36,.16); --danger: #F87171; --danger-soft: rgba(248,113,113,.18);
  --wrap: 1600px; --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 13.5px/1.42 var(--ui); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ui); letter-spacing: -0.025em; }
p { margin: 0 0 .55em; }

/* Full-bleed 3px Rainbow Horizon Crown */
.prism-crown {
  height: 3px; width: 100%; position: sticky; top: 0; z-index: 90;
  background: linear-gradient(90deg, var(--six));
}

/* Pixel-Optimal 46px Sticky Masthead */
.m-head {
  position: sticky; top: 3px; z-index: 80;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.m-in {
  max-width: var(--wrap); margin: 0 auto; padding: 6px var(--gutter);
  display: grid; grid-template-columns: auto minmax(220px, 460px) 1fr auto;
  align-items: center; gap: 10px;
}
@media (max-width: 1120px) {
  .m-in { grid-template-columns: auto 1fr; }
  .m-nav { grid-column: 1 / -1; overflow-x: auto; }
  .m-styles { display: none; }
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .sub { background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Inline Prismatic Search + VIN Bar */
.search-wrap { position: relative; }
.search-ring {
  display: flex; align-items: center; gap: 4px; padding: 2px 3px 2px 10px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--prism) border-box;
}
.search-ring input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; padding: 4px 2px; color: var(--ink);
}
.search-ring button {
  border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer;
  background: var(--act); color: var(--on-act); font-size: 12px; font-weight: 700;
}
.instant-pop {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 100;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 42px -12px rgba(0,0,0,.35); overflow: hidden;
}
.instant-pop.open { display: block; }
.is-row {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px;
  padding: 7px 11px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.is-row:hover { background: var(--surface-2); text-decoration: none; }
.is-row:last-child { border-bottom: 0; }
.is-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus); }
.is-dot-prism { background: var(--prism); }
.is-main b { display: block; font-size: 12.5px; }
.is-main small { display: block; font-size: 11px; color: var(--muted); }
.is-price { font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.is-empty { padding: 10px 12px; font-size: 12px; color: var(--muted); }

.m-nav { display: flex; align-items: center; gap: 2px; justify-self: start; }
.m-nav a {
  padding: 5px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 650; color: var(--soft); white-space: nowrap;
}
.m-nav a:hover, .m-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.m-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--focus); }

.m-styles { display: inline-flex; align-items: center; gap: 3px; }
.m-styles a {
  width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.m-styles a:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.m-styles a[aria-current="true"] { background: var(--prism); color: #fff; border-color: transparent; }

/* Zero-Waste Telemetry Strip */
.kpi-bar {
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.kpi-in {
  max-width: var(--wrap); margin: 0 auto; padding: 5px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--soft);
}
.kpi-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kpi-chips b { color: var(--ink); font-weight: 800; }
.kpi-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34b370; margin-right: 4px; }

/* Main Container */
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter) 56px; }

/* Pixel-Optimal Cockpit Layout (Style 1 Default) */
.cockpit {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 10px; align-items: start;
}
html[data-style="2"] .cockpit,
html[data-style="3"] .cockpit { grid-template-columns: minmax(0, 1fr); }
html[data-style="5"] .cockpit { grid-template-columns: 220px minmax(0, 1fr) 320px; }
@media (max-width: 1180px) {
  .cockpit, html[data-style="5"] .cockpit { grid-template-columns: 1fr; }
}

/* Facet Rail */
.rail {
  position: sticky; top: 58px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 9px;
}
html[data-style="2"] .rail,
html[data-style="3"] .rail {
  position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 6px 10px; gap: 6px 12px;
}
html[data-style="2"] .rail-sec,
html[data-style="3"] .rail-sec {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
html[data-style="2"] .rail-sec h3,
html[data-style="3"] .rail-sec h3 {
  margin-bottom: 0; white-space: nowrap;
}
.rail-sec h3 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 5px;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--soft); font-size: 11.5px; font-weight: 650; line-height: 1.25;
}
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip.active { background: var(--act); color: var(--on-act); border-color: var(--act); }
.chip .cnt { font-size: 10.5px; opacity: .78; font-variant-numeric: tabular-nums; }
.hue-bar { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.h-red { background: #ea4545; } .h-org { background: #f67a32; } .h-gld { background: #f2b526; }
.h-grn { background: #34b370; } .h-blu { background: #3b89e6; } .h-vio { background: #8b5cf6; }

/* Toolbar above inventory */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 10px; margin-bottom: 8px;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar h1 { font-size: 1.02rem; font-weight: 800; }
.toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toolbar select {
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2);
  padding: 4px 8px; font-size: 12px; font-weight: 650;
}

/* Disclosed Zero-Tracking Sponsor Banner (compact single-line strip) */
.sponsor-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 7px 11px; margin-bottom: 8px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  border-left: 4px solid #f67a32; font-size: 12px;
}
.sp-badge {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; background: var(--warn-soft); color: var(--warn);
  margin-right: 6px;
}

/* Dense Vehicle Card Grid (Styles 1, 3, 5) */
.veh-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
html[data-style="3"] .veh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html[data-style="4"] .veh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-style="5"] .veh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1320px) {
  html[data-style="3"] .veh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .veh-grid, html[data-style="3"] .veh-grid, html[data-style="4"] .veh-grid, html[data-style="5"] .veh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .veh-grid, html[data-style="3"] .veh-grid, html[data-style="4"] .veh-grid, html[data-style="5"] .veh-grid {
    grid-template-columns: 1fr;
  }
}

.vcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 11px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.vcard:hover { border-color: var(--focus); }
html[data-style="3"] .vcard {
  box-shadow: 0 2px 10px -6px rgba(18,21,28,.12);
}
html[data-style="3"] .vcard:hover {
  box-shadow: 0 10px 26px -14px rgba(18,21,28,.22);
  transform: translateY(-1px);
}
html[data-style="4"] .vcard {
  border-width: 1.5px; border-left-width: 6px; padding: 9px 11px;
}
html[data-style="5"] .vcard:hover {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--prism) border-box;
}
.vcard-stripe { height: 3px; border-radius: 3px; margin: -10px -11px 2px; }
html[data-style="4"] .vcard-stripe { display: none; }

.vc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vc-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 750; line-height: 1.2; background: var(--surface-2); color: var(--soft);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-ev { background: rgba(59,137,230,.15); color: #3b89e6; }
.badge-hyb { background: rgba(52,179,112,.15); color: #198754; }
.badge-gas { background: rgba(246,122,50,.15); color: #c85614; }

.vc-title { font-size: 14px; font-weight: 800; line-height: 1.22; color: var(--ink); }
.vc-title a { color: inherit; }
.vc-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vc-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.vc-price { font-size: 1.18rem; font-weight: 850; letter-spacing: -0.025em; }
.vc-mo { font-size: 11.5px; color: var(--muted); }
.vc-delta { font-size: 11px; font-weight: 750; color: var(--ok); }

/* Ultra-Compact 4-Cell Spec Matrix inside every card */
.spec-quad {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sq-cell span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sq-cell b { display: block; font-size: 11.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted);
}
.vc-actions { display: flex; align-items: center; gap: 4px; }

/* Style 2: Autobahn Telemetry Ultra-Dense Data Table */
.telemetry-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
table.tgrid { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tgrid th, table.tgrid td {
  padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
table.tgrid th {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: var(--surface-2); position: sticky; top: 0;
}
table.tgrid tr:hover td { background: var(--surface-2); }
.tgrid-title { font-weight: 750; color: var(--ink); }

/* Style 5 Right Workbench Rail */
.wb-rail {
  position: sticky; top: 58px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px; display: flex; flex-direction: column; gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 12px; border-radius: 7px; border: 1px solid var(--act);
  background: var(--act); color: var(--on-act); font-size: 12px; font-weight: 750; cursor: pointer;
}
.btn:hover { background: var(--act-2); text-decoration: none; }
.btn-prism { border: 0; background: var(--prism); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 4px 8px; font-size: 11px; border-radius: 6px; }
.is-in-cmp { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

/* Dossier, Forms, TCO & VIN Boxes */
.panel {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
html[data-style="3"] .panel {
  box-shadow: 0 2px 12px -8px rgba(18,21,28,.12);
}
.panel-stripe {
  height: 3.5px; border-radius: var(--radius) var(--radius) 0 0;
  margin: -18px -20px 14px;
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.panel-head h2, .panel-head h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.panel-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.4; }
.two-col {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.col-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-stack > .panel { margin-bottom: 0; }
@media (max-width: 1020px) { .two-col { grid-template-columns: 1fr; } }

/* Vehicle Dossier Hero, KPI Band & Symmetric 3x2 Telemetry Grid */
.dossier-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.crumb-back {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--soft); font-size: 11px; font-weight: 700;
}
.crumb-back:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.dossier-title { font-size: 1.55rem; font-weight: 850; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 5px; }
.dossier-tagline { font-size: 13.5px; color: var(--soft); margin: 0 0 16px; line-height: 1.45; }

.kpi-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
@media (max-width: 760px) { .kpi-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vin-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px;
}
@media (max-width: 760px) { .vin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vin-grid { grid-template-columns: 1fr; } }

.tco-out-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px;
}
.tco-compact .tco-out-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px;
}
@media (max-width: 640px) { .tco-out-grid, .tco-compact .tco-out-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tco-kpi, .vin-grid > div {
  min-width: 0; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px;
}
.tco-kpi-hero {
  background: var(--surface); border: 1.5px solid var(--line-2);
  box-shadow: inset 0 3px 0 0 #ea4545;
}
.tco-kpi-pos { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.tco-kpi-pos b { color: var(--ok); }
.tco-kpi span, .vin-grid span {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .055em;
  color: var(--muted); font-weight: 750;
}
.tco-kpi b {
  display: block; font-size: 1.15rem; font-weight: 850; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink);
}
.tco-kpi-hero b { font-size: 1.26rem; }
.vin-grid b {
  display: block; font-size: 0.96rem; font-weight: 800; line-height: 1.28;
  color: var(--ink); overflow-wrap: anywhere;
}
.vin-grid b.mono { font-size: 0.86rem; letter-spacing: -0.01em; }
.tco-kpi small { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.tco-kpi small.delta-ok { color: var(--ok); font-weight: 700; }

.dossier-meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.dm-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 10px; }
@media (max-width: 560px) { .dm-row { grid-template-columns: 1fr; gap: 5px; } }
.dm-lbl { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; color: var(--muted); padding-top: 3px; }
.dm-vals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Buyer Protection 3-Up Cards */
.protect-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px;
}
@media (max-width: 720px) { .protect-grid { grid-template-columns: 1fr; } }
.prot-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; border-top: 3px solid var(--focus);
  display: flex; flex-direction: column; gap: 4px;
}
.prot-card.p-grn { border-top-color: #34b370; }
.prot-card.p-blu { border-top-color: #3b89e6; }
.prot-card.p-vio { border-top-color: #8b5cf6; }
.prot-card span { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; color: var(--muted); }
.prot-card b { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.prot-card small { font-size: 11.5px; color: var(--soft); line-height: 1.38; }

/* Clean Balanced Forms */
.form-stack { display: flex; flex-direction: column; gap: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.otd-row-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.otd-row-2 { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
.tco-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
@media (max-width: 1240px) { .tco-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .otd-row-1, .otd-row-2 { grid-template-columns: 1fr; } }

.field { min-width: 0; }
.field label {
  display: block; font-size: 10px; font-weight: 750; color: var(--muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font-size: 13px;
  transition: border-color 120ms ease, background 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--focus); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 60px; }
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding-top: 2px;
}
.form-actions .btn-prism { padding: 9px 16px; font-size: 12.5px; border-radius: 8px; }
.form-note { font-size: 11px; color: var(--muted); }
.vin-result-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; margin-top: 12px; }
.vin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vin-errs { margin: 8px 0 0; padding-left: 18px; color: var(--danger); font-size: 12px; }

/* Floating Compare Dock */
.compare-dock {
  display: none; position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 95;
  width: min(96vw, 920px); background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(14px); border: 1.5px solid transparent; border-radius: 12px;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--prism);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 18px 44px -10px rgba(0,0,0,.45); padding: 8px 12px;
}
.compare-dock.open { display: block; }
.cd-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cd-lbl { font-size: 12px; font-weight: 800; }
.cd-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.cd-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 650;
}
.cd-pill button { border: 0; background: transparent; cursor: pointer; font-weight: 800; padding: 0 2px; }

/* Design & Favicon Gallery Previews */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.fav-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.fav-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-mock {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px 9px 0 0;
  font-size: 12px; font-weight: 650; border: 1px solid var(--line);
}
.tab-light { background: #eef1f5; color: #161b22; }
.tab-dark { background: #141923; color: #eef2f8; border-color: #2c374b; }

/* Compact Footer */
.m-foot {
  border-top: 1px solid var(--line); background: var(--surface);
  font-size: 11.5px; color: var(--muted); padding: 12px var(--gutter);
}
.m-foot-in {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.m-foot-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
