/*
 * Swiftly Cars — daylight showroom.
 * Light by default with a matching dark mode (light-dark() tokens). Cool grey ground, white surfaces, one
 * ultramarine accent for actions, links and the price rule. Archivo, set wide, carries headings and prices;
 * Inter carries everything else. The price board on the homepage is the one bold element.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-opsz-normal.woff2') format('woff2-variations'), url('/assets/fonts/inter-latin-opsz-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo-latin-standard-normal.woff2') format('woff2-variations'), url('/assets/fonts/archivo-latin-standard-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  /* Each token is light-dark(light, dark). */
  --ground: light-dark(#f4f5f7, #101114);      /* page */
  --panel: light-dark(#ffffff, #181a1f);       /* cards, board, inputs */
  --raised: light-dark(#eceef2, #22252b);      /* hover, chat bubbles, photo wells */
  --seam: light-dark(#e1e4e9, #2c3038);        /* hairlines */
  --seam-strong: light-dark(#c3c8d0, #4a505a); /* control outlines */
  --ink: light-dark(#15171b, #f2f3f5);         /* headings, figures */
  --ink-2: light-dark(#363b43, #c8ccd3);       /* running text */
  --silver: light-dark(#5d6470, #9ea5b0);      /* secondary text */

  /* The one accent: ultramarine. Fill for buttons (white label), a darker/lighter text tone for links. */
  --accent: light-dark(#2e3bef, #4b58ff);
  --accent-hover: color-mix(in oklab, var(--accent) 84%, #000000);
  --accent-text: light-dark(#2531d6, #a3abff);
  --accent-soft: light-dark(#eceeff, #1e2254);
  --logo: light-dark(#2e3bef, #ffffff);        /* the logo: ultramarine on light, white on dark (decided 2026-11-11) */
  --warn: light-dark(#a15c07, #f5b44a);        /* the stale-inventory dot */
  --alert: light-dark(#b42318, #ff8a80);       /* form errors, overdue items */
  --red-text: var(--alert);                    /* staff dashboard name for the alert tone */
  --focus: var(--accent-text);

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --wide: 116%;    /* font-stretch for display type */

  --r-card: 20px;    /* top-level cards and panels */
  --r-panel: 14px;   /* photos, nested cards, bubbles */
  --r-control: 12px; /* inputs, chips */
  --r-pill: 999px;   /* buttons */

  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;

  --wrap: 76rem;
  --gutter: clamp(1rem, 3.2vw, 2.25rem);
  --drawer: 26rem;
  --lift: 0 1px 2px rgba(16, 18, 24, 0.04), 0 12px 32px -18px rgba(16, 18, 24, 0.22);
}

/* Page-to-page cross-fade where the browser supports it; the header stays put. */
@view-transition { navigation: auto; }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ground); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-feature-settings: 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, strong, dt { color: var(--ink); }
p, li { text-wrap: pretty; }

a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent-text) 40%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

code, pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.875em; }
pre { background: var(--panel); color: var(--ink); border: 1px solid var(--seam); border-radius: var(--r-panel); padding: 0.9rem 1rem; overflow-x: auto; line-height: 1.5; }
p code, li code { background: var(--raised); color: var(--ink); border-radius: 6px; padding: 0.05em 0.35em; }

.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; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--ground); padding: 0.6rem 0.9rem; border-radius: var(--r-control); z-index: 70; font-weight: 600; }
.skip:focus { top: 0.75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--silver); }
.small { font-size: var(--fs-14); }

/* ---- typography ---------------------------------------------------------- */
.display, .h1, .h2, .board__model, .ledger__total, .step::before, .car__express, .facts--wide dd {
  font-family: var(--font-display);
  font-stretch: var(--wide);
}
.display {
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 0.94;
  font-weight: 720;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  max-width: 11ch;
  text-wrap: balance;
  color: var(--ink);
}
.h1 { text-wrap: balance; font-size: clamp(var(--fs-28), 3.4vw, 2.6rem); line-height: 1.08; font-weight: 680; letter-spacing: -0.025em; margin: 0 0 0.75rem; max-width: 30ch; }
.h2 { font-size: clamp(var(--fs-21), 2.2vw, var(--fs-28)); line-height: 1.15; font-weight: 660; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.h3 { font-size: var(--fs-18); line-height: 1.3; font-weight: 640; letter-spacing: -0.01em; margin: 2.25rem 0 0.6rem; }
.lede { font-size: var(--fs-18); line-height: 1.5; color: var(--silver); max-width: 46ch; margin: 0 0 1rem; }
.prose { max-width: 44rem; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li::marker { color: var(--silver); }

/* VIN: slashed zero and tracking so 0/O and 1/I read unambiguously. */
.vin { font-feature-settings: 'zero', 'tnum', 'cv11'; letter-spacing: 0.04em; font-weight: 500; white-space: nowrap; }

/* ---- header / footer ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--seam);
  view-transition-name: site-header;
}
.site-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 4rem; }
.wordmark { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-family: var(--font-display); font-stretch: 110%; font-weight: 720; font-size: var(--fs-18); letter-spacing: -0.025em; color: var(--logo); text-decoration: none; }
.wordmark__mark { width: 1.7em; height: 1.7em; margin-right: -0.2rem; flex: none; fill: var(--logo); }
/* One word, two weights: SwiftlyCars. */
.wordmark__name { display: block; white-space: nowrap; }
.wordmark__name span { font-weight: 420; }
.wordmark__track { display: grid; grid-template-columns: 1fr; }
.wordmark__clip { min-width: 0; overflow: hidden; }
.wordmark:hover { color: var(--logo); }
.site-nav { grid-column: 2; min-width: 0; }
.nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-14); font-weight: 520; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.45rem; height: 2px; border-radius: 2px; background: var(--accent); }
.site-header__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.header-chat { position: relative; min-height: 40px; padding: 0 1.05rem; gap: 0.45rem; font-size: var(--fs-14); }
/* Replies waiting while the chat is closed. */
.chat-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 2px solid var(--accent); background: var(--panel); color: var(--accent-text);
  font-size: 0.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.chat-badge[hidden] { display: none; }

/* ---- chat mascot: a pixel swift perched bottom-right (public/mascot.js) ---------------------------- */
.mascot {
  position: fixed; z-index: 50; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  width: 72px; height: 64px; padding: 0; border: 0; background: transparent; cursor: pointer;
  /* a white sticker edge keeps the dark outline readable on any page, light or dark, plus a soft lift */
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 8px rgba(16, 18, 24, 0.28));
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.mascot[hidden] { display: none; }
.mascot canvas { display: block; width: 72px; height: 64px; image-rendering: pixelated; }
.mascot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.mascot .mascot__badge { top: 0; right: 2px; }
/* Out of the way while the chat is open. */
.chat-open .mascot { opacity: 0; pointer-events: none; transform: translateY(12px) scale(0.9); }
/* First visit: one swoop in from the top right. */
.mascot--arrive { animation: mascot-arrive 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
/* Phones: tucked away while scrolling down (with the compact header), back on scrolling up; the footer leaves room for it. */
@media (max-width: 640px) {
  .header-compact .mascot { transform: translateY(calc(100% + 24px)); }
  .site-footer { padding-bottom: 88px; }
}
/* Its speech bubble (public/mascot.js): above the bird, the tail pointing down at its beak. */
.mascot-say {
  position: fixed; z-index: 50; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px);
  display: flex; align-items: center; max-width: min(17rem, calc(100vw - 32px));
  border: 2px solid var(--ink); border-radius: var(--r-panel); background: var(--panel); color: var(--ink);
  box-shadow: 0 6px 18px rgba(16, 18, 24, 0.18);
  transform-origin: calc(100% - 46px) calc(100% + 10px); animation: mascot-say 0.22s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.mascot-say::after {
  content: ''; position: absolute; right: 40px; bottom: -8px; width: 12px; height: 12px;
  background: var(--panel); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.mascot-say__text {
  flex: 1; min-height: 44px; padding: 0.55rem 0.25rem 0.55rem 0.9rem; border: 0; background: none; color: inherit;
  font: inherit; font-size: var(--fs-14); font-weight: 600; text-align: left; cursor: pointer;
}
.mascot-say__text:hover { color: var(--accent-text); }
.mascot-say__close {
  align-self: stretch; min-width: 40px; padding: 0 0.6rem 0 0.25rem; border: 0; background: none; color: var(--ink-2);
  font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.mascot-say__close:hover { color: var(--ink); }
.mascot-say button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.chat-open .mascot-say { display: none; }
@keyframes mascot-say { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes mascot-arrive {
  0% { transform: translate(160px, -70vh) rotate(-12deg); }
  65% { transform: translate(-28px, -18px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
/* Compact header while scrolling down (public/app.js sets .header-compact on <html>): the bar's background
   goes, the nav becomes a pill, and the name folds away from the right, letter by letter (its column
   shrinks to 0fr while a soft right edge fades the letters as they are clipped), leaving the mark on an
   accent tile. Slower and even going away; quicker coming back. */
.site-header { transition: background-color 0.25s ease, border-color 0.25s ease, -webkit-backdrop-filter 0.25s ease, backdrop-filter 0.25s ease; }
.site-header .wordmark { gap: 0; }
.site-header .wordmark__name { padding-left: 0.35rem; }
.site-header .wordmark__track { transition: grid-template-columns 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
.site-header .wordmark__clip { transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
/* The tile fills first; the mark turns white once the tile is mostly blue, so it never washes out halfway. */
.site-header .wordmark__mark { box-sizing: border-box; border-radius: 10px; transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), fill 0.2s ease 0.15s, padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), margin 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
.header-compact .site-header .wordmark__mark { transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), fill 0.2s ease 0.15s, padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), margin 0.68s cubic-bezier(0.65, 0, 0.35, 1); }
.site-header .nav { padding: 0 0.25rem; border: 1px solid transparent; border-radius: var(--r-pill); transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.header-compact .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-compact .site-header .wordmark__track { grid-template-columns: 0fr; transition-duration: 0.68s; transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
.header-compact .site-header .wordmark__clip {
  opacity: 0; transition-duration: 0.68s; transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgb(0 0 0 / 0.5) 80%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgb(0 0 0 / 0.5) 80%, transparent 100%);
}
.header-compact .site-header .wordmark__mark { margin-right: 0; padding: 0.3em; background: var(--accent); fill: #ffffff; }
.header-compact .site-header .nav { background: var(--panel); border-color: var(--seam); box-shadow: var(--lift); }
/* Phone menu: hidden on wide screens. */
.menu { display: none; position: relative; }
.menu__button { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border: 1px solid var(--seam-strong); border-radius: var(--r-pill); background: var(--panel); cursor: pointer; }
.menu__button::-webkit-details-marker { display: none; }
.menu[open] .menu__button { background: var(--raised); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(16rem, calc(100vw - 2rem)); display: grid; padding: 0.4rem; background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-panel); box-shadow: var(--lift); }
.menu__panel a { display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: var(--r-control); color: var(--ink); text-decoration: none; font-size: var(--fs-16); }
.menu__panel a:hover { background: var(--raised); }
.menu__panel a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-text); }
.menu__panel .menu__more { color: var(--silver); font-size: var(--fs-14); }
.menu__sep { height: 1px; margin: 0.35rem 0.6rem; background: var(--seam); }

/* ---- appearance: follows the device unless a choice is saved (public/theme.js sets data-theme) ---- */
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
.theme-toggle, .theme-only { display: none; }
.theme-toggle { align-items: center; gap: 0.6rem; font: inherit; color: var(--ink); background: var(--panel); cursor: pointer; }
.theme-toggle__icon { display: none; flex: none; }
.theme-toggle[data-state='system'] .theme-toggle__icon--system,
.theme-toggle[data-state='light'] .theme-toggle__icon--light,
.theme-toggle[data-state='dark'] .theme-toggle__icon--dark { display: block; }
/* Wide screens: a round icon button beside Chat. */
.theme-js .theme-toggle--icon { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--seam-strong); border-radius: var(--r-pill); }
.theme-toggle--icon:hover { background: var(--raised); }
/* Phones: a row in the menu, styled like its links. */
.theme-js .theme-only { display: block; }
.theme-js .theme-toggle--menu { display: flex; width: 100%; min-height: 44px; padding: 0 0.85rem; border: 0; border-radius: var(--r-control); background: transparent; font-size: var(--fs-14); color: var(--silver); text-align: left; }
.theme-toggle--menu:hover { background: var(--raised); color: var(--ink); }

.status { margin: 0; font-size: var(--fs-13); color: var(--silver); }
.status a { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.site-footer { margin-top: 6rem; border-top: 1px solid var(--seam); background: var(--panel); font-size: var(--fs-14); color: var(--silver); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 3.25rem 0 2.5rem; }
.site-footer__brand { display: grid; align-content: start; justify-items: start; gap: 0.75rem; }
.site-footer__brand > p { margin: 0; max-width: 30ch; color: var(--silver); }
.site-footer__title { margin: 0 0 0.5rem; font-size: var(--fs-14); font-weight: 620; color: var(--ink); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--seam); font-size: var(--fs-13); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--ink-2); }

/* ---- buttons / controls ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-size: var(--fs-14); font-weight: 600;
  padding: 0.6rem 1.25rem; border-radius: var(--r-pill);
  border: 1px solid var(--seam-strong); background: var(--panel); color: var(--ink);
  cursor: pointer; text-decoration: none; min-height: 44px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn:hover { background: var(--raised); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: transparent; color: #ffffff; }
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }
.btn--small { min-height: 36px; padding: 0 0.9rem; font-size: var(--fs-14); }
.btn--wide { width: 100%; min-height: 48px; font-size: var(--fs-16); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }

select, input[type='text'], input[type='email'], input[type='tel'], input[type='search'], input[type='password'], input[type='date'], textarea {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--seam-strong); border-radius: var(--r-control);
  padding: 0.55rem 0.75rem;
}
select { min-height: 44px; min-width: 9rem; }
select:hover, input:hover { border-color: var(--silver); }
::placeholder { color: var(--silver); opacity: 1; }

/* ---- grouped surfaces: white panels with a hairline, no glass ------------------------------ */
.command, .chat, .sheet, .table-wrap, .notice, .confirm, .faq, .stages {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--r-card);
}

/* ---- homepage hero: the promise and the question on the left, the price board on the right ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero__main { min-width: 0; }
.hero__title { max-width: none; }
.hero__title span { display: block; white-space: nowrap; }
.hero__main .lede { max-width: 38ch; margin-bottom: 1.75rem; font-size: var(--fs-21); }
.home-notice { margin: 1.25rem 0 0; font-size: var(--fs-13); line-height: 1.5; color: var(--silver); max-width: 56ch; }
.home-notice a { color: inherit; }

.command { box-shadow: var(--lift); }
.command:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--lift); }
.command textarea { display: block; width: 100%; border: 0; border-radius: var(--r-card); background: transparent; resize: vertical; min-height: 6.5rem; padding: 1.15rem 1.35rem; font-size: 1.1875rem; line-height: 1.45; color: var(--ink); caret-color: var(--accent); }
.command textarea:focus { outline: none; }
.hero-ask { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.25rem; }
.hero-ask textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 10rem; resize: none; padding: 0.75rem 0.9rem; border: 0; background: transparent; font-size: var(--fs-18); line-height: 1.4; }
.hero-ask textarea:focus { outline: none; }
.btn--send { flex: none; min-width: 48px; min-height: 48px; padding: 0 0.95rem; }
.btn--send svg { display: block; }
.answer { margin-top: 1.25rem; padding: 1.1rem 1.25rem; }
.answer p { margin: 0 0 0.6rem; }
.answer__you { color: var(--ink); }

/* The price board: each model, how many are listed, the lowest preview price. Wide type, tabular figures. */
.board { background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-card); box-shadow: var(--lift); overflow: hidden; }
.board__title { margin: 0; padding: 1.15rem 1.5rem 0.75rem; font-size: var(--fs-14); font-weight: 620; color: var(--silver); }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(7.5rem, auto); align-items: baseline; gap: 1rem; padding: 0.7rem 1.5rem; border-top: 1px solid var(--seam); color: var(--ink); text-decoration: none; transition: background-color 0.15s ease; }
.board__row:hover { background: var(--accent-soft); color: var(--ink); }
.board__row:hover .board__model { color: var(--accent-text); }
.board__row:focus-visible { outline-offset: -3px; }
.board__model { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 680; letter-spacing: -0.02em; line-height: 1.15; }
.board__count { font-size: var(--fs-13); color: var(--silver); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board__from { font-family: var(--font-display); font-stretch: 108%; font-size: var(--fs-18); font-weight: 620; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board__from-word { font-family: var(--font-text); font-size: var(--fs-13); font-weight: 450; color: var(--silver); }
.board__note { margin: 0; padding: 0.9rem 1.5rem 1.15rem; border-top: 1px solid var(--seam); font-size: var(--fs-13); color: var(--silver); }

/* ---- homepage: the four buying steps, numbered because they are a sequence ----------------- */
.steps { padding-top: clamp(2rem, 5vw, 4rem); }
.steps__list { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.step { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); }
.step::before { content: counter(step); display: block; margin-bottom: 0.6rem; font-size: var(--fs-36); font-weight: 600; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.step__title { font-weight: 640; color: var(--ink); margin: 0 0 0.3rem; font-size: var(--fs-18); }
.step__text { margin: 0; font-size: var(--fs-14); color: var(--silver); max-width: 34ch; }
.steps__more { margin: 1.5rem 0 0; }
.steps__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; }

/* ---- the chat drawer: one chat on every page ---------------------------------------------------
   Wide screens: a side panel that pushes the page over, so nothing is hidden behind it.
   Mid widths: the same panel over the page. Phones: full screen. */
.chat-drawer[hidden] { display: none; }
.chat-drawer {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(var(--drawer), 100vw); display: flex;
  transition: translate 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}
@starting-style { .chat-drawer { translate: 1.5rem 0; opacity: 0; } }
.chat-drawer .chat { flex: 1; min-width: 0; min-height: 0; border-radius: 0; border: 0; border-left: 1px solid var(--seam); box-shadow: -24px 0 60px -40px rgba(16, 18, 24, 0.45); }
.chat-drawer .chat__log { flex: 1; min-height: 0; max-height: none; }
@media (min-width: 1100px) {
  html.chat-open body { padding-right: var(--drawer); }
}
.chat { display: flex; flex-direction: column; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem 0.85rem 1.15rem; border-bottom: 1px solid var(--seam); }
.chat__avatar { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); }
.chat__avatar svg { width: 1.6rem; height: 1.6rem; fill: #ffffff; }
/* Swifty in the header while the chat is open (public/mascot.js): no disc, the bird itself, 36 × 32 sprite pixels. */
.chat__avatar--swifty { width: 54px; height: 48px; margin: -6px 0 -6px -6px; border-radius: 0; background: none; overflow: visible; }
.chat__avatar--swifty canvas { display: block; width: 54px; height: 48px; image-rendering: pixelated; }
.chat__name { margin: 0; font-size: var(--fs-14); font-weight: 640; color: var(--ink); }
.chat__meta { margin: 0; font-size: var(--fs-13); color: var(--silver); }
.chat__close { flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--silver); background: transparent; border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer; }
.chat__close:hover { color: var(--ink); background: var(--raised); }
.chat__log { position: relative; display: flex; flex-direction: column; gap: 0.85rem; padding: 1.15rem; min-height: 15rem; max-height: min(58vh, 34rem); overflow-y: auto; overscroll-behavior: contain; }
.chat__log .turn { max-width: min(62ch, 92%); }
.chat__log .turn p { margin: 0 0 0.45rem; }
.chat__log .turn p:last-child { margin-bottom: 0; }
.chat__log .turn__who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turn--greet, .chat__log .turn--site { align-self: flex-start; background: var(--raised); border-radius: 6px var(--r-panel) var(--r-panel) var(--r-panel); padding: 0.7rem 1rem; color: var(--ink-2); }
.chat__log .turn--team { align-self: stretch; background: var(--raised); border: 1px solid var(--accent); border-radius: var(--r-panel); padding: 0.7rem 1rem; color: var(--ink); }
.chat__log .turn--team .turn__who { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: 0 0 0.2rem; font-size: var(--fs-13); font-weight: 600; color: var(--accent); }
.chat__log .turn--you { align-self: flex-end; background: var(--accent-soft); border-radius: var(--r-panel) 6px var(--r-panel) var(--r-panel); padding: 0.7rem 1rem; color: var(--ink); }
.chat__log .turn--error { outline: 1px dashed var(--alert); }
.chat__log .turn--pending p:last-child { color: var(--silver); }
.chat__log .turn--pending p:last-child::after { content: '…'; }
.chat__log a { overflow-wrap: anywhere; }
.chat__log .turn--summary { max-width: 100%; }
.chat__shortcuts { margin-top: 0.15rem; }
/* The message box, messenger-style (2026-11-12): a rounded field with the round send button beside it. */
.chat .chat__composer { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.6rem 0.75rem; margin: 0; border: 0; border-top: 1px solid var(--seam); border-radius: 0; box-shadow: none; scroll-margin-bottom: 1rem; }
.chat .chat__composer:focus-within { border-color: var(--seam); box-shadow: none; }
.chat .chat__composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 10rem; resize: none; padding: 0.6rem 1rem; border: 1px solid var(--seam-strong); border-radius: 22px; background: var(--raised); font-size: var(--fs-16); line-height: 1.45; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.chat .chat__composer textarea::placeholder { color: var(--silver); }
.chat .chat__composer textarea:focus { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat .chat__composer .btn--send { min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--r-pill); }
/* The fine print stays readable but quiet: one short centred line, small, so the eye stays on the message box. */
.chat__notice { margin: 0; padding: 0 1rem 0.6rem; font-size: 0.6875rem; line-height: 1.35; color: var(--silver); text-align: center; }
.chat__notice a { color: inherit; }
/* "Ideas to ask": a small pill just above the message box, opening a short list above it. */
.chat__ideas-bar { padding: 0.5rem 0.75rem 0.4rem; border-top: 1px solid var(--seam); }
.chat__ideas-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0 0.8rem 0 0.7rem;
  border: 1px solid var(--seam-strong); border-radius: var(--r-pill); background: var(--panel); color: var(--accent-text);
  font: inherit; font-size: var(--fs-13); font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chat__ideas-toggle:hover, .chat__ideas-toggle[aria-expanded='true'] { background: var(--accent-soft); border-color: var(--accent); }
.chat__ideas-chev { transition: transform 0.15s ease; }
.chat__ideas-toggle[aria-expanded='true'] .chat__ideas-chev { transform: rotate(180deg); }
.chat .chat__ideas-bar + .chat__composer { border-top: 0; }
.chat__ideas { max-height: min(22rem, 50vh); overflow-y: auto; padding: 0.75rem 1rem 0.9rem; border-top: 1px solid var(--seam); background: var(--raised); }
.chat__ideas[hidden] { display: none; }
.chat__ideas-group + .chat__ideas-group { margin-top: 0.7rem; }
.chat__ideas-title { margin: 0 0 0.4rem; font-size: var(--fs-13); font-weight: 600; color: var(--ink); }

.try__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.try__item { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1rem; font: inherit; font-size: var(--fs-13); text-align: left; background: var(--panel); border: 1px solid var(--seam-strong); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; max-width: 100%; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.try__item:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---- answers and cards inside the conversation -------------------------------------------- */
.sheet { padding: clamp(1.15rem, 2.2vw, 1.6rem); }
.inspector__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 1rem; border-radius: var(--r-panel); background: var(--raised); }
.inspector__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0; }
.inspector__kicker { font-size: var(--fs-13); color: var(--silver); margin: 0 0 0.2rem; }
.inspector__title { font-size: var(--fs-21); font-weight: 640; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 0.4rem; }
.inspector__title a { color: var(--ink); text-decoration: none; }
.inspector__title a:hover { color: var(--accent-text); }
.inspector__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--fs-14); color: var(--silver); margin: 0 0 1.1rem; }
.inspector__sub { font-weight: 620; font-size: var(--fs-14); color: var(--ink); margin: 1.25rem 0 0.4rem; }

.summary { margin: 0.5rem 0 0; display: grid; }
.summary__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--seam); font-size: var(--fs-14); }
.summary__row:first-child { border-top: 0; }
.summary__row dt { color: var(--silver); font-weight: 400; }
.summary__row dd { margin: 0; font-weight: 520; color: var(--ink); }
.summary__row--missing dd { color: var(--silver); font-weight: 400; font-style: italic; }
.summary__row--flexible dd { font-weight: 400; }
.summary__row--preferred dd { font-weight: 450; }

.matches { list-style: none; margin: 0; padding: 0; display: grid; }
.match { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.65rem 0; border-top: 1px solid var(--seam); font-size: var(--fs-14); }
.match__name { font-weight: 600; color: var(--ink); }
.match__meta { grid-column: 1; display: flex; gap: 0.8rem; color: var(--silver); font-size: var(--fs-13); flex-wrap: wrap; }
.match__price { grid-column: 2; grid-row: 1; font-weight: 600; color: var(--ink); }
.match__diff, .match__unknown { grid-column: 1 / -1; font-size: var(--fs-13); color: var(--silver); }
.match__unknown { border-left: 2px dashed var(--seam-strong); padding-left: 0.5rem; }

/* Car cards in the chat: compact, tap to expand in place. */
.vcards { display: grid; gap: 0.5rem; align-self: stretch; }
.vcard { border: 1px solid var(--seam); border-radius: var(--r-panel); background: var(--panel); overflow: hidden; }
.vcard__top { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; width: 100%; padding: 0.5rem 0.75rem 0.5rem 0.5rem; font: inherit; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.vcard__top:hover { background: var(--raised); }
.vcard__photo { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--raised); }
.vcard__text { display: grid; gap: 0.15rem; min-width: 0; }
.vcard__title { font-weight: 620; color: var(--ink); font-size: var(--fs-14); line-height: 1.3; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: 0 0.6rem; font-size: var(--fs-13); color: var(--silver); }
.vcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; }
.vcard__express { font-weight: 680; color: var(--ink); font-variant-numeric: tabular-nums; }
.vcard__msrp { font-size: var(--fs-13); color: var(--silver); }
.vcard__save { font-size: var(--fs-13); font-weight: 600; color: var(--accent-text); }
.vcard__chev { width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--silver); border-bottom: 2px solid var(--silver); transform: rotate(45deg); margin: 0 0.25rem; transition: transform 0.15s ease; }
.vcard--open .vcard__chev { transform: rotate(-135deg); }
.vcard__more { padding: 0 0.85rem 0.85rem; font-size: var(--fs-14); }
.vcard__big { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-control); margin-bottom: 0.75rem; background: var(--raised); }
.vcard__facts { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin: 0 0 0.75rem; color: var(--silver); }
.vcard__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0; }
.vcard .ledger__total { font-size: 1.75rem; }
.vcard--open .vcard__top { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0.85rem; }
.vcard--open .vcard__photo { display: none; }

/* Forms inside the chat (email with consent, trade-in details). */
.chat__log .turn--form { width: min(36rem, 100%); max-width: 100%; }
.chat-form { display: grid; gap: 0.7rem; font-size: var(--fs-14); }
.chat-form__title { margin: 0; font-weight: 640; color: var(--ink); }
.chat-form__hint { margin: 0; color: var(--silver); }
.chat-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.chat-form__field { display: grid; gap: 0.25rem; color: var(--silver); }
.chat-form__field input, .chat-form__field select, .chat-form__field textarea { width: 100%; min-width: 0; min-height: 44px; color: var(--ink); }
.chat-form__field textarea { min-height: 4.5rem; resize: vertical; }
.chat-form__consent { display: flex; gap: 0.7rem; align-items: flex-start; min-height: 44px; cursor: pointer; color: var(--ink-2); }
.chat-form__consent input { margin-top: 0.15rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--accent); }
.chat-form__status { margin: 0; color: var(--alert); }
.chat-onfile { margin: 0.35rem 0 0; font-size: var(--fs-14); color: var(--silver); }
.linkish { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; min-height: 0; }
.linkish:hover { color: var(--accent-text); text-decoration-thickness: 2px; }
.linkish[disabled] { opacity: 0.6; cursor: progress; }
.chat-form__status:empty { display: none; }
.email-hint { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--ink-2); font-size: var(--fs-14); }
.email-hint[hidden] { display: none; }
.confirm { margin-top: 1rem; padding: 1.15rem 1.25rem; display: grid; gap: 0.85rem; font-size: var(--fs-14); }
.confirm p { margin: 0; }
.confirm label { display: flex; gap: 0.7rem; align-items: flex-start; min-height: 44px; cursor: pointer; }
.confirm input { margin-top: 0.15rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--accent); }
.confirm__result { padding: 0.75rem; border: 1px dashed var(--silver); border-radius: var(--r-control); color: var(--ink); }

/* ---- the ledger: the price arithmetic. The accent rule sits under a real price only. ------- */
.ledger td, .vtable .num, .facts--wide dd, .match__price, .counts li span:last-child, .incentives__amt, .status a, .car__price { font-variant-numeric: tabular-nums; }
.ledger__table { width: 100%; border-collapse: collapse; }
.ledger__row th { text-align: left; font-weight: 450; color: var(--silver); padding: 0.6rem 0; font-size: 0.9375rem; }
.ledger__row td { text-align: right; padding: 0.6rem 0; font-size: var(--fs-21); font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.ledger .cur { color: var(--silver); font-weight: 400; margin-right: 0.08em; font-size: 0.8em; }
.ledger__total .cur { font-size: 0.45em; vertical-align: 0.65em; letter-spacing: 0; }
.ledger__row + .ledger__row th, .ledger__row + .ledger__row td { border-top: 1px solid var(--seam); }
.ledger__row--total th { color: var(--ink); font-weight: 620; vertical-align: bottom; padding-top: 1rem; }
.ledger__row--total td { padding-top: 0.75rem; }
.ledger__row.ledger__row--total th, .ledger__row.ledger__row--total td { border-top: 2px solid var(--accent); }
.ledger__total { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.ledger__sub { display: block; font-size: var(--fs-13); color: var(--silver); }
/* The savings line under the total: the accent colour, a size down from the other figures. */
.ledger__row--save th { color: var(--accent-text); font-weight: 560; }
.ledger__row--save td { color: var(--accent-text); font-size: var(--fs-16); font-weight: 650; }
.ledger__row--save .cur { font-size: 1em; }
.ledger__row.ledger__row--save th, .ledger__row.ledger__row--save td { border-top: 0; padding-top: 0.25rem; }
.ledger__mark { margin: 0.9rem 0 0; font-size: var(--fs-14); color: var(--ink-2); }
.ledger__excl { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px dashed var(--seam-strong); }
.ledger__excl-title { margin: 0 0 0.3rem; font-size: var(--fs-14); font-weight: 620; color: var(--ink); }
.ledger__excl ul { margin: 0; padding: 0 0 0 1.1rem; font-size: var(--fs-14); color: var(--silver); display: grid; gap: 0.15rem; }
.ledger__excl li::marker { color: var(--seam-strong); }
.ledger__ref { margin: 1rem 0 0; font-size: var(--fs-13); color: var(--silver); }
.ledger--compact .ledger__total { font-size: var(--fs-28); }
.ledger--empty .ledger__none { font-weight: 620; color: var(--ink); margin: 0 0 0.25rem; }

/* single response-driven reveal */
.reveal .ledger__row, .reveal .summary__row { animation: rise 0.32s ease-out both; }
.reveal .ledger__row:nth-child(2), .reveal .summary__row:nth-child(2) { animation-delay: 0.05s; }
.reveal .ledger__row:nth-child(3), .reveal .summary__row:nth-child(3) { animation-delay: 0.1s; }
.reveal .summary__row:nth-child(n + 4) { animation-delay: 0.14s; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.incentives { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--seam); }
.incentives__title { margin: 0; font-size: var(--fs-14); font-weight: 620; color: var(--ink); }
.incentives ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.incentives li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; font-size: var(--fs-14); }
.incentives li > .muted { grid-column: 1 / -1; }
.incentives__amt { font-weight: 600; color: var(--ink); }

/* ---- notices --------------------------------------------------------------------- */
.notice { padding: 0.95rem 1.2rem; border-radius: var(--r-panel); margin: 1rem 0; color: var(--ink-2); }
.notice p { margin: 0; }
.notice--warn { border-color: var(--warn); }
.notice--quiet { border-style: dashed; border-color: var(--seam-strong); font-size: var(--fs-14); }
/* The overdue inventory check: one line with an amber dot, beside the data it qualifies. */
.fresh-note { display: flex; align-items: baseline; gap: 0.55rem; margin: 0 0 1.25rem; font-size: var(--fs-14); color: var(--silver); }
.fresh-note::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--warn); translate: 0 -0.05em; }
.coverage { font-size: var(--fs-14); color: var(--silver); margin: 0.5rem 0 1.5rem; }

/* ---- page sections ------------------------------------------------------------------- */
.section { padding-top: 2.5rem; padding-bottom: 1rem; }
.section--narrow > * { max-width: 46rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split--top { margin-top: 1rem; }
.split p { max-width: 50ch; }
.links-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0.25rem 0 0.5rem; }
.links-row a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; }

/* ---- tables (models, status) ---------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: 1.5rem 0 0.75rem; }
.filters label { display: grid; gap: 0.3rem; font-size: var(--fs-13); color: var(--silver); }
.table-wrap { overflow-x: auto; }
.vtable { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.vtable th, .vtable td { text-align: left; padding: 0.8rem 1rem; border-top: 1px solid var(--seam); vertical-align: top; }
.vtable th:first-child, .vtable td:first-child { padding-left: 1.4rem; }
.vtable th:last-child, .vtable td:last-child { padding-right: 1.4rem; }
.vtable thead th { border-top: 0; font-weight: 520; color: var(--silver); font-size: var(--fs-13); white-space: nowrap; }
.vtable .num { text-align: right; white-space: nowrap; }
.vtable td.num { font-weight: 560; color: var(--ink); }
.vtable__name { font-family: var(--font-display); font-stretch: var(--wide); font-weight: 660; font-size: var(--fs-16); color: var(--ink); text-decoration: none; }
.vtable__name:hover { color: var(--accent-text); }
.vtable tbody tr:hover { background: var(--raised); }
.pager { display: flex; justify-content: space-between; margin: 1.5rem 0 1rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; }

/* ---- inventory: filters, then car cards ------------------------------------------------ */
.inv-bar { display: grid; grid-template-columns: minmax(14rem, 1.6fr) minmax(11rem, 1fr) minmax(11rem, 1fr) auto auto; gap: 0.75rem; align-items: end; margin: 1.25rem 0 0.5rem; padding: 0.9rem; border: 1px solid var(--seam); border-radius: var(--r-card); background: var(--panel); }
.inv-field { display: grid; gap: 0.3rem; font-size: var(--fs-13); color: var(--silver); min-width: 0; }
.inv-field select, .inv-field input { width: 100%; min-width: 0; min-height: 44px; font-size: var(--fs-16); }
.inv-js .inv-bar__go, .inv-js .inv-more__apply { display: none; }
.inv-more { grid-column: auto; }
.inv-more__toggle { list-style: none; white-space: nowrap; }
.inv-more__toggle::-webkit-details-marker { display: none; }
.inv-more[open] .inv-more__toggle { background: var(--raised); }
.inv-more__n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.inv-more[open] { grid-column: 1 / -1; order: 9; }
.inv-more__panel { margin-top: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--seam); display: grid; gap: 0.75rem; justify-items: start; }
.inv-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem; width: 100%; }
.inv-more__note { margin: 0; max-width: 70ch; }
.inv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1.25rem 0 1rem; }
.inv-count { margin: 0; color: var(--silver); }
.inv-count:focus { outline: none; }
.inv-count__n { color: var(--ink); font-family: var(--font-display); font-stretch: var(--wide); font-size: 1.35rem; font-weight: 680; font-variant-numeric: tabular-nums; margin-right: 0.2rem; }
.inv-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.inv-chip { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.9rem; border-radius: var(--r-pill); border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-size: var(--fs-14); text-decoration: none; }
.inv-chip:hover { text-decoration: none; background: var(--panel); }
.inv-chip__x { color: var(--accent-text); font-size: 1.1rem; line-height: 1; }
.inv-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.4rem; }
.inv-error p { margin: 0.25rem 0; }
.inv[aria-busy='true'] .cars { opacity: 0.55; transition: opacity 0.15s ease; }

.cars { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1.25rem 1rem; }
.car { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.car:hover { border-color: var(--seam-strong); box-shadow: var(--lift); }
.car:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.car__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--raised); }
.car__photo--render { object-fit: contain; padding: 0.5rem; }
.car__body { display: grid; align-content: start; gap: 0.2rem; padding: 0.9rem 1.05rem 1rem; }
.car__name { margin: 0; font-size: var(--fs-16); font-weight: 640; line-height: 1.3; letter-spacing: -0.005em; }
.car__name a { color: var(--ink); text-decoration: none; }
/* The name's link covers the whole card. */
.car__name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.car__name a:focus-visible { outline: none; }
.car:hover .car__name a { color: var(--accent-text); }
.car__colors { margin: 0; font-size: var(--fs-14); color: var(--silver); }
.car__tag { justify-self: start; margin: 0.25rem 0 0; padding: 0.1rem 0.55rem; border-radius: var(--r-pill); background: var(--raised); font-size: var(--fs-13); color: var(--ink-2); }
.car__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; margin: 0.55rem 0 0; }
.car__express { font-size: var(--fs-21); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.car__msrp { font-size: var(--fs-13); color: var(--silver); }
.car__save { font-size: var(--fs-13); font-weight: 600; color: var(--accent-text); }
.car__vin { margin: 0.1rem 0 0; font-size: 0.75rem; color: var(--silver); }

/* ---- car page: photo and details on the left, the price card stays in view on the right ------ */
.crumbs ol { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0 0 0.75rem; font-size: var(--fs-14); color: var(--silver); flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--silver); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--seam-strong); }
.vhead { margin-bottom: 1.5rem; }
.vhead .h1 { margin-bottom: 0.35rem; }
.vhead__sub { margin: 0; color: var(--silver); font-size: var(--fs-18); }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr); gap: clamp(1.25rem, 3.5vw, 3rem); align-items: start; }
.vmain { min-width: 0; }
.vside { position: sticky; top: 5rem; }
.vphoto { margin: 0; }
.vphoto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--raised); }
.vphoto figcaption { margin-top: 0.5rem; }
.vphoto__none { aspect-ratio: 4 / 3; border: 1px dashed var(--seam-strong); border-radius: var(--r-card); display: grid; place-items: center; color: var(--silver); background: var(--panel); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 1rem 1.5rem; margin: 1.5rem 0 0; padding: 1.15rem 0; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); font-size: var(--fs-14); }
.facts dt { color: var(--silver); font-size: var(--fs-13); font-weight: 400; }
.facts dd { margin: 0.1rem 0 0; font-weight: 560; color: var(--ink); }
.facts--wide { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 1.5rem; padding: 0; border: 0; }
.facts--wide dd { font-size: var(--fs-21); font-weight: 660; letter-spacing: -0.015em; }
.vblock .h3 { margin-top: 2rem; }
.vprice .h3 { margin-top: 0; }
.vprice__next { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.vprice__special { margin: 0.25rem 0 0; }
.model-specials { margin: -0.5rem 0 1.5rem; max-width: 70ch; }

/* ---- specials: each offer with its fine print; the all-in figure sits on the accent rule ---------- */
.specials__src { margin: -0.5rem 0 2rem; max-width: 70ch; }
.specials__group + .specials__group { margin-top: 1rem; }
.specials__how { max-width: 70ch; margin: 0 0 1.25rem; font-size: var(--fs-14); color: var(--silver); }
.offers { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr)); gap: 1.25rem 1rem; }
.offer { display: grid; align-content: start; gap: 1rem; padding: clamp(1.1rem, 2vw, 1.5rem); background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-card); scroll-margin-top: 5.5rem; }
.offer:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.offer__photo-link { display: block; margin: calc(-1 * clamp(1.1rem, 2vw, 1.5rem)) calc(-1 * clamp(1.1rem, 2vw, 1.5rem)) 0; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.offer__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--raised); }
.offer__photo--render { object-fit: contain; padding: 0.5rem; }
.offer__photo-link--rep { position: relative; }
.offer__photo-note { position: absolute; left: 0.75rem; bottom: 0.6rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--panel); color: var(--silver); font-size: var(--fs-13); }
.offer__photo--none { margin: calc(-1 * clamp(1.1rem, 2vw, 1.5rem)) calc(-1 * clamp(1.1rem, 2vw, 1.5rem)) 0; width: auto; border-radius: var(--r-card) var(--r-card) 0 0; }
.offer__name { margin: 0; font-size: var(--fs-18); font-weight: 640; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.offer__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); }
.offer__fig { margin: 0; display: grid; align-content: start; gap: 0.2rem; font-size: var(--fs-14); color: var(--ink-2); }
.offer__pair--lease { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.offer__total { margin: 0; display: grid; gap: 0.2rem; font-size: var(--fs-14); color: var(--ink-2); }
.offer__total strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.offer__big { font-family: var(--font-display); font-stretch: var(--wide); font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer__sub { color: var(--silver); font-size: var(--fs-13); }
.offer__terms { margin: 0; display: grid; gap: 0.4rem; font-size: var(--fs-14); }
.offer__terms div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; }
.offer__terms dt { color: var(--silver); font-weight: 400; }
.offer__terms dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer__ours { margin: 0; font-size: var(--fs-14); }
.offer__fine { margin: 0; padding-top: 0.9rem; border-top: 1px dashed var(--seam-strong); font-size: 0.625rem; line-height: 1.4; color: var(--silver); }
.offer .btn { justify-self: start; }
.specials__about { max-width: 46rem; }
@media (max-width: 30rem) {
  .offer__terms div { grid-template-columns: 1fr; gap: 0; }
}
.vprice__next p { margin: 0.25rem 0 0; }
/* Where the listing comes from: folded away, for anyone who wants to check. */
.source { margin-top: 2rem; border-top: 1px solid var(--seam); }
.source > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.source > summary::-webkit-details-marker { display: none; }
.source > summary::after { content: ''; width: 0.5rem; height: 0.5rem; margin-right: 0.3rem; border-right: 2px solid var(--silver); border-bottom: 2px solid var(--silver); transform: rotate(45deg); transition: transform 0.15s ease; }
.source[open] > summary::after { transform: rotate(-135deg); }
.chips { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { background: var(--panel); color: var(--ink); border: 1px solid var(--seam-strong); border-radius: var(--r-pill); padding: 0.2rem 0.65rem; font-size: var(--fs-14); font-weight: 520; }
.plain { margin: 0 0 0.5rem; padding-left: 1.1rem; font-size: var(--fs-14); }
.specs { margin: 0; display: grid; font-size: var(--fs-14); }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--seam); }
.specs dt { color: var(--silver); font-weight: 400; }
.specs dd { margin: 0; color: var(--ink-2); }

.counts { list-style: none; margin: 0; padding: 0; font-size: var(--fs-14); }
.counts li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-top: 1px solid var(--seam); max-width: 26rem; }
.counts li span:last-child { font-weight: 600; color: var(--ink); }

/* ---- How it works: a numbered journey, then the deal sheet and checklist ------------------ */
.journey { list-style: none; margin: 2.25rem 0 2.5rem; padding: 0; display: grid; }
.journey__step { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.75rem; }
.journey__step:not(:last-child)::before { content: ''; position: absolute; left: calc(1.375rem - 1px); top: 3rem; bottom: 0.25rem; width: 2px; background: var(--seam); }
.journey__num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-family: var(--font-display); font-stretch: var(--wide); font-weight: 680; color: #ffffff; background: var(--accent); font-variant-numeric: tabular-nums; }
.journey__body { padding-top: 0.15rem; }
.journey__title { margin: 0.35rem 0 0.1rem; font-family: var(--font-display); font-stretch: var(--wide); font-size: var(--fs-21); font-weight: 660; letter-spacing: -0.015em; color: var(--ink); }
.journey__who { margin: 0 0 0.45rem; font-size: var(--fs-14); color: var(--silver); }
.journey__text { margin: 0; max-width: 58ch; color: var(--ink-2); }
.journey__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.how__card { padding: 1.25rem clamp(1.1rem, 2.5vw, 1.6rem); margin-bottom: 1rem; }
.how__card .h3 { margin: 0 0 0.75rem; }
.how__card p:last-child { margin-bottom: 0; }
.how__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.how__pair .how__card { margin-bottom: 0; }
.how__more { margin-top: 1.75rem; color: var(--silver); }
.checklist { padding-left: 1.1rem; }
.checklist li { margin-bottom: 0.5rem; }

/* ---- legal pages ------------------------------------------------------------------------------ */
.legal h2 { scroll-margin-top: 5rem; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--seam); }
.legal-table thead th { color: var(--silver); font-weight: 520; }
.legal-table tbody th { color: var(--ink); font-weight: 620; }

/* ---- FAQ: grouped drop-down questions (native <details>, no script) ------------------------- */
.faq-group { margin-top: 2.25rem; }
.faq-group__title { margin: 0 0 0.7rem; font-size: var(--fs-18); font-weight: 640; color: var(--ink); }
.faq { margin: 0; padding: 0 clamp(0.25rem, 1vw, 0.5rem); }
.faq__item + .faq__item { border-top: 1px solid var(--seam); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.85rem clamp(0.75rem, 2vw, 1.1rem); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--r-control); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ''; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.2rem; border-right: 2px solid var(--silver); border-bottom: 2px solid var(--silver); transform: rotate(45deg); transition: transform 0.15s ease; }
.faq__item[open] > .faq__q::after { transform: rotate(-135deg); }
.faq__q:hover { color: var(--accent-text); }
.faq__q:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.faq__a { margin: 0; padding: 0 clamp(0.75rem, 2vw, 1.1rem) 1.1rem; color: var(--ink-2); max-width: 62ch; }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.25rem; color: var(--silver); }

/* ---- responsive ------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .chat-drawer .chat { box-shadow: -24px 0 80px -30px rgba(16, 18, 24, 0.55); }
}
@media (max-width: 1000px) {
  .hero, .vgrid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__main .display { max-width: 12ch; }
  /* One column: photo, then the price card, then the details. */
  .vgrid { display: flex; flex-direction: column; align-items: stretch; }
  .vmain { display: contents; }
  .vside { position: static; order: 2; width: 100%; }
  .vphoto { order: 1; }
  .vmain > :not(.vphoto) { order: 3; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .inv-bar { grid-template-columns: 1fr 1fr; }
  .inv-field--search { grid-column: 1 / -1; }
  .inv-more { grid-column: 1 / -1; }
  .inv-more__toggle { width: 100%; }
}
@media (max-width: 760px) {
  .site-header__row { grid-template-columns: 1fr auto; height: 3.5rem; }
  .site-nav { display: none; }
  .site-header__end { grid-column: 2; }
  .menu { display: block; }
  .theme-js .theme-toggle--icon { display: none; }
}
@media (max-width: 640px) {
  .display { font-size: clamp(2.75rem, 14vw, 3.75rem); margin-bottom: 0.85rem; }
  .lede, .hero__main .lede { font-size: var(--fs-18); margin-bottom: 1.25rem; }
  .command textarea { min-height: 4.75rem; font-size: 1.0625rem; padding: 0.85rem 0.9rem; }
  .board__title, .board__row, .board__note { padding-left: 1.1rem; padding-right: 1.1rem; }
  .board__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .board__count { grid-column: 1; grid-row: 2; }
  .board__from { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.75rem; }
  .step::before { grid-row: span 2; font-size: var(--fs-28); margin: 0; }
  .how__pair { grid-template-columns: 1fr; }
  .journey__step { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.85rem; }
  .journey__num { width: 2.25rem; height: 2.25rem; }
  .journey__step:not(:last-child)::before { left: calc(1.125rem - 1px); top: 2.5rem; }
  .journey__title { font-size: var(--fs-18); }
  .inv-bar { grid-template-columns: 1fr; padding: 0.75rem; gap: 0.6rem; }
  .cars { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .vtable th, .vtable td { padding: 0.65rem 0.55rem; }
  .vtable th:first-child, .vtable td:first-child { padding-left: 0.95rem; }
  .vtable th:last-child, .vtable td:last-child { padding-right: 0.95rem; }
  .vtable thead th { white-space: normal; }
  .vtable th:nth-child(2), .vtable td:nth-child(2) { display: none; }
  .site-footer { margin-top: 4rem; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; padding-top: 2.5rem; }
  .legal-table { overflow-x: auto; }
  .legal-table table { min-width: 34rem; }
  .chat-drawer { width: 100vw; }
  .chat-drawer .chat { border-left: 0; box-shadow: none; }
  html.chat-open, html.chat-open body { overflow: hidden; }
}

@media (forced-colors: active) {
  .command, .chat, .sheet, .table-wrap, .notice, .confirm, .faq, .stages, .board, .car { border: 1px solid CanvasText; }
  .wordmark__mark, .chat__avatar svg { forced-color-adjust: none; fill: CanvasText; }
  .btn--primary { border: 2px solid ButtonText; }
  .ledger__row.ledger__row--total th, .ledger__row.ledger__row--total td { border-top-color: CanvasText; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-compact .site-header { background: var(--ground); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .site-header, .site-header .wordmark__track, .site-header .wordmark__clip, .site-header .wordmark__mark, .site-header .nav { transition: none; }
  .btn, .try__item, .chat__ideas-toggle, .chat__ideas-chev, .board__row, .car, .chat-drawer, .vcard__chev, .faq__q::after, .source > summary::after, .chat .chat__composer textarea { transition: none; }
  .mascot, .mascot-say { transition: none; animation: none; }
  .inv[aria-busy='true'] .cars { transition: none; }
  .btn:active { transform: none; }
  .reveal .ledger__row, .reveal .summary__row { animation: none; }
}

/* ---- staff dashboard (/admin): plain, dense, readable --------------------------------------- */
.admin-head { border-bottom: 1px solid var(--seam); }
.admin-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-height: 3.5rem; }
.admin-tag { font-size: var(--fs-13); color: var(--silver); border: 1px solid var(--seam-strong); border-radius: var(--r-pill); padding: 0.1rem 0.6rem; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin-left: auto; font-size: var(--fs-14); }
.admin-nav a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.admin-nav a[aria-current='page'] { color: var(--ink); font-weight: 620; text-decoration: underline; text-underline-offset: 0.35em; }
.admin-nav__out { margin: 0; }
.admin-link { font: inherit; color: var(--silver); background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; }
.admin-main { padding-top: 1.5rem; padding-bottom: 4rem; }
.admin-main .h3:first-child { margin-top: 0; }
.admin-flash { margin: 0 0 1rem; padding: 0.6rem 0.9rem; border: 1px solid var(--seam-strong); border-radius: var(--r-control); background: var(--panel); color: var(--ink); }
.admin-error { margin: 0; color: var(--red-text); }
.admin-login { max-width: 24rem; margin: 3rem auto; display: grid; gap: 0.8rem; }
.admin-login .h3 { margin: 0; }
.admin-card { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-panel); }
.admin-card + .admin-card { margin-top: 0.75rem; }
.admin-card__title { margin: 0; font-weight: 620; color: var(--ink); font-size: var(--fs-16); }
.admin-card--link { color: var(--ink-2); text-decoration: none; }
.admin-card--link:hover { border-color: var(--seam-strong); }
.admin-section { margin-bottom: 2rem; }
.admin-count { display: inline-block; min-width: 1.6em; padding: 0 0.4em; border-radius: var(--r-pill); background: var(--raised); color: var(--ink-2); font-size: var(--fs-13); text-align: center; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 0.6rem 0.8rem; background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-control); }
.admin-row__main { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.admin-row__wait { color: var(--silver); font-size: var(--fs-14); white-space: nowrap; }
.admin-overdue { color: var(--red-text); }
.admin-inline { margin: 0; }
.admin-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: var(--r-pill); border: 1px solid var(--seam-strong); font-size: var(--fs-13); color: var(--ink-2); white-space: nowrap; }
.admin-badge--trade-in-submitted, .admin-badge--customer-wants-person, .admin-badge--customer-requested-car { border-color: var(--red-text); color: var(--ink); }
.admin-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 1fr); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.75rem; }
.admin-col { display: grid; align-content: start; gap: 0.5rem; min-width: 0; }
.admin-col__title { margin: 0 0 0.25rem; font-size: var(--fs-14); font-weight: 620; color: var(--ink-2); }
.admin-col .admin-card + .admin-card { margin-top: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.25rem; }
.admin-stack { display: grid; gap: 0.75rem; min-width: 0; }
.admin-stack > *, .admin-board > * { min-width: 0; }
.admin-stack > section > .h3 { margin-top: 0.5rem; }
.admin-form { display: grid; gap: 0.6rem; }
.admin-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 0.9rem; margin: 0; font-size: var(--fs-14); }
.admin-dl dt { color: var(--silver); }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-estimate { margin: 0; font-weight: 620; color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.admin-table th, .admin-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--seam); vertical-align: top; }
.admin-table th { color: var(--silver); font-weight: 520; }
.admin-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-height: 32rem; overflow-y: auto; }
.admin-chat__msg { padding: 0.5rem 0.75rem; border-radius: var(--r-control); background: var(--panel); border: 1px solid var(--seam); font-size: var(--fs-14); }
.admin-chat__msg--customer { background: var(--raised); }
.admin-chat__msg p { margin: 0.2rem 0 0; }
.admin-chat__who { color: var(--silver); font-size: var(--fs-13); }
.admin-timeline { list-style: none; margin: 0; padding: 0 0.25rem 0 0; display: grid; gap: 0.6rem; font-size: var(--fs-14); max-height: 22rem; overflow-y: auto; }
.admin-timeline__body { display: block; margin-top: 0.15rem; color: var(--ink-2); white-space: pre-wrap; }
@media (max-width: 760px) {
  /* One column: contact and alerts, then the timeline (shares order 3 and comes first in source), trade-in, the rest. */
  .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .admin-stack { display: contents; }
  .admin-grid > * > * { min-width: 0; }
  .admin-o1 { order: 1; } .admin-o2 { order: 2; } .admin-o3 { order: 3; } .admin-o4 { order: 4; } .admin-o5 { order: 5; }
  .admin-o6 { order: 6; } .admin-o7 { order: 7; } .admin-o8 { order: 8; } .admin-o9 { order: 9; } .admin-o10 { order: 10; }
  .admin-table { display: block; overflow-x: auto; }
}
/* Contents list at the top of the privacy notice and terms. */
.legal-toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--seam); border-radius: var(--r-control); }
.legal-toc__title { margin: 0 0 0.5rem; font-weight: 620; }
.legal-toc ul { columns: 2 15rem; column-gap: 2rem; margin: 0; font-size: var(--fs-14); }
.legal-toc li { break-inside: avoid; }
.prose .legal-toc li + li { margin-top: 0.2rem; }
.prose .legal-toc--numbered ul { list-style: none; padding-left: 0; }
/* Cloudflare Turnstile slot (forms that send email). Usually stays empty: the check asks for a click only when unsure. */
.turnstile:empty { display: none; }
.turnstile { max-width: 100%; overflow: hidden; }

/* ---- deal sheets (/deal/<token>, and the staff preview in /admin). Prints on one page with only the sheet. ---- */
.deal { background: var(--panel); border: 1px solid var(--seam); border-radius: var(--r-panel); padding: clamp(1.25rem, 4vw, 2.25rem); color: var(--ink); }
.deal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--accent); }
.deal__meta { text-align: right; }
.deal__meta p { margin: 0.15rem 0 0; color: var(--ink-2); font-size: var(--fs-13); }
.deal__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-21); font-weight: 700; letter-spacing: -0.01em; }
.deal__valid { font-weight: 600; color: var(--ink) !important; }
.deal__car { padding: 1.25rem 0 0.25rem; }
.deal__car-name { margin: 0 0 0.25rem; font-size: var(--fs-21); font-weight: 650; }
.deal__car p { margin: 0; color: var(--ink-2); }
.deal__table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-variant-numeric: tabular-nums; }
.deal__table caption { text-align: left; font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); padding-bottom: 0.35rem; }
.deal__row th { text-align: left; font-weight: 450; padding: 0.45rem 0; color: var(--ink-2); }
.deal__row td { text-align: right; padding: 0.45rem 0; font-weight: 560; white-space: nowrap; }
.deal__row + .deal__row th, .deal__row + .deal__row td { border-top: 1px solid var(--seam); }
.deal__row--save th, .deal__row--save td { color: var(--accent-text); }
.deal__row.deal__row--total th, .deal__row.deal__row--total td { border-top: 2px solid var(--accent); color: var(--ink); font-weight: 700; }
.deal__row--total td { font-size: var(--fs-21); }
.deal__row--note th, .deal__row--note td { color: var(--accent-text); font-size: var(--fs-13); }
.deal__label { margin: 0 0 0.25rem; font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); }
.deal__note { margin-top: 1.5rem; padding: 0.9rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r-control) var(--r-control) 0; }
.deal__note p { margin: 0.2rem 0 0; }
.deal__fine { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--seam); font-size: var(--fs-13); color: var(--ink-2); }
.deal__fine p { margin: 0 0 0.4rem; }
.deal__actions { display: flex; justify-content: flex-end; margin: 0 0 0.75rem; }
.deal .wordmark { pointer-events: none; }
@media (max-width: 560px) { .deal__meta { text-align: left; } }
@media print {
  .site-header, .site-footer, .chat-drawer, .mascot, .deal__actions, .skip { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section { padding: 0 !important; }
  .deal { border: 0; padding: 0; background: #fff; color: #000; }
  .deal__row th, .deal__row td, .deal__meta p, .deal__car p, .deal__fine { color: #000 !important; }
  .deal__note { background: none; }
}
/* Deal sheet form in /admin. */
.admin-form [hidden] { display: none !important; }
.admin-form .chat-form__row { align-items: end; }
.deal-form__vin { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: end; }
.deal-form__pair { grid-template-columns: 2fr 1fr; }
[data-deal-form] > .admin-card { margin-bottom: 1rem; }
.deal-group + .deal-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--seam); }
.deal-group__car { margin: 0 0 0.25rem; font-weight: 600; }
.deal-group__car .vin { font-weight: 400; color: var(--silver); margin-left: 0.4rem; }
/* Model page counts that open the inventory with those filters set. */
.counts--links li { padding: 0; }
.counts__link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0.45rem 0.4rem; margin: 0 -0.4rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.counts__link span:last-child { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.counts__link span:last-child::after { content: '›'; color: var(--silver); font-weight: 400; transition: transform 0.15s ease; }
.counts__link:hover, .counts__link:focus-visible { background: var(--raised); color: var(--ink); }
.counts__link:hover span:last-child::after { color: var(--accent-text); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .counts__link span:last-child::after { transition: none; } }
