:root {
  --ink: #111216;
  --muted: #62656f;
  --line: #dedfe3;
  --soft: #f3f4f6;
  --paper: #ffffff;
  --accent: #d71920;
  --accent-dark: #a50f15;
  --success: #167548;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(17, 18, 22, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { touch-action: manipulation; }
.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-link { position: fixed; top: .75rem; left: .75rem; z-index: 1000; padding: .75rem 1rem; color: #fff; background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { width: min(1400px, calc(100% - 48px)); min-height: 92px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(22px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo { width: 288px; max-width: 100%; height: auto; object-fit: contain; }
.brand-product { display: grid; padding-left: 16px; border-left: 1px solid var(--line); line-height: 1; }
.brand-product strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-product small { margin-top: .32rem; color: var(--accent); font-size: .64rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; justify-content: center; gap: 28px; }
.site-nav a { position: relative; padding: 10px 0; color: #44474f; font-size: .88rem; font-weight: 730; text-decoration: none; }
.site-nav a::after { content: ''; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-cta { padding: 9px 14px; color: #fff; background: var(--ink); border-radius: 10px; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--accent); }
.dealer-chip { max-width: 250px; display: grid; justify-items: end; padding: 10px 14px; background: var(--soft); border-radius: 12px; font-size: .78rem; line-height: 1.15; text-decoration: none; }
.dealer-chip span { color: var(--muted); }
.dealer-chip strong { max-width: 220px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search-stage { position: relative; isolation: isolate; width: min(1400px, calc(100% - 48px)); min-height: 410px; margin: 24px auto 0; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(520px, 1.08fr); gap: clamp(30px, 4.5vw, 64px); align-items: center; padding: clamp(30px, 4vw, 52px); color: #fff; background: radial-gradient(circle at 87% 8%, rgba(215,25,32,.44), transparent 26%), radial-gradient(circle at 4% 100%, rgba(103,107,119,.2), transparent 34%), linear-gradient(130deg, #090a0d 0%, #15171d 58%, #22242b 100%); border-radius: 28px; overflow: hidden; box-shadow: 0 22px 64px rgba(17,18,22,.18); }
.search-stage::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; right: -160px; top: -185px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018); }
.search-stage::after { content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); }
.search-copy { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: #f3f4f6; font-size: .72rem; font-weight: 840; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker span { width: 28px; height: 2px; background: var(--accent); }
.search-copy h1 { max-width: 680px; margin: 0 0 14px; font-size: clamp(2.55rem, 4vw, 4.35rem); line-height: .94; letter-spacing: -.06em; text-wrap: balance; }
.search-copy > p:not(.hero-kicker) { max-width: 620px; margin: 0; color: #c9cbd2; font-size: clamp(.94rem, 1.25vw, 1.08rem); }
.hero-stats { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats div { padding: 13px 14px 0 0; }
.hero-stats strong { display: block; font-size: clamp(1.28rem, 2vw, 1.8rem); letter-spacing: -.045em; }
.hero-stats span { display: block; color: #aeb1b9; font-size: .7rem; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .35rem; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.smart-search { position: relative; z-index: 1; padding: clamp(16px, 2vw, 23px); color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; box-shadow: 0 22px 65px rgba(0,0,0,.3); }
.search-tools { min-width: 0; display: grid; gap: 10px; }
.location-bar { position: relative; z-index: 1; padding: 12px 14px; display: grid; grid-template-columns: minmax(190px, 1fr) auto; align-items: center; gap: 10px 16px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); border-radius: 15px; box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.location-bar > div:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.location-bar p { margin: 0; }
.location-bar strong, .location-bar small { display: block; }
.location-bar strong { font-size: .79rem; }
.location-bar small { margin-top: 1px; color: var(--muted); font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-pin { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; }
.location-actions { display: flex; align-items: center; gap: 7px; }
.location-actions > span { color: var(--muted); font-size: .68rem; }
.location-actions input { width: 86px; min-height: 34px; padding: .35rem .5rem; text-transform: uppercase; border: 1px solid #c8cad0; border-radius: 8px; font-size: .75rem; }
.location-button, .location-clear { min-height: 34px; padding: .4rem .65rem; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 8px; font-size: .7rem; font-weight: 780; cursor: pointer; white-space: nowrap; }
.location-button.postal { color: #fff; background: var(--accent); border-color: var(--accent); }
.location-clear { color: var(--muted); background: #fff; border-color: var(--line); }
.location-message { grid-column: 1 / -1; display: none; color: var(--accent); font-size: .72rem; }
.location-message:not(:empty) { display: block; }
.location-flash { width: min(1260px, calc(100% - 90px)); margin: 12px auto 0; padding: 10px 15px; border-radius: 10px; font-size: .8rem; text-align: center; }
.location-flash.success { color: #174e32; background: #e9f8ef; border: 1px solid #afe0c1; }
.location-flash.error { color: #7c1115; background: #fff0f0; border: 1px solid #f2b9bc; }
.search-panel-heading { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.search-panel-heading div { display: grid; }
.search-panel-heading span { color: var(--accent); font-size: .67rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.search-panel-heading strong { margin-top: 3px; font-size: 1.3rem; letter-spacing: -.035em; }
.search-panel-heading small { max-width: 150px; color: var(--muted); font-size: .68rem; text-align: right; }
.search-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; }
.search-icon { display: grid; place-items: center; color: var(--muted); font-size: 1.8rem; transform: rotate(-15deg); }
.search-row input { min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; font-size: 1.02rem; }
.search-row button, .button { min-height: 46px; padding: .75rem 1.15rem; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 11px; font-weight: 780; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-row button:hover, .button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.search-row input:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(215,25,32,.35); outline-offset: 3px; }
.dealer-picker { margin-top: 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 9px 12px; background: var(--soft); border-radius: 11px; }
.dealer-picker span { color: var(--muted); font-size: .74rem; font-weight: 760; }
.dealer-picker select { min-width: 0; width: 100%; padding: 4px 30px 4px 6px; color: var(--ink); background: transparent; border: 0; outline: 0; font-weight: 720; }
.quick-filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px 4px 0; margin-top: 10px; border-top: 1px solid var(--line); }
.quick-filters a { padding: .42rem .7rem; color: #484b53; background: var(--soft); border-radius: 999px; font-size: .8rem; font-weight: 720; text-decoration: none; }
.quick-filters a:hover { color: var(--accent); background: #fff0f0; }

.confidence-strip { width: min(1260px, calc(100% - 90px)); margin: -14px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.confidence-strip > div { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 21px; }
.confidence-strip > div + div { border-left: 1px solid var(--line); }
.confidence-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 11px; font-size: 1.1rem; }
.confidence-strip p { min-width: 0; margin: 0; display: grid; }
.confidence-strip strong { font-size: .86rem; }
.confidence-strip small { margin-top: 2px; color: var(--muted); font-size: .71rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inventory-section { width: min(1400px, calc(100% - 48px)); margin: 60px auto 84px; }
.results-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.results-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -.04em; }
.results-context { margin: .35rem 0 0; color: var(--muted); }
.clear-search, .back-link { color: var(--accent); font-weight: 760; text-underline-offset: 4px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vehicle-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vehicle-card:hover { border-color: #c6c8ce; transform: translateY(-4px); box-shadow: var(--shadow); }
.vehicle-photo { position: relative; display: block; aspect-ratio: 3/2; background: var(--soft); overflow: hidden; }
.vehicle-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vehicle-card:hover .vehicle-photo img { transform: scale(1.025); }
.condition-badge { position: absolute; left: 14px; top: 14px; padding: .38rem .62rem; color: #fff; background: rgba(17,18,22,.9); border-radius: 999px; font-size: .72rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.photo-status { position: absolute; right: 14px; bottom: 14px; padding: .42rem .72rem; color: #fff; background: rgba(17,18,22,.86); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.vehicle-body { padding: 20px; }
.listing-dealer { margin: 0 0 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.listing-dealer span { text-transform: uppercase; letter-spacing: .06em; }
.listing-dealer a { min-width: 0; color: var(--ink); font-weight: 780; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-dealer a:hover { color: var(--accent); }
.vehicle-kicker { margin: 0 0 .2rem; color: var(--muted); font-size: .78rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-body h3 { min-height: 3.25rem; margin: 0 0 16px; font-size: 1.28rem; line-height: 1.2; letter-spacing: -.03em; }
.vehicle-body h3 a { text-decoration: none; }
.vehicle-body h3 span { display: block; margin-top: .25rem; color: var(--muted); font-size: .92rem; font-weight: 620; letter-spacing: 0; }
.vehicle-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vehicle-facts div { min-width: 0; }
.vehicle-facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.vehicle-facts dd { margin: .2rem 0 0; overflow: hidden; font-size: .9rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { min-height: 76px; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.price-block { display: grid; }
.price-block strong { font-size: 1.36rem; letter-spacing: -.035em; }
.price-block small { color: var(--muted); font-size: .68rem; }
.arrow-link, .text-link { color: var(--accent); font-weight: 780; text-decoration: none; white-space: nowrap; }
.arrow-link span, .text-link span { display: inline-block; margin-left: .2rem; transition: transform .2s ease; }
.arrow-link:hover span, .text-link:hover span { transform: translateX(4px); }
.empty-state { padding: 64px 24px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.empty-state h3 { margin: 0; font-size: 1.6rem; }
.empty-state p { color: var(--muted); }
.pagination { margin-top: 34px; display: flex; justify-content: center; gap: 8px; }
.pagination a { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 700; }
.pagination a[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }

.breadcrumbs { width: min(1400px, calc(100% - 48px)); margin: 26px auto; display: flex; gap: .65rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--ink); }
.vdp-grid { width: min(1400px, calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(360px, .72fr); gap: 42px; align-items: start; }
.gallery { min-width: 0; }
.main-photo { position: relative; aspect-ratio: 3/2; background: var(--soft); border-radius: 22px; overflow: hidden; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbnails { margin-top: 12px; display: flex; gap: 10px; overflow-x: auto; padding: 3px 3px 8px; }
.thumbnails button { flex: 0 0 96px; aspect-ratio: 3/2; padding: 0; background: var(--soft); border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; }
.thumbnails button[aria-current="true"] { border-color: var(--accent); }
.thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-summary { position: sticky; top: 24px; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 15px 44px rgba(17,18,22,.07); }
.vehicle-summary h1 { margin: .3rem 0 1.4rem; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: .98; letter-spacing: -.055em; }
.vehicle-summary h1 span { display: block; margin-top: .6rem; color: var(--muted); font-size: 1.05rem; font-weight: 620; letter-spacing: 0; line-height: 1.25; }
.vdp-price { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vdp-price strong { font-size: 2rem; letter-spacing: -.04em; }
.vdp-price p { margin: .3rem 0 0; color: var(--muted); font-size: .8rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.spec-grid div { min-width: 0; }
.spec-grid dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.spec-grid dd { margin: .15rem 0 0; font-weight: 680; overflow-wrap: anywhere; }
.action-stack { display: grid; gap: 10px; }
.button.secondary { color: var(--ink); background: #fff; border-color: #c8cad0; }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.action-stack .text-link { justify-self: center; padding: .7rem; }
.availability-note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }
.availability-note span { width: 8px; height: 8px; display: inline-block; margin-right: .4rem; background: var(--success); border-radius: 50%; }
.vehicle-details-panel { width: min(1400px, calc(100% - 48px)); margin: 34px auto 0; padding: clamp(26px, 4vw, 48px); background: var(--soft); border-radius: 22px; }
.details-heading { margin-bottom: 26px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.details-heading h2 { margin: .25rem 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.045em; }
.details-heading > span { padding: .45rem .75rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 720; white-space: nowrap; }
.vehicle-specifications > summary.details-heading { margin-bottom: 0; cursor: pointer; list-style: none; user-select: none; }
.vehicle-specifications > summary.details-heading::-webkit-details-marker { display: none; }
.vehicle-specifications[open] > summary.details-heading { margin-bottom: 26px; }
.vehicle-specifications > summary.details-heading:focus-visible { outline: 3px solid rgba(178, 24, 31, .28); outline-offset: 8px; border-radius: 8px; }
.vehicle-specifications > summary.details-heading:hover h2 { color: var(--accent); }
.spec-chevron { width: 9px; height: 9px; display: inline-block; margin: 0 3px 2px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.vehicle-specifications[open] .spec-chevron { transform: rotate(225deg); }
.decoded-spec-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.decoded-spec-grid div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decoded-spec-grid div:nth-child(4n) { border-right: 0; }
.decoded-spec-grid dt { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.decoded-spec-grid dd { margin: .3rem 0 0; font-weight: 680; overflow-wrap: anywhere; }
.decoded-note { margin: 14px 2px 0; color: var(--muted); font-size: .75rem; }
.payment-panel { width: min(1400px, calc(100% - 48px)); margin: 34px auto 0; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 15px 44px rgba(17,18,22,.05); }
.payment-intro h2 { margin: .25rem 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.045em; }
.payment-intro > p:last-child { margin: .45rem 0 0; color: var(--muted); }
.payment-content { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: clamp(18px, 4vw, 64px); align-items: start; }
.payment-fields { display: grid; gap: 10px; }
.payment-fields label { font-size: .85rem; font-weight: 720; }
.payment-fields label span { float: right; color: var(--muted); font-weight: 500; }
.payment-fields input, .payment-fields select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c8cad0; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.payment-fields input:focus-visible, .payment-fields select:focus-visible { outline: 3px solid rgba(178, 24, 31, .28); outline-offset: 2px; }
.payment-results { padding: 22px; background: var(--soft); border-radius: 16px; }
.payment-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
.payment-results > strong { display: block; margin: 6px 0 20px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; }
.payment-results dl { margin: 0; display: grid; gap: 10px; }
.payment-results dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: .85rem; }
.payment-results dt { color: var(--muted); }
.payment-results dd { margin: 0; font-weight: 720; text-align: right; }
.payment-disclaimer { max-width: 880px; margin: 22px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.dealer-panel { width: min(1400px, calc(100% - 48px)); margin: 50px auto 90px; padding: clamp(26px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--soft); border-radius: 22px; }
.dealer-panel h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.dealer-panel p:last-child { margin-bottom: 0; color: var(--muted); }
.dealer-actions { display: flex; align-items: center; gap: 20px; }

.lead-page, .legal-page, .not-found { width: min(1180px, calc(100% - 48px)); margin: 40px auto 90px; }
.lead-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; }
.lead-form-card { padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.lead-form-card h1, .legal-page h1, .not-found h1 { margin: .25rem 0 .6rem; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.form-intro { margin: 0 0 28px; color: var(--muted); }
.lead-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: .7fr 1fr 1fr; }
.lead-form label { display: grid; gap: 7px; font-size: .85rem; font-weight: 720; }
.lead-form label > span[aria-hidden="true"] { display: inline; color: var(--accent); }
.lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; padding: .82rem .9rem; color: var(--ink); background: #fff; border: 1px solid #c8cad0; border-radius: 10px; }
.lead-form textarea { resize: vertical; }
.consent { grid-template-columns: 20px 1fr; align-items: start; color: var(--muted); font-weight: 500 !important; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-errors { padding: 14px 18px; margin-bottom: 20px; color: #7c1115; background: #fff0f0; border: 1px solid #f2b9bc; border-radius: 12px; }
.form-errors ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.honeypot { position: absolute !important; left: -10000px; }
.lead-vehicle-card { overflow: hidden; background: var(--soft); border-radius: 20px; }
.lead-vehicle-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lead-vehicle-card div { padding: 22px; }
.lead-vehicle-card p { margin: 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.lead-vehicle-card h2 { margin: .35rem 0; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.035em; }
.success-mark { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 1.8rem; }
.success-state p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.legal-page { max-width: 780px; }
.legal-page h2 { margin-top: 2.2rem; }
.legal-page p { color: #41444c; }
.not-found { min-height: 55vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found p:not(.eyebrow) { max-width: 600px; color: var(--muted); }

.upload-page { width: min(1220px, calc(100% - 48px)); margin: 34px auto 90px; }
.upload-hero { padding: clamp(28px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 42px; color: #fff; background: linear-gradient(135deg, #17191e, #282b33); border-radius: 26px; }
.upload-hero h1 { max-width: 760px; margin: .35rem 0 .7rem; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.06em; }
.upload-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: #b9bbc2; font-size: 1.05rem; line-height: 1.55; }
.upload-steps { min-width: 180px; display: grid; gap: 12px; }
.upload-steps span { display: flex; align-items: center; gap: 10px; color: #cfd0d5; font-size: .83rem; font-weight: 680; }
.upload-steps strong { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; }
.upload-grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.upload-card, .upload-requirements { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; }
.upload-card { box-shadow: var(--shadow); }
.upload-form { display: grid; gap: 20px; }
.upload-form label:not(.upload-drop) { display: grid; gap: 7px; font-size: .85rem; font-weight: 720; }
.upload-form label > span[aria-hidden="true"] { color: var(--accent); }
.upload-form input:not([type="file"]), .upload-form select { width: 100%; min-height: 48px; padding: .82rem .9rem; color: var(--ink); background: #fff; border: 1px solid #c8cad0; border-radius: 10px; font: inherit; }
.upload-form input:focus, .upload-form select:focus { outline: 3px solid rgba(201, 31, 40, .14); border-color: var(--accent); }
.feed-mode { margin: 0; padding: 18px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 13px; }
.feed-mode legend { padding: 0 6px; font-weight: 780; }
.feed-mode label { grid-template-columns: auto 1fr !important; align-items: start; }
.feed-mode input, .compliance-check input { width: 18px !important; min-height: 18px !important; margin-top: 3px; accent-color: var(--accent); }
.feed-mode span { display: grid; }
.feed-mode small, .compliance-check span { color: var(--muted); font-weight: 500; }
.compliance-check { grid-template-columns: auto 1fr !important; align-items: start; padding: 15px; background: var(--soft); border-radius: 12px; }
.upload-drop { padding: 30px; display: grid; justify-items: center; gap: 7px; text-align: center; background: var(--soft); border: 1.5px dashed #b8bbc3; border-radius: 16px; cursor: pointer; }
.upload-drop:hover { border-color: var(--accent); }
.upload-drop small { color: var(--muted); }
.upload-drop input { max-width: 360px; margin-top: 10px; }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 1.4rem; }
.upload-submit { display: flex; align-items: center; gap: 20px; }
.upload-submit p { max-width: 390px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.upload-status { margin-bottom: 24px; padding: 16px 18px; display: flex; gap: 13px; border-radius: 13px; }
.upload-status > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; border-radius: 50%; font-weight: 800; }
.upload-status strong { display: block; }
.upload-status p { margin: .25rem 0 0; }
.upload-status ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.upload-status.success { color: #174e32; background: #e9f8ef; border: 1px solid #afe0c1; }
.upload-status.success > span { background: var(--success); }
.upload-status.error { color: #7c1115; background: #fff0f0; border: 1px solid #f2b9bc; }
.upload-status.error > span { background: var(--accent); }
.upload-requirements { background: var(--soft); }
.upload-requirements h2 { margin: .3rem 0 1rem; font-size: 1.75rem; letter-spacing: -.04em; }
.upload-requirements ul { margin: 0 0 24px; padding-left: 1.15rem; color: #454851; }
.upload-requirements li + li { margin-top: .65rem; }
.privacy-note { margin: 24px 0 0; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.5; }

.review-page { width: min(1400px, calc(100% - 48px)); margin: 30px auto 90px; }
.review-hero { padding: clamp(26px, 4vw, 46px); display: flex; align-items: end; justify-content: space-between; gap: 30px; color: #fff; background: linear-gradient(135deg, #111216, #292c34); border-radius: 24px; }
.review-hero h1 { margin: .25rem 0 .55rem; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.06em; }
.review-hero p:not(.eyebrow) { margin: 0; color: #bec0c6; }
.review-hero > span { padding: .5rem .75rem; color: #d9dae0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .76rem; white-space: nowrap; }
.review-card { margin-top: 24px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 38px rgba(17,18,22,.06); }
.review-section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.review-section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.55rem, 2.5vw, 2.3rem); letter-spacing: -.04em; }
.review-section-heading p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); }
.review-section-heading > span:not(.status-pill) { color: var(--muted); font-size: .78rem; }
.review-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.review-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.review-table th { padding: 11px 13px; color: var(--muted); background: var(--soft); font-size: .69rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.review-table td { padding: 13px; border-top: 1px solid var(--line); vertical-align: middle; }
.review-table tr.selected td { background: #fff7f7; }
.review-table td strong, .review-table td small { display: block; }
.review-table td small { margin-top: 2px; color: var(--muted); }
.status-pill { display: inline-flex; padding: .35rem .58rem; color: #555963; background: var(--soft); border-radius: 999px; font-size: .69rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.status-staged { color: #7b5100; background: #fff3cf; }
.status-importing { color: #24537a; background: #e6f3ff; }
.status-imported { color: #12633a; background: #e2f7eb; }
.status-rolled_back { color: #4d477a; background: #eeecff; }
.status-rejected, .status-failed, .status-declined { color: #831319; background: #ffe7e8; }
.review-alert { margin-top: 20px; padding: 15px 18px; border-radius: 12px; }
.review-alert.success { color: #174e32; background: #e9f8ef; border: 1px solid #afe0c1; }
.review-alert.error { color: #7c1115; background: #fff0f0; border: 1px solid #f2b9bc; }
.review-alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.review-facts { margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-facts div { padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.review-facts dd { margin: .3rem 0 0; font-weight: 680; overflow-wrap: anywhere; }
.quality-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.quality-grid div { padding: 16px; display: grid; border: 1px solid var(--line); border-radius: 12px; }
.quality-grid strong { font-size: 1.45rem; }
.quality-grid span { color: var(--muted); font-size: .72rem; }
.quality-good { background: #f1fbf5; }
.quality-warn { background: #fff8e6; }
.quality-bad { background: #fff0f0; }
.publish-box { margin-top: 24px; padding: 22px; background: #fff8e6; border: 1px solid #eed58a; border-radius: 14px; }
.publish-box label { display: flex; align-items: flex-start; gap: 10px; font-weight: 720; }
.publish-box input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.publish-box p { color: #61583f; font-size: .8rem; }
.preview-heading { margin-top: 34px; }
.preview-table { min-width: 850px; }
.review-pagination { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 24px; font-size: .84rem; }
.review-pagination a { color: var(--accent); font-weight: 760; }
.admin-login { width: min(520px, 100%); margin: 50px auto; }
.admin-login h1 { margin: .2rem 0 .5rem; font-size: 2.3rem; letter-spacing: -.05em; }
.admin-identity { display: grid; justify-items: end; }
.admin-identity small { color: #bbbfc7; }
.admin-tool-link { margin-top: 5px; color: #fff; font-size: .78rem; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }
.admin-identity form { margin-top: 4px; }
.admin-identity button { padding: 0; color: #fff; background: none; border: 0; cursor: pointer; }
.mapping-box { margin-top: 24px; padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.mapping-box summary { font-weight: 800; cursor: pointer; }
.mapping-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.mapping-grid label, .decline-box label { display: grid; gap: 5px; color: var(--muted); font-size: .73rem; font-weight: 760; }
.mapping-grid select, .publish-box select, .decline-box textarea { width: 100%; padding: .7rem; background: #fff; border: 1px solid #c8cad0; border-radius: 9px; }
.mapping-grid .button { align-self: end; }
.button.secondary { color: var(--ink); background: #fff; border-color: #bfc1c7; }
.button.secondary:hover { color: #fff; background: var(--ink); }
.decline-box { margin-top: 14px; padding: 18px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; }
.rollback-box { background: #fff0f0; border-color: #f2b9bc; }

.log-page { max-width: 1600px; }
.log-file-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.log-file-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(17,18,22,.05); }
.log-file-card > div:first-child { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px 9px; }
.log-file-card > div:first-child small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.log-health-dot { width: 10px; height: 10px; grid-row: 1 / 3; display: block; background: #198754; border-radius: 50%; box-shadow: 0 0 0 4px #e5f6ec; }
.log-file-card.is-unreadable .log-health-dot { background: #c5232a; box-shadow: 0 0 0 4px #ffe8e9; }
.log-file-card > code { margin: 16px 0; padding: 10px 12px; display: block; overflow: hidden; color: #3f424a; background: var(--soft); border-radius: 9px; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.log-file-card dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.log-file-card dt { color: var(--muted); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.log-file-card dd { margin: 3px 0 0; font-size: .79rem; font-weight: 720; }
.log-filter-form { position: relative; }
.log-filter-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 13px; align-items: end; }
.log-filter-grid label { display: grid; gap: 5px; color: var(--muted); font-size: .69rem; font-weight: 760; }
.log-filter-grid select, .log-filter-grid input { width: 100%; min-height: 43px; padding: .65rem .7rem; color: var(--ink); background: #fff; border: 1px solid #c8cad0; border-radius: 9px; }
.log-filter-grid .log-search { grid-column: span 3; }
.log-filter-grid .button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; }
.log-metric-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.log-metric-grid article { padding: 18px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(17,18,22,.04); }
.log-metric-grid span { color: var(--muted); font-size: .68rem; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.log-metric-grid strong { margin: 4px 0 1px; font-size: clamp(1.45rem, 2.5vw, 2.15rem); letter-spacing: -.04em; }
.log-metric-grid small { color: var(--muted); font-size: .7rem; }
.log-metric-grid .metric-warn { background: #fffaf0; border-color: #eadcae; }
.log-metric-grid .metric-bad { background: #fff4f4; border-color: #ecc6c8; }
.log-breakdown-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.log-ranking { min-width: 0; }
.log-ranking h2 { margin: 0 0 16px; font-size: 1.05rem; }
.log-ranking ol { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.log-ranking li > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: .75rem; }
.log-ranking li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-ranking li a { overflow: hidden; color: var(--accent); font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.log-ranking li i { height: 4px; margin-top: 5px; display: block; background: linear-gradient(90deg, var(--accent), #ef777c); border-radius: 99px; }
.log-ranking .log-empty { color: var(--muted); font-size: .78rem; }
.log-table { min-width: 1260px; }
.log-table td { vertical-align: top; }
.log-collapsible > summary.review-section-heading { margin-bottom: 0; cursor: pointer; list-style: none; user-select: none; }
.log-collapsible > summary.review-section-heading::-webkit-details-marker { display: none; }
.log-collapsible[open] > summary.review-section-heading { margin-bottom: 18px; }
.log-collapsible > summary.review-section-heading:focus-visible { outline: 3px solid rgba(178, 24, 31, .22); outline-offset: 8px; border-radius: 8px; }
.log-collapsible > summary.review-section-heading:hover h2 { color: var(--accent); }
.log-collapse-meta { display: inline-flex; align-items: center; gap: 12px; }
.log-collapse-meta i { width: 9px; height: 9px; flex: 0 0 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.log-collapsible[open] .log-collapse-meta i { transform: rotate(225deg); }
.log-time { width: 150px; white-space: nowrap; }
.http-status { min-width: 43px; padding: .25rem .42rem; display: inline-flex; justify-content: center; color: #3e4249; background: var(--soft); border-radius: 7px; font-size: .7rem; font-weight: 820; }
.http-status.status-2xx { color: #12633a; background: #e2f7eb; }
.http-status.status-3xx { color: #24537a; background: #e6f3ff; }
.http-status.status-4xx { color: #7b5100; background: #fff3cf; }
.http-status.status-5xx { color: #831319; background: #ffe7e8; }
.log-request { max-width: 390px; }
.log-request strong { display: inline-block !important; margin-right: 6px; color: var(--accent); font-size: .69rem; }
.log-request code { max-width: 310px; display: inline-block; overflow: hidden; color: var(--ink); font-size: .74rem; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.log-request small { color: #9a171d !important; font-weight: 780; }
.log-long { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-agent { max-width: 300px; }
.log-agent .agent-kind { display: inline-flex; padding: .18rem .38rem; color: #555963; background: var(--soft); border-radius: 5px; font-size: .62rem; font-weight: 780; }
.log-agent small { max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-table tr.log-suspicious td { background: #fff7e7; }
.log-table tr.log-server-error td, .error-log-table tr.log-level-error td, .error-log-table tr.log-level-crit td, .error-log-table tr.log-level-critical td, .error-log-table tr.log-level-alert td, .error-log-table tr.log-level-emerg td { background: #fff2f2; }
.error-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.log-error-ranking ol { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.log-error-ranking li { padding: 10px 12px; display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 10px; background: var(--soft); border-radius: 8px; font-size: .77rem; }
.log-error-ranking li span { overflow-wrap: anywhere; }
.log-level { padding: .22rem .42rem; color: #555963; background: var(--soft); border-radius: 6px; font-size: .65rem; font-weight: 820; text-transform: uppercase; }
.error-log-table td:nth-child(3) small { color: var(--muted); }
.log-message { min-width: 420px; max-width: 740px; overflow-wrap: anywhere; }
.log-message small { color: var(--muted); }
.ip-inspection { border-color: #c9ced8; background: linear-gradient(145deg, #fff, #f7f8fb); }
.ip-intel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ip-intel-grid article { padding: 17px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ip-intel-grid article > span:first-child { margin-bottom: 8px; display: block; color: var(--muted); font-size: .65rem; font-weight: 780; letter-spacing: .05em; text-transform: uppercase; }
.ip-intel-grid article > strong { display: inline-flex; max-width: 100%; font-size: 1rem; overflow-wrap: anywhere; }
.ip-intel-grid article p { margin: 7px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; overflow-wrap: anywhere; }
.ip-intel-grid .ip-masked { background: #fff2f2; border-color: #edc3c5; }
.ip-evidence { margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ip-evidence div { padding: 12px 14px; border-right: 1px solid var(--line); }
.ip-evidence div:last-child { border-right: 0; }
.ip-evidence dt { color: var(--muted); font-size: .62rem; font-weight: 760; text-transform: uppercase; }
.ip-evidence dd { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.ip-disclaimer { margin: 16px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.ip-disclaimer a { color: var(--accent); font-weight: 760; }
.ip-inspect-link { display: grid; gap: 2px; color: var(--ink); }
.ip-inspect-link small { color: var(--accent) !important; font-size: .62rem; font-weight: 780; }
.source-badge { padding: .26rem .46rem; display: inline-flex; color: #50545c; background: var(--soft); border-radius: 7px; font-size: .64rem !important; font-weight: 820; line-height: 1.2; }
.source-direct { color: #12633a; background: #e2f7eb; }
.source-trusted-proxy { color: #24537a; background: #e6f3ff; }
.source-proxy, .source-unverified { color: #831319; background: #ffe7e8; }
.source-internal { color: #6b4a00; background: #fff3cf; }
.source-client-only { color: #555963; background: #eceef2; }

.site-footer { width: min(1400px, calc(100% - 48px)); min-height: 112px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #d7d8dc; background: var(--ink); border-radius: 22px 22px 0 0; padding: 28px 38px; }
.site-footer > div:first-child { display: grid; }
.site-footer span { color: #9699a1; font-size: .86rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-size: .85rem; text-underline-offset: 3px; }

@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .search-stage { grid-template-columns: 1fr; gap: 28px; }
  .search-copy h1 { max-width: 850px; }
  .hero-stats { max-width: 650px; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vdp-grid { grid-template-columns: 1fr; }
  .vehicle-summary { position: static; }
  .decoded-spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .decoded-spec-grid div:nth-child(4n) { border-right: 1px solid var(--line); }
  .decoded-spec-grid div:nth-child(3n) { border-right: 0; }
  .upload-grid { grid-template-columns: 1fr; }
  .upload-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .upload-requirements .eyebrow, .upload-requirements h2 { grid-column: 1 / -1; }
  .quality-grid { grid-template-columns: repeat(3, 1fr); }
  .log-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log-filter-grid .log-search { grid-column: span 2; }
  .log-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-intel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-evidence div { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header, .search-stage, .confidence-strip, .inventory-section, .breadcrumbs, .vdp-grid, .vehicle-details-panel, .payment-panel, .dealer-panel, .lead-page, .legal-page, .not-found, .upload-page, .review-page, .site-footer { width: min(100% - 28px, 1400px); }
  .site-header { min-height: 72px; }
  .dealer-chip { display: none; }
  .brand-logo { width: 220px; height: auto; }
  .brand-product { padding-left: 12px; }
  .search-stage { margin-top: 14px; padding: 28px 18px 18px; border-radius: 20px; }
  .search-copy h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .smart-search { padding: 10px; }
  .location-bar { grid-template-columns: 1fr; }
  .location-actions { flex-wrap: wrap; }
  .location-actions input { flex: 1 1 95px; }
  .search-panel-heading { padding: 6px 4px 0; }
  .search-panel-heading small { display: none; }
  .search-row { grid-template-columns: 30px 1fr; }
  .search-row input { height: 50px; }
  .search-row button { grid-column: 1 / -1; width: 100%; }
  .dealer-picker { grid-template-columns: 1fr; gap: 4px; }
  .quick-filters { flex-wrap: nowrap; overflow-x: auto; }
  .quick-filters a { flex: 0 0 auto; }
  .confidence-strip { margin-top: 12px; grid-template-columns: 1fr; }
  .confidence-strip > div { padding: 15px 18px; }
  .confidence-strip > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .inventory-section { margin-top: 42px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-card { display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; }
  .vehicle-photo { height: 100%; aspect-ratio: auto; }
  .vehicle-body { padding: 15px; }
  .vehicle-body h3 { min-height: 0; font-size: 1.1rem; }
  .vehicle-facts { grid-template-columns: 1fr; gap: 7px; }
  .vehicle-facts div:nth-child(2) { display: none; }
  .card-footer { min-height: 58px; align-items: end; }
  .price-block strong { font-size: 1.12rem; }
  .arrow-link { font-size: .82rem; }
  .vdp-grid { gap: 18px; }
  .vehicle-summary { padding: 24px 20px; }
  .details-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .payment-content { grid-template-columns: 1fr; }
  .decoded-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decoded-spec-grid div:nth-child(3n) { border-right: 1px solid var(--line); }
  .decoded-spec-grid div:nth-child(2n) { border-right: 0; }
  .dealer-panel, .dealer-actions, .site-footer { align-items: flex-start; flex-direction: column; }
  .lead-layout { grid-template-columns: 1fr; }
  .lead-vehicle-card { grid-row: 1; display: grid; grid-template-columns: 130px 1fr; }
  .lead-vehicle-card img { height: 100%; aspect-ratio: auto; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .upload-hero { grid-template-columns: 1fr; gap: 24px; }
  .upload-steps { grid-template-columns: repeat(3, 1fr); }
  .upload-steps span { align-items: flex-start; flex-direction: column; }
  .upload-requirements { display: block; }
  .upload-submit { align-items: flex-start; flex-direction: column; }
  .review-hero, .review-section-heading { align-items: flex-start; flex-direction: column; }
  .review-facts { grid-template-columns: 1fr 1fr; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .mapping-grid { grid-template-columns: 1fr 1fr; }
  .log-file-grid, .log-breakdown-grid { grid-template-columns: 1fr; }
  .log-filter-grid { grid-template-columns: 1fr 1fr; }
  .log-filter-grid .log-search { grid-column: 1 / -1; }
  .log-metric-grid, .error-metrics { grid-template-columns: 1fr 1fr; }
  .ip-evidence { grid-template-columns: 1fr 1fr; }
  .site-footer { border-radius: 18px 18px 0 0; padding: 28px 24px; }
}

@media (max-width: 430px) {
  .brand-product { display: none; }
  .brand-logo { width: 205px; height: auto; }
  .mapping-grid { grid-template-columns: 1fr; }
  .vehicle-card { display: block; }
  .vehicle-photo { aspect-ratio: 3/2; }
  .vehicle-facts { grid-template-columns: 1fr 1fr; }
  .vehicle-facts div:nth-child(2) { display: block; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .decoded-spec-grid { grid-template-columns: 1fr; }
  .decoded-spec-grid div { border-right: 0 !important; }
  .log-file-card dl, .log-filter-grid, .log-metric-grid, .error-metrics { grid-template-columns: 1fr; }
  .log-filter-grid .log-search { grid-column: auto; }
  .ip-intel-grid, .ip-evidence { grid-template-columns: 1fr; }
  .ip-evidence div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
