:root {
  --navy: #142b43;
  --ink: #1d2e40;
  --muted: #667484;
  --gold: #bf9854;
  --yellow: #f2c459;
  --line: #dfe4e7;
  --pale: #f6f8f9;
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; }
img { max-width: 100%; }
.container-wide { width: min(100% - 56px, 1360px); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 100; padding: 10px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 40px; }
.site-logo { display: block; flex: none; width: 145px; }
.site-logo img { display: block; width: 100%; height: 65px; object-fit: contain; }
.site-nav { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.site-nav a { color: #e9eef1; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: var(--yellow); }
.header-cta { padding: 11px 19px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { display: none; }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--yellow); outline-offset: 5px; }

.home-categories { padding: 24px 0 28px; background: var(--pale); border-bottom: 1px solid var(--line); }
.mobile-home-categories { display: none; }
.home-categories-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 15px; }
.home-categories-heading h2 { margin: 0; font-size: 22px; }
.home-categories-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.home-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.home-category-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 112px; padding: 10px 7px; border: 1px solid #d6e0e5; background: #fff; color: var(--navy); text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.2; }
.home-category-grid a:hover { border-color: #8da7b7; background: #eaf1f5; }
.home-category-grid a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.home-category-grid img { display: block; width: 100%; max-width: 110px; height: 58px; object-fit: contain; }

.section-label { color: #7d6541; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; margin-bottom: 13px; }
.stock-signup-section { background: var(--navy); color: #fff; padding: 43px 0 48px; }
.stock-signup-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 520px); align-items: center; gap: 50px; }
.stock-signup-section .section-label { color: var(--yellow); }
.stock-signup-section h2 { font-size: clamp(25px, 2.5vw, 34px); margin-bottom: 10px; }
.stock-signup-section p { color: #dae3e9; line-height: 1.5; margin-bottom: 0; }
.stock-signup-form > label:first-child { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.stock-signup-fields { display: flex; gap: 9px; }
.stock-signup-fields input { min-width: 0; flex: 1; min-height: 44px; padding: 9px 12px; border: 1px solid #c5d2da; border-radius: 0; font: inherit; }
.stock-signup-fields button { white-space: nowrap; cursor: pointer; }
.stock-signup-consent { display: flex; align-items: start; gap: 8px; margin: 12px 0 7px; font-size: 13px; }
.stock-signup-consent input { margin-top: 3px; }
.stock-signup-form small { display: block; color: #d3dde3; line-height: 1.4; }
.stock-signup-form small a { text-decoration: underline; }
.stock-signup-section .stock-signup-message { margin-top: 13px; color: #fff; font-weight: 600; }
.stock-confirm-page { padding-block: 40px 65px; }
.stock-confirm-page p { margin-bottom: 18px; }

.compact-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.compact-heading h2 { font-size: 23px; margin-bottom: 0; }
.compact-heading a { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.compact-heading a:hover { text-decoration: underline; }
.stock-section { background: var(--pale); padding: 28px 0 70px; border-top: 1px solid var(--line); }
.carousel-heading { align-items: end; margin-bottom: 18px; }
.carousel-heading p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.carousel-actions { display: flex; align-items: center; gap: 8px; }
.carousel-actions .view-all-stock { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin-right: 10px; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-size: 15px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.carousel-actions .view-all-stock:hover { background: var(--gold); text-decoration: none; }
.carousel-actions .view-all-stock:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.carousel-actions button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #bac6ce; background: #fff; color: var(--navy); font-size: 19px; cursor: pointer; }
.carousel-actions button:hover { border-color: var(--navy); background: #e8eef2; }
.carousel-actions button:focus-visible, .vehicle-carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vehicle-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc(33.333333% - 10.666667px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; padding: 1px 1px 10px; }
.vehicle-carousel::-webkit-scrollbar { display: none; }
.vehicle-carousel .vehicle-card { scroll-snap-align: start; }
.vehicle-carousel .vehicle-photo { height: 265px; }
.preview-note { border-left: 3px solid var(--gold); background: #fff9ec; padding: 9px 12px; color: #5c584b; font-size: 12px; margin: 0 0 17px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vehicle-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fff; }
.vehicle-photo { display: block; position: relative; height: 225px; overflow: hidden; background: #edf1f2; }
.vehicle-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-arrow { position: absolute; bottom: 0; right: 0; display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow); font-size: 17px; }
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #e9eef1; color: #687785; }
.vehicle-content { display: flex; flex-direction: column; flex: 1; padding: 17px 18px 19px; }
.vehicle-kicker { display: flex; justify-content: space-between; gap: 10px; color: #81683e; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px; }
.vehicle-content h3 { font-size: 20px; margin-bottom: 6px; }
.vehicle-content h3 a { text-decoration: none; }
.vehicle-spec { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 16px; }
.vehicle-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.vehicle-card-bottom .text-link { font-size: 11px; white-space: nowrap; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-gbp, .price-usd { display: flex; align-items: center; gap: 6px; }
.price-gbp strong { color: var(--navy); font-size: 21px; letter-spacing: -.04em; }
.price-usd { color: #667484; font-size: 12px; }
.currency-flag { width: 20px; height: 13px; object-fit: cover; flex: none; border: 1px solid #c7cbd0; }
.currency-code { font-size: 9px; color: #8a97a0; font-weight: 700; }
.rate-help { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #a9bac4; border-radius: 50%; background: #fff; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.rate-help:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rate-dialog { width: min(420px, calc(100% - 32px)); max-width: none; padding: 24px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 18px 55px #061d3280; }
.rate-dialog::backdrop { background: #061d3299; }
.rate-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.rate-dialog p { margin: 0 0 20px; color: #526473; font-size: 14px; line-height: 1.6; }
.rate-dialog form { display: flex; justify-content: flex-end; }
.rate-dialog .button { min-height: 44px; cursor: pointer; }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 15px; background: #16834b; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.whatsapp-button:hover { background: #106a3b; color: #fff; }
.whatsapp-button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.whatsapp-button img { width: 20px; height: 20px; flex: none; }
.vehicle-card-actions { display: grid; gap: 8px; margin-top: 15px; }
.card-whatsapp { width: 100%; }
.card-share-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 15px; border: 1px solid #16834b; background: #fff; color: #126b3c; font-size: 13px; font-weight: 700; text-decoration: none; }
.card-share-whatsapp:hover { background: #eaf6ef; color: #0d5730; }
.card-share-whatsapp:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.card-share-whatsapp img { width: 20px; height: 20px; flex: none; }
.empty-stock { background: #fff; border: 1px solid var(--line); padding: 40px; text-align: center; }
.empty-stock h3 { font-size: 23px; }
.empty-stock p { color: var(--muted); }
.empty-clear { border: 0; background: none; padding: 0; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.empty-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.mobile-filter-bar { display: none; }
.filter-backdrop { display: none; }
.stock-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 24px; padding-top: 24px; padding-bottom: 70px; }
.stock-sidebar { position: sticky; top: 94px; max-height: calc(100dvh - 110px); overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.stock-sidebar form { padding: 17px; }
.sidebar-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sidebar-title h2 { font-size: 18px; margin-bottom: 0; }
.sidebar-actions { display: flex; align-items: center; gap: 16px; }
.close-filters, .show-results { display: none; }
.clear-filters { border: 0; background: none; padding: 0; color: #657886; font-size: 11px; text-decoration: underline; cursor: pointer; }
.clear-filters:hover { color: var(--navy); }
.clear-filters:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.filter-group { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 15px 0; min-width: 0; }
.filter-group > label, .filter-group legend { display: block; float: none; width: auto; margin: 0 0 9px; font-size: 12px; font-weight: 700; color: var(--ink); }
.filter-group input[type="number"], .filter-group select { width: 100%; height: 36px; border: 1px solid #ccd5da; background: #fff; border-radius: 0; padding: 6px 8px; font-size: 12px; }
.filter-group select { text-overflow: ellipsis; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-range label { display: block; color: #778590; font-size: 11px; margin-bottom: 4px; }
.category-filters { padding-bottom: 10px; }
.filter-group .category-choice { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 60px; padding: 3px 6px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.category-choice:hover { background: #f2f6f8; }
.category-choice:has(input:checked) { background: #eaf1f5; border-color: #b4c5d0; }
.category-choice:has(input:focus-visible) { outline: 2px solid var(--gold); }
.category-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.category-choice img { width: 80px; height: 48px; object-fit: contain; flex: none; }
.category-choice > span { flex: 1; min-width: 0; }
.filter-hint { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.stock-results { min-width: 0; }
.stock-results .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.page-heading { background: var(--pale); border-bottom: 1px solid var(--line); padding: 36px 0; }
.page-heading .eyebrow { display: none; }
.page-heading h1 { font-size: 38px; color: var(--ink); margin-bottom: 7px; }
.page-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.gold-stop { color: var(--gold); }
.simple-page { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 60px; padding-bottom: 90px; }
.simple-page h2 { font-size: 32px; }
.simple-page p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.simple-page .eyebrow { display: none; }
.button { display: inline-flex; align-items: center; gap: 25px; border: 0; text-decoration: none; padding: 12px 16px; font-size: 13px; font-weight: 700; }
.button-gold { background: var(--yellow); color: var(--ink); }
.contact-email { color: var(--navy); font-weight: 700; font-size: 20px; }
.contact-line { margin: 12px 0 0 !important; }
.contact-whatsapp { margin-top: 18px; }
.contact-location { margin-top: 20px; font-size: 13px !important; }

.detail-top { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 18px; color: var(--muted); font-size: 12px; }
.back-link { text-decoration: none; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 34px; padding-bottom: 60px; }
.detail-layout > * { min-width: 0; }
.detail-main-photo { width: 100%; height: 500px; overflow: hidden; background: #e8eef1; }
.detail-main-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-main-photo { position: relative; }
.detail-main-photo > a { display: block; width: 100%; height: 100%; }
.detail-main-photo.is-swipeable { touch-action: pan-y; user-select: none; }
.detail-main-photo.is-swipeable > a { cursor: grab; }
.detail-main-photo.is-dragging > a { cursor: grabbing; }
.detail-gallery-position { position: absolute; bottom: 14px; left: 14px; padding: 6px 9px; color: #fff; background: rgba(13, 32, 50, .86); font-size: 12px; pointer-events: none; }
.detail-thumbnails { display: flex; width: 100%; max-width: 100%; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.detail-thumbnails button { flex: 0 0 78px; width: 78px; height: 64px; padding: 0; border: 2px solid transparent; background: #e8eef1; cursor: pointer; }
.detail-thumbnails button.selected { border-color: var(--gold); }
.detail-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.detail-aside { align-self: start; border: 1px solid var(--line); padding: 27px; }
.detail-category { color: #8a7049; text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 700; }
.detail-aside h1 { font-size: 34px; margin: 10px 0 5px; }
.detail-variant { color: var(--muted); margin-bottom: 12px; }
.detail-description { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.detail-aside .price-block { margin-bottom: 25px; }
.detail-aside .price-gbp strong { font-size: 29px; }
.detail-whatsapp { width: 100%; }
.detail-share-whatsapp { width: 100%; margin-top: 10px; }
.detail-email { display: inline-block; margin-top: 13px; }
.detail-enquire { display: flex; justify-content: space-between; width: 100%; }
.detail-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 12px 0 24px; }
.spec-list { margin: 0; }
.spec-list div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 11px 0; font-size: 13px; }
.spec-list dt { color: var(--muted); font-weight: 400; }
.spec-list dd { margin: 0; font-weight: 700; }
.staff-cost-control { position: relative; display: flex; justify-content: flex-end; margin: 8px -18px -18px 0; }
.staff-cost-panel { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 10; box-sizing: border-box; width: min(300px, calc(100vw - 36px)); padding: 14px; border: 1px solid #cfb675; background: #fff9ec; box-shadow: 0 8px 24px #142b432e; user-select: none; -webkit-user-select: none; }
.staff-cost-panel[hidden] { display: none; }
.staff-cost-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); }
.staff-cost-heading span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #80612b; }
.staff-cost-panel dl { margin: 10px 0 0; }
.staff-cost-panel dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #eadbb9; padding: 7px 0; font-size: 12px; }
.staff-cost-panel dt { color: #4f5d66; font-weight: 400; }
.staff-cost-panel dd { margin: 0; color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.staff-cost-reveal { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #637483; cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; }
.staff-cost-reveal:hover, .staff-cost-reveal[aria-pressed="true"] { color: var(--navy); }
.staff-cost-reveal svg { width: 18px; height: 18px; }
.staff-cost-reveal:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.staff-cost-panel [data-cost-status] { display: block; min-height: 16px; margin-top: 6px; color: #70592d; font-size: 11px; }
.detail-missing { padding: 70px 0; }

.site-footer { background: var(--navy); color: #e4ebef; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 75px; font-size: 12px; }
.footer-inner span { margin-right: auto; color: #c6d1d9; }
.footer-inner a { color: #e4ebef; text-decoration: none; white-space: nowrap; }
.footer-inner a:hover { color: var(--yellow); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff4d5; padding: 12px 24px; }

.admin-section { padding-top: 30px; padding-bottom: 80px; }
.admin-actions { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.outline-link { border: 1px solid #a8b3bb; padding: 10px 14px; text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #eef2f4; color: #566775; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; padding: 14px; }
.admin-table td { border-bottom: 1px solid var(--line); padding: 14px; vertical-align: top; }
.admin-table td small { display: block; color: var(--muted); margin-top: 4px; }
.admin-table a { color: var(--navy); font-weight: 700; }
.intake-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; margin-top: 22px; }
.intake-panel, .intake-help { border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; background: #fff; }
.intake-panel h2, .intake-help h2 { font-size: 21px; margin-bottom: 8px; }
.intake-panel p, .intake-help p, .intake-help li { color: var(--muted); font-size: 13px; line-height: 1.6; }
.intake-panel label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.field-grid > div { min-width: 0; }
.intake-marked-field { padding: 10px 12px 12px; border: 1px solid transparent; }
.intake-marked-field > label:first-child { margin-top: 0; }
.intake-required-field { border-color: #e8c458; background: #fff9e8; }
.intake-required-field .form-control, .intake-required-field .form-select { border-color: #d3ab3e; background: #fff; }
.intake-required-tag { display: inline-block; margin-left: 5px; padding: 2px 5px; background: #eef2f4; color: var(--navy); font-size: 10px; font-weight: 700; vertical-align: middle; }
.intake-required-field .intake-required-tag { background: #f7dc85; }
.intake-identifier-group { margin: 14px 0 4px; }
.intake-identifier-heading strong { font-size: 13px; }
.intake-identifier-heading small { display: block; margin-top: 4px; color: #6b542a; font-size: 11px; line-height: 1.5; }
.intake-choice-group, .intake-category-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.intake-choice { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid #b6c3cb; border-radius: 20px; background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.intake-choice:hover, .intake-choice:focus-visible { border-color: var(--gold); background: #fff9e8; }
.intake-choice:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.intake-choice.is-selected { border-color: #b78313; background: var(--gold); color: var(--navy); }
.intake-category-choices img { width: 21px; height: 21px; object-fit: contain; }
.intake-custom-choice { margin-top: 8px; }
.intake-missing-fields { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--gold); background: #fff9e8; color: var(--navy); font-size: 12px; font-weight: 700; }
.field-full { margin-top: 14px; }
.field-full small, .intake-panel > small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.field-full .admin-mapping-note { margin-top: 9px; padding: 9px 11px; border-left: 3px solid var(--gold); background: #fff7e8; color: #674b2f; font-size: 12px; }
.check-line { display: flex !important; align-items: center; gap: 8px; }
.check-line input { width: 16px; height: 16px; }
.lookup-results { max-height: 280px; overflow: auto; margin-top: 7px; border: 1px solid var(--line); }
.lookup-results button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 12px; }
.lookup-results button:hover { background: #f1f5f7; }
.lookup-results span { color: var(--muted); }
.intake-photo-heading { font-size: 15px; margin: 20px 0 0; }
.intake-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.intake-photo-card { min-width: 0; padding: 7px; border: 1px solid var(--line); background: #fff; }
.intake-photo-card.is-cover { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.intake-photo-card img, .intake-photo-placeholder { display: block; width: 100%; height: 105px; object-fit: cover; }
.intake-photo-card a { display: block; text-decoration: none; }
.intake-photo-card a:hover img, .intake-photo-card a:focus-visible img { outline: 2px solid var(--gold); outline-offset: 2px; }
.intake-photo-placeholder { display: grid; place-items: center; padding: 8px; background: #eef2f4; color: var(--muted); font-size: 11px; text-align: center; }
.intake-photo-name { display: block; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cover-photo-button { width: 100%; min-height: 32px; margin-top: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; cursor: pointer; }
.cover-photo-button:hover, .cover-photo-button:focus-visible { border-color: var(--gold); }
.is-cover .cover-photo-button { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.intake-help { align-self: start; position: sticky; top: 16px; }
.intake-help ol { padding-left: 18px; }
.intake-help li { margin-bottom: 8px; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.admin-message { margin: 15px 0; border-left: 3px solid var(--gold); background: #fff7e8; padding: 11px; }
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.staff-submit { margin-top: 20px; }
.staff-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.user-manager-panel { min-width: 0; }
.user-manager-row { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.user-manager-row:first-of-type { margin-top: 16px; }
.user-manager-identity strong, .user-manager-identity span { display: block; overflow-wrap: anywhere; }
.user-manager-identity span, .user-manager-quota > span { color: var(--muted); font-size: 12px; }
.user-manager-quota { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.user-manager-quota > span { width: 100%; }
.user-manager-quota label { margin: 0; flex: 1 0 100%; }
.user-manager-quota input { width: 110px; max-width: 100%; }
.user-manager-quota button { white-space: nowrap; }
.settings-page form { max-width: 850px; }
.settings-field { max-width: 280px; }
.settings-page small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.integration-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.integration-test { border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.integration-test:disabled { opacity: .55; cursor: not-allowed; }
.integration-save-secret { margin-top: 16px; }
.integration-secret-list { margin-top: 20px; border-top: 1px solid var(--line); }
.integration-secret-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.integration-secret-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.integration-secret-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.integration-secret-actions button { border: 0; background: none; padding: 4px; color: var(--navy); font-size: 12px; text-decoration: underline; cursor: pointer; }
.integration-secret-actions .integration-delete-confirm { color: #a12626; font-weight: 700; }
.search-hint { margin-top: 9px !important; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem #bf985433; }

.campaign-preview-dialog { box-sizing: border-box; width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 70px #0005; }
.campaign-preview-dialog::backdrop { background: #142b43b3; }
.campaign-preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.campaign-preview-heading h2 { color: var(--navy); font-size: 22px; margin: 0 0 3px; }
.campaign-preview-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.campaign-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; }
.campaign-preview-toolbar div { display: flex; gap: 0; }
.campaign-preview-toolbar button { padding: 8px 14px; border: 1px solid #aebdc7; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.campaign-preview-toolbar button + button { border-left: 0; }
.campaign-preview-toolbar button.is-active { background: var(--navy); color: #fff; }
.campaign-preview-toolbar small { color: var(--muted); font-size: 12px; text-align: right; }
.campaign-preview-stage { display: flex; justify-content: center; padding: 16px; background: #edf1f3; }
.campaign-preview-frame { display: block; box-sizing: border-box; width: min(100%, 720px); height: min(66dvh, 700px); border: 1px solid #b8c4cb; background: #fff; box-shadow: 0 8px 24px #0002; transition: width .15s ease; }
.campaign-preview-frame.is-mobile { width: min(100%, 390px); }

@media (min-width: 1420px) { .stock-results .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) {
  .vehicle-carousel { grid-auto-columns: calc(25% - 12px); }
  .carousel-actions.up-to-four button { display: none; }
}
@media (min-width: 1001px) {
  .carousel-actions.up-to-three button { display: none; }
}
@media (max-width: 1000px) {
  .home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vehicle-carousel { grid-auto-columns: calc(50% - 8px); }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { display: none; }
}
@media (max-width: 720px) {
  .campaign-preview-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .campaign-preview-toolbar { align-items: start; flex-direction: column; }
  .campaign-preview-toolbar small { text-align: left; }
  .campaign-preview-stage { padding: 8px; }
  .campaign-preview-frame { height: min(62dvh, 640px); }
  .stock-signup-section { padding: 32px 0 38px; }
  .stock-signup-inner { grid-template-columns: 1fr; gap: 22px; }
  .stock-signup-fields { flex-wrap: wrap; }
  .stock-signup-fields input { flex-basis: 100%; }
  .stock-signup-fields button { width: 100%; }
  .container-wide { width: min(100% - 30px, 1360px); }
  .mobile-home-categories { display: block; }
  .desktop-home-categories { display: none; }
  .home-categories { padding: 18px 0 20px; }
  .home-categories-heading { display: block; margin-bottom: 12px; }
  .home-categories-heading h2 { font-size: 19px; }
  .home-categories-heading p { margin-top: 3px; }
  .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .home-category-grid a { min-height: 96px; padding: 8px 4px; font-size: 11px; }
  .home-category-grid img { height: 48px; }
  .header-inner { min-height: 70px; }
  .site-logo { width: 132px; }
  .site-logo img { height: 60px; }
  .menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 30px; margin-left: auto; cursor: pointer; }
  .menu-button span { display: block; width: 27px; height: 2px; background: #fff; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; background: var(--navy); box-shadow: 0 12px 20px #0003; }
  .site-nav a { padding: 11px 6px; border-bottom: 1px solid #ffffff22; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .carousel-heading { display: block; }
  .carousel-actions { justify-content: space-between; gap: 5px; margin-top: 12px; }
  .carousel-actions .view-all-stock { margin-right: auto; }
  .carousel-actions button { width: 34px; height: 34px; }
  .vehicle-carousel { grid-auto-columns: 82%; }
  .vehicle-carousel .vehicle-photo { height: 240px; }
  .vehicle-grid, .stock-results .vehicle-grid { grid-template-columns: 1fr; }
  .mobile-filter-bar { display: block; position: sticky; top: 70px; z-index: 19; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 3px 10px #142b430d; }
  .mobile-filter-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding-block: 8px; font-size: 13px; font-weight: 700; }
  .mobile-filter-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .open-filters { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--navy); background: #fff; color: var(--navy); padding: 9px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .open-filters:focus-visible, .close-filters:focus-visible, .show-results:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .filter-backdrop { display: block; position: fixed; inset: 70px 0 0; z-index: 20; width: 100%; border: 0; background: #1224369c; cursor: pointer; }
  .stock-layout { display: block; padding-top: 14px; }
  .stock-sidebar { position: fixed; top: 70px; bottom: 0; left: 0; z-index: 25; width: min(88vw, 370px); max-height: none; overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: 8px 0 28px #0003; transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
  .stock-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .stock-sidebar form { padding: 18px 16px 24px; }
  .close-filters { display: grid; place-items: center; width: 29px; height: 29px; border: 0; background: #eaf1f5; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
  .show-results { display: block; width: 100%; min-height: 43px; margin-top: 20px; border: 0; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
  .category-filters { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .category-choice img { width: 70px; height: 44px; }
  .filter-group .category-choice { min-height: 54px; }
  .simple-page, .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail-main-photo { height: 300px; }
  .footer-inner { flex-wrap: wrap; gap: 13px; padding-top: 18px; padding-bottom: 18px; }
  .footer-inner span { flex-basis: 100%; }
  .intake-grid, .staff-grid, .field-grid { grid-template-columns: 1fr; }
  .intake-help { position: static; grid-row: 1; }
  .admin-actions { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .stock-sidebar { transition: none; } }

.admin-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 30px; padding-bottom: 80px; }
.admin-sidebar { position: sticky; top: 18px; border: 1px solid var(--line); background: #fff; }
.admin-sidebar-heading { padding: 20px 17px 17px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.admin-sidebar-heading strong { display: block; margin-top: 4px; color: var(--navy); font-size: 17px; text-transform: none; letter-spacing: -.02em; }
.admin-sidebar nav { display: grid; padding: 8px; }
.admin-sidebar nav a { display: block; padding: 11px 12px; border-left: 3px solid transparent; color: #425464; text-decoration: none; font-size: 13px; font-weight: 600; }
.admin-sidebar nav a:hover { background: #f4f7f8; }
.admin-sidebar nav a.active { background: #eaf1f5; color: var(--navy); border-left-color: var(--gold); }
.admin-sidebar nav a:focus-visible, .admin-view-site:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-view-site { display: block; margin: 8px; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-main .container-wide { width: 100%; }
.admin-main .page-heading { padding: 3px 0 23px; margin-bottom: 24px; background: transparent; border-bottom: 1px solid var(--line); }
.admin-main .page-heading h1 { font-size: 32px; }
.admin-main .admin-section { padding-top: 0; padding-bottom: 0; }
.admin-main .admin-actions { flex-wrap: wrap; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-summary-grid > a, .admin-summary-grid > div { min-width: 0; border: 1px solid var(--line); background: #fff; padding: 17px; color: var(--ink); text-decoration: none; }
.admin-summary-grid > a:hover { border-color: var(--gold); }
.admin-summary-grid span, .admin-summary-grid small { display: block; color: var(--muted); font-size: 11px; }
.admin-summary-grid strong { display: block; margin: 7px 0; color: var(--navy); font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-home-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.admin-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.admin-toolbar label { display: grid; gap: 5px; color: #5d6e7a; font-size: 11px; font-weight: 700; }
.admin-toolbar input, .admin-toolbar select { min-height: 39px; border: 1px solid #cbd3d8; background: #fff; padding: 8px 10px; color: var(--ink); font-size: 12px; }
.admin-toolbar input { width: min(300px, 76vw); }
.admin-toolbar > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.admin-toolbar label:has(input[type="search"]) { flex: 2 1 220px; }
.admin-toolbar label:has(select) { flex: 1 1 145px; }
.admin-toolbar label:has(input[type="number"]) { flex: 0 1 95px; }
.admin-toolbar input[type="search"], .admin-toolbar input[type="number"], .admin-toolbar select { width: 100%; }
.admin-mobile-stock-search { display: none; }
.admin-filter-drawer { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; overflow: hidden; border: 0; background: #fff; box-shadow: -16px 0 40px #0004; }
.admin-filter-drawer[open] { display: flex; flex-direction: column; }
.admin-filter-drawer::backdrop { background: #10243899; }
.admin-filter-drawer-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.admin-filter-drawer-heading h2 { margin: 0 0 3px; color: var(--navy); font-size: 23px; }
.admin-filter-drawer-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-filter-drawer-fields { display: grid; align-content: start; gap: 16px; flex: 1; min-height: 0; padding: 20px; overflow-y: auto; }
.admin-filter-drawer-fields label { display: grid; align-content: start; gap: 6px; min-width: 0; color: #526473; font-size: 12px; font-weight: 700; }
.admin-filter-category-group > span { display: block; margin-bottom: 7px; color: #526473; font-size: 12px; font-weight: 700; }
.admin-filter-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-filter-category-grid button { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 58px; padding: 8px; border: 1px solid #cbd3d8; background: #fff; color: var(--navy); text-align: left; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-filter-category-grid button.is-selected { border-color: var(--gold); background: #fff8e8; box-shadow: inset 0 0 0 1px var(--gold); }
.admin-filter-category-grid button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.admin-filter-category-grid img { display: block; flex: none; width: 39px; height: 34px; object-fit: contain; }
.admin-filter-category-grid button > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.admin-filter-drawer-fields input, .admin-filter-drawer-fields select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd3d8; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.admin-filter-drawer-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-filter-drawer-actions { display: flex; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fff; }
.admin-filter-drawer-actions button { flex: 1; justify-content: center; min-height: 44px; padding: 10px; border: 1px solid #a8b3bb; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.admin-filter-drawer-actions .button-gold { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.admin-empty { border: 1px solid var(--line); padding: 25px; background: #fff; color: var(--muted); }
.admin-empty h2 { color: var(--ink); font-size: 19px; }
.vehicle-admin-table { min-width: 940px; table-layout: fixed; }
.admin-stock-cards { display: none; }
.admin-stock-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fff; box-shadow: 0 3px 12px #142b430d; }
.admin-stock-card-top { display: flex; align-items: start; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-stock-card-top .admin-vehicle-thumb { width: 98px; height: 76px; }
.admin-stock-card-summary { display: grid; gap: 4px; min-width: 0; }
.admin-stock-card-summary strong { color: var(--navy); font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-stock-card-summary small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-stock-card-summary b { color: var(--ink); font-size: 15px; }
.admin-stock-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.admin-stock-card-badges span { padding: 3px 6px; background: #f0f3f5; color: #61717c; font-size: 10px; font-weight: 700; }
.admin-stock-card-badges span.is-live { background: #e5f4eb; color: #17643b; }
.admin-stock-card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; }
.admin-stock-card-field { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; }
.admin-stock-card-field > span { color: #5d6e7a; font-size: 11px; font-weight: 700; }
.admin-stock-card-field .admin-row-select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; }
.admin-stock-card-field small { font-size: 11px; }
.admin-stock-card-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-stock-card-switches > div { display: grid; align-content: start; justify-items: start; gap: 3px; }
.admin-stock-card-switches > div > span { color: #5d6e7a; font-size: 11px; font-weight: 700; }
.admin-stock-card-actions { display: flex; align-items: center; gap: 9px; padding-top: 14px; }
.admin-stock-card-actions button { min-height: 39px; padding: 8px 13px; border: 1px solid #b5c2ca; background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-stock-card-actions button:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.admin-stock-card-actions button:disabled { opacity: .55; cursor: wait; }
.admin-stock-card-actions small { color: var(--muted); font-size: 12px; }
.vehicle-admin-table th, .vehicle-admin-table td { padding: 12px 10px; }
.vehicle-admin-table td { vertical-align: middle; }
.vehicle-admin-table th:nth-child(1) { width: 25%; }
.vehicle-admin-table th:nth-child(2) { width: 23%; }
.vehicle-admin-table th:nth-child(3) { width: 11%; }
.vehicle-admin-table th:nth-child(4) { width: 8%; }
.vehicle-admin-table th:nth-child(5) { width: 10%; }
.vehicle-admin-table th:nth-child(6) { width: 15%; }
.vehicle-admin-table th:nth-child(7) { width: 8%; }
.admin-vehicle-cell { display: flex; align-items: center; gap: 13px; min-width: 205px; }
.admin-vehicle-cell > div { min-width: 0; overflow-wrap: anywhere; }
.admin-vehicle-cell strong { display: block; color: var(--ink); font-size: 14px; }
.admin-vehicle-thumb { flex: none; display: grid; place-items: center; width: 104px; height: 78px; overflow: hidden; padding: 0; border: 1px solid var(--line); background: #eef2f4; color: var(--muted) !important; text-align: center; font-size: 10px; text-decoration: none; cursor: pointer; }
.admin-vehicle-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-category-stack { display: grid; gap: 7px; min-width: 0; }
.admin-category-stack .admin-row-select { display: block; box-sizing: border-box; width: 100%; min-width: 0; }
.admin-class-select { white-space: normal; }
.admin-mapping-unavailable { color: #8b4c23; font-weight: 700; }
.admin-row-select { width: 135px; min-height: 36px; border: 1px solid #cbd3d8; background: #fff; color: var(--ink); padding: 6px; font-size: 12px; }
.admin-drive-select { width: 100px; }
.vehicle-admin-table .admin-drive-select { box-sizing: border-box; width: 100%; min-width: 0; }
.admin-row-select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.admin-row-select:disabled { opacity: .55; }
.admin-status { display: inline-block; padding: 5px 8px; background: #f1f3f4; color: #61717c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-status.is-live { background: #e5f4eb; color: #17643b; }
.admin-row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.admin-row-actions button { border: 0; padding: 0; background: none; color: var(--navy); text-decoration: underline; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-row-actions button:disabled { opacity: .5; cursor: wait; }
.admin-sale-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: #142b43b3; }
.admin-sale-dialog { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; margin: 0; box-shadow: 0 24px 70px #0005; }
.campaign-stock-picker { max-height: 280px; overflow: auto; border: 1px solid var(--line); padding: 12px; }
.campaign-one-off > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--navy); font-size: 21px; font-weight: 700; list-style: none; }
.campaign-one-off > summary::-webkit-details-marker { display: none; }
.campaign-one-off > summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--line); font-size: 20px; }
.campaign-one-off[open] > summary::before { content: "−"; }
.campaign-one-off > summary span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.campaign-one-off > p { margin-top: 16px; }
.campaign-stock-option { display: flex !important; align-items: center; gap: 12px; padding: 8px 0; margin: 0 !important; cursor: pointer; border-bottom: 1px solid var(--line); }
.campaign-stock-option:last-child { border-bottom: 0; }
.campaign-stock-option input { flex: none; width: 18px; height: 18px; }
.campaign-stock-option img, .campaign-stock-placeholder { width: 88px; height: 64px; flex: none; object-fit: cover; background: #e8eef2; }
.campaign-stock-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.campaign-stock-option span:last-child { display: grid; gap: 3px; min-width: 0; }
.campaign-stock-option strong { font-size: 13px; }
.campaign-stock-option small { color: var(--muted); font-size: 11px; }
.admin-vehicle-dialog { box-sizing: border-box; width: min(1060px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 70px #0005; }
.admin-vehicle-dialog::backdrop { background: #142b43b3; }
.admin-vehicle-dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.admin-vehicle-dialog-heading h2 { margin: 0; color: var(--navy); font-size: 23px; }
.admin-vehicle-dialog-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: #eaf1f5; color: var(--navy); font-size: 27px; line-height: 1; cursor: pointer; }
.admin-vehicle-editor-dialog { padding: 22px; }
.admin-vehicle-editor-dialog .intake-grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.admin-vehicle-editor-dialog .intake-help { display: none; }
.admin-editor-cancel { border: 0; background: none; color: var(--navy); font: inherit; cursor: pointer; }
.admin-vehicle-dialog button:focus-visible, .admin-vehicle-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #5d6e7a; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; padding: 7px 2px; }
.admin-switch-track { display: flex; align-items: center; width: 36px; height: 20px; padding: 2px; border-radius: 12px; background: #aab5bc; transition: background .15s ease; }
.admin-switch-track > span { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; transition: transform .15s ease; }
.admin-switch.is-on { color: #17643b; }
.admin-switch.is-on .admin-switch-track { background: #16824c; }
.admin-switch.is-on .admin-switch-track > span { transform: translateX(16px); }
.admin-switch:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.admin-switch:disabled { opacity: .55; cursor: wait; }
.analytics-panel { border: 1px solid var(--line); padding: 20px; background: #fff; min-width: 0; }
.analytics-panel h2 { margin-bottom: 17px; font-size: 18px; }
.analytics-panel p, .analytics-panel small { color: var(--muted); font-size: 12px; }
.analytics-panel > small { display: block; margin-top: 13px; }
.analytics-summary { margin-bottom: 16px; }
.analytics-chart { display: flex; align-items: stretch; gap: 6px; height: 155px; }
.analytics-chart-day { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: end; min-width: 0; gap: 7px; }
.analytics-bar { display: block; width: min(100%, 26px); min-height: 3px; background: #356383; }
.analytics-chart-day small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.analytics-table th { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; }
.analytics-table td { padding: 8px 0; border-bottom: 1px solid #edf0f2; }
.analytics-table td:last-child, .analytics-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.analytics-table a { color: var(--navy); }
.analytics-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.privacy-page { max-width: 780px; padding-top: 35px; padding-bottom: 70px; }
.privacy-page h2 { margin-top: 28px; font-size: 22px; }
.privacy-page p { color: #566775; font-size: 14px; line-height: 1.7; }

.sell-landing, .sell-account-page, .sell-enquiry-page { padding-top: 30px; padding-bottom: 70px; }
.sell-landing { max-width: 880px; }
.sell-landing > p { max-width: 690px; color: #526473; line-height: 1.65; }
.sell-actions, .sell-photo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.sell-secondary { border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.sell-small, .sell-panel small { color: var(--muted); font-size: 12px; }
.sell-account-page { max-width: 780px; }
.sell-account-page form, .sell-panel, .sell-success { border: 1px solid var(--line); background: #fff; padding: 24px; }
.sell-account-page form > button { margin-top: 20px; cursor: pointer; }
.sell-account-page > p { margin-top: 18px; font-size: 13px; }
.sell-account-page label, .sell-panel label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; }
.sell-account-page small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.sell-account-page .validation-summary-errors, .sell-account-page .validation-message { color: #a12626; font-size: 13px; }
.sell-enquiry-page { max-width: 980px; }
.sell-panel { margin-bottom: 18px; }
.sell-panel h2, .sell-success h2 { margin-bottom: 7px; font-size: 22px; }
.sell-panel > p, .sell-success p { color: #526473; font-size: 13px; line-height: 1.6; }
.sell-panel .field-grid { gap: 8px 18px; }
.sell-panel .form-control, .sell-panel .form-select, .sell-account-page .form-control { width: 100%; }
.sell-panel .required { color: #9a522a; font-size: 11px; }
.sell-panel .optional, .sell-account-page .optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.sell-lookup-button, .sell-add-button { margin-top: 16px; cursor: pointer; }
.sell-lookup-message { margin-top: 12px; }
.sell-vehicle-match { display: grid; gap: 5px; margin: 16px 0; padding: 16px; border-left: 4px solid var(--gold); background: #f3f7f8; font-size: 13px; }
.sell-vehicle-match strong { font-size: 17px; }
.sell-vehicle-match small { margin-top: 5px; }
.sell-manual-fields { margin-top: 14px; }
.sell-intake-photos { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sell-intake-photos h3 { margin: 0 0 5px; font-size: 16px; }
.sell-intake-photos .sell-photo-actions { margin: 12px 0; }
.sell-panel .sell-check { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.sell-check input { width: 16px; height: 16px; accent-color: var(--navy); }
.sell-vehicle-card { padding: 20px 0; border-top: 1px solid var(--line); }
.sell-vehicle-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.sell-vehicle-card-heading span { color: #8b6f3c; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sell-vehicle-card-heading h3 { margin: 4px 0; font-size: 19px; }
.sell-vehicle-card-heading p { margin: 0; }
.sell-remove { border: 0; background: none; color: #a12626; text-decoration: underline; cursor: pointer; white-space: nowrap; font-size: 12px; }
.sell-vehicle-details { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 13px 0; color: #526473; font-size: 12px; }
.sell-photos h4 { margin: 20px 0 10px; font-size: 14px; }
.sell-photo-grid, .seller-admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
.sell-photo { position: relative; }
.sell-photo img, .seller-admin-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eaf1f5; }
.sell-photo button { width: 100%; border: 1px solid var(--line); background: #fff; padding: 5px; color: #a12626; font-size: 11px; cursor: pointer; }
.sell-photo-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin: 10px 0; }
.sell-photo-actions > div { min-width: 0; }
.sell-photo-actions label { margin: 0 0 6px; }
.sell-photo-actions input[type="file"]:not(.visually-hidden) { display: block; width: 100%; font-size: 12px; }
.sell-camera-action { display: block; }
.sell-camera-action .button { display: inline-flex; cursor: pointer; }
.sell-camera-action:focus-within .button { outline: 3px solid var(--gold); outline-offset: 2px; }
.sell-photo-status { margin: 10px 0 0; padding: 8px 10px; background: #f3f7f8; color: var(--navy); font-size: 12px; overflow-wrap: anywhere; }
.sell-photo-manage { margin-top: 10px; }
.sell-photo-manage summary { color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 700; }
.sell-submit { min-width: 180px; justify-content: center; cursor: pointer; }
.sell-submit:disabled, .sell-panel .button:disabled { opacity: .55; cursor: wait; }
.sell-success { border-left: 4px solid #248352; }
.seller-admin-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.seller-admin-row:hover { color: var(--navy); background: #f5f8f9; }
.seller-admin-row span:last-child { text-align: right; }
.seller-admin-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.seller-admin-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 18px 0 0; }
.seller-admin-detail dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.seller-admin-detail dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.seller-admin-photos { margin-top: 20px; }

@media (max-width: 1200px) { .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .vehicle-admin-table-wrap { display: none; }
  .admin-stock-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
  .admin-layout { box-sizing: border-box; display: block; width: 100%; padding-top: 0; }
  .admin-sidebar { position: sticky; top: 78px; z-index: 29; margin: 0 0 12px; border-top: 0; border-left: 0; border-right: 0; box-shadow: 0 3px 8px #142b4314; }
  .admin-sidebar-heading { display: none; }
  .admin-sidebar nav { display: flex; gap: 2px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
  .admin-sidebar nav::-webkit-scrollbar { display: none; }
  .admin-sidebar nav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; padding: 11px 10px; }
  .admin-sidebar nav a.active { border-bottom-color: var(--gold); }
  .admin-view-site { display: none; }
  .admin-main { box-sizing: border-box; padding: 0 12px; }
  .admin-stock-heading { display: none; }
  .admin-stock-actions { flex-direction: row; align-items: center; gap: 10px; margin: 0 0 12px; }
  .admin-stock-actions .button { padding: 11px 13px; gap: 0; white-space: nowrap; }
  .admin-stock-actions .outline-link { border: 0; padding: 7px 0; font-size: 11px; }
  .admin-desktop-stock-filters { display: none; }
  .admin-mobile-stock-search { display: block; margin: 0 0 16px; }
  .admin-mobile-stock-search > label { display: block; margin-bottom: 6px; color: #526473; font-size: 12px; font-weight: 700; }
  .admin-mobile-stock-search > div { display: flex; gap: 8px; }
  .admin-mobile-stock-search input { box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #cbd3d8; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
  .admin-filter-open { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
  .admin-mobile-stock-search small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
}
@media (max-width: 720px) {
  .admin-sidebar { top: 70px; }
}
@media (max-width: 620px) {
  .admin-stock-cards { grid-template-columns: minmax(0, 1fr); }
  .admin-stock-card-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-stock-card { padding: 14px; }
  .admin-vehicle-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .admin-vehicle-dialog-heading { padding: 12px 14px; }
  .admin-vehicle-editor-dialog { padding: 14px; }
  .admin-summary-grid, .analytics-grid { grid-template-columns: 1fr; }
  .analytics-chart-day small { font-size: 7px; writing-mode: vertical-rl; }
  .admin-toolbar > span { margin-left: 0; }
  .sell-account-page form, .sell-panel, .sell-success { padding: 17px; }
  .sell-vehicle-card-heading { flex-direction: column; gap: 5px; }
  .seller-admin-detail dl { grid-template-columns: 1fr; }
  .seller-admin-row { display: block; }
  .seller-admin-row span:last-child { display: block; margin-top: 7px; text-align: left; }
}
