/* LeonidaRides V5 — one interface system. Legacy layout is isolated in @layer layout. */
@font-face {
  font-family: Anton;
  src: url("/assets/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --bg: #0e0c14;
  --card: #19161f;
  --surface: #211c28;
  --input: #131018;
  --ink: #fff5e9;
  --muted: #bcb3c4;
  --mint: #efadc3;
  --peach: #f5bb91;
  --teal: #8ed9c6;
  --line: #3b3144;
  --dark: #0e0c14;
  --head: Anton, sans-serif;
  --body: Manrope, sans-serif;
  --mono: "Barlow Condensed", sans-serif;
  --radius: 10px;
  --shadow: 0 14px 42px #0005;
  --fast: 120ms;
  --normal: 180ms;
  --overlay: 220ms;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-panel: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f0ec;
  --card: #fffaf5;
  --surface: #eae3e4;
  --input: #fffcf9;
  --ink: #29222f;
  --muted: #685e70;
  --mint: #9c3f64;
  --peach: #984b2e;
  --teal: #247160;
  --line: #d2c7cf;
  --dark: #29222f;
  --shadow: 0 14px 42px #4e32451a;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
  scrollbar-color: #8c7187 var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
body::before {
  display: none;
}
body,
dialog,
.select-panel,
.nav-panel {
  font-family: var(--body);
}
div,
section,
article,
aside,
nav,
header,
footer {
  color: inherit;
}
span,
a,
label,
li,
dt,
dd,
code,
kbd {
  color: inherit;
  font-size: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}
p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
h1,
h2 {
  color: var(--ink);
  font-family: var(--head);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: 72px;
}
h2 {
  font-size: 40px;
}
h3 {
  font: 700 22px/1.4 var(--body);
  color: var(--ink);
  letter-spacing: -0.025em;
}
h4 {
  font-size: 19px;
}
small {
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: 500 16px/1.5 var(--body);
  color: var(--ink);
  caret-color: var(--mint);
}
button {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  cursor: pointer;
  transition:
    background-color var(--fast) ease,
    color var(--fast) ease,
    border-color var(--fast) ease,
    transform var(--fast) var(--ease);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}
input:not([type="checkbox"]):not([type="file"]),
textarea,
select {
  background: var(--input);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 50px;
  padding: 12px 14px;
  max-width: 100%;
  box-shadow: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type="checkbox"] {
  accent-color: var(--mint);
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}
input[type="file"] {
  max-width: 100%;
  font-size: 15px;
}
textarea {
  width: 100%;
  line-height: 1.7;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
input:disabled {
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
::selection {
  background: #eaa1bc;
  color: #241b2c;
}
.container {
  width: calc(100% - 64px);
  max-width: 1200px;
  margin-inline: auto;
}
.mono,
.eyebrow {
  font: 600 15px/1.5 var(--mono);
  letter-spacing: 0.07em;
}
.eyebrow {
  color: var(--mint);
  margin-bottom: 12px;
}
.tag {
  font: 600 14px/1.3 var(--body);
  letter-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 5px;
  padding: 5px 8px;
}
.tag.mint {
  color: var(--teal);
  background: var(--surface);
  border-color: var(--line);
}
.slash {
  color: var(--muted);
}
.skip-link:focus {
  background: var(--card);
  color: var(--ink);
  z-index: 1000;
}
.button,
.text-link {
  font: 600 16px/1.5 var(--body);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.button.primary {
  background: var(--mint);
  color: #261924;
  border-color: var(--mint);
}
:root[data-theme="light"] .button.primary {
  color: #fff8f4;
}
.text-link {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.data-note,
.callout {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.callout {
  background: var(--card);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 1px solid var(--line);
}
/* Navigation persists as the same shell on every page. */
.preview-line {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  color: var(--muted);
}
.preview-line .container {
  font: 600 13px/1.7 var(--mono);
  letter-spacing: 0.04em;
  max-width: 1440px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  color: var(--ink);
}
.nav-wrap {
  max-width: 1440px;
  min-height: 76px;
  display: flex;
  gap: 24px;
}
.brand {
  font: 700 20px/1.05 var(--body);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  min-width: 160px;
}
.brand span {
  font-size: inherit;
}
.brand-dot {
  display: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #171522;
  border: 1px solid #665165;
}
.brand-mark img {
  width: 40px;
  height: 40px;
}
.primary-nav {
  gap: 2px;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.primary-nav > a,
.nav-item > a {
  font: 600 16px/1.5 var(--body);
  color: var(--muted);
  padding: 12px 10px;
  border: 0;
  border-radius: 6px;
  min-height: 46px;
}
.primary-nav a[aria-current]::after {
  display: none;
}
.primary-nav a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  border: 0;
}
.nav-item {
  display: flex;
  position: relative;
  align-items: center;
  border-radius: 7px;
}
.nav-toggle {
  min-width: 24px;
  width: 24px;
  padding: 0;
  min-height: 44px;
  margin-left: -5px;
  color: var(--muted);
}
.nav-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform var(--normal) var(--ease);
}
.nav-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav-item[data-open="true"] {
  background: var(--surface);
}
.nav-panel {
  position: fixed;
  z-index: 120;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 120px);
  overflow: auto;
  transform-origin: top center;
  overscroll-behavior: contain;
}
.nav-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.nav-panel a small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.nav-panel a[aria-current] {
  background: var(--surface);
  color: var(--mint);
}
.nav-panel::before {
  content: "";
  display: block;
  height: 90px;
  background-image:
    linear-gradient(0deg, #17121c55, #17121c00), var(--nav-scene);
  background-position: center;
  background-size: cover;
  border-radius: 7px;
  margin-bottom: 8px;
}
.progress-link {
  font: 600 15px/1.5 var(--body);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 14px;
  white-space: nowrap;
}
.progress-link svg {
  width: 18px;
  height: 18px;
}
.saved-dot,
.mint-dot {
  background: var(--teal);
}
.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}
.menu-button {
  color: var(--ink);
  width: 44px;
  height: 44px;
}
.mobile-nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  box-shadow: var(--shadow);
  padding: 12px 24px;
  overscroll-behavior: contain;
}
.mobile-nav > a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 600 18px/1.5 var(--body);
}
/* Photography carries atmosphere, then resolves into the same calm tool surface. */
.home-hero,
.sub-hero {
  background: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff5e9;
}
.home-hero {
  min-height: 590px;
}
.hero-art,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-image {
  object-fit: cover;
  object-position: center 60%;
  opacity: 1;
  animation: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #110c19cc 0%, #20122678 43%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, #120c1800 45%);
}
.hero-content {
  padding-block: 78px 86px;
  background: transparent;
}
.home-hero h1 {
  font: 400 88px/1.04 var(--head);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 850px;
  color: #fff5e9;
  text-shadow: none;
  margin: 0;
}
.home-hero h1 em {
  font-style: normal;
  color: #f6b89b;
  white-space: nowrap;
}
.home-hero p {
  color: #f1e5ee;
  max-width: 660px;
  font-size: 19px;
  line-height: 1.7;
  margin-block: 25px;
}
.hero-search {
  max-width: 580px;
  min-height: 58px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff3e6;
  border: 1px solid #fff3e6;
  box-shadow: 0 8px 24px #0002;
}
.hero-search input {
  font: 500 17px var(--body);
  min-height: 56px;
  border: 0 !important;
  color: #302433;
  background: transparent !important;
  padding: 12px 18px;
  min-width: 0;
}
.hero-search input::placeholder {
  color: #625669;
}
.hero-search button {
  min-height: 58px;
  width: 64px;
  background: #f3b49c;
  color: #2d2131;
  font-size: 26px;
}
.hero-tool-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-tool-links a {
  font: 600 15px/1.5 var(--body);
  padding-bottom: 7px;
  color: #f9e8dd;
  border-bottom: 1px solid #d0a6b3;
  min-height: 40px;
}
.hero-caption,
.hero-coordinate {
  font: 500 12px/1.5 var(--body);
  letter-spacing: 0.025em;
  color: #e8d8e4;
  text-shadow: 0 1px 4px #000;
  max-width: calc(100% - 40px);
}
.hero-caption {
  bottom: 20px;
  right: 28px;
}
.hero-coordinate {
  display: none;
}
.collection-strip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: none;
  position: relative;
  margin-top: 0;
  min-height: 78px;
  font: 600 15px/1.5 var(--body);
}
.collection-strip > div:first-child {
  font-size: 15px;
  gap: 10px;
}
.collection-strip small {
  color: var(--muted);
  font-size: 14px;
  margin-left: 10px;
}
.collection-strip b {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.collection-strip a {
  font-size: 15px;
  color: var(--mint);
}
.thin-progress {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.thin-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e99aba, #edb58b);
  transform-origin: left center;
  transition: transform var(--normal) var(--ease);
}
.sub-hero {
  min-height: 440px;
  border-bottom: 0;
  padding: 0;
}
.sub-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #110d1bd9, #180d2155 70%),
    linear-gradient(0deg, var(--bg), #130b1800 85%), var(--world-scene);
  background-size: cover;
  background-position: center 46%;
  animation: none;
}
.sub-hero > .container {
  position: relative;
  padding-block: 30px 62px;
}
.sub-hero h1 {
  font: 400 clamp(48px, 5.5vw, 76px) / 1.12 var(--head);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 1020px;
  color: #fff5e9;
  margin: 26px 0 20px;
}
.sub-hero p {
  font: 400 18px/1.75 var(--body);
  max-width: 720px;
  color: #eddfeb;
}
.sub-hero .eyebrow {
  font-size: 14px;
  color: #f2bc9b;
}
.breadcrumbs {
  font-size: 14px;
  color: #e4d0e0;
  gap: 12px;
  line-height: 1.6;
  margin-bottom: 27px;
}
.breadcrumbs a {
  text-decoration: underline;
}
.meta {
  font: 500 14px/1.5 var(--body);
  color: #d7cad9;
  gap: 24px;
  margin-top: 24px;
}
.meta a {
  color: #f2bc9b;
}
.meta i {
  background: #8ed9c6;
}
.section-picker {
  width: calc(100% - 64px);
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  gap: 20px;
  display: flex;
  align-items: center;
}
.section-picker label {
  font-size: 16px;
  font-weight: 600;
  min-width: 110px;
}
.section-picker small {
  font-size: 14px;
  color: var(--muted);
}
.section-picker select,
.section-picker .select-control {
  flex: 1;
  min-width: 0;
}
.section-context {
  display: block;
  font: 600 14px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 9px;
}
.indexed-group > h3 {
  font: 400 28px/1.3 var(--head);
  color: var(--ink);
  margin-bottom: 18px;
}
.indexed-group {
  margin-top: 30px;
  scroll-margin-top: 110px;
}
.content-section,
.database {
  padding-block: 44px 28px;
}
.section-heading {
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  font: 400 39px/1.2 var(--head);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}
.count {
  display: inline-flex;
  font: 600 16px/1 var(--body);
  vertical-align: middle;
  margin-left: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px;
  border-radius: 6px;
}
.section-space {
  margin-top: 36px;
}
.database-toolbar {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 14px;
  margin-bottom: 22px;
}
.search-box {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
}
.search-box:focus-within {
  border-color: var(--teal);
}
.search-box input[type="search"] {
  font-size: 17px;
  background: transparent;
  border: 0;
  padding: 8px;
  box-shadow: none;
  min-height: 50px;
  min-width: 0;
  flex: 1;
  outline: none;
}
.search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.search-box kbd {
  font: 500 14px var(--body);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
}
.view-controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
  gap: 3px;
}
.view-controls button {
  border: 0;
  border-radius: 4px;
  min-height: 40px;
  min-width: 44px;
  color: var(--muted);
}
.view-controls button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
}
.view-controls svg {
  width: 19px;
  height: 19px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  scrollbar-width: thin;
  padding: 0 0 10px;
  margin-bottom: 16px;
}
.filter-tabs button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
  padding: 10px 14px;
  font: 600 15px/1.5 var(--body);
  color: var(--muted);
  background: transparent;
  min-height: 44px;
}
.filter-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.filter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.secondary-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.secondary-filters > label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 15px;
}
.secondary-filters > .select-control {
  width: 210px;
}
.secondary-filters > .select-control:last-child {
  width: 170px;
}
#car-count {
  font: 500 14px/1.5 var(--body);
  color: var(--muted);
  white-space: nowrap;
  min-width: 160px;
  text-align: right;
  margin: 0;
}
.vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: none;
  min-width: 0;
  transition: border-color var(--fast) ease;
}
.car-art {
  background: #e7e2da;
  aspect-ratio: 16/10;
  position: relative;
  border-radius: 7px;
  margin: 10px 10px 0;
  overflow: hidden;
}
.car-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms var(--ease);
}
.car-number {
  font: 500 12px/1.5 var(--body);
  background: #fff8ecbf;
  color: #554853;
  padding: 4px 6px;
  border-radius: 4px;
  top: 10px;
  left: 10px;
}
.art-caption {
  font: 500 11px/1.5 var(--body);
  color: #4c414d;
  bottom: 8px;
  left: 10px;
}
.save-car {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  top: 8px;
  right: 8px;
  background: #2b2032e6;
  border: 1px solid #fff7;
  color: #fff7eb;
}
.save-car svg {
  width: 17px;
  height: 17px;
  transition:
    fill var(--fast) ease,
    stroke var(--fast) ease,
    transform var(--fast) var(--ease);
}
.save-car[aria-pressed="true"] svg {
  fill: #edabc5;
  stroke: #edabc5;
}
.car-info {
  padding: 20px 20px 16px;
  background: var(--card);
  color: var(--ink);
}
.car-meta {
  font: 600 12px/1.5 var(--body);
  letter-spacing: 0.025em;
  color: var(--muted);
  gap: 8px;
  display: flex;
  justify-content: space-between;
}
.status-inline {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--teal);
  white-space: nowrap;
}
.car-info h3,
.car-open {
  font: 700 21px/1.4 var(--body);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: none;
}
.car-info h3 {
  margin: 12px 0 16px;
  min-height: 59px;
}
.car-open {
  padding: 0;
  min-height: 0;
  text-align: left;
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}
.car-open span {
  font-size: 18px;
  color: var(--mint);
}
.vehicle-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 12px 0 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vehicle-values > span {
  font: 600 12px/1.5 var(--body);
  color: var(--muted);
}
.vehicle-values b {
  display: block;
  font: 700 19px/1.6 var(--body);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.vehicle-values small {
  font-size: 13px;
  color: var(--muted);
}
.car-checks {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  padding: 16px 0 12px;
}
.check-label,
.car-checks .check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1.5 var(--body);
  color: var(--muted);
  min-height: 32px;
  cursor: pointer;
}
.check-label input:checked + span {
  color: var(--teal);
}
.card-dossier {
  font: 600 14px/1.5 var(--body);
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}
.vehicle-grid.table-view {
  display: block;
}
.table-view .vehicle-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  margin-bottom: 12px;
}
.table-view .car-art {
  aspect-ratio: 4/3;
  margin: 10px;
}
.table-view .car-info {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 180px;
  gap: 0 20px;
  padding: 16px;
}
.table-view .car-meta {
  grid-column: 1;
}
.table-view .car-info h3 {
  margin: 8px 0;
  min-height: 0;
}
.table-view .vehicle-values {
  grid-column: 2;
  grid-row: 1/4;
  padding: 10px;
  border: 0;
}
.table-view .car-checks {
  padding: 8px 0;
  grid-column: 1/3;
}
.table-view .card-dossier {
  grid-column: 1/3;
}
.empty-state {
  border: 1px dashed var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  font-size: 24px;
}
.empty-state p {
  font-size: 17px;
}
/* Shared working surfaces and data rows. */
.panel,
.result-panel,
.garage-card,
.link-card,
.guide-card,
.progress-card,
.source-directory {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: none;
}
.panel,
.result-panel {
  padding: 30px;
  min-width: 0;
}
.panel h2,
.result-panel h2 {
  font: 400 36px/1.2 var(--head);
  margin: 0 0 20px;
}
.panel p,
.result-panel p {
  font-size: 17px;
}
.result-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 350px;
  background-image:
    linear-gradient(180deg, #100d1790, #100d17f5 85%), var(--world-scene);
  background-position: center;
  background-size: cover;
  color: #fff5e9;
  border-color: var(--line);
}
.result-panel h2 {
  font-size: 56px;
  line-height: 1.08;
  color: #fff5e9;
}
.result-panel h2 em {
  color: #f6b89b;
  font-style: normal;
}
.result-panel p {
  color: #ebdfea;
}
.result-panel small {
  color: #bfb0c5;
  line-height: 1.6;
}
.result-panel a {
  font-size: 16px;
  color: #f4b9cc;
}
.tool-layout {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 44px;
}
.form-grid {
  gap: 20px;
}
.form-grid label {
  font: 600 15px/1.6 var(--body);
  color: var(--muted);
  min-width: 0;
  gap: 9px;
}
.form-grid label:has(input[type="checkbox"]) {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  font-size: 17px;
  width: 100%;
}
.form-grid input[type="checkbox"] {
  width: 19px;
  flex: 0 0 19px;
  margin-top: 3px;
}
.form-grid .span-two {
  grid-column: 1/-1;
}
.link-grid {
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 32px;
}
.link-grid:has(.money-method) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.link-card {
  padding: 26px;
  position: relative;
  min-height: 160px;
  background-image: linear-gradient(110deg, var(--card) 40%, transparent);
}
.link-card h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.link-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.link-arrow {
  color: var(--mint);
  font-size: 25px;
}
.payout {
  font: 400 35px/1.2 var(--head);
  color: var(--peach);
}
.inline-select {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}
.inline-select > .select-control {
  min-width: 170px;
}
.garage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.garage-card {
  padding: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.garage-card h3 {
  font-size: 22px;
  min-height: 62px;
}
.garage-card p {
  font-size: 15px;
  color: var(--muted);
}
.garage-card strong {
  font: 400 36px/1.2 var(--head);
  color: var(--peach);
  margin: 16px 0;
}
.garage-card .eyebrow {
  font-size: 13px;
}
.budget-total {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 20px;
}
.budget-total small {
  font-size: 13px;
  color: var(--muted);
}
.budget-total b {
  font: 400 36px/1.3 var(--head);
  color: var(--peach);
  display: block;
  min-width: 170px;
}
.inline-actions {
  gap: 18px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.inline-actions a {
  font-size: 16px;
}
.prose {
  max-width: 820px;
  color: var(--muted);
}
.prose p,
.prose li {
  font-size: 18px;
  line-height: 1.85;
}
.prose h2 {
  font-size: 35px;
  margin-top: 42px;
}
.prose h3 {
  font-size: 23px;
  margin-top: 28px;
}
.prose a,
.article-body a {
  color: var(--mint);
  text-decoration: underline;
}
.prose p + p {
  margin-top: 16px;
}
.content-section.prose {
  max-width: 820px;
}
.data-list {
  border-top: 1px solid var(--line);
  background: transparent;
}
.operation-row,
.safe-row,
.cheat-row,
.mission-row,
.collection-row {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 22px 18px;
  color: var(--ink);
  min-width: 0;
  border-radius: 0;
}
.operation-row h3,
.safe-row h3,
.cheat-row h3,
.mission-row h3,
.collection-row h3 {
  font: 700 20px/1.5 var(--body);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.operation-row p,
.safe-row p,
.cheat-row p,
.collection-row p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.operation-row .eyebrow,
.safe-row .eyebrow,
.cheat-row .eyebrow,
.mission-row .eyebrow {
  font-size: 14px;
}
.safe-code code {
  font: 600 27px/1.5 var(--body);
  letter-spacing: 0.12em;
  background: var(--input);
  color: var(--peach);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
}
.safe-code button,
.cheat-input button {
  font-size: 14px;
  color: var(--mint);
}
.safe-row a,
.operation-row > a {
  font-size: 14px;
  color: var(--muted);
}
.operation-icon {
  background: var(--surface);
  color: var(--mint);
  width: 46px;
  height: 46px;
}
.database-toolbar label,
.database-toolbar .select-label {
  min-width: 0;
}
.platform-switch {
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 8px;
  background: var(--card);
  gap: 4px;
}
.platform-switch button {
  font: 600 16px/1.5 var(--body);
  border: 0;
  border-radius: 5px;
  padding: 10px 24px;
  color: var(--muted);
}
.platform-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.platform-instructions {
  font-size: 17px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
}
.cheat-input {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}
kbd {
  font-family: var(--body);
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: none;
  padding: 4px 7px;
}
.controller-sequence {
  gap: 6px;
}
.controller-sequence kbd {
  min-width: 32px;
  min-height: 32px;
}
.story-toolbar {
  font-size: 16px;
  gap: 20px;
  flex-wrap: wrap;
}
.story-toolbar > span {
  font-size: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.spoiler-toggle {
  font: 600 16px/1.5 var(--body);
  color: var(--ink);
  gap: 12px;
}
.spoiler-cover {
  font-size: 18px;
  color: var(--muted);
}
.spoiler-real {
  font-size: 19px;
}
.chapter-overview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.chapter-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  color: var(--muted);
}
.chapter-tile b {
  font: 400 48px/1.3 var(--head);
  color: var(--ink);
}
.chapter-tile.highlight {
  background: var(--surface);
  border-color: var(--mint);
}
.chapter-tile span {
  font-size: 13px;
}
.story-progress {
  margin-block: 24px;
}
.mission-row .mono {
  font-size: 17px;
  color: var(--muted);
}
.spoiler-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 18px 0;
  overflow: hidden;
}
.spoiler-detail summary,
.faq summary,
.puzzle-stage summary {
  font: 600 18px/1.5 var(--body);
  padding: 20px 22px;
  color: var(--ink);
  min-height: 64px;
}
.spoiler-detail summary span {
  font-size: 14px;
  color: var(--muted);
}
.spoiler-detail .prose {
  padding: 0 24px 20px;
}
.spoiler-detail > div:not(.prose) {
  padding: 20px;
}
.faq {
  margin-top: 52px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq summary {
  padding: 22px 0;
}
.faq summary > span {
  font: 400 25px/1 var(--body);
  color: var(--mint);
  transition: transform var(--normal) var(--ease);
}
.faq details[open] summary > span {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 17px;
  color: var(--muted);
  max-width: 80ch;
  padding: 0 0 18px;
}
.collection-row input[type="number"] {
  width: 100px;
}
.collection-row label {
  font-size: 15px;
  color: var(--muted);
}
.collection-row .thin-progress {
  background: var(--line);
}
.collection-row input[data-stunt-note] {
  font-size: 15px;
  min-width: 0;
  max-width: 100%;
  background: var(--input);
}
.puzzle-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 15px;
}
.puzzle-stage p {
  font-size: 17px;
  color: var(--muted);
  padding: 0 22px 18px;
}
.puzzle-rows {
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 16px;
}
.puzzle-rows label {
  font-size: 15px;
  color: var(--muted);
  min-width: 0;
}
.puzzle-rows input {
  font-size: 17px;
  width: 100%;
  min-width: 0;
}
.puzzle-code {
  font: 400 40px/1.4 var(--head);
  letter-spacing: 0.18em;
  color: var(--mint);
}
.hardware-summary {
  gap: 14px;
}
.hardware-summary > div {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
}
.hardware-summary h3 {
  font-size: 20px;
}
.hardware-summary p {
  font-size: 14px;
}
.hardware-grid {
  gap: 20px;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.fact-table {
  font-size: 16px;
  background: var(--card);
  color: var(--ink);
}
.fact-table th {
  font: 600 14px/1.6 var(--body);
  color: var(--muted);
  background: var(--surface);
}
.fact-table td,
.fact-table th {
  padding: 16px 18px;
  border-color: var(--line);
}
.fact-table a {
  color: var(--mint);
}
.progress-cards {
  gap: 20px;
}
.progress-card {
  padding: 24px;
}
.progress-card h3 {
  font-size: 20px;
}
.progress-card b {
  font: 400 46px/1.2 var(--head);
  color: var(--peach);
}
.progress-card p {
  font-size: 16px;
}
.progress-tools {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.progress-tools h2 {
  font-size: 34px;
}
.progress-tools p {
  font-size: 17px;
}
#clear-confirm {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin-top: 20px;
}
#import-status,
#version-status,
#correction-status {
  font-size: 16px;
  line-height: 1.7;
  min-height: 30px;
  color: var(--teal);
}
/* Reading pages share the same grid but calm the display typography. */
.article-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding-block: 42px;
  align-items: start;
}
.article-toc {
  top: 110px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.article-toc > a {
  font: 500 15px/1.7 var(--body);
  color: var(--muted);
  margin-bottom: 14px;
}
.article-toc > a:hover {
  color: var(--mint);
}
.article-toc::after {
  content: "";
  display: block;
  aspect-ratio: 4/3;
  background-image: var(--world-secondary);
  background-size: cover;
  background-position: center;
  border-radius: 7px;
  margin-top: 24px;
}
.article-body {
  padding: 0;
  max-width: 800px;
  background: transparent;
}
.article-body .article-lead {
  font: 500 22px/1.75 var(--body);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article-body p,
.article-body li {
  font: 400 18px/1.9 var(--body);
  color: var(--muted);
}
.article-body h2 {
  font: 700 29px/1.4 var(--body);
  letter-spacing: -0.03em;
  margin-top: 42px;
}
.article-body h3 {
  font-size: 23px;
}
.article-body > section:nth-of-type(2)::before {
  content: "";
  display: block;
  aspect-ratio: 16/8;
  background-image: var(--world-secondary);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: 28px 0;
}
.article-body section {
  scroll-margin-top: 110px;
}
.guide-grid {
  gap: 22px;
}
.guide-card {
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.guide-card::before {
  display: none;
}
.guide-art {
  height: 180px;
  margin: -28px -28px 24px;
}
.guide-card > div:last-child {
  padding: 0;
}
.guide-card h3 {
  font: 700 24px/1.4 var(--body);
}
.menu-button svg {
  color: inherit;
}
.guide-card h2 {
  font: 700 24px/1.4 var(--body);
  letter-spacing: -0.03em;
}
.guide-card p {
  font-size: 17px;
}
.guide-card .text-link {
  font-size: 15px;
}
.region-grid {
  gap: 22px;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  color: #fff3e9;
}
.region-card h2,
.region-card h3 {
  font: 400 34px/1.2 var(--head);
  color: #fff5e9;
}
.region-card p {
  font-size: 16px;
  color: #f0e4ec;
}
.region-card > div {
  padding: 24px;
}
.region-card a {
  font-size: 15px;
  color: #f4c6b2;
}
.editorial-banner {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  gap: 28px;
  margin-block: 50px;
}
.editorial-banner > div:first-child {
  padding: 42px;
}
.editorial-banner h2 {
  font: 400 52px/1.15 var(--head);
  color: var(--ink);
}
.editorial-banner h2 em {
  color: var(--mint);
  font-style: normal;
}
.editorial-banner p {
  font-size: 18px;
  color: var(--muted);
}
.garage-art {
  background-image:
    linear-gradient(0deg, #17101bcc, transparent),
    url("/assets/leonida-garage.webp");
  background-size: cover;
  background-position: center;
  min-height: 340px;
}
.garage-art span {
  font-size: 13px;
  color: #f4e5ee;
}
.explore-section {
  padding-block: 20px 10px;
}
.car-detail-layout {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 42px;
}
.car-detail-layout > * {
  min-width: 0;
}
.car-detail-art {
  background: #e7e2da;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
}
.car-detail-art img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.car-detail-art > span {
  font-size: 12px;
  color: #514550;
}
.car-detail-layout h2 {
  font: 400 36px/1.25 var(--head);
}
.car-detail-layout p {
  font-size: 17px;
}
.car-detail-layout .eyebrow {
  font-size: 14px;
}
.dossier {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dossier > * {
  min-width: 0;
}
.dossier dt {
  font: 500 14px/1.5 var(--body);
  color: var(--muted);
}
.dossier dd {
  font: 700 20px/1.5 var(--body);
  color: var(--ink);
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.dossier dd small {
  font-size: 13px;
  color: var(--muted);
}
.detail-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.detail-stats > * {
  min-width: 0;
}
.detail-stats span {
  font-size: 14px;
  color: var(--muted);
}
.detail-stats b {
  font: 700 22px/1.5 var(--body);
  color: var(--ink);
  margin-block: 8px;
}
.stat-bar {
  background: var(--line);
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}
.stat-bar i {
  background: var(--mint);
}
.source-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin-top: 40px;
}
.source-box h2 {
  font: 400 32px/1.2 var(--head);
  color: var(--ink);
}
.source-box p {
  font-size: 16px;
}
.source-box li {
  border-color: var(--line);
  padding-block: 14px;
}
.source-box li a,
.source-directory a {
  font-size: 16px;
  color: var(--mint);
}
.source-box li span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.source-directory {
  padding: 24px;
}
.source-directory p {
  font-size: 16px;
}
.source-directory h2 {
  font-size: 30px;
}
.source-directory code {
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
}
/* Feedback surfaces: one entry/exit vocabulary, without a permanent animation tax. */
dialog {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 32px;
  width: min(880px, calc(100% - 40px));
  max-height: 90dvh;
  overscroll-behavior: contain;
  overflow: auto;
}
dialog::backdrop {
  background: #08050fc7;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font: 400 40px/1.2 var(--head);
  padding-right: 28px;
  color: var(--ink);
}
dialog p {
  font-size: 17px;
  color: var(--muted);
}
dialog h3 {
  font-size: 21px;
}
.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  color: var(--ink);
}
.dossier-art {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
  border-radius: 9px;
  background: #e7e2da;
}
.compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.compare-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 9px;
  min-width: 0;
}
.compare-grid img {
  border-radius: 5px;
  background: #e7e2da;
}
.compare-grid h3 {
  font-size: 19px;
}
.compare-grid dt {
  font-size: 14px;
  color: var(--muted);
}
.compare-grid dd {
  font-size: 17px;
  color: var(--ink);
  margin: 4px 0 12px;
}
.compare-tray {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--card);
  border: 1px solid var(--mint);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 14px 18px;
  width: min(700px, calc(100% - 32px));
  gap: 20px;
  justify-content: space-between;
  color: var(--ink);
}
.compare-tray > span {
  font-size: 15px;
}
.compare-tray .button {
  font-size: 15px;
  min-height: 42px;
  padding: 9px 14px;
}
.compare-tray > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-tray #clear-compare {
  font-size: 14px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  background: var(--ink);
  color: var(--bg);
  font: 600 15px/1.65 var(--body);
  padding: 15px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 0;
  pointer-events: none;
}
.select-control {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}
.select-native {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  z-index: -1 !important;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: 500 16px/1.5 var(--body);
  text-align: left;
}
.select-value {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 0;
}
.select-trigger > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--muted);
  transition: transform var(--normal) var(--ease);
}
.select-trigger[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 12%, transparent);
}
.select-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}
.select-trigger:disabled {
  opacity: 0.5;
}
.select-panel {
  position: fixed;
  inset: auto;
  margin: 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 150;
  max-width: calc(100vw - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transform-origin: top center;
}
.select-panel::backdrop {
  background: transparent;
}
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 43px;
  padding: 10px 12px;
  border-radius: 5px;
  cursor: pointer;
  font: 500 15px/1.5 var(--body);
  color: var(--ink);
}
.select-option[aria-selected="true"] {
  color: var(--mint);
  font-weight: 700;
}
.select-option[data-active="true"] {
  background: var(--surface);
}
.select-option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}
.select-option:not([aria-selected="true"]) svg {
  visibility: hidden;
}
.select-option svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--mint);
}
.field-invalid,
.select-trigger[aria-invalid="true"] {
  border-color: #e6a17f !important;
}
.is-busy {
  position: relative;
  pointer-events: none;
}
.is-busy::after {
  content: "";
  display: inline-block;
  position: absolute;
  right: 16px;
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin 700ms linear infinite;
}
.copied-feedback {
  color: var(--teal) !important;
}
.motion-number {
  font-variant-numeric: tabular-nums;
}
.motion-exiting {
  pointer-events: none;
}
footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin-top: 60px;
  padding-block: 42px 26px;
}
.footer-top {
  border-color: var(--line);
  gap: 30px;
}
.footer-top p {
  font: 400 30px/1.25 var(--head);
  color: var(--ink);
}
.footer-links {
  gap: 22px;
}
.footer-links a {
  font-size: 15px;
  color: var(--muted);
}
.disclaimer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 900px;
}
.footer-bottom,
.footer-bottom span {
  font-size: 13px;
  color: var(--muted);
  border-color: var(--line);
}
.footer-bottom a {
  color: var(--mint);
}
[hidden] {
  display: none !important;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--mint);
  }
  .button:hover,
  .select-trigger:hover {
    border-color: var(--mint);
    background: var(--surface);
    color: var(--ink);
  }
  .button.primary:hover {
    background: #f4bed2;
    color: #2b1c28;
  }
  .nav-item > a:hover,
  .nav-panel a:hover {
    background: var(--surface);
    color: var(--ink);
  }
  .vehicle-card:hover {
    border-color: #8a5e7a;
  }
  .vehicle-card:hover .car-art img {
    transform: scale(1.025);
  }
  .filter-tabs button:hover {
    color: var(--ink);
    background: var(--surface);
  }
  .filter-tabs button[aria-pressed="true"]:hover {
    color: var(--bg);
    background: var(--ink);
  }
  .link-card:hover {
    border-color: var(--mint);
    transform: none;
  }
  .chapter-tile:hover {
    border-color: var(--mint);
    color: var(--ink);
  }
  button:active:not(:disabled),
  .button:active:not(:disabled) {
    transform: scale(0.98);
  }
}
@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: ui-page-out 120ms ease both;
}
::view-transition-new(root) {
  animation: ui-page-in 180ms var(--ease) both;
}
@keyframes ui-page-out {
  to {
    opacity: 0;
  }
}
@keyframes ui-page-in {
  from {
    opacity: 0;
  }
}
@media (min-width: 1700px) {
  .container {
    max-width: 1240px;
  }
  .nav-wrap,
  .preview-line .container {
    max-width: 1500px;
  }
  .home-hero {
    min-height: 640px;
  }
  .hero-content {
    padding-block: 98px;
  }
  .home-hero h1 {
    font-size: 96px;
  }
  .sub-hero h1 {
    font-size: 82px;
  }
  .sub-hero {
    min-height: 480px;
  }
}
@media (max-width: 1180px) {
  .primary-nav {
    display: none;
  }
  .nav-wrap {
    gap: 18px;
  }
  .brand {
    margin-right: auto;
  }
  .menu-button {
    display: grid;
    place-items: center;
  }
  .progress-link {
    font-size: 15px;
  }
  .theme-toggle {
    margin-left: 0;
  }
  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .car-info {
    padding: 18px 16px;
  }
  .car-meta {
    font-size: 11px;
  }
  .status-inline {
    font-size: 10px;
  }
  .filter-bottom {
    align-items: start;
    flex-direction: column;
  }
  .secondary-filters {
    width: 100%;
  }
  #car-count {
    text-align: left;
  }
  .section-picker {
    max-width: none;
  }
  .garage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .result-panel {
    min-height: 320px;
  }
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
  }
  .car-detail-layout {
    grid-template-columns: 1fr;
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier,
  .detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sub-hero h1 {
    font-size: 62px;
  }
  .home-hero h1 {
    font-size: 72px;
  }
  .home-hero {
    min-height: 570px;
  }
  .hero-content {
    padding-block: 65px;
  }
  .editorial-banner {
    grid-template-columns: 1fr 1fr;
  }
  .editorial-banner > div:first-child {
    padding: 28px;
  }
  .editorial-banner h2 {
    font-size: 43px;
  }
  .collection-strip {
    flex-wrap: wrap;
    gap: 16px;
  }
  .collection-strip > div:first-child {
    margin-right: auto;
  }
  .collection-strip small {
    display: none;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    min-height: 68px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    min-width: 0;
    gap: 8px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-mark img {
    width: 34px;
    height: 34px;
  }
  .theme-toggle {
    border: 0;
    background: none;
    flex-basis: 36px;
    min-width: 36px;
    min-height: 40px;
  }
  .menu-button {
    min-width: 36px;
    width: 36px;
  }
  .progress-link {
    font-size: 14px;
    padding: 8px 10px;
  }
  .progress-link .saved-dot {
    display: none;
  }
  .preview-line .container {
    font-size: 12px;
  }
  .preview-line .container > span:last-child {
    display: none;
  }
  .home-hero {
    min-height: 570px;
  }
  .home-hero h1 {
    font-size: 61px;
    line-height: 1.08;
    max-width: 610px;
  }
  .hero-content {
    padding-block: 54px 80px;
  }
  .home-hero p {
    font-size: 18px;
    max-width: 530px;
  }
  .hero-art::after {
    background:
      linear-gradient(90deg, #110c19d9 0%, #21132a55 80%),
      linear-gradient(0deg, var(--bg), #120c1800 60%);
  }
  .hero-image {
    object-position: 63% center;
  }
  .hero-search {
    max-width: 560px;
  }
  .hero-tool-links {
    gap: 10px 20px;
  }
  .hero-tool-links a {
    font-size: 14px;
  }
  .hero-caption {
    font-size: 11px;
    bottom: 15px;
    right: 20px;
  }
  .sub-hero {
    min-height: 400px;
  }
  .sub-hero > .container {
    padding-block: 24px 46px;
  }
  .sub-hero h1 {
    font-size: 54px;
  }
  .sub-hero p {
    font-size: 18px;
  }
  .breadcrumbs {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .meta {
    font-size: 13px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .section-picker {
    width: calc(100% - 40px);
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-picker label {
    font-size: 15px;
  }
  .section-picker .select-control {
    flex-basis: 100%;
    order: 3;
  }
  .section-picker small {
    margin-left: auto;
  }
  .section-heading h2 {
    font-size: 33px;
  }
  .section-heading {
    align-items: start;
  }
  .count {
    font-size: 14px;
    padding: 8px;
    margin-left: 10px;
  }
  .database-toolbar {
    grid-template-columns: 1fr 220px;
    gap: 12px;
  }
  .database-toolbar .select-label {
    display: flex;
  }
  .filter-tabs {
    margin-bottom: 16px;
  }
  .filter-tabs button {
    font-size: 14px;
    padding: 9px 12px;
  }
  .secondary-filters {
    gap: 12px;
  }
  .secondary-filters > .select-control,
  .secondary-filters > .select-control:last-child {
    flex: 1;
    min-width: 180px;
  }
  .secondary-filters > label {
    font-size: 14px;
  }
  .car-info h3,
  .car-open {
    font-size: 22px;
  }
  .car-meta {
    font-size: 12px;
  }
  .status-inline {
    font-size: 11px;
  }
  .car-art {
    aspect-ratio: 16/11;
  }
  .car-info {
    padding: 20px 18px 16px;
  }
  .car-info h3 {
    min-height: 62px;
  }
  .car-checks {
    gap: 12px;
  }
  .car-checks .check-label {
    font-size: 14px;
  }
  .vehicle-values b {
    font-size: 20px;
  }
  .table-view .vehicle-card {
    grid-template-columns: 110px 1fr;
  }
  .table-view .car-info {
    display: block;
  }
  .table-view .car-art {
    margin: 10px;
    aspect-ratio: 1;
    height: auto;
  }
  .table-view .car-info h3 {
    min-height: 0;
  }
  .table-view .vehicle-values {
    margin-block: 12px;
  }
  .table-view .car-checks {
    flex-wrap: wrap;
  }
  .link-grid,
  .region-grid,
  .guide-grid,
  .progress-cards {
    grid-template-columns: 1fr 1fr;
  }
  .panel,
  .result-panel {
    padding: 26px;
  }
  .panel h2 {
    font-size: 32px;
  }
  .result-panel h2 {
    font-size: 48px;
  }
  .form-grid {
    gap: 18px;
  }
  .chapter-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chapter-tile {
    padding: 18px;
  }
  .chapter-tile b {
    font-size: 40px;
  }
  .chapter-tile span {
    font-size: 13px;
  }
  .safe-row,
  .cheat-row,
  .operation-row,
  .collection-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 8px;
  }
  .mission-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 8px;
  }
  .mission-row > .check-label {
    grid-column: 2;
  }
  .mission-row h3 {
    font-size: 18px;
  }
  .safe-code {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .safe-code code {
    font-size: 25px;
  }
  .cheat-row h3,
  .collection-row h3,
  .safe-row h3,
  .operation-row h3 {
    font-size: 21px;
  }
  .platform-instructions {
    font-size: 16px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 26px;
    gap: 28px;
  }
  .article-toc {
    position: relative;
    top: auto;
    padding: 20px;
  }
  .article-toc::after {
    display: none;
  }
  .article-toc > a {
    font-size: 15px;
    display: inline-block;
    margin: 4px 20px 8px 0;
  }
  .article-body .article-lead {
    font-size: 21px;
  }
  .article-body h2 {
    font-size: 27px;
  }
  .article-body p,
  .article-body li {
    font-size: 18px;
  }
  .editorial-banner {
    grid-template-columns: 1fr;
  }
  .editorial-banner > div:first-child {
    padding: 28px;
  }
  .garage-art {
    min-height: 270px;
  }
  .car-detail-layout {
    gap: 24px;
  }
  .dossier,
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dossier dd {
    font-size: 21px;
  }
  .car-detail-layout h2 {
    font-size: 32px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid article {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }
  .compare-grid article img {
    grid-row: 1/3;
  }
  .compare-grid article dl {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .compare-grid article dl > div {
    min-width: 0;
  }
  dialog {
    padding: 24px;
    width: calc(100% - 24px);
    max-height: 92dvh;
  }
  dialog h2 {
    font-size: 34px;
  }
  .compare-tray {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .compare-tray .button {
    min-height: 42px;
  }
  .source-box {
    padding: 24px;
  }
  .source-box li {
    display: block;
  }
  .source-box li span {
    display: block;
    margin-top: 6px;
  }
  .fact-table td,
  .fact-table th {
    padding: 14px;
    min-width: 120px;
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .footer-top p {
    font-size: 27px;
  }
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-links a {
    font-size: 15px;
  }
  .disclaimer {
    font-size: 14px;
  }
}
@media (max-width: 540px) {
  .container {
    width: calc(100% - 36px);
  }
  .section-picker {
    width: calc(100% - 36px);
  }
  .nav-wrap {
    gap: 8px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark img {
    width: 32px;
    height: 32px;
  }
  .progress-link {
    font-size: 13px;
    border: 0;
    background: none;
    padding: 8px 2px;
  }
  .progress-link svg {
    display: none;
  }
  .theme-toggle {
    flex-basis: 32px;
    min-width: 32px;
  }
  .menu-button {
    width: 32px;
    min-width: 32px;
  }
  .home-hero {
    min-height: 600px;
  }
  .home-hero h1 {
    font-size: 54px;
    line-height: 1.09;
  }
  .hero-content {
    padding-block: 50px 90px;
  }
  .home-hero p {
    font-size: 18px;
    max-width: 100%;
    margin-block: 22px;
  }
  .hero-search {
    width: 100%;
  }
  .hero-search input {
    font-size: 16px;
    min-height: 54px;
    padding-inline: 13px;
  }
  .hero-search button {
    min-height: 56px;
    width: 52px;
    flex: 0 0 52px;
  }
  .hero-tool-links {
    gap: 7px 18px;
  }
  .hero-tool-links a {
    font-size: 14px;
    min-height: 37px;
  }
  .hero-caption {
    font-size: 10px;
    right: 18px;
    max-width: 280px;
    text-align: right;
  }
  .collection-strip {
    padding: 17px 18px;
    gap: 12px;
    border-radius: 8px;
  }
  .collection-strip > div:first-child {
    font-size: 13px;
  }
  .collection-strip > div:nth-child(2) {
    font-size: 13px;
  }
  .collection-strip b {
    font-size: 22px;
  }
  .collection-strip > a {
    font-size: 14px;
    flex-basis: 100%;
  }
  .sub-hero {
    min-height: 420px;
  }
  .sub-hero h1 {
    font-size: 46px;
    margin-top: 24px;
  }
  .sub-hero p {
    font-size: 18px;
  }
  .sub-hero .eyebrow {
    font-size: 13px;
  }
  .meta {
    font-size: 13px;
  }
  .content-section,
  .database {
    padding-top: 32px;
  }
  .section-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .view-controls button {
    min-height: 36px;
    min-width: 40px;
  }
  .view-controls svg {
    width: 17px;
  }
  .database-toolbar {
    grid-template-columns: 1fr;
  }
  .database-toolbar > .select-label {
    width: 100%;
  }
  .database-toolbar .select-control {
    width: 100%;
  }
  .filter-bottom {
    gap: 14px;
  }
  .secondary-filters > label {
    min-height: 34px;
  }
  .secondary-filters > .select-control,
  .secondary-filters > .select-control:last-child {
    min-width: 130px;
  }
  .select-trigger {
    font-size: 15px;
    padding: 12px;
    gap: 8px;
  }
  .select-option {
    font-size: 15px;
    min-height: 44px;
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .car-art {
    aspect-ratio: 16/10;
    margin: 10px;
  }
  .car-info {
    padding: 16px 20px;
  }
  .car-info h3 {
    min-height: 0;
    font-size: 24px;
  }
  .car-open {
    font-size: 24px;
    min-height: 40px;
  }
  .car-meta {
    font-size: 12px;
  }
  .status-inline {
    font-size: 11px;
  }
  .vehicle-values > span {
    font-size: 13px;
  }
  .vehicle-values b {
    font-size: 22px;
  }
  .car-checks .check-label {
    font-size: 15px;
  }
  .car-checks {
    gap: 18px;
  }
  .card-dossier {
    font-size: 15px;
  }
  .link-grid,
  .guide-grid,
  .progress-cards,
  .region-grid,
  .garage-grid {
    grid-template-columns: 1fr;
  }
  .link-card {
    min-height: 145px;
    padding: 24px;
  }
  .link-card h3 {
    font-size: 22px;
  }
  .link-card p {
    font-size: 17px;
  }
  .panel,
  .result-panel {
    padding: 24px;
  }
  .panel h2 {
    font-size: 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-two {
    grid-column: auto;
  }
  .form-grid label {
    font-size: 15px;
  }
  .result-panel {
    min-height: 310px;
  }
  .result-panel h2 {
    font-size: 44px;
  }
  .budget-total {
    width: 100%;
  }
  .budget-total b {
    font-size: 36px;
  }
  .garage-card h3 {
    min-height: 0;
  }
  .chapter-tile {
    padding: 16px 12px;
  }
  .chapter-tile span {
    font-size: 12px;
  }
  .chapter-tile b {
    font-size: 38px;
  }
  .spoiler-toggle {
    flex-wrap: wrap;
    font-size: 15px;
  }
  .spoiler-toggle .tag {
    font-size: 12px;
  }
  .spoiler-detail summary {
    font-size: 17px;
    padding: 18px;
  }
  .spoiler-detail summary span {
    font-size: 13px;
  }
  .puzzle-rows {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 12px;
  }
  .puzzle-rows input {
    padding-inline: 9px;
    font-size: 16px;
  }
  .hardware-summary {
    grid-template-columns: 1fr;
  }
  .article-body .article-lead {
    font-size: 21px;
  }
  .article-body h2 {
    font-size: 26px;
  }
  .article-body h3 {
    font-size: 22px;
  }
  .prose h2 {
    font-size: 31px;
  }
  .prose h3 {
    font-size: 23px;
  }
  .source-box h2 {
    font-size: 30px;
  }
  .source-box {
    padding: 22px;
  }
  .source-box li a {
    font-size: 16px;
  }
  .source-box li span {
    font-size: 14px;
  }
  .editorial-banner {
    margin-block: 36px;
  }
  .editorial-banner h2 {
    font-size: 45px;
  }
  .guide-card {
    padding: 24px;
  }
  .guide-card::before {
    margin: -24px -24px 20px;
  }
  .progress-tools {
    padding: 22px;
  }
  .collection-row label {
    font-size: 15px;
  }
  dialog {
    padding: 22px;
  }
  .compare-tray > span {
    font-size: 14px;
  }
  .compare-tray .button {
    font-size: 14px;
  }
  .toast {
    font-size: 14px;
    padding: 14px 18px;
  }
  .article-layout {
    gap: 24px;
  }
  .footer-links {
    gap: 14px 22px;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 28px);
  }
  .section-picker {
    width: calc(100% - 28px);
    padding: 14px;
  }
  .nav-wrap {
    gap: 6px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-mark img {
    width: 28px;
    height: 28px;
  }
  .progress-link {
    font-size: 12px;
  }
  .home-hero h1 {
    font-size: 47px;
  }
  .sub-hero h1 {
    font-size: 41px;
  }
  .hero-content {
    padding-top: 42px;
  }
  .home-hero p {
    font-size: 17px;
  }
  .hero-search input {
    font-size: 15px;
  }
  .hero-tool-links {
    gap: 6px 14px;
  }
  .hero-tool-links a {
    font-size: 13px;
  }
  .secondary-filters > .select-control,
  .secondary-filters > .select-control:last-child {
    flex-basis: 100%;
    width: 100%;
  }
  .car-info {
    padding: 16px;
  }
  .car-checks {
    gap: 12px;
  }
  .car-checks .check-label {
    font-size: 14px;
  }
  .panel,
  .result-panel {
    padding: 20px;
  }
  .dossier dd {
    font-size: 19px;
  }
  .chapter-tile span {
    font-size: 11px;
  }
  .puzzle-rows {
    grid-template-columns: minmax(0, 1fr);
  }
  .puzzle-rows label:nth-child(even) {
    max-width: 110px;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .collection-strip {
    padding: 16px 14px;
  }
  .collection-strip > div:first-child {
    font-size: 12px;
  }
  .table-view .vehicle-card {
    grid-template-columns: 1fr;
  }
  .table-view .car-art {
    display: none;
  }
  .table-view .car-info {
    padding: 18px;
  }
  .compare-tray {
    padding: 12px;
  }
  .compare-tray > div {
    gap: 6px;
  }
  .compare-tray .button {
    padding: 8px 10px;
  }
  .compare-grid article {
    grid-template-columns: 90px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
  .is-busy::after {
    animation: none !important;
  }
}
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .site-header,
  .preview-line,
  .hero-art,
  .sub-hero-art,
  .article-toc,
  .section-picker,
  .compare-tray,
  .toast,
  .theme-toggle,
  .select-panel,
  .nav-panel,
  footer {
    display: none !important;
  }
  .home-hero,
  .sub-hero {
    background: #fff !important;
    min-height: 0;
    color: #111;
  }
  .hero-content,
  .sub-hero > .container {
    padding: 20px 0;
  }
  .home-hero h1,
  .sub-hero h1,
  .home-hero h1 em,
  .sub-hero p,
  .home-hero p,
  h2,
  h3,
  p,
  span,
  li,
  a,
  dt,
  dd {
    color: #111 !important;
    text-shadow: none !important;
  }
  .panel,
  .result-panel,
  .vehicle-card,
  .car-info,
  .source-box,
  .link-card,
  .guide-card,
  .garage-card {
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
    box-shadow: none !important;
    border-color: #bbb !important;
  }
  .container {
    width: 100%;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-panel {
    min-height: 0;
  }
  button,
  .hero-search {
    display: none !important;
  }
}

.mobile-nav details {
  border-bottom: 1px solid var(--line);
}
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--normal) var(--ease);
}
.mobile-nav details[open] summary svg {
  transform: rotate(180deg);
}
.mobile-subnav {
  padding: 0 4px 14px 14px;
}
.mobile-subnav a {
  display: block;
  font-size: 16px;
  padding: 10px 8px;
  color: var(--muted);
}
.select-trigger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.select-control:has(#security-filter) {
  min-width: 242px;
}
[data-save-car][aria-pressed="true"] svg {
  fill: var(--mint);
  color: var(--mint);
}
[data-copy].copied-feedback::after {
  content: " ✓";
}
#correction-status,
#version-status,
#import-status {
  min-height: 2em;
}
.nav-panel a {
  font-size: 15px;
}
@media (max-width: 540px) {
  .select-control:has(#security-filter) {
    min-width: 0;
  }
}

/* Only 24 results are displayed. Real card heights keep pagination stable in Safari. */
.vehicle-card {
  content-visibility: visible;
  contain-intrinsic-block-size: none;
}
.table-view .vehicle-card {
  content-visibility: visible;
  contain-intrinsic-block-size: none;
}
@media print {
  .vehicle-card {
    content-visibility: visible;
    contain-intrinsic-block-size: none;
  }
}

.finder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  min-height: 44px;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.filter-chip,
.finder-reset,
.finder-share {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  color: var(--muted);
}
.filter-chip {
  background: var(--surface);
  color: var(--ink);
}
.finder-reset {
  border-color: transparent;
  color: var(--mint);
}
.vehicle-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-block: 24px;
}
.vehicle-actions .button {
  font-size: 15px;
}
.vehicle-context {
  border-left: 3px solid var(--mint);
  padding: 12px 16px;
  margin-block: 0 20px;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
}
.vehicle-context strong {
  font-size: 20px;
}
.vehicle-context p {
  font-size: 15px;
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .active-filters {
    flex-basis: 100%;
  }
  .vehicle-actions .button {
    flex-basis: 100%;
  }
  .finder-share {
    margin-left: auto;
  }
}

.service-map-launcher {
  font: 600 15px/1.5 var(--body);
  color: #f9e8dd;
  border: 0;
  border-bottom: 1px solid #d0a6b3;
  padding: 0 0 7px;
  min-height: 40px;
  border-radius: 0;
}
.service-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
}
.map-stage {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: #2c869a;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  isolation: isolate;
}
.map-stage.is-dragging {
  cursor: grabbing;
}
.map-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 2176px;
  height: 2816px;
  transform-origin: 0 0;
  pointer-events: none;
}
.map-world img {
  width: 2176px;
  height: 2816px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 30px;
  min-width: 30px;
  width: 30px;
  height: 30px;
  background: #211b2e;
  color: #fff4e9;
  border: 2px solid #f0b7c9;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 2px 8px #0006;
  transition:
    background-color var(--fast),
    border-color var(--fast);
}
.map-pin[aria-pressed="true"] {
  background: #f0b7c9;
  color: #211b2e;
  z-index: 4;
  border-color: #fff4e9;
}
.map-pin:hover {
  background: #f0b7c9;
  color: #211b2e;
}
.map-buttons {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 8;
}
.map-buttons button {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 40px;
  min-height: 40px;
  font-size: 23px;
  box-shadow: 0 2px 7px #0003;
}
.map-gesture-note {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  padding: 4px 7px;
  background: #17121cdb;
  border-radius: 4px;
  color: #f5e7ee;
  pointer-events: none;
}
.map-sidebar {
  min-width: 0;
}
.map-sidebar > label {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.map-sidebar input {
  width: 100%;
  font-size: 15px;
  margin-top: 8px;
}
.map-selection {
  min-height: 145px;
  padding-block: 14px;
}
.map-selection strong {
  font-size: 18px;
  line-height: 1.5;
  display: block;
}
.map-selection p {
  font-size: 14px;
  line-height: 1.6;
}
.map-selection a {
  font-size: 14px;
  display: block;
  color: var(--mint);
  margin-top: 10px;
}
.map-selection .tag {
  font-size: 12px;
}
.map-point-list {
  height: 205px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.map-point-list button {
  display: block;
  width: 100%;
  padding: 12px 8px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.map-point-list strong {
  font-size: 14px;
  display: block;
}
.map-point-list small {
  font-size: 12px;
  color: var(--muted);
}
.map-point-list [aria-pressed="true"] {
  background: var(--surface);
  color: var(--mint);
}
.map-credit {
  font-size: 12px !important;
  line-height: 1.7 !important;
  margin: 18px 0 0 !important;
}
.map-credit a {
  text-decoration: underline;
}
.map-stage:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
dialog:has(.service-map-layout) {
  width: min(1080px, calc(100% - 32px));
  max-width: 1080px;
}
@media (max-width: 760px) {
  .service-map-layout {
    grid-template-columns: 1fr;
  }
  .map-stage {
    height: 350px;
  }
  .map-point-list {
    height: 160px;
  }
  .map-selection {
    min-height: 100px;
  }
  dialog:has(.service-map-layout) {
    padding: 20px;
    max-height: 94dvh;
  }
  .service-map-launcher {
    font-size: 14px;
  }
  .map-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .map-sidebar > label {
    grid-column: 1/-1;
  }
  .map-selection {
    padding: 0;
  }
  .map-gesture-note {
    font-size: 10px;
  }
}
@media (max-width: 390px) {
  .map-sidebar {
    grid-template-columns: 1fr;
  }
  .map-stage {
    height: 300px;
  }
  .map-point-list {
    height: 140px;
  }
}
.map-stage {
  user-select: none;
  -webkit-user-select: none;
  contain: layout paint;
}
.map-stage {
  clip-path: inset(0 round 10px);
}
.map-search-status {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.map-empty {
  font-size: 15px;
}
.map-empty button {
  display: block;
  border: 0;
  padding: 8px 0;
}
.map-selection[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .map-search-status {
    grid-column: 1/-1;
    margin: 0;
  }
}
.finder-advanced {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.finder-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.finder-advanced > summary::-webkit-details-marker {
  display: none;
}
.finder-advanced > summary span {
  font-size: 22px;
  line-height: 1;
  transition: transform var(--fast);
}
.finder-advanced[open] > summary span {
  transform: rotate(45deg);
}
.finder-advanced-grid {
  padding: 4px 18px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.finder-advanced-grid label {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.finder-advanced-grid .select-control {
  width: 100%;
}
.finder-advanced-grid p {
  font-size: 14px;
  grid-column: 1/-1;
  margin: 0;
}
.car-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px 0;
}
.car-pagination button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  background: var(--card);
}
.car-pagination span {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.base-art-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  background: #fff6e8e0;
  padding: 4px 7px;
  color: #4e3f4d;
  border-radius: 4px;
}
.dossier-art {
  position: relative;
  height: 270px;
  overflow: hidden;
  margin-bottom: 24px;
}
.dossier-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-art {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
}
.compare-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vehicle-values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.vehicle-values > span {
  min-width: 0;
}
.vehicle-values b {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.car-checks {
  flex-wrap: wrap;
  row-gap: 10px;
}
@media (max-width: 760px) {
  .finder-advanced-grid {
    grid-template-columns: 1fr 1fr;
  }
  .finder-advanced-grid label:last-of-type {
    grid-column: 1/-1;
  }
  .vehicle-values b {
    font-size: 18px;
  }
  .dossier-art {
    height: 220px;
  }
  .car-pagination {
    gap: 10px;
  }
  .car-pagination button {
    padding: 10px;
    font-size: 14px;
  }
}
@media (max-width: 540px) {
  .finder-advanced-grid {
    grid-template-columns: 1fr;
  }
  .finder-advanced-grid label {
    grid-column: auto !important;
  }
  .car-pagination {
    flex-wrap: wrap;
  }
  .car-pagination span {
    order: 3;
    flex-basis: 100%;
    text-align: center;
  }
}
.map-pin::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}
.map-buttons button {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 760px) {
  .map-sidebar input {
    font-size: 16px;
  }
  .map-selection p,
  .map-point-list strong {
    font-size: 16px;
  }
  .map-selection a {
    font-size: 15px;
  }
  .map-point-list button {
    min-height: 58px;
  }
}
.car-evidence {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 20px 0;
  padding: 0 16px;
}
.car-evidence > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
}
.car-evidence p,
.car-evidence li {
  font-size: 15px;
  line-height: 1.7;
}
.car-evidence ul {
  padding-left: 20px;
}
.car-evidence a {
  color: var(--mint);
  text-decoration: underline;
}
.car-evidence h4 {
  font-size: 16px;
  margin-top: 18px;
}
.dossier dt {
  font-size: 14px;
}
.dossier dd {
  font-size: 19px;
}
.comparison-budget {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.comparison-budget > strong {
  font: 400 40px/1.2 var(--head);
  display: block;
  color: var(--peach);
}
.comparison-budget p {
  font-size: 16px;
}
.recovery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.recovery-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 320px;
}
.recovery-result h3 {
  font-size: 25px;
  margin-bottom: 16px;
}
.recovery-result li {
  font-size: 16px;
  line-height: 1.8;
  margin: 10px 0;
}
.recovery-result ol {
  padding-left: 20px;
}
.recovery-result .button {
  font-size: 15px;
  margin-top: 14px;
}
.recovery-layout .form-grid {
  align-content: start;
}
.recovery-launcher {
  color: var(--mint);
}
@media (max-width: 760px) {
  .recovery-layout {
    grid-template-columns: 1fr;
  }
  .recovery-result {
    min-height: 260px;
  }
  .recovery-layout .form-grid .select-trigger {
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .secondary-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 14px 12px;
  }
  .secondary-filters > label {
    margin: 0;
  }
  .secondary-filters > .select-control {
    width: 100%;
    min-width: 0;
  }
  .secondary-filters .select-trigger {
    width: 100%;
  }
}

.catalogue-pages {
  margin: 18px 0 30px;
}
.catalogue-pages summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.catalogue-pages nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
}
.catalogue-pages nav a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
}
.catalogue-pages nav a[aria-current] {
  background: var(--accent);
  color: var(--ink);
}
.car-pagination [aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.car-meta {
  font-size: 14px;
  flex-wrap: wrap;
  row-gap: 2px;
  align-items: baseline;
}
.car-meta .status-inline {
  font-size: 14px;
}
.car-meta > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-dossier {
  font-size: 14px;
}
/* The atlas and library are workspaces: their controls belong near the title. */
body[data-page="locations"] .sub-hero,
body[data-page^="premium-"] .sub-hero {
  min-height: 0;
}
body[data-page="locations"] .sub-hero > .container,
body[data-page^="premium-"] .sub-hero > .container {
  padding-block: 22px 25px;
}
body[data-page="locations"] .sub-hero h1,
body[data-page^="premium-"] .sub-hero h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  margin: 12px 0;
}
body[data-page="locations"] .sub-hero .eyebrow,
body[data-page^="premium-"] .sub-hero .eyebrow {
  display: none;
}
body[data-page="locations"] .sub-hero p,
body[data-page^="premium-"] .sub-hero p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 900px;
}
body[data-page="locations"] .meta,
body[data-page^="premium-"] .meta {
  margin-top: 12px;
}
body[data-page="locations"] main > .content-section {
  padding-top: 12px;
}
body[data-page="locations"] .tool-nav {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow: auto;
  gap: 8px;
  padding: 0 0 8px;
}
body[data-page="locations"] .tool-nav a {
  flex-shrink: 0;
  font-size: 14px;
  padding: 8px 12px;
}
body[data-page="locations"] .atlas {
  margin-top: 8px;
}
body[data-page="locations"] .atlas-heading {
  margin-bottom: 16px;
  gap: 12px;
}
body[data-page="locations"] .atlas-heading h2 {
  font-size: 34px;
  margin: 0 0 8px;
}
body[data-page="locations"] .atlas-heading p {
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 540px) {
  body[data-page="locations"] .sub-hero > .container {
    padding-block: 16px 20px;
  }
  body[data-page="locations"] .sub-hero h1 {
    font-size: 36px;
  }
  body[data-page="locations"] .breadcrumbs {
    margin-bottom: 8px;
  }
  body[data-page="locations"] .atlas-heading h2 {
    font-size: 30px;
  }
  body[data-page="locations"] .atlas-help-link {
    font-size: 14px;
  }
  body[data-page="locations"] .atlas-filterbar {
    padding: 12px;
  }
}
body[data-page=premium-pricing] .sub-hero>.container { padding-block:16px; }
body[data-page=premium-pricing] .sub-hero .breadcrumbs { margin-bottom:8px; }
body[data-page=premium-pricing] .sub-hero h1 { margin:8px 0; }
body[data-page=premium-pricing] .sub-hero .meta { margin-top:8px; }
/* Keep touch actions at least 44px without enlarging body-copy links. */
.theme-toggle,.menu-button,.save-car,.view-controls button { min-width:44px;min-height:44px; }
.car-open,.finder-share,.service-map-launcher,.hero-tool-links a,.hero-tool-links button { min-height:44px; }
.car-checks .check-label,.check-label,.secondary-filters>label { min-height:44px;display:inline-flex;align-items:center; }
.check-label input[type=checkbox],.secondary-filters input[type=checkbox] { width:19px;height:19px;min-width:19px;min-height:19px;flex:0 0 19px; }
/* Narrow atlas filters must shrink inside their grid tracks, including enhanced selects. */
.atlas-filterbar > label,
.atlas-filterbar .select-control { min-width:0; }
.atlas-filterbar .select-trigger { min-width:0;width:100%; }
.atlas-filterbar .select-value { min-width:0;overflow:hidden;text-overflow:ellipsis; }
@media(max-width:850px) {
  .atlas .atlas-filterbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
/* The owner's 44px touch standard also covers compact atlas actions and route ordering. */
.atlas button { min-height:44px!important; }
.atlas .atlas-row-add,
.atlas .atlas-stop-order button { min-width:44px!important; }
/* Standalone dossier and pagination links retain a full touch row. */
.card-dossier,.catalogue-pages nav a{display:inline-flex;align-items:center;min-height:44px}
/* High-fidelity reference art replaces schematic vehicle placeholders everywhere. */
.vehicle-reference-label{position:absolute;left:10px;bottom:10px;z-index:1;display:grid;gap:2px;max-width:calc(100% - 20px);padding:7px 10px;border-radius:5px;background:#fff7ecef;color:#463849;font:700 12px/1.3 var(--body);letter-spacing:.04em;pointer-events:none}
.vehicle-reference-label small{font-size:12px;letter-spacing:0;font-weight:500}
.car-art .vehicle-reference-label{bottom:34px}
.compare-art .vehicle-reference-label{left:7px;bottom:7px;padding:5px 7px;font-size:11px}
.compare-art .vehicle-reference-label small{font-size:11px}
.table-view .vehicle-reference-label{display:none}
.vehicle-scene-reference{object-position:center}

/* Compact comparison thumbnails remain visible; their disclosure sits beside the data. */
.compare-art .vehicle-reference-label{display:none}
.compare-reference-note{font:500 12px/1.5 var(--body);color:var(--muted);margin:8px 0 12px}
@media(max-width:760px){.compare-grid .compare-reference-note{grid-column:1/-1;margin:0}}
/* V10: announcement panels use the same theme surface as the tools. */
.status-banner {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
}
.status-banner h2 { color: var(--ink); font-size: clamp(26px, 2.2vw, 32px); }
.status-banner p { color: var(--muted); font-size: 17px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
