:root {
  color-scheme: dark;
  --ink: #edf2ec;
  --muted: #a9b4ad;
  --line: #2c3933;
  --panel: #17211d;
  --panel-2: #1d2924;
  --bg: #0e1512;
  --accent: #d7ff68;
  --accent-dark: #18200b;
  --warm: #d9c6a0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  background:
    radial-gradient(circle at 85% 35%, rgba(215,255,104,.11), transparent 30%),
    linear-gradient(135deg, #15221c 0%, #0f1613 60%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  width: clamp(420px, 49vw, 760px);
  aspect-ratio: 3 / 1;
  right: -55px;
  bottom: -24px;
  background: rgba(237,242,236,.065);
  -webkit-mask: url("470-wordmark.svg") center / contain no-repeat;
  mask: url("470-wordmark.svg") center / contain no-repeat;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  width: clamp(250px, 28vw, 430px);
  aspect-ratio: 5 / 3;
  right: 5%;
  top: 105px;
  background: url("lexus-emblem.png") center / contain no-repeat;
  opacity: .018;
  transform: rotate(-4deg);
  pointer-events: none;
}
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(237,242,236,.13); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 720; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 32px; }
.brand-mark img { display: block; width: 46px; height: 32px; object-fit: contain; opacity: .72; transition: opacity .18s ease; }
.brand:hover .brand-mark img { opacity: .9; }
.model-wordmark { display: inline-block; width: 4.55em; height: 1em; vertical-align: -.1em; background: currentColor; -webkit-mask: url("lx470-wordmark.svg") center / contain no-repeat; mask: url("lx470-wordmark.svg") center / contain no-repeat; }
.wordmark-nav { width: 4.2em; height: .82em; vertical-align: -.06em; color: var(--ink); }
.wordmark-hero { display: block; width: min(4.45em, 100%); height: .82em; margin-top: .08em; color: var(--warm); }
.wordmark-inline { width: 4.2em; height: .78em; color: inherit; }
.nav-link { color: var(--muted); font-size: 14px; text-underline-offset: 5px; }
.nav-link:hover { color: var(--ink); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 80px; min-height: 480px; padding: 80px 0 86px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(64px, 9vw, 126px); line-height: .86; letter-spacing: -.035em; font-weight: 700; font-kerning: normal; }
.hero-panel { padding: 28px; border: 1px solid rgba(237,242,236,.15); background: rgba(14,21,18,.7); backdrop-filter: blur(10px); }
.status-line { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(215,255,104,.1); }
.updated { min-height: 48px; margin: 20px 0; color: var(--muted); font-size: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; line-height: 1; }
.hero-stats span { margin-top: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }

.notice { display: flex; gap: 18px; align-items: flex-start; margin: 52px 0; padding: 24px 28px; border: 1px solid #50603b; background: #192217; }
.notice h2 { margin: 0 0 4px; font-size: 16px; }
.notice p { margin: 0; color: #b8c3b2; font-size: 14px; }
.shield { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-dark); font-weight: 900; }

.inventory { padding: 48px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .method h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.022em; font-weight: 700; font-kerning: normal; }
.result-count { margin: 0; color: var(--muted); font-size: 14px; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.search-field { grid-column: span 2; }
.filters label { display: flex; flex-direction: column; min-width: 0; padding: 11px 14px; background: var(--panel); }
.filters label span { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.filters select { cursor: pointer; }
.filters option { background: #18221e; }
.filters label:focus-within { box-shadow: inset 0 -2px var(--accent); }
.filter-toggle { display: none; }
.reset { grid-column: 1 / -1; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; text-align: right; font-size: 12px; }
.reset:hover { color: var(--accent); }
.distance-status { min-height: 20px; margin: 10px 2px 0; color: var(--muted); font-size: 12px; }
.distance-status.error { color: #efae8d; }
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border-block: 1px solid var(--line); }
.summary-strip div { display: flex; justify-content: space-between; gap: 12px; padding: 17px 20px; border-right: 1px solid var(--line); }
.summary-strip div:last-child { border-right: 0; }
.summary-strip span { color: var(--muted); font-size: 13px; }
.summary-strip strong { color: var(--warm); }
.location-map { margin: 27px 0 42px; border: 1px solid var(--line); background: #111b17; }
.map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 20px; }
.map-heading h3 { margin: 0; font-size: 18px; }
.map-heading p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.map-viewport { overflow-x: auto; border-block: 1px solid var(--line); }
#listing-map { display: block; width: 100%; height: auto; min-width: 650px; background: #111b17; }
.map-marker { cursor: pointer; }
.map-marker circle { fill: var(--accent); stroke: #0e1512; stroke-width: 3; }
.map-marker:hover circle, .map-marker:focus-visible circle { fill: #fff; stroke: var(--accent); stroke-width: 4; }
.map-marker text { fill: #14200d; font-size: 14px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-origin { fill: var(--warm); stroke: #111b17; stroke-width: 3; }
.map-origin-core { fill: #111b17; pointer-events: none; }
.map-note { margin: 0; padding: 13px 20px; color: var(--muted); font-size: 12px; }
.map-note a { color: var(--warm); }
.location-distance { color: var(--warm); }
.listings { margin-top: 24px; }
.listing { display: grid; grid-template-columns: 142px minmax(190px, 1.25fr) minmax(125px, .75fr) minmax(120px, .7fr) minmax(145px, .9fr) minmax(125px, .75fr) 46px; align-items: center; gap: 16px; padding: 24px 14px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.listing:first-child { border-top: 1px solid var(--line); }
.listing:hover { background: var(--panel); }
.listing-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: #17201c; }
.photo-viewer { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.photo-viewer:focus-visible, .photo-step:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.listing-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.listing:hover .listing-media img { transform: scale(1.025); }
.listing-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(5,10,8,.72)); pointer-events: none; }
.photo-step { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(10,16,13,.7); color: white; font-size: 26px; line-height: 1; cursor: pointer; }
.photo-previous { left: 5px; }
.photo-next { right: 5px; }
.photo-counter { position: absolute; z-index: 2; top: 7px; right: 7px; padding: 2px 6px; background: rgba(10,16,13,.75); color: white; font-size: 10px; }
.photo-missing { display: grid; place-items: center; background: linear-gradient(145deg, #19241f, #111815); }
.photo-placeholder { color: rgba(215,255,104,.18); font-size: 30px; font-weight: 800; letter-spacing: -.08em; }
.year-badge { position: absolute; z-index: 2; left: 9px; bottom: 7px; color: #f4ead4; font-family: Georgia, serif; font-size: 18px; text-shadow: 0 1px 8px #000; pointer-events: none; }
.vehicle-title { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.vehicle-title .model-wordmark { width: 4.2em; height: .8em; color: var(--ink); white-space: nowrap; }
.vehicle-meta, .meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.timing { max-width: 360px; }
.color-pair { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.color-fact { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.color-swatch { flex: 0 0 auto; width: 17px; height: 17px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.28); }
.color-swatch.color-unknown { background: repeating-linear-gradient(135deg, #26312c 0 4px, #111815 4px 8px); }
.color-detail { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; line-height: 1.05; }
.color-detail small { grid-column: 1 / -1; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.color-detail strong { max-width: 125px; overflow: hidden; color: #d9dfda; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.color-detail em { color: #75827b; font-size: 9px; font-style: normal; }
.reported-extras { margin-top: 12px; max-width: 340px; }
.reported-extras summary { width: max-content; color: var(--warm); font-size: 11px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.reported-extras-content { padding: 11px 0 3px; }
.reported-extras-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.reported-extra { padding: 3px 6px; border: 1px solid var(--line); color: #d9dfda; font-size: 10px; }
.reported-extras-source { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.reported-extras-source a { color: var(--warm); }
.condition-records { margin-top: 10px; max-width: 360px; }
.condition-records summary { width: max-content; max-width: 100%; color: var(--warm); font-size: 11px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.condition-records-content { margin-top: 10px; border-top: 1px solid var(--line); }
.condition-record { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 3px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.condition-label, .condition-unknown { color: var(--muted); }
.condition-record strong { font-weight: 600; }
.condition-evidence { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.condition-disclaimer { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.condition-disclaimer a { color: var(--warm); }
.duplicate-badge { display: inline-block; padding: 2px 7px; border: 1px solid #8a7551; color: var(--warm); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.duplicate-conflict-badge { display: inline-block; padding: 2px 7px; border: 1px solid #955d55; color: #e2a099; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.duplicate-listings { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border: 1px solid var(--line); background: #17201c; }
.duplicate-listings summary { color: var(--warm); font-size: 12px; font-weight: 700; cursor: pointer; }
.duplicate-listings-content { margin-top: 10px; }
.duplicate-offer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.duplicate-offer-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 13px; min-width: 0; font-size: 12px; }
.duplicate-offer-facts small { flex-basis: 100%; color: var(--muted); font-size: 10px; line-height: 1.4; }
.duplicate-offer a { flex: 0 0 auto; color: var(--accent); font-size: 11px; }
.duplicate-conflict { margin: 0 0 9px; color: #e2a099; font-size: 11px; }
.listing-state-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.sale-state { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.deal-rating { display: inline-block; padding: 2px 7px; border: 1px solid; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: help; }
.deal-great { border-color: #769d42; color: #c8ff3d; background: rgba(200,255,61,.05); }
.deal-fair { border-color: #8e7c5d; color: #d9c39a; background: rgba(217,195,154,.04); }
.deal-bad { border-color: #955d55; color: #e2a099; background: rgba(226,160,153,.04); }
.rust-location { display: inline-block; padding: 2px 7px; border: 1px solid #8a7551; color: #d9c39a; background: rgba(217,195,154,.05); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: help; }
.rust-location:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.state-for-sale, .state-live-auction { border-color: #58773d; color: #cbe99a; }
.state-live-auction { background: rgba(215,255,104,.07); }
.state-sold { border-color: #596c83; color: #b9d8f5; }
.state-bid-not-met, .state-auction-ended { border-color: #806c46; color: var(--warm); }
.metric { display: flex; flex-direction: column; }
.metric strong { font-size: 16px; }
.metric span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.listing-dates { display: flex; flex-direction: column; gap: 10px; }
.date-fact { display: flex; flex-direction: column; margin: 0; }
.date-fact span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-fact strong { margin-top: 3px; font-size: 12px; font-weight: 650; }
.date-fact small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.history { display: flex; flex-direction: column; gap: 6px; }
.tag { width: max-content; max-width: 100%; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.good { border-color: #58773d; color: #cbe99a; }
.tag.alert { border-color: #955d55; color: #e2a099; }
.open-link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); text-decoration: none; font-size: 20px; transition: background .18s, color .18s; }
.open-link-label { display: none; }
.open-link:hover { background: var(--accent); color: var(--accent-dark); }
.empty { margin-top: 24px; padding: 70px 30px; border: 1px solid var(--line); text-align: center; }
.empty h3 { margin: 0; font-size: 24px; }
.empty p { color: var(--muted); }
.empty button { padding: 10px 16px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.loading { padding: 70px 20px; color: var(--muted); text-align: center; border: 1px solid var(--line); }

.market { padding: 90px 0; border-top: 1px solid var(--line); }
.market-heading { margin-bottom: 28px; }
.market-controls { display: grid; grid-template-columns: repeat(2, minmax(160px, 220px)); gap: 1px; width: max-content; max-width: 100%; margin-bottom: 28px; border: 1px solid var(--line); background: var(--line); }
.market-controls label { display: flex; flex-direction: column; padding: 11px 14px; background: var(--panel); }
.market-controls label span { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.market-controls select { min-width: 170px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.market-controls option { background: #18221e; }
.market-bands { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.market-band { min-width: 0; padding: 26px 24px; border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(29,41,36,.8), rgba(14,21,18,.25)); }
.market-band:last-child { border-right: 0; }
.band-label { margin: 0; color: var(--warm); font-family: Georgia, serif; font-size: 21px; }
.band-detail { min-height: 20px; margin: 2px 0 26px; color: var(--muted); font-size: 11px; }
.band-average { display: block; font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -.025em; }
.band-caption { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.band-bar { height: 3px; margin: 24px 0 15px; overflow: hidden; background: var(--line); }
.band-bar span { display: block; height: 100%; background: var(--accent); }
.band-facts { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.market-note { max-width: 880px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.market-note span { color: var(--ink); }

.method { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 90px 0; border-top: 1px solid var(--line); }
.method-copy > p { margin-top: 0; color: var(--muted); font-size: 17px; }
.method ol { padding: 0; margin: 36px 0; list-style: none; }
.method li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.method li span { color: var(--accent); font-size: 12px; font-weight: 800; }
details { margin-top: 30px; }
summary { color: var(--warm); cursor: pointer; font-size: 14px; }
.source-health { margin-top: 16px; }
.health-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.health-row span:last-child { color: var(--muted); text-align: right; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.photo-dialog { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #56665c; background: #111915; color: var(--ink); box-shadow: 0 20px 80px #000b; }
.photo-dialog::backdrop { background: rgba(0,0,0,.86); }
.photo-dialog [hidden] { display: none !important; }
.photo-dialog-header, .photo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.photo-dialog-header strong { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.photo-dialog-header button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.photo-stage { position: relative; display: grid; place-items: center; min-height: 220px; background: #090e0b; }
.photo-stage img { display: block; width: 100%; max-height: calc(100dvh - 155px); object-fit: contain; }
.photo-stage p { padding: 50px 24px; color: var(--muted); text-align: center; }
.photo-stage button { position: absolute; z-index: 1; top: 50%; width: 46px; height: 52px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.5); background: rgba(10,16,13,.75); color: white; font-size: 34px; cursor: pointer; }
#photo-previous { left: 10px; }
#photo-next { right: 10px; }
.photo-dialog-footer { color: var(--muted); font-size: 13px; }
.photo-dialog-footer a { color: var(--accent); text-underline-offset: 3px; }
.footer-brand p { margin: 0; }
.footer-brand .credit { margin-top: 8px; color: #718078; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1040px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .search-field { grid-column: span 2; }
  .listing { grid-template-columns: 132px 1.4fr 1fr 1fr 48px; }
  .listing .listing-dates { grid-column: 2 / 4; flex-direction: row; gap: 28px; }
  .listing .history { grid-column: 2 / 5; flex-direction: row; }
  .market-bands { grid-template-columns: repeat(2, 1fr); }
  .market-band { border-bottom: 1px solid var(--line); }
  .market-band:nth-child(2) { border-right: 0; }
  .market-band:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; }
  .hero::after { width: 420px; right: -130px; bottom: -8px; }
  .hero::before { width: 240px; right: -55px; top: 100px; opacity: .014; }
  .nav { height: 72px; }
  .nav-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding: 54px 0 44px; }
  h1 { font-size: clamp(44px, 10vw, 72px); line-height: .95; }
  .hero-panel { padding: 22px; }
  .notice { margin: 30px 0; padding: 20px; }
  .inventory { padding: 35px 0 70px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .section-heading h2, .method h2 { font-size: clamp(32px, 7vw, 46px); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .search-field { grid-column: 1 / -1; }
  .filters label { padding: 8px 12px; }
  .filters input, .filters select { min-height: 34px; font-size: 16px; }
  .filters .advanced-filter { order: 4; }
  .filters:not(.filters-expanded) .advanced-filter { display: none; }
  .filter-toggle { display: block; grid-column: 1 / -1; order: 3; min-height: 44px; padding: 8px 14px; border: 0; background: var(--panel); color: var(--warm); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
  .filter-toggle::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
  .filters-expanded .filter-toggle::after { content: "−"; }
  .reset { order: 5; min-height: 44px; font-size: 13px; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip div:last-child { border-bottom: 0; }
  .map-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .map-heading p { text-align: left; }
  .listing { grid-template-columns: 112px 1fr 44px; gap: 14px; padding: 22px 8px; }
  .listing .metric { grid-column: 2; }
  .listing .listing-dates { grid-column: 2; flex-direction: column; gap: 9px; }
  .listing .history { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .listing .open-link { grid-column: 3; grid-row: 1 / 3; }
  .duplicate-listings { padding: 12px; }
  .duplicate-offer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .market { padding: 70px 0; }
  .market-controls { grid-template-columns: 1fr; width: 100%; }
  .market-controls select { min-width: 0; }
  .market-bands { grid-template-columns: 1fr; }
  .market-band { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .band-detail { margin-bottom: 14px; }
  .band-bar { margin: 16px 0 12px; }
  .market-band:last-child { border-bottom: 0 !important; }
  .method { grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
  footer { flex-direction: column; }
}
@media (max-width: 600px) {
  .photo-step { width: 44px; height: 44px; }
  .photo-dialog-header, .photo-dialog-footer { padding: 10px 12px; }
  .photo-dialog-header strong { font-size: 12px; }
  .photo-stage button { width: 42px; height: 48px; }
  .hero-stats strong { font-size: 24px; }
  .notice { gap: 12px; padding: 16px; }
  .notice p { font-size: 13px; }
  .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "media media" "identity identity" "price mileage" "dates dates" "history history" "link link"; gap: 12px 0; margin-bottom: 18px; padding: 0; border: 1px solid var(--line); background: var(--panel); }
  .listing:first-child { border-top: 1px solid var(--line); }
  .listing-media { grid-area: media; aspect-ratio: 16 / 10; border: 0; border-bottom: 1px solid var(--line); }
  .identity { grid-area: identity; min-width: 0; padding: 4px 16px 0; }
  .vehicle-title { font-size: 18px; }
  .listing .metric { grid-column: auto; min-width: 0; padding: 0 16px; }
  .listing .price-metric { grid-area: price; }
  .listing .mileage-metric { grid-area: mileage; }
  .listing .metric strong { overflow-wrap: anywhere; }
  .listing .listing-dates { grid-area: dates; flex-direction: row; justify-content: space-between; gap: 12px; padding: 10px 16px 0; border-top: 1px solid var(--line); }
  .listing .history { grid-area: history; gap: 6px; padding: 0 16px; }
  .listing .open-link { grid-area: link; display: flex; justify-content: space-between; width: auto; height: 48px; margin: 0 16px 16px; padding: 0 14px; border-radius: 0; font-size: 15px; font-weight: 700; }
  .open-link-label { display: inline; }
  .open-link-arrow { font-size: 20px; }
  .color-detail strong { max-width: 105px; }
  .market-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-controls label { min-width: 0; padding: 8px 10px; }
  .market-controls select { width: 100%; min-height: 34px; font-size: 16px; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; font-size: 14px; }
  .brand-mark, .brand-mark img { width: 38px; }
  .listing .listing-dates { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
