:root {
  --bg: #f6f8ee;
  --panel: #ffffff;
  --muted: #64706d;
  --text: #14231d;
  --brand: #ffcf2e;
  --brand-600: #f4bd12;
  --brand-700: #dba708;
  --green: #064f2a;
  --green-900: #073f26;
  --ring: rgba(255, 207, 46, 0.35);
  --card: #ffffff;
  --surface: #fffdf5;
  --surface-2: #eef7ec;
  --line: #dbe4dc;
  --line-strong: #c8d4ca;
  --shadow: 0 22px 55px rgba(13, 52, 32, 0.11);
  --shadow-sm: 0 12px 30px rgba(13, 52, 32, 0.08);
  --danger-bg: #fff1f1;
  --danger-border: #f5b9b9;
  --danger-text: #9f1d1d;
  --success-bg: #eefaf1;
  --success-border: #b9e6c3;
  --success-text: #146c2e;
}

/* Halloween takeover — scoped to public pages only. */
body.halloween {
  --bg: #0d0d0f;
  --panel: #171719;
  --muted: #b9b4a8;
  --text: #f3eee0;
  --brand: #ff861f;
  --brand-600: #e7650b;
  --brand-700: #be4507;
  --green: #8ccf43;
  --green-900: #d7f0b6;
  --ring: rgba(255, 134, 31, 0.28);
  --card: #171719;
  --surface: #111113;
  --surface-2: #1a2116;
  --line: #3a3028;
  --line-strong: #5b4432;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 13px 34px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  background:
    radial-gradient(circle at 8% 3%, rgba(123, 166, 58, 0.13), transparent 29rem),
    radial-gradient(circle at 92% 34%, rgba(161, 31, 22, 0.1), transparent 34rem),
    linear-gradient(180deg, #09090b 0%, #121114 50%, #09090b 100%);
  color: var(--text);
}

body.halloween a { color: #b8df70; }
body.halloween a:hover { color: #ffad58; }

body.halloween .topbar {
  background: rgba(8, 8, 10, 0.93);
  border-bottom: 1px solid rgba(255, 134, 31, 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

body.halloween .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 12px;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 0, #720d12 0 5px, transparent 5.7px),
    radial-gradient(circle at 22% 0, #720d12 0 9px, transparent 9.7px),
    radial-gradient(circle at 53% 0, #720d12 0 4px, transparent 4.7px),
    radial-gradient(circle at 78% 0, #720d12 0 7px, transparent 7.7px),
    radial-gradient(circle at 93% 0, #720d12 0 10px, transparent 10.7px);
  opacity: 0.9;
}

body.halloween .brand,
body.halloween .nav a { color: #f4edde; }
body.halloween .nav a:hover { color: var(--brand); }
body.halloween .logo {
  background: #f7f0df;
  box-shadow: 0 0 0 2px #171719, 0 0 0 3px rgba(255, 134, 31, 0.48), 0 9px 26px rgba(0, 0, 0, 0.45);
}

body.halloween .nav .cta,
body.halloween .btn-primary {
  color: #160b04;
  border-color: rgba(255, 177, 81, 0.65);
  background: linear-gradient(135deg, #ff9d32, #df5d08);
  box-shadow: 0 12px 30px rgba(208, 73, 5, 0.26), inset 0 1px rgba(255, 255, 255, 0.25);
}

body.halloween .btn-outline {
  color: #f4edde;
  border-color: rgba(176, 216, 104, 0.38);
  background: rgba(13, 14, 12, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.halloween .btn-outline:hover {
  color: #fff6e6;
  border-color: var(--brand);
  background: rgba(255, 134, 31, 0.08);
}

body.halloween .hero {
  min-height: 650px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 77% 22%, #efb85e 0 1.5%, #bb8436 1.7% 5.7%, rgba(120, 77, 29, 0.2) 5.9%, transparent 12%),
    radial-gradient(ellipse at 78% 62%, rgba(93, 124, 47, 0.2), transparent 32%),
    linear-gradient(118deg, #111a12 0%, #0c110e 45%, #050506 45.2%, #000 100%);
}

body.halloween .hero::before {
  content: "";
  position: absolute;
  inset: auto -3% 0;
  z-index: 1;
  height: 92px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 7% 100%, #030404 0 55%, transparent 56%) 0 0 / 170px 92px repeat-x,
    linear-gradient(transparent 42%, #030404 43%);
  opacity: 0.96;
}

body.halloween .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 15px;
  background:
    radial-gradient(circle at 11% 0, #7c0f13 0 7px, transparent 7.8px),
    radial-gradient(circle at 34% 0, #7c0f13 0 12px, transparent 12.8px),
    radial-gradient(circle at 67% 0, #7c0f13 0 6px, transparent 6.8px),
    radial-gradient(circle at 88% 0, #7c0f13 0 10px, transparent 10.8px),
    linear-gradient(#7c0f13 0 4px, transparent 4px);
}

body.halloween .hero-overlay {
  opacity: 0.72;
  background:
    linear-gradient(90deg, rgba(89, 127, 45, 0.11), transparent 38%),
    repeating-linear-gradient(115deg, rgba(244, 237, 222, 0.025) 0 1px, transparent 1px 24px);
}

body.halloween .hero-content {
  z-index: 3;
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 43vw, 570px);
  padding-top: 56px;
  padding-bottom: 60px;
}

body.halloween .hero-copy { z-index: 4; }
body.halloween .hero-logo { margin-bottom: 26px; }
body.halloween .eyebrow,
body.halloween .service-kicker,
body.halloween .contact-label { color: #ff9b39; }

body.halloween .hero h1 {
  max-width: 590px;
  color: #f6f0df;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.035em;
  text-shadow: 0 3px 0 #4b0b0f, 0 12px 40px rgba(0, 0, 0, 0.75);
}

body.halloween .hero p:not(.eyebrow) {
  max-width: 570px;
  color: #d5d0c5;
}

body.halloween .hero-panel {
  position: relative;
  align-self: end;
  width: clamp(430px, 43vw, 570px);
  min-height: 610px;
  aspect-ratio: 4 / 5;
}

body.halloween .hero-panel-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-position: 50% 44%;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.66));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 91%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 0 91%, transparent 99%);
}

.hero-fudge-label {
  position: absolute;
  top: 7%;
  right: -2%;
  z-index: 4;
  padding: 8px 13px 7px;
  border: 1px solid rgba(255, 171, 83, 0.52);
  border-radius: 4px;
  background: #e46a0e;
  color: #1a0d07;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(4deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
}

.halloween-web {
  position: absolute;
  z-index: 2;
  width: clamp(150px, 18vw, 270px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.28;
}

.halloween-web svg { width: 100%; height: 100%; }
.halloween-web path { fill: none; stroke: #d8d2c5; stroke-width: 1.7; }
.halloween-web-left { top: 0; left: 0; }
.halloween-web-right { right: 0; bottom: 0; transform: rotate(180deg); opacity: 0.16; }

.hanging-spider {
  position: absolute;
  top: 0;
  z-index: 5;
  width: 2px;
  height: 118px;
  border-left: 1px solid rgba(224, 218, 207, 0.48);
  pointer-events: none;
  transform-origin: 50% 0;
  animation: spider-sway 5s ease-in-out infinite;
}
.spider-one { left: 11%; }
.spider-two { right: 8%; height: 168px; animation-delay: -2.4s; }
.hanging-spider i {
  position: absolute;
  bottom: -20px;
  left: -9px;
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 46% 46%;
  background: #050506;
  box-shadow: 0 -7px 0 -3px #050506, 0 0 0 1px rgba(255, 134, 31, 0.16);
}
.hanging-spider i::before,
.hanging-spider i::after {
  content: "";
  position: absolute;
  inset: -5px -12px;
  border-top: 2px solid #050506;
  border-bottom: 2px solid #050506;
  border-radius: 45%;
  transform: rotate(28deg);
}
.hanging-spider i::after { transform: rotate(-28deg); }

@keyframes spider-sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}

.bat-swarm { position: absolute; inset: 14% 0 auto; z-index: 2; pointer-events: none; }
.bat {
  position: absolute;
  width: 10px;
  height: 7px;
  border-radius: 70% 70% 50% 50%;
  background: #020203;
  color: transparent;
  filter: drop-shadow(0 2px 1px rgba(255, 134, 31, 0.12));
}
.bat::before,
.bat::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 24px;
  height: 15px;
  border-radius: 90% 10% 80% 20%;
  background: #020203;
}
.bat::before { right: 6px; transform: rotate(18deg); }
.bat::after { left: 6px; transform: scaleX(-1) rotate(18deg); }
.bat-one { left: 50%; transform: scale(0.65) rotate(-9deg); }
.bat-two { left: 58%; top: 48px; transform: scale(0.42) rotate(12deg); }
.bat-three { left: 45%; top: 76px; transform: scale(0.32) rotate(-3deg); }

.pumpkin-patch {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 3px;
  filter: drop-shadow(0 13px 9px rgba(0, 0, 0, 0.55));
}
.pumpkin {
  position: relative;
  display: block;
  width: 68px;
  height: 51px;
  border: 2px solid #923505;
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 35% 44%, #19100b 0 4px, transparent 4.5px),
    radial-gradient(circle at 65% 44%, #19100b 0 4px, transparent 4.5px),
    linear-gradient(150deg, transparent 49%, #19100b 50% 56%, transparent 57%) 27px 29px / 14px 10px no-repeat,
    linear-gradient(90deg, #c64b05, #ff8d13 25%, #c64b05 50%, #ff8d13 75%, #b63d03);
  box-shadow: inset 0 0 18px rgba(75, 17, 0, 0.48);
}
.pumpkin i {
  position: absolute;
  top: -13px;
  left: 29px;
  width: 9px;
  height: 16px;
  border-radius: 3px 3px 0 0;
  background: #40551d;
  transform: rotate(8deg);
}
.pumpkin-small { width: 44px; height: 36px; transform: rotate(-6deg); opacity: 0.9; }
.pumpkin-small i { top: -10px; left: 17px; }
.pumpkin-medium { width: 55px; height: 43px; transform: rotate(5deg); }

body.halloween .contact-stripe {
  background: linear-gradient(90deg, #181315, #26100f 50%, #171712);
  border-top: 1px solid rgba(126, 16, 19, 0.85);
  border-bottom: 1px solid rgba(255, 134, 31, 0.18);
}

body.halloween .contact-grid p,
body.halloween .contact-grid a { color: #eee7da; }

body.halloween .section-head h2,
body.halloween .stock-page-head h1,
body.halloween .service-intro h1,
body.halloween .checkout-summary h1,
body.halloween .specs h1 {
  color: #f0e9db;
  font-family: Georgia, 'Times New Roman', serif;
}

body.halloween .section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }

body.halloween .section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff861f, #751015);
}

body.halloween .section-head p,
body.halloween .stock-page-head p:not(.eyebrow),
body.halloween .service-intro > p:not(.eyebrow),
body.halloween .delivery-note,
body.halloween .delivery-result,
body.halloween .booking-dialog p { color: var(--muted); }

body.halloween .card,
body.halloween .review,
body.halloween .news,
body.halloween .service-card,
body.halloween .enquiry-panel,
body.halloween .gallery,
body.halloween .dealer-card,
body.halloween .empty,
body.halloween .stock-filters,
body.halloween .vehicle-history,
body.halloween .booking-dialog,
body.halloween .delivery-map-panel,
body.halloween .mailing-signup,
body.halloween .faq-item {
  background: linear-gradient(145deg, #1b1a1c, #111113);
  border-color: #3c3129;
  box-shadow: var(--shadow-sm);
}

body.halloween .card:hover,
body.halloween .service-card:hover {
  border-color: rgba(255, 134, 31, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(143, 23, 18, 0.08);
}

body.halloween .card-title,
body.halloween .service-card h3,
body.halloween .faq-item summary,
body.halloween .mailing-signup-copy h2 { color: #f3ecdf; }
body.halloween .card-price { color: #ff9b39; }
body.halloween .badge,
body.halloween .stock-category {
  color: #d8edb7;
  border-color: rgba(145, 188, 76, 0.26);
  background: rgba(74, 102, 37, 0.18);
}

body.halloween input,
body.halloween select,
body.halloween textarea,
body.halloween .mailing-signup-form input {
  color: #f4edde;
  border-color: #4a3a2e;
  background: #0d0d0f;
}

body.halloween .footer {
  color: #d6cfc2;
  border-top-color: rgba(255, 134, 31, 0.2);
  background:
    radial-gradient(circle at 50% -40%, rgba(122, 17, 20, 0.18), transparent 40%),
    #070708;
}
body.halloween .footer a { color: #b9d97a; }

body.halloween .cookie-consent-card {
  color: #eee7da;
  border-color: #4a3a2e;
  background: rgba(18, 17, 19, 0.98);
}

@media (max-width: 980px) {
  body.halloween .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 42vw);
  }
  body.halloween .hero-panel {
    width: min(44vw, 460px);
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  body.halloween .hero { min-height: auto; }
  body.halloween .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 66px;
    padding-bottom: 34px;
  }
  body.halloween .hero-copy { text-align: center; }
  body.halloween .hero-logo { margin-right: auto; margin-left: auto; }
  body.halloween .hero h1,
  body.halloween .hero p:not(.eyebrow) { margin-right: auto; margin-left: auto; }
  body.halloween .hero-actions { justify-content: center; }
  body.halloween .hero-panel {
    width: min(92vw, 460px);
    min-height: 450px;
    margin-top: -12px;
  }
  .hero-fudge-label { top: 11%; right: 2%; }
  .spider-one { left: 5%; }
  .spider-two { right: 7%; height: 118px; }
  .bat-swarm { top: 44%; }
  .bat-one { left: 12%; }
  .bat-two { left: 20%; }
  .bat-three { left: 8%; }
}

@media (max-width: 640px) {
  body.halloween .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  body.halloween .hero-panel {
    width: min(100%, 390px);
    min-height: 420px;
    aspect-ratio: 4 / 5;
  }
  body.halloween .hero-panel-logo { max-height: 470px; }
  .hero-fudge-label { top: 5%; right: 0; font-size: 11px; }
  .pumpkin-patch { right: 0; bottom: 7%; transform: scale(0.82); transform-origin: bottom right; }
  .halloween-web-right { display: none; }
  .halloween-web-left { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .hanging-spider { animation: none; }
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 10000;
  width: min(560px, calc(100vw - 36px));
}

.cookie-consent-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(13, 52, 32, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(13, 52, 32, 0.2);
}

.cookie-consent-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.cookie-consent p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--green);
  font-weight: 700;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent-actions .btn {
  min-height: 42px;
}

.btn-plain {
  border: 0;
  background: transparent;
  color: var(--green);
  box-shadow: none;
}

.btn-plain:hover {
  background: rgba(13, 52, 32, 0.08);
}

@media (max-width: 640px) {
  .cookie-consent {
    inset: auto 12px 12px;
    width: auto;
  }

  .cookie-consent-card {
    padding: 16px;
  }

  .cookie-consent-actions {
    display: grid;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 207, 46, 0.22), transparent 30rem),
    linear-gradient(180deg, #fffdf5 0%, var(--bg) 34%, #ffffff 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 20px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,17,21,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e2330;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-text { font-weight: 700; letter-spacing: 0.3px; }
.logo { width: 40px; height: 40px; object-fit: contain; border-radius: 7px; background: #fff; }
.logo.small { width: 32px; height: 32px; }

.nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}
.nav a { color: var(--text); opacity: 0.9; }
.nav .cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #101215;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #ff9e5b33;
}
.nav .cta:hover { filter: brightness(1.05); text-decoration: none; }

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid #1f2633;
  background:
    linear-gradient(118deg, rgba(6, 79, 42, 0.95) 0%, rgba(6, 45, 29, 0.96) 48%, rgba(12, 17, 16, 0.98) 48.2%, rgba(12, 17, 16, 1) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 207, 46, 0.16), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}
.hero-content {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 42vw, 560px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero-copy {
  max-width: 620px;
}
.hero-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}
.hero h1 {
  max-width: 620px;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.04;
  margin: 0 0 16px;
}
.hero p { color: #d7dedb; margin: 0 0 26px; font-size: 18px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-panel {
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(420px, 42vw, 560px);
  min-height: clamp(430px, 42vw, 560px);
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.hero-panel-logo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  clip-path: inset(2px 0);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #ffffff1a;
  transition: transform .05s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #0b0d10;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--ring);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: #2a3242;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.45);
}

.section { padding: 56px 0; }
.container.section {
  padding-right: 20px;
  padding-left: 20px;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.section-head h2 { margin: 0 0 6px; font-size: 28px; }
.section-head p { margin: 0 0 20px; color: var(--muted); }
.browse-stock-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  white-space: nowrap;
}
.browse-stock-link[hidden] { display: none; }

.mailing-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  margin: 10px 0 28px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ec 100%);
  box-shadow: var(--shadow-sm);
}
.mailing-signup-copy h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
}
.mailing-signup-copy p:not(.eyebrow),
.mailing-signup-form p {
  margin: 0;
  color: var(--muted);
}
.mailing-signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.mailing-signup-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
.mailing-signup-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.mailing-signup-form input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand-600);
}
.mailing-signup-form p {
  grid-column: 1 / -1;
  font-size: 13px;
}
.mailing-signup-turnstile {
  grid-column: 1 / -1;
  min-height: 65px;
}
.mailing-signup-form .btn {
  justify-self: start;
  min-width: 140px;
}

.contact-stripe {
  background: linear-gradient(90deg, #101916, #141925);
  border-top: 1px solid #1f2633;
  border-bottom: 1px solid #1f2633;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px clamp(12px, 4vw, 20px);
}
.contact-label { margin: 0 0 6px; color: var(--brand); font-weight: 700; }
.contact-grid p { margin: 0; color: var(--text); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stock-carousel {
  position: relative;
}
.stock-carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stock-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.stock-preview-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 290px), calc((100% - 36px) / 3));
  grid-template-columns: none;
}
.stock-preview-grid .card {
  min-width: 290px;
  min-height: 430px;
  scroll-snap-align: start;
}
.stock-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 207, 46, 0.36);
  border-radius: 50%;
  background: rgba(12, 17, 16, 0.92);
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.stock-carousel-btn:hover {
  filter: brightness(1.12);
}
.stock-carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.stock-carousel-btn[hidden] {
  display: none;
}
.stock-carousel-prev {
  left: -18px;
}
.stock-carousel-next {
  right: -18px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid #1d2330;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -16px rgba(255,122,26,0.45);
}
.card-showroom-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  color: inherit;
  text-indent: -9999px;
}
.card-showroom-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -4px;
}
.vehicle-card {
  cursor: pointer;
}
.vehicle-card .card-media,
.vehicle-card .card-body {
  position: relative;
}
.vehicle-card .card-actions,
.vehicle-card .card-actions a,
.vehicle-description-teaser {
  position: relative;
  z-index: 2;
}
.vehicle-card .card-title {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.vehicle-card:hover .card-title {
  text-decoration: underline;
}
.card-media {
  overflow: hidden;
  background: #0d1015;
}
.card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0d1015;
}
.card-img-empty {
  display: grid;
  place-items: center;
  color: #a7b0c0;
}
.premium-selection-card {
  border-color: rgba(255, 207, 46, 0.34);
}
.premium-selection-strip {
  position: relative;
  min-height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, #8f6507 0%, #ffcf2e 26%, #fff3a6 50%, #e4a90b 74%, #7c5404 100%);
  color: #161104;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}
.premium-selection-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.72) 46%, transparent 58%);
  transform: translateX(-120%);
  animation: premiumStripSweep 2.8s ease-in-out infinite;
}
.premium-selection-strip span {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}
@keyframes premiumStripSweep {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .premium-selection-strip::before {
    animation: none;
    opacity: 0.32;
    transform: none;
  }
}
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.card-price {
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}
.vehicle-description-teaser {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}
.vehicle-description-teaser span {
  display: inline-block;
  margin-left: 4px;
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}
.vehicle-description-teaser:hover span,
.vehicle-description-teaser:focus-visible span {
  color: var(--brand-700);
  text-decoration: underline;
}
.vehicle-description-teaser:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.stock-category {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #2a3242;
  background: #151a22;
  color: #d8e0ec;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.stock-category.premium {
  border-color: rgba(255, 207, 46, 0.58);
  background: rgba(255, 207, 46, 0.13);
  color: var(--brand);
}
.stock-category.delisted {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.stock-category.sold {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}
.stock-category.trade-sale {
  border-color: rgba(255, 207, 46, 0.58);
  background: rgba(255, 207, 46, 0.16);
  color: var(--brand);
}
.sold-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sold-detail-note {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.1);
  color: #14532d;
}
.sold-enquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(6, 79, 42, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 79, 42, 0.08), rgba(255, 207, 46, 0.12));
}
.sold-enquiry h3 {
  margin: 4px 0 6px;
  color: var(--green-900);
  font-size: 20px;
  line-height: 1.25;
}
.sold-enquiry p {
  margin: 0;
  color: var(--muted);
}
.sold-enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.sold-card .card-img {
  filter: saturate(0.78);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.badge {
  padding: 6px 8px;
  border-radius: 10px;
  background: #171b23;
  border: 1px solid #222a39;
  overflow-wrap: anywhere;
}
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 124px; text-align: center; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.review-carousel {
  position: relative;
}
.review-preview-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 300px), calc((100% - 36px) / 3));
  grid-template-columns: none;
}
.review {
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 14px;
  padding: 16px;
}
.review .name { font-weight: 600; margin: 0 0 6px; }
.review .stars { color: var(--brand); margin-bottom: 8px; }
.review p {
  margin: 0 0 12px;
}
.review small {
  color: var(--muted);
  display: block;
}
.local-trust-widget {
  display: grid;
  gap: 16px;
  padding: 0 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  width: min(100%, 1298px);
  margin-inline: auto;
}
.local-trust-widget.compact {
  padding: 0;
  gap: 14px;
}
.local-trust-widget.compact .local-trust-tabs {
  gap: 10px;
  min-height: 46px;
  padding: 11px 12px 0;
}
.local-trust-widget.compact .local-trust-tabs button,
.local-trust-widget.compact .local-source-pill {
  font-size: 13px;
}
.local-trust-widget.compact .local-source-pill b {
  width: 20px;
  height: 20px;
  font-size: 13px;
}
.local-trust-widget.compact .local-trust-summary {
  align-items: flex-start;
  flex-direction: column;
  margin-top: -12px;
  padding: 11px 12px;
}
.local-trust-widget.compact .local-trust-rating-line {
  gap: 6px;
  font-size: 13px;
}
.local-trust-widget.compact .local-trust-stars {
  font-size: 16px;
}
.local-trust-widget.compact .local-write-review {
  min-width: 0;
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
}
.local-trust-widget.compact .local-review-card {
  min-height: 210px;
  padding: 14px;
}
.local-trust-widget.compact .local-review-person {
  gap: 12px;
}
.local-trust-widget.compact .local-review-person img,
.local-trust-widget.compact .local-review-avatar {
  width: 36px;
  height: 36px;
}
.local-trust-widget.compact .local-review-person strong,
.local-trust-widget.compact .local-review-card h4 {
  font-size: 14px;
}
.local-trust-widget.compact .local-review-person small,
.local-trust-widget.compact .local-review-person a,
.local-trust-widget.compact .local-review-read-more {
  font-size: 14px;
}
.local-trust-widget.compact .local-review-stars {
  font-size: 17px;
}
.local-trust-widget.compact .local-review-source-badge {
  width: 17px;
  height: 17px;
  font-size: 11px;
}
.local-trust-widget.compact .local-review-card blockquote {
  font-size: 13px;
}
.local-trust-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 22px 0;
  border-radius: 12px 12px 0 0;
  background: #f4f4f4;
  min-height: 58px;
  border-bottom: 1px solid #d8d8d8;
}
.local-trust-tabs button {
  align-self: stretch;
  border: 0;
  border-bottom: 3px solid #111;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  padding: 0 0 15px;
}
.local-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-size: 17px;
}
.local-source-pill b {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.local-source-pill.google b {
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  font-family: Arial, sans-serif;
}
.local-source-pill.verified b {
  background: #19946b;
}
.local-trust-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -16px;
  padding: 15px 22px;
  border-radius: 0 0 12px 12px;
  background: #f4f4f4;
}
.local-trust-rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: 17px;
}
.local-trust-rating-line strong,
.local-trust-rating-line b {
  font-weight: 900;
}
.local-trust-rating-line i {
  display: block;
  width: 1px;
  height: 20px;
  background: #222;
}
.local-trust-stars,
.local-review-stars {
  color: #f6b400;
  letter-spacing: 0;
}
.local-trust-stars {
  font-size: 22px;
  line-height: 1;
}
.local-write-review {
  min-width: 150px;
  padding: 9px 15px;
  border: 1px solid #777;
  border-radius: 7px;
  color: #000;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.local-review-slider {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 360px;
}
.local-review-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.local-review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 18px) / 2);
  gap: 18px;
  padding: 0 0 10px;
  min-width: 100%;
}
.local-trust-widget.compact .local-review-track {
  grid-auto-columns: minmax(260px, 94%);
}
.local-review-card {
  position: relative;
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 238px;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f4;
}
.local-review-person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.local-review-person img,
.local-review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.local-review-person img {
  object-fit: cover;
}
.local-review-avatar {
  display: grid;
  place-items: center;
  background: #64a438;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}
.local-review-person strong {
  display: block;
  color: #000;
  font-size: 17px;
  line-height: 1.2;
}
.local-review-person small,
.local-review-person a {
  color: #777;
  font-size: 14px;
  text-decoration: none;
}
.local-review-check {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #19946b;
  color: #fff;
  font-weight: 900;
}
.local-review-stars {
  color: #16936f;
  font-size: 22px;
}
.local-review-source-badge {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-size: 11px;
  vertical-align: 2px;
}
.local-review-card h4 {
  margin: 0;
  color: #000;
  font-size: 17px;
  line-height: 1.2;
}
.local-review-card blockquote {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.38;
}
.local-review-card p {
  margin: 0;
  color: #777;
  font-size: 13px;
}
.local-review-read-more {
  color: #888;
  font-size: 15px;
  text-decoration: none;
}
.local-review-nav {
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #666;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.local-review-nav.prev {
  display: none;
}
.local-review-nav:hover {
  background: #fff;
  color: #111;
}
.admin-review-list {
  display: grid;
  gap: 12px;
}
.admin-review-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-review-row p {
  margin: 4px 0 0;
  color: var(--muted);
}
.admin-review-edit-row {
  display: block;
}
.admin-review-edit-form {
  display: grid;
  gap: 14px;
}
.admin-review-edit-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr);
  gap: 14px;
  align-items: center;
}
.admin-review-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-review-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-review-edit-grid .full {
  grid-column: 1 / -1;
}
.admin-review-edit-grid input,
.admin-review-edit-grid select,
.admin-review-edit-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}
.admin-review-edit-grid textarea {
  resize: vertical;
}
.admin-review-edit-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-review-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.admin-review-source-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-review-source-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 800;
}
.admin-review-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.admin-review-source-options .checkbox-option {
  min-height: 34px;
}
.admin-review-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.admin-review-actions form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}
.admin-review-actions .admin-review-date-form {
  align-items: flex-end;
}
.admin-review-actions .admin-review-date-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-review-actions .admin-review-date-form input {
  min-height: 38px;
  width: 150px;
}

.news-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news,
.service-card {
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 14px;
  padding: 16px;
}
.news h3,
.service-card h3 { margin: 0 0 8px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card p {
  color: var(--muted);
  margin: 0 0 8px;
  flex: 1;
}
.faq-section {
  padding-top: 30px;
}
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--green-900);
  font-weight: 900;
}
.faq-item summary::marker {
  color: var(--brand-700);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}
.service-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.service-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.service-intro h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.1;
}
.service-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.enquiry-panel {
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 14px;
  padding: 20px;
}
.enquiry-panel h2,
.success-message h2 {
  margin-top: 0;
}
.service-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.service-form .full {
  grid-column: 1 / -1;
}
.ai-description-field {
  align-content: start;
}
.ai-description-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-description-head .btn {
  padding: 9px 12px;
  font-size: 13px;
}
.ai-description-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}
.ai-description-status[data-tone="success"] {
  color: #00703c;
}
.ai-description-status[data-tone="error"] {
  color: #b42318;
}
.service-form input,
.service-form select,
.service-form textarea {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 12px;
  font: inherit;
}
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.service-form select option:disabled {
  background: #e5e7eb;
  color: #6b7280;
}
.slot-help {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.service-form button {
  justify-self: start;
  cursor: pointer;
}
.form-error {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #7b2d2d;
  border-radius: 10px;
  background: #2b1212;
  color: #ffd5d5;
}
.mot-fix-fieldset {
  border: 1px solid #2a3242;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}
.mot-fix-fieldset legend {
  color: var(--brand);
  font-weight: 800;
  padding: 0 6px;
}
.admin-document-fieldset p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-listing-facts-fieldset p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-listing-facts-rows {
  display: grid;
  gap: 8px;
}
.admin-listing-facts-head,
.admin-listing-fact-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(130px, 0.8fr) minmax(220px, 1.35fr) minmax(190px, auto);
  gap: 12px;
  align-items: center;
}
.admin-listing-facts-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-listing-fact-row {
  padding: 10px;
  border: 1px solid #d9e2df;
  border-radius: 10px;
  background: #f8fbf7;
  color: #14231d;
}
.admin-listing-fact-row strong,
.admin-listing-fact-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-listing-fact-row [data-fact-source-label] {
  color: #064f2a;
  font-weight: 800;
}
.admin-listing-fact-row [data-fact-body-text] {
  color: #34423d;
}
.admin-listing-fact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-listing-fact-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.admin-listing-fact-dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid #2a3242;
  border-radius: 14px;
  background: #111722;
  color: #eef2f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.admin-listing-fact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}
.admin-listing-fact-edit-grid {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.admin-listing-fact-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-listing-fact-edit-grid label:nth-child(n+3) {
  grid-column: 1 / -1;
}
.admin-listing-fact-edit-grid input,
.admin-listing-fact-edit-grid select {
  width: 100%;
}
.admin-common-defects-fieldset p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-common-defects-rows {
  display: grid;
  gap: 8px;
}
.admin-common-defects-head,
.admin-common-defect-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(170px, 0.95fr) minmax(220px, 1.45fr) minmax(190px, auto);
  gap: 12px;
  align-items: center;
}
.admin-common-defects-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-common-defect-row {
  padding: 10px;
  border: 1px solid #d9e2df;
  border-radius: 10px;
  background: #f8fbf7;
  color: #14231d;
}
.admin-common-defect-row strong,
.admin-common-defect-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-common-defect-row [data-defect-status-label] {
  color: #064f2a;
  font-weight: 800;
}
.admin-common-defect-row [data-defect-note-text] {
  color: #34423d;
}
.admin-common-defect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-common-defect-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.admin-common-defect-dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid #2a3242;
  border-radius: 14px;
  background: #111722;
  color: #eef2f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.admin-common-defect-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}
.admin-common-defect-edit-grid {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.admin-common-defect-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-common-defect-edit-grid label:nth-child(n+3) {
  grid-column: 1 / -1;
}
.admin-common-defect-edit-grid input,
.admin-common-defect-edit-grid select,
.admin-common-defect-edit-grid textarea {
  width: 100%;
}
.admin-listing-fact-row label,
.admin-common-defect-row label {
  display: grid;
  gap: 6px;
}
.admin-document-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1d2330;
}
.admin-document-links a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
}
.admin-document-links span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-edit-document-list {
  display: grid;
  gap: 10px;
}
.admin-edit-document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
}
.admin-edit-document-row div {
  display: grid;
  gap: 3px;
}
.admin-edit-document-row a,
.admin-edit-document-row span {
  overflow-wrap: anywhere;
}
.admin-edit-document-row span {
  color: var(--muted);
  font-size: 12px;
}
.admin-edit-document-row .checkbox-option {
  padding: 8px 10px;
}
.admin-edit-document-row .checkbox-option input {
  width: auto;
  min-height: 0;
}
.admin-reel-panel {
  margin-bottom: 24px;
}
.admin-reel-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-reel-preview,
.admin-reel-empty {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #0f172a;
}
.admin-reel-preview {
  display: block;
  object-fit: cover;
}
.admin-reel-empty {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #e2e8f0;
  font-weight: 800;
  text-align: center;
}
.admin-reel-details {
  display: grid;
  gap: 16px;
}
.admin-reel-details dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.admin-reel-details dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-reel-details dt {
  color: var(--muted);
  font-weight: 800;
}
.admin-reel-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-reel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-reel-actions form {
  margin: 0;
}
.reel-claim-actions {
  display: contents;
}
.admin-reel-script {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  padding: 10px 12px;
}
.admin-reel-script summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}
.admin-reel-script pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.55;
  color: var(--muted);
}
.content-engine-script {
  margin-top: 10px;
}
.content-engine-stats .admin-stat {
  text-decoration: none;
}
.content-engine-filter {
  grid-template-columns: 180px minmax(220px, 1fr) auto;
}
.content-engine-list {
  display: grid;
  gap: 14px;
}
.content-engine-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
}
.content-engine-media video,
.content-engine-media img,
.content-engine-empty {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #0f172a;
  object-fit: cover;
}
.content-engine-empty {
  display: grid;
  place-items: center;
  padding: 10px;
  color: #e2e8f0;
  font-weight: 800;
  text-align: center;
}
.content-engine-body {
  display: grid;
  gap: 8px;
}
.content-engine-body h3,
.content-engine-body p {
  margin: 0;
}
.content-engine-caption {
  color: #334155;
  line-height: 1.5;
}
.content-engine-meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.content-engine-actions {
  display: grid;
  gap: 8px;
}
.content-engine-actions form {
  margin: 0;
}
.content-engine-actions .btn {
  width: 100%;
  text-align: center;
}
.content-engine-work-icon {
  width: 26px;
  height: 26px;
  border: 1px solid #f59e0b;
  border-radius: 50%;
  background: #fef3c7;
  color: #92400e;
  font: 800 13px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.content-engine-progress {
  width: min(360px, 100%);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.content-engine-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #064f2a, #f2c230);
}
.content-engine-metrics {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}
.content-engine-metrics div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.content-engine-metrics dt {
  color: var(--muted);
  font-weight: 800;
}
.content-engine-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mot-fix-fieldset p {
  margin: 0;
  color: var(--muted);
}
.manual-reg-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1d2330;
  align-items: end;
}
.success-message {
  padding: 18px;
  border: 1px solid rgba(255, 207, 46, 0.35);
  border-radius: 12px;
  background: rgba(255, 207, 46, 0.08);
}
.success-message.compact {
  margin: 12px 0;
  padding: 12px;
}
.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.booking-card {
  margin-top: 16px;
}
.booking-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.booking-form button {
  justify-self: start;
}
.booking-viewing-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.booking-viewing-type legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.booking-viewing-type label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.booking-viewing-type input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.booking-viewing-type .slot-help {
  grid-column: 1 / -1;
}
.booking-virtual-help {
  flex: 0 0 auto;
  margin-left: auto;
}
.checkout-page {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.checkout-summary h1 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.1;
}
.checkout-summary-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #1d2330;
  border-radius: 10px;
  background: #0d1015;
  margin-bottom: 16px;
}
.cost-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.cost-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #1d2330;
}
.cost-summary dt {
  color: var(--muted);
}
.cost-summary dd {
  margin: 0;
  font-weight: 700;
}
.cost-summary .total {
  color: var(--brand);
  font-size: 20px;
}
.delivery-note,
.delivery-result,
.booking-dialog p {
  color: var(--muted);
}
.stripe-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 207, 46, 0.35);
  border-radius: 10px;
  background: rgba(255, 207, 46, 0.08);
}
.stripe-panel span {
  color: var(--muted);
  font-size: 13px;
}
.stripe-panel[hidden] {
  display: none;
}
.delivery-map-panel {
  position: relative;
  margin-top: 18px;
  border: 1px solid #1d2330;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1015;
}
.delivery-map {
  width: 100%;
  min-height: 360px;
}
.delivery-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 16, 21, 0.92);
  color: var(--text);
  font-weight: 700;
  text-align: center;
}
.delivery-map-fallback[hidden] {
  display: none;
}
.address-results {
  display: grid;
  gap: 8px;
}
.address-result {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 12px;
  text-align: left;
}
.address-result:hover,
.address-result:focus {
  border-color: var(--brand);
  outline: 2px solid var(--ring);
}
.option-fieldset {
  border: 1px solid #2a3242;
  border-radius: 10px;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 12px;
}
.option-fieldset legend {
  color: var(--muted);
  font-weight: 700;
  padding: 0 6px;
}
.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.radio-option input {
  width: auto;
}
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}
.service-form .checkbox-option {
  display: inline-flex;
}
.checkbox-option input {
  width: auto;
  min-height: 0;
  padding: 0;
}
.admin-running-costs {
  margin-top: 4px;
}
.admin-running-costs-toggle {
  padding: 12px;
  border: 1px solid #273449;
  border-radius: 8px;
  background: #0f151f;
}
.admin-upload-mode {
  flex-wrap: wrap;
}
.admin-photo-upload .admin-upload-mode {
  margin-top: 2px;
}
.admin-photo-upload .admin-upload-mode label {
  display: inline-flex;
  gap: 8px;
}
.admin-photo-upload .admin-upload-mode input {
  width: auto;
  padding: 0;
}
.delivery-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.manual-distance[hidden],
.delivery-fields[hidden],
.delivery-actions[hidden] {
  display: none;
}
.booking-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid #2a3242;
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 20px;
}
.booking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.admin-photo-upload {
  display: grid;
  gap: 10px;
}
.admin-photo-upload label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.admin-photo-upload input {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 12px;
}
.admin-photo-upload p {
  margin: 0;
  color: var(--muted);
}
.admin-delist-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #1d2330;
}
.admin-delist-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-delist-form select,
.admin-delist-form input {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 10px;
  font: inherit;
}
.admin-delist-form select:focus,
.admin-delist-form input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.delist-button {
  width: 100%;
  cursor: pointer;
}
.relist-button {
  width: 100%;
  cursor: pointer;
}
.admin-listing-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-calendar {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}
.admin-calendar-event {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #1d2330;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: var(--panel);
}
.admin-calendar-event.pickup {
  border-left-color: #38bdf8;
}
.admin-calendar-event.delivery {
  border-left-color: #22c55e;
}
.admin-calendar-time {
  color: var(--brand);
  font-weight: 800;
}
.admin-calendar-type {
  width: fit-content;
  margin-bottom: 4px;
  padding: 3px 7px;
  border: 1px solid #2a3242;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-calendar-main h3,
.admin-calendar-main p {
  margin: 0;
}
.admin-calendar-main h3 {
  font-size: 17px;
  line-height: 1.3;
}
.admin-calendar-main p {
  color: var(--muted);
  font-size: 13px;
}
.admin-calendar-cost {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}
.admin-cancel-appointment {
  margin: 0;
}
.appointment-cancel-panel {
  max-width: 760px;
  margin: 0 auto;
}
.jdv-board,
.jdv-grid,
.jdv-create-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.jdv-drag-control {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(280px, 1.35fr);
  gap: 14px;
  margin-bottom: 22px;
}
.jdv-board {
  grid-template-columns: minmax(0, 520px);
}
.jdv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jdv-create-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
.jdv-panel,
.jdv-list {
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 8px;
  padding: 14px;
}
.jdv-tag-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #1d2330;
  border-radius: 8px;
  background: var(--panel);
}
.jdv-tag-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.jdv-tag-panel-head h3 {
  margin: 0;
  font-size: 16px;
}
.jdv-tag-panel-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.jdv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jdv-tag {
  min-width: 132px;
  max-width: 100%;
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #10151d;
  color: var(--text);
  cursor: grab;
  text-align: left;
  font: inherit;
}
.jdv-tag strong,
.jdv-tag span {
  overflow-wrap: anywhere;
}
.jdv-tag strong {
  font-size: 13px;
  line-height: 1.25;
}
.jdv-tag span {
  color: var(--muted);
  font-size: 12px;
}
.jdv-tag:hover {
  border-color: rgba(255, 207, 46, 0.55);
}
.jdv-tag:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.jdv-tag.is-dragging {
  opacity: 0.55;
}
.jdv-tag.is-assigned {
  cursor: default;
  opacity: 0.66;
}
.jdv-vehicle-drop-panel {
  display: grid;
  gap: 10px;
}
.jdv-vehicle-drops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.jdv-drop-zone {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px dashed #30394b;
  border-radius: 8px;
  background: #0f131a;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.jdv-drop-zone strong,
.jdv-drop-zone span,
.jdv-drop-zone small {
  overflow-wrap: anywhere;
}
.jdv-drop-zone strong {
  line-height: 1.25;
}
.jdv-drop-zone span,
.jdv-drop-zone small {
  color: var(--muted);
  font-size: 12px;
}
.jdv-drop-zone.has-towbar {
  border-style: solid;
}
.jdv-drop-zone.is-over {
  border-color: var(--brand);
  background: rgba(255, 207, 46, 0.08);
  transform: translateY(-1px);
}
.jdv-drop-zone.driver-locked.trailer-locked {
  opacity: 0.72;
}
.jdv-panel h3 {
  margin: 0 0 10px;
}
.jdv-form,
.jdv-inline-form {
  display: grid;
  gap: 10px;
}
.jdv-form input,
.jdv-form select,
.jdv-inline-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
}
.jdv-form input:focus,
.jdv-form select:focus,
.jdv-inline-form select:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.jdv-list {
  display: grid;
  gap: 10px;
}
.jdv-list .section-head h2 {
  margin-bottom: 0;
}
.jdv-row,
.jdv-job {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0f131a;
}
.jdv-job {
  grid-template-columns: minmax(0, 1fr) 220px;
}
.jdv-row strong,
.jdv-job strong {
  display: block;
}
.jdv-row span,
.jdv-job p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.jdv-row form {
  margin: 0;
}
.settings-button {
  min-width: 116px;
  text-align: center;
}
.jdv-settings-section {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}
.jdv-settings-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 8px;
}
.jdv-settings-create {
  border-color: rgba(255, 207, 46, 0.25);
}
.jdv-settings-form input,
.jdv-settings-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 10px 12px;
}
.jdv-settings-form input:focus,
.jdv-settings-form select:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.jdv-settings-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
}
.jdv-settings-check input {
  width: auto;
  min-height: 0;
}
.jdv-settings-assigned {
  color: var(--muted);
  font-size: 13px;
}
.admin-review-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.admin-image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-image-sort-item {
  position: relative;
  cursor: grab;
}
.admin-image-sort-item:active {
  cursor: grabbing;
}
.admin-image-sort-item.dragging {
  opacity: 0.45;
}
.admin-image-sort-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #064f2a;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}
.admin-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #1d2330;
  border-radius: 10px;
  background: #0d1015;
}
.admin-review-image-manager {
  display: grid;
  gap: 14px;
}
.admin-listing-is-loading {
  overflow: hidden;
}
.admin-listing-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 10, 14, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.admin-listing-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.admin-listing-loader-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 207, 46, 0.34);
  border-radius: 12px;
  background: #0d1015;
  color: var(--text);
  padding: 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.admin-listing-loader.is-visible .admin-listing-loader-card {
  transform: translateY(0) scale(1);
}
.admin-listing-loader-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
}
.admin-listing-loader-mark::before,
.admin-listing-loader-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
}
.admin-listing-loader-mark::before {
  border-top-color: var(--brand);
  border-right-color: var(--brand);
  animation: listing-loader-spin 0.95s linear infinite;
}
.admin-listing-loader-mark::after {
  inset: 11px;
  border-bottom-color: #ffffff;
  border-left-color: #ffffff;
  opacity: 0.78;
  animation: listing-loader-spin 1.25s linear infinite reverse;
}
.admin-listing-loader-mark span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #064f2a;
  box-shadow: 0 0 0 5px rgba(255, 207, 46, 0.14);
  animation: listing-loader-pulse 1.3s ease-in-out infinite;
}
.admin-listing-loader-mark span:last-child {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(28px, -26px);
}
.admin-listing-loader-card strong {
  font-size: 1.18rem;
}
.admin-listing-loader-card p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.admin-listing-loader-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1d2330;
}
.admin-listing-loader-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #064f2a, var(--brand), #ffffff);
  animation: listing-loader-bar 1.35s ease-in-out infinite;
}
@keyframes listing-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes listing-loader-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1); opacity: 1; }
}
@keyframes listing-loader-bar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}
.admin-review-image-actions {
  display: grid;
  gap: 10px;
}
.admin-review-image-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.admin-review-image-actions input {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 12px;
  font: inherit;
}
.admin-remove-image-button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  min-width: 76px;
  min-height: 34px;
  border: 1px solid rgba(127, 29, 29, 0.32);
  border-radius: 8px;
  background: #b91c1c;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.admin-remove-image-button:hover,
.admin-remove-image-button:focus-visible {
  background: #991b1b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
  outline: 2px solid rgba(255, 207, 46, 0.9);
  outline-offset: 2px;
}
.admin-edit-vehicle-form .admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.admin-appointment-decision-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(120px, 0.7fr) minmax(180px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.admin-appointment-decision-form.refuse {
  grid-template-columns: minmax(0, 1fr) auto;
}
.admin-appointment-decision-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-appointment-decision-form input,
.admin-appointment-decision-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 9px 11px;
}
.admin-account-form,
.admin-account-inline-form {
  display: grid;
  gap: 12px;
}
.admin-account-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}
.admin-account-form label,
.admin-account-inline-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-account-form input,
.admin-account-inline-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 10px 12px;
}
.admin-account-list {
  display: grid;
  gap: 12px;
}
.admin-account-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(210px, 0.9fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid #2a3242;
  border-radius: 12px;
  background: #0d1015;
}
.admin-account-row h3,
.admin-account-row p {
  margin: 0;
}
.admin-account-row p {
  color: var(--muted);
  font-size: 13px;
}
.admin-account-inline-form.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.admin-2fa-panel {
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: end;
}
.admin-2fa-qr {
  width: min(100%, 210px);
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}
.admin-2fa-qr img {
  display: block;
  width: 100%;
  height: auto;
}
.admin-2fa-secret {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #10151d;
  color: var(--muted);
  font-size: 13px;
}
.admin-2fa-secret strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-2fa-secret a,
.login-hint {
  color: var(--muted);
}

.admin-page {
  background: #0b0f14;
}
.admin-shell-page {
  min-height: 100vh;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: 230px;
  border-right: 1px solid #202838;
  background: #0d1118;
  color: #d8e0ec;
  transition: width 0.18s ease;
}
.admin-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  padding: 10px 8px 10px 14px;
  border-bottom: 1px solid #202838;
}
.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.15;
}
.admin-sidebar-brand:hover {
  text-decoration: none;
}
.admin-sidebar-brand span,
.admin-sidebar-nav a,
.admin-sidebar-footer a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #3a465b;
  border-radius: 6px;
  background: #151c28;
  color: #d8e0ec;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.admin-sidebar-toggle:hover {
  border-color: rgba(255, 207, 46, 0.42);
  color: var(--brand);
}
.admin-notification-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 12px 0;
  padding: 10px;
  border: 1px solid #3a465b;
  border-radius: 6px;
  background: #151c28;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
.admin-notification-button:hover,
.admin-notification-button.is-active {
  border-color: rgba(255, 207, 46, 0.5);
  color: var(--brand);
  text-decoration: none;
}
.admin-notification-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-notification-button strong,
.admin-notification-button small {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}
.admin-notification-button small {
  background: #263244;
  color: #b9c3d0;
}
.admin-sidebar-nav,
.admin-sidebar-footer {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
}
.admin-sidebar-nav a,
.admin-sidebar-footer a {
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d8e0ec;
  font-size: 14px;
  font-weight: 800;
}
.admin-sidebar-nav a:hover,
.admin-sidebar-footer a:hover,
.admin-sidebar-nav a.is-active {
  border-color: #3a465b;
  background: #151c28;
  color: var(--brand);
  text-decoration: none;
}
.admin-sidebar-footer {
  border-top: 1px solid #202838;
}
.admin-shell-main {
  width: auto;
  max-width: none;
  margin-left: 230px;
  padding: 28px clamp(18px, 3vw, 34px) 34px;
  transition: margin-left 0.18s ease;
}
.admin-sidebar-collapsed .admin-sidebar {
  width: 72px;
}
.admin-sidebar-collapsed .admin-shell-main {
  margin-left: 72px;
}
.admin-sidebar-collapsed .admin-sidebar-head {
  grid-template-columns: 1fr;
  padding: 10px;
}
.admin-sidebar-collapsed .admin-sidebar-brand {
  grid-template-columns: 1fr;
  justify-items: center;
}
.admin-sidebar-collapsed .admin-sidebar-brand span,
.admin-sidebar-collapsed .admin-notification-button span,
.admin-sidebar-collapsed .admin-sidebar-nav a,
.admin-sidebar-collapsed .admin-sidebar-footer a {
  font-size: 0;
  text-align: center;
}
.admin-sidebar-collapsed .admin-notification-button {
  justify-content: center;
  margin-inline: 10px;
}
.admin-sidebar-collapsed .admin-sidebar-nav a::first-letter,
.admin-sidebar-collapsed .admin-sidebar-footer a::first-letter {
  font-size: 14px;
}
.admin-sidebar-collapsed .admin-sidebar-toggle {
  margin: 6px auto 0;
}
.admin-sidebar-collapsed .admin-sidebar-toggle span {
  transform: rotate(180deg);
}
.admin-topbar {
  background: rgba(11, 15, 20, 0.92);
}
.admin-dashboard {
  display: grid;
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 30px;
}
.admin-hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px 0 8px;
}
.admin-hero-bar h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.08;
}
.admin-hero-bar p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}
.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.admin-stat {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #202838;
  border-radius: 8px;
  background: #10151d;
}
.admin-stat span,
.admin-stat small {
  color: var(--muted);
}
.admin-stat span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-stat strong {
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}
.admin-stat.needs-attention {
  border-color: rgba(239, 68, 68, 0.52);
  background: rgba(239, 68, 68, 0.08);
}
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.admin-side-stack {
  display: grid;
  gap: 18px;
}
.admin-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid #202838;
  border-radius: 8px;
  background: #10151d;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #222a39;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-table td {
  color: #d8e0ec;
}
.admin-table a {
  color: var(--brand);
  font-weight: 800;
}
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}
.admin-legacy-stock-panel {
  padding: 12px;
  border-radius: 0;
}
.admin-stock-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}
.admin-stock-filter label {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
.admin-stock-filter input,
.admin-stock-filter select,
.admin-stock-note-form textarea {
  width: 100%;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  background: #ffffff;
  color: #0f172a;
  font: 13px Arial, Helvetica, sans-serif;
}
.admin-stock-filter input,
.admin-stock-filter select {
  min-height: 34px;
  padding: 6px 8px;
}
.admin-stock-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.admin-stock-note-form {
  display: grid;
  gap: 4px;
  min-width: 180px;
}
.admin-stock-note-form textarea {
  min-height: 58px;
  padding: 5px 6px;
  resize: vertical;
}
.admin-legacy-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 2px inset #c0c0c0;
  background: #ffffff;
}
.admin-legacy-stock-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
.admin-legacy-stock-table th,
.admin-legacy-stock-table td {
  padding: 5px 6px;
  border: 1px solid #808080;
  text-align: left;
  vertical-align: top;
}
.admin-legacy-stock-table th {
  background: #d9d9d9;
  color: #000000;
  font-weight: 700;
}
.admin-legacy-stock-table tr:nth-child(even) td {
  background: #f4f4f4;
}
.admin-legacy-stock-table strong,
.admin-legacy-stock-table small {
  display: block;
}
.admin-legacy-stock-table small {
  color: #333333;
  font-size: 11px;
}
.admin-legacy-stock-table a,
.admin-legacy-stock-table button,
.admin-legacy-delist summary {
  display: inline-block;
  margin: 0 2px 3px 0;
  padding: 2px 7px;
  border: 2px outset #d0d0d0;
  border-radius: 0;
  background: #e6e6e6;
  color: #000080;
  font: 12px Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.admin-legacy-stock-table button:active,
.admin-legacy-stock-table a:active,
.admin-legacy-delist summary:active {
  border-style: inset;
}
.admin-legacy-actions,
.admin-legacy-actions form,
.admin-legacy-delist form {
  display: inline;
}
.admin-legacy-delist summary {
  list-style: none;
}
.admin-legacy-delist summary::-webkit-details-marker {
  display: none;
}
.admin-legacy-delist form {
  display: grid;
  gap: 4px;
  min-width: 150px;
}
.admin-legacy-delist select,
.admin-legacy-delist input {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid #808080;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font: 12px Arial, Helvetica, sans-serif;
}
.admin-legacy-thumb {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border: 1px solid #808080;
  cursor: zoom-in;
}
.admin-legacy-empty-thumb {
  display: block;
  width: 64px;
  padding: 8px 4px;
  border: 1px solid #808080;
  background: #eeeeee;
  color: #333333;
  text-align: center;
}
.admin-hover-preview {
  position: fixed;
  z-index: 10000;
  display: none;
  width: auto;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(280px, calc(100vh - 24px));
  border: 2px solid #202020;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}
.admin-hover-preview.is-visible {
  display: block;
}
.admin-legacy-stock-table [data-open-document-image] {
  color: #000080;
  cursor: zoom-in;
  text-decoration: underline;
}
.admin-image-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.admin-image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.admin-image-viewer-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 80vw;
  height: 80vh;
  margin: 10vh auto;
  overflow: hidden;
  border: 2px outset #d0d0d0;
  background: #eeeeee;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}
.admin-image-viewer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-bottom: 1px solid #808080;
  background: #d9d9d9;
}
.admin-image-viewer-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.admin-image-viewer-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.admin-image-viewer-tools form {
  margin: 0;
}
.admin-image-viewer-tools button {
  padding: 3px 8px;
  border: 2px outset #d0d0d0;
  border-radius: 0;
  background: #e6e6e6;
  color: #000000;
  font: 12px Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.admin-image-viewer-tools button:active {
  border-style: inset;
}
.admin-image-viewer-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 12px;
  background: #404040;
}
.admin-image-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
}
.admin-image-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  background:
    linear-gradient(135deg, transparent 0 45%, #606060 45% 55%, transparent 55%),
    linear-gradient(135deg, transparent 0 62%, #606060 62% 70%, transparent 70%),
    #d9d9d9;
  cursor: nwse-resize;
}
.admin-subscriber-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
  align-items: end;
  margin-bottom: 14px;
}
.admin-subscriber-filter .btn {
  min-height: 44px;
}
.admin-table .admin-row-meta {
  align-items: center;
  gap: 8px;
}
.admin-table form {
  margin: 0;
}
.analytics-user-agent {
  max-width: 360px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}
.analytics-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid #202838;
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.96);
}
.analytics-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #10151d;
  color: #d8e0ec;
  font-size: 13px;
  font-weight: 800;
}
.analytics-tabs a:hover {
  border-color: rgba(255, 207, 46, 0.42);
  color: var(--brand);
}
.analytics-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.analytics-table.compact {
  min-width: 0;
}
.analytics-row-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.analytics-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.analytics-mini-grid article {
  padding: 12px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
}
.analytics-mini-grid span,
.analytics-mini-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-mini-grid strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}
.analytics-section-details {
  margin-bottom: 18px;
}
.analytics-section-details > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.analytics-section-details > summary::-webkit-details-marker {
  display: none;
}
.analytics-section-details > summary strong,
.analytics-section-details > summary small {
  display: block;
}
.analytics-section-details > summary strong {
  color: var(--text);
  font-size: 20px;
}
.analytics-section-details > summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.analytics-section-details[open] > summary {
  margin-bottom: 14px;
}
.analytics-journey {
  max-width: 420px;
  overflow-wrap: anywhere;
  color: #d8e0ec;
  font-size: 13px;
  line-height: 1.45;
}
.analytics-event-list {
  display: grid;
  gap: 10px;
}
.analytics-event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
}
.analytics-event > strong {
  color: var(--brand);
  font-size: 13px;
}
.analytics-event p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.helper-message-list {
  gap: 12px;
}
.helper-message.user {
  border-color: rgba(22, 163, 74, 0.35);
}
.helper-message.assistant {
  border-color: rgba(59, 130, 246, 0.35);
}
.helper-message small {
  display: block;
  margin-top: 8px;
  color: #7f8da3;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.analytics-playback {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.analytics-playback-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.analytics-playback-scrub {
  flex: 1 1 260px;
  min-width: 220px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-playback-scrub input {
  width: 100%;
  accent-color: var(--brand);
}
.analytics-speed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-speed select {
  min-height: 38px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1118;
  color: #e6edf7;
  padding: 0 10px;
}
.analytics-playback-stage-wrap {
  overflow: hidden;
  border: 1px solid #222a39;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #080b10;
  background-size: 32px 32px;
}
.analytics-playback-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
}
.analytics-page-plane {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
  overflow: hidden;
  background: #f8fafc;
  color: #111827;
}
.analytics-page-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
  pointer-events: none;
}
.analytics-playback-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.analytics-page-url {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 38px;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}
.analytics-scroll-marker {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 3;
  width: 8px;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
  transition: transform 160ms ease;
}
.analytics-cursor {
  position: absolute;
  z-index: 5;
  width: 17px;
  height: 17px;
  border: 3px solid #0f172a;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  transition: transform 120ms linear;
}
.analytics-click-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.analytics-click-layer span {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid #ef4444;
  border-radius: 999px;
  animation: analytics-click 900ms ease-out forwards;
}
.analytics-playback-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.analytics-current-detail {
  overflow-wrap: anywhere;
}
@keyframes analytics-click {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(4);
  }
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}
.admin-panel-head.compact {
  margin-bottom: 12px;
}
.admin-panel-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}
.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.admin-count-pill,
.admin-type-pill,
.admin-status-pill,
.admin-price-pill {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #2a3242;
  border-radius: 999px;
  background: #0d1118;
  color: #d8e0ec;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-count-pill,
.admin-price-pill {
  color: var(--brand);
  border-color: rgba(255, 207, 46, 0.34);
  white-space: nowrap;
}
.admin-status-pill.attention {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.11);
}
.admin-status-pill.confirmed {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.11);
}
.admin-status-pill.pending {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}
.admin-status-pill.arrange {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.1);
}
.admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-appointment-list,
.admin-stock-list,
.admin-upload-form,
.admin-link-list {
  display: grid;
  gap: 10px;
}
.admin-notification-list {
  display: grid;
  gap: 10px;
}
.admin-notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #222a39;
  border-left: 5px solid #3a465b;
  border-radius: 8px;
  background: #0d1118;
}
.admin-notification-item.is-unread {
  border-left-color: #ef4444;
  background: #111722;
}
.admin-notification-item span {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-notification-item h2 {
  margin: 4px 0;
  color: #ffffff;
  font-size: 17px;
}
.admin-notification-item p,
.admin-notification-item small {
  margin: 0;
  color: var(--muted);
}
.admin-notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-appointment-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #222a39;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #0d1118;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.admin-appointment-item:hover,
.admin-appointment-item:focus-visible {
  border-color: rgba(255, 207, 46, 0.42);
  background: #111722;
}
.admin-appointment-item:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.admin-appointment-item.pickup {
  border-left-color: #38bdf8;
}
.admin-appointment-item.delivery {
  border-left-color: #22c55e;
}
.admin-appointment-time {
  display: grid;
  gap: 4px;
}
.admin-appointment-time strong {
  color: var(--brand);
  line-height: 1.25;
}
.admin-appointment-time span,
.admin-appointment-body p,
.admin-stock-main p {
  color: var(--muted);
  font-size: 13px;
}
.admin-appointment-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.admin-appointment-body h3,
.admin-stock-main h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.admin-appointment-body p,
.admin-stock-main p {
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-warning-text {
  color: #fecaca !important;
}
.admin-login-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #f5b9b9;
  border-radius: 8px;
  background: #fff1f1;
  color: #7f1d1d;
  box-shadow: var(--shadow-sm);
}
.admin-login-warning strong {
  color: #991b1b;
}
.admin-login-warning span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-appointment-actions,
.admin-stock-actions,
.admin-history-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.admin-appointment-actions strong {
  color: var(--brand);
}
.admin-appointment-actions form,
.admin-stock-actions form,
.admin-history-actions form {
  margin: 0;
}
.admin-details-button {
  min-width: 86px;
}
.admin-appointment-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #10151d;
  color: var(--text);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.admin-appointment-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}
.admin-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid #222a39;
  background: #10151d;
}
.admin-dialog-head h2 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.2;
}
.admin-dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1118;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.admin-detail-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
}
.admin-detail-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.admin-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.admin-detail-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1d2330;
}
.admin-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.admin-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-appointment-dialog:not(.admin-sale-dialog) > .admin-dialog-actions {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f7fbf5;
}
.admin-appointment-dialog:not(.admin-sale-dialog) > .admin-dialog-actions form {
  margin: 0;
}
.admin-dialog-approval-row,
.admin-dialog-secondary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.admin-dialog-decision-stack {
  display: grid;
  gap: 10px;
}
.admin-appointment-dialog .admin-dialog-actions .btn,
.admin-appointment-dialog .admin-dialog-actions button {
  min-height: 42px;
  border-radius: 8px;
  color: var(--green-900);
}
.admin-appointment-dialog .admin-dialog-actions .btn-primary {
  color: #183219;
}
.admin-appointment-dialog .admin-dialog-actions .btn-outline {
  background: #ffffff;
  border-color: rgba(6, 79, 42, 0.28);
  box-shadow: 0 8px 18px rgba(6, 79, 42, 0.08);
}
.admin-appointment-dialog .admin-dialog-actions .btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}
.admin-sale-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.admin-sale-form [hidden] {
  display: none !important;
}
.admin-sale-form .admin-dialog-actions {
  padding: 0;
}
.admin-sale-grid,
.admin-installment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-sale-form label,
.admin-choice-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.admin-checkbox-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 10px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1118;
  color: #d8e0ec;
}
.admin-checkbox-row input {
  width: auto;
  margin-top: 3px;
}
.admin-sale-form input {
  width: 100%;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1118;
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
}
.admin-choice-field {
  border: 1px solid #222a39;
  border-radius: 8px;
  padding: 12px;
  background: #0d1118;
}
.admin-choice-field legend {
  padding: 0 6px;
  color: var(--text);
}
.admin-choice-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.admin-choice-field input {
  width: auto;
}
.admin-installment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
}
.admin-installment-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.admin-installment-head h3 {
  margin: 0;
}
.admin-installment-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-installment-list {
  display: grid;
  gap: 10px;
}
.admin-installment-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  align-items: end;
}
.admin-installment-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.admin-installment-summary strong {
  color: var(--brand);
}
.admin-installment-summary strong.attention,
.admin-sale-error {
  color: #fecaca;
}
.admin-sale-error {
  margin: 0;
  font-weight: 800;
}
.admin-upload-form label,
.admin-inline-details label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-upload-form input[type="file"],
.admin-inline-details input,
.admin-inline-details select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1015;
  color: var(--text);
  padding: 10px;
  font: inherit;
}
.admin-upload-form input:focus,
.admin-inline-details input:focus,
.admin-inline-details select:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.admin-link-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
  color: var(--text);
}
.admin-link-list a:hover {
  border-color: rgba(255, 207, 46, 0.42);
  text-decoration: none;
}
.admin-link-list span {
  color: var(--muted);
  font-size: 13px;
}
.admin-stock-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid #222a39;
  border-radius: 8px;
  background: #0d1118;
}
.admin-stock-row.delisted {
  opacity: 0.9;
}
.admin-history-row {
  grid-template-columns: 132px minmax(0, 1fr) minmax(240px, 320px);
}
.admin-history-actions {
  justify-items: stretch;
  width: min(320px, 100%);
}
.admin-history-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-history-note-form {
  display: grid;
  gap: 8px;
}
.admin-history-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-history-note-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0d1015;
  color: var(--text);
  padding: 10px;
  font: inherit;
}
.admin-history-note-form textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.admin-stock-thumb {
  width: 88px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #263044;
  border-radius: 8px;
  background: #0a0d12;
}
.admin-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-stock-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.admin-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-doc-row a {
  padding: 5px 8px;
  border: 1px solid #2a3242;
  border-radius: 999px;
  background: #111722;
  color: #d8e0ec;
  font-size: 12px;
}
.admin-doc-row a:hover {
  border-color: rgba(255, 207, 46, 0.42);
  text-decoration: none;
}
.admin-inline-details {
  position: relative;
  min-width: 220px;
}
.admin-inline-details summary {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #2a3242;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.admin-inline-details summary::-webkit-details-marker {
  display: none;
}
.admin-inline-details[open] summary {
  border-color: rgba(255, 207, 46, 0.42);
}
.admin-inline-details form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0b0f14;
}
.admin-footer {
  margin-top: 0;
}

.admin-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn .admin-icon,
.admin-link-list strong .admin-icon,
.admin-command-nav .admin-icon {
  width: 16px;
  height: 16px;
}
.admin-command-nav {
  position: sticky;
  top: 74px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}
.admin-command-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-command-nav a:hover,
.admin-command-nav a:focus-visible {
  border-color: rgba(219, 167, 8, 0.42);
  background: #fffdf1;
  text-decoration: none;
}
.admin-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-stat {
  position: relative;
  gap: 7px;
  min-height: 144px;
  padding: 16px 16px 14px;
  overflow: hidden;
}
.admin-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--green);
  opacity: 0.72;
}
.admin-stat.needs-attention::after {
  background: #dc2626;
}
.admin-stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(6, 79, 42, 0.18);
  border-radius: 8px;
  background: #f2f8ef;
  color: var(--green);
}
.admin-stat-icon.good {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
.admin-stat-icon.warn {
  background: #fff8d7;
  border-color: rgba(219, 167, 8, 0.42);
  color: #8a6400;
}
.admin-stat.needs-attention .admin-stat-icon.warn {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
.admin-stat strong {
  letter-spacing: 0;
}
.admin-chart-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(220px, 0.7fr));
  gap: 12px;
}
.admin-chart-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.admin-chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.admin-chart-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.admin-chart-head h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 17px;
  line-height: 1.2;
}
.admin-stacked-bar {
  display: flex;
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef5ed;
}
.admin-stacked-bar span {
  min-width: 0;
}
.admin-stacked-bar .stock {
  background: var(--green);
}
.admin-stacked-bar .appointments {
  background: #2563eb;
}
.admin-stacked-bar .delivery {
  background: #16a34a;
}
.admin-stacked-bar .attention {
  background: #dc2626;
}
.admin-chart-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.admin-chart-legend div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}
.admin-chart-legend dt,
.admin-meter-list b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-chart-legend dd {
  margin: 4px 0 0;
  color: var(--green-900);
  font-size: 20px;
  font-weight: 900;
}
.admin-meter-list {
  display: grid;
  gap: 12px;
}
.admin-meter-list div {
  display: grid;
  gap: 7px;
}
.admin-meter-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.admin-meter-list em {
  color: var(--green-900);
  font-style: normal;
  font-weight: 900;
}
.admin-meter-list progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #eef5ed;
}
.admin-meter-list progress::-webkit-progress-bar {
  background: #eef5ed;
}
.admin-meter-list progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--green), var(--brand-600));
  border-radius: 999px;
}
.admin-meter-list progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--green), var(--brand-600));
  border-radius: 999px;
}
.admin-link-list strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-stock-actions .btn,
.admin-stock-actions button,
.admin-appointment-actions button,
.admin-history-actions .btn,
.admin-history-actions button {
  min-height: 38px;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid #1f2633;
  background: #0d0f13;
}
.footer-inner {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer .copyright {
  border-top: 1px solid #1f2633;
  padding: 12px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.fudge-helper {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  font-family: inherit;
}
.fudge-helper-launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  max-width: 210px;
  border: 1px solid rgba(255, 207, 46, 0.5);
  border-radius: 999px;
  background: #0b1118;
  color: #fff;
  padding: 7px 14px 7px 7px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.fudge-helper-launcher img,
.fudge-helper-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.fudge-helper-head img {
  width: 68px;
  height: 68px;
}
.fudge-helper-launcher span {
  font-weight: 900;
  white-space: nowrap;
}
.fudge-helper-panel {
  width: min(360px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 34px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #222a39;
  border-radius: 12px;
  background: #0d1118;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}
.fudge-helper-panel[hidden] {
  display: none;
}
.fudge-helper.is-open .fudge-helper-launcher {
  display: none;
}
.fudge-helper-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #1f2633;
  background: #101722;
}
.fudge-helper-disclaimer {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid #1f2633;
  background: #0b0f14;
  color: #b9c5d6;
  font-size: 12px;
  line-height: 1.35;
}
.fudge-helper-head strong,
.fudge-helper-head span {
  display: block;
}
.fudge-helper-head strong {
  color: #fff;
}
.fudge-helper-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.fudge-helper-close {
  width: 34px;
  height: 34px;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0b0f14;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}
.fudge-helper-messages {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 190px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
}
.fudge-helper-message {
  width: fit-content;
  max-width: 88%;
  border-radius: 12px;
  padding: 9px 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.45;
}
.fudge-helper-message a {
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fudge-helper-message.assistant {
  border: 1px solid #253044;
  background: #141c28;
  color: #e9eef7;
}
.fudge-helper-message.user {
  justify-self: end;
  background: var(--brand);
  color: #09120d;
  font-weight: 700;
}
.fudge-helper-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow-x: hidden;
  padding: 0 12px 10px;
}
.fudge-helper-prompts button {
  flex: 0 0 auto;
  border: 1px solid #2a3242;
  border-radius: 999px;
  background: #0b0f14;
  color: #dce5f1;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.fudge-helper-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #1f2633;
  background: #101722;
}
.fudge-helper-form input {
  min-width: 0;
  border: 1px solid #2a3242;
  border-radius: 8px;
  background: #0b0f14;
  color: #fff;
  padding: 10px;
  font: inherit;
}
.fudge-helper-form input:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.fudge-helper-form button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #09120d;
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.legal-page {
  max-width: 920px;
}

.legal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.legal-content h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legal-content p {
  color: var(--muted);
  margin: 0 0 14px;
}

.legal-content a {
  color: var(--green);
  font-weight: 700;
}

/* Car detail (showroom) */
.car-detail .detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 100%;
  overflow-x: clip;
}
.gallery {
  position: relative;
  align-self: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #0e1218;
  border: 1px solid #1d2330;
  border-radius: 14px;
  padding: 10px;
}
.gallery-frame,
.gallery-image-button {
  max-width: 100%;
  min-width: 0;
}
.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: none;
  border-radius: 10px;
}
.gallery-img.active { display: block; }
.gallery-nav {
  position: absolute;
  top: 210px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: #ffffff;
  border-color: var(--accent);
  outline: none;
}
.gallery-prev { inset-inline-start: 20px; }
.gallery-next { inset-inline-end: 20px; }
.thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.thumb {
  background: transparent;
  border: 1px solid #232a39;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
}
.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 194, 48, 0.35);
}
.thumb img { width: 100%; height: 60px; object-fit: cover; border-radius: 8px; }
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 8, 13, 0.88);
}
.gallery-lightbox-inner {
  width: min(1120px, 92vw);
  max-height: 88vh;
}
.gallery-lightbox-img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  background: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: fixed;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}
.gallery-lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}
.gallery-lightbox-prev { left: 22px; }
.gallery-lightbox-next { right: 22px; }
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: #ffffff;
  border-color: var(--accent);
  outline: none;
}
.gallery-lightbox-open {
  overflow: hidden;
}
.specs h1 { margin-top: 0; }
.showroom-price {
  display: grid;
  gap: 4px;
  margin: 16px 0 18px;
  padding: 18px;
  border: 2px solid rgba(0, 112, 60, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f2fbf5);
  box-shadow: 0 14px 32px rgba(6, 79, 42, 0.12);
}
.showroom-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showroom-price strong {
  color: var(--green-900);
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}
.why-buy-panel,
.dealer-confidence-panel,
.mot-summary-card,
.review-snippet-card {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.why-buy-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(6, 79, 42, 0.18);
  background: linear-gradient(180deg, #ffffff, #f7fbf4);
}
.why-buy-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), var(--brand));
}
.why-buy-panel h2,
.dealer-confidence-panel h2 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 18px;
}
.why-buy-panel h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 4px;
}
.why-buy-panel h2::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.why-buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.why-buy-grid a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.why-buy-grid a {
  position: relative;
  padding: 13px 13px 13px 42px;
  border-color: rgba(6, 79, 42, 0.14);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.why-buy-grid a:hover {
  border-color: rgba(6, 79, 42, 0.34);
  box-shadow: 0 10px 22px rgba(6, 79, 42, 0.08);
  transform: translateY(-1px);
}
.why-buy-grid a::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand-700);
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0 35%, transparent 38%);
}
.why-buy-grid a:first-child::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(6, 79, 42, 0.18), 0 5px 0 rgba(6, 79, 42, 0.18);
  opacity: 0;
  transform: translateY(0) scale(0.92);
  pointer-events: none;
}
.why-buy-panel.is-press-hint .why-buy-grid a:first-child {
  animation: whyBuyCardPress 1.4s ease-out 0.15s 2;
}
.why-buy-panel.is-press-hint .why-buy-grid a:first-child::after {
  animation: whyBuyPressDot 1.4s ease-out 0.15s 2;
}
@keyframes whyBuyCardPress {
  0%, 100% {
    transform: translateY(0);
    box-shadow: none;
  }
  38% {
    transform: translateY(2px);
    box-shadow: inset 0 2px 8px rgba(6, 79, 42, 0.08);
  }
  62% {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(6, 79, 42, 0.08);
  }
}
@keyframes whyBuyPressDot {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.88);
    box-shadow: 0 0 0 0 rgba(6, 79, 42, 0.24), 0 5px 0 rgba(6, 79, 42, 0.18);
  }
  18%, 70% {
    opacity: 1;
  }
  38% {
    transform: translateY(4px) scale(0.82);
    box-shadow: 0 0 0 8px rgba(6, 79, 42, 0.08), 0 1px 0 rgba(6, 79, 42, 0.16);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 18px rgba(6, 79, 42, 0), 0 5px 0 rgba(6, 79, 42, 0);
  }
}
.why-buy-grid span,
.dealer-confidence-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.why-buy-grid span {
  color: var(--green);
  letter-spacing: 0;
  text-transform: uppercase;
}
.why-buy-grid strong,
.dealer-confidence-list strong {
  color: var(--text);
  line-height: 1.25;
}
.why-buy-grid strong {
  font-size: 15px;
}
.why-buy-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.dealer-confidence-panel {
  display: grid;
  gap: 13px;
  border-color: rgba(6, 79, 42, 0.2);
  background: linear-gradient(135deg, #073f26, #0f5f39);
  color: #fff;
}
.dealer-confidence-head {
  display: grid;
  gap: 6px;
}
.dealer-confidence-head span {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 207, 46, 0.55);
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.dealer-confidence-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.dealer-confidence-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}
.dealer-confidence-list {
  display: grid;
  gap: 8px;
}
.dealer-confidence-list div {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 10px 10px 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.dealer-confidence-list div::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #102018;
  font-size: 11px;
  font-weight: 900;
}
.dealer-confidence-list strong {
  color: #fff;
}
.dealer-confidence-list span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}
.mot-summary-card {
  display: grid;
  gap: 12px;
  border-left: 6px solid #00703c;
}
.mot-summary-card > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.mot-summary-card > div > strong {
  display: block;
  color: #00703c;
  font-size: 22px;
}
.mot-summary-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.mot-summary-card dl div {
  padding: 9px;
  border-radius: 8px;
  background: #f3f2f1;
}
.mot-summary-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.mot-summary-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 900;
}
#vehicle-photos,
#vehicle-description,
#vehicle-specs,
#vehicle-mot,
#vehicle-history,
#vehicle-running-costs,
#vehicle-dealer-confidence {
  scroll-margin-top: 92px;
}
.vehicle-source-highlight {
  animation: vehicleSourceHighlight 3s ease-out;
}
@keyframes vehicleSourceHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 207, 46, 0.95), 0 0 0 0 rgba(0, 112, 60, 0.32);
    outline: 3px solid rgba(255, 207, 46, 0.95);
  }
  48% {
    box-shadow: 0 0 0 10px rgba(255, 207, 46, 0.32), 0 0 0 18px rgba(0, 112, 60, 0.12);
    outline: 3px solid rgba(255, 207, 46, 0.88);
  }
  100% {
    box-shadow: var(--shadow-sm);
    outline: 3px solid rgba(255, 207, 46, 0);
  }
}
.common-defects-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(6, 79, 42, 0.16);
  border-radius: 8px;
  background: #fff;
}
.common-defects-head {
  display: grid;
  gap: 3px;
}
.common-defects-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.common-defects-head h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.05rem;
}
.common-defects-list {
  display: grid;
  gap: 8px;
}
.common-defects-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.common-defects-list strong {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text);
  font-size: 14px;
}
.common-defect-info {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(6, 79, 42, 0.26);
  border-radius: 50%;
  background: #fffdf1;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.common-defect-info:hover {
  border-color: var(--green);
  background: var(--brand);
}
.common-defect-status {
  align-self: start;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 50%;
  background: rgba(6, 79, 42, 0.08);
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.common-defect-status.is-tick {
  background: #e8f7ed;
  color: #0a7a36;
}
.common-defect-status.is-muted {
  width: auto;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}
.common-defects-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.common-defect-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: 0;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.common-defect-dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
}
.common-defect-dialog-inner {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
.common-defect-dialog h3 {
  margin: 0;
  padding-right: 34px;
  color: var(--green-900);
  font-size: 20px;
}
.common-defect-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.common-defect-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.review-snippet-card {
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, #fff, #fffdf1);
}
.review-snippet-stars {
  color: var(--brand-700);
  font-size: 18px;
  letter-spacing: 0;
}
.review-snippet-card blockquote {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}
.review-snippet-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.spec-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 6px; }
.vehicle-description {
  margin: 0 0 18px;
  padding: 16px;
  border-left: 6px solid var(--brand);
  background: #fffdf1;
  color: var(--ink);
  line-height: 1.7;
}
.vehicle-description-desktop {
  margin: 10px 0 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111827;
}
.vehicle-description-mobile {
  display: none;
}
.specs {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.vehicle-detail-stack {
  min-width: 0;
  display: block;
  column-count: 2;
  column-gap: 24px;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
}
.vehicle-detail-stack > * {
  break-inside: avoid;
  margin: 0 0 16px;
}
.specs-actions {
  grid-row: 2;
}
.vehicle-description-open {
  display: none;
}
.vehicle-description-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.vehicle-description-dialog::backdrop {
  background: rgba(8, 13, 11, 0.58);
}
.vehicle-description-dialog-inner {
  display: grid;
  max-height: inherit;
}
.vehicle-description-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.vehicle-description-dialog-head h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 20px;
}
.vehicle-description-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--green-900);
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.vehicle-description-dialog-body {
  overflow: auto;
  padding: 18px;
  color: var(--text);
  line-height: 1.75;
}
.mot-clean-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 6px solid #00703c;
  background: #e9f6ef;
  color: #0b0c0c;
  font-size: 14px;
}
.mot-clean-note strong {
  color: #00703c;
}
.running-costs {
  margin: 18px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.running-costs summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 14px 14px 38px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--surface));
  cursor: pointer;
  color: var(--green-900);
  font-weight: 800;
}
.running-costs summary::-webkit-details-marker {
  display: none;
}
.running-costs summary::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--green);
  transform: translateY(-50%);
  transition: transform .18s ease;
}
.running-costs[open] summary {
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}
.running-costs[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.running-costs summary span {
  min-width: 0;
}
.running-costs summary strong {
  flex: 0 0 auto;
  color: var(--green-900);
  font-size: 18px;
}
.running-costs-teaser {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.blurred-cost {
  filter: blur(3px);
  user-select: none;
}
.running-costs.has-revealed-cost .blurred-cost {
  filter: none;
  user-select: auto;
}
.running-costs-body {
  padding: 0 14px 14px;
}
.running-costs-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.running-mileage-control {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-900);
  font-weight: 800;
}
.running-mileage-control input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.running-costs dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.running-costs dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1.3fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.running-costs dt {
  color: var(--text);
  font-weight: 800;
}
.running-costs dd {
  display: grid;
  gap: 4px;
  margin: 0;
}
.running-costs dd strong {
  color: var(--green);
}
.running-costs dd span,
.running-costs-source {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.running-insurance-band {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.running-insurance-band span {
  color: var(--text);
  font-weight: 800;
}
.running-insurance-band strong {
  color: var(--green);
}
.running-cost-help,
.running-cost-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--green-900);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.running-cost-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(460px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  overflow: auto;
}
.running-cost-dialog::backdrop {
  background: rgba(10, 18, 14, 0.48);
}
.running-cost-dialog-inner {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px;
}
.running-cost-dialog h3 {
  margin: 0;
  color: var(--green-900);
}
.running-cost-dialog p {
  margin: 0;
  color: var(--muted);
}
.running-cost-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.running-costs-total {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.running-costs-total div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.running-costs-total span {
  color: var(--green-900);
  font-weight: 800;
}
.running-costs-total strong {
  color: var(--green);
  font-size: 20px;
  white-space: nowrap;
}
.vehicle-history {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.vehicle-history summary {
  cursor: pointer;
  padding: 14px;
  color: var(--green-900);
  font-weight: 800;
}
.history-block {
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.history-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.history-note {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.history-note:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.history-note span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.history-note p {
  margin: 6px 0 0;
  color: var(--muted);
}
.mot-history-block {
  background: #f3f2f1;
  border-color: #b1b4b6;
  color: #0b0c0c;
}
.mot-history-block h3 {
  color: #0b0c0c;
}
.mot-test {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #b1b4b6;
  border-left: 8px solid #505a5f;
  border-radius: 0;
  background: #fff;
}
.vehicle-history.is-mot-preview .mot-history-block .mot-test:nth-of-type(n+2) {
  display: none;
}
.mot-test.pass {
  border-left-color: #00703c;
}
.mot-test.fail {
  border-left-color: #d4351c;
}
.mot-test p {
  margin: 8px 0 0;
  color: #505a5f;
}
.mot-test-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.mot-test-head strong {
  display: block;
  color: #0b0c0c;
  font-size: 18px;
}
.mot-date-label {
  display: block;
  margin: 0 0 2px;
  color: #505a5f;
  font-size: 13px;
  font-weight: 700;
}
.mot-test-head .mot-mileage {
  display: block;
  margin-top: 4px;
  color: #505a5f;
}
.mot-test-head mark {
  min-width: 64px;
  padding: 7px 10px;
  background: #505a5f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}
.mot-test-head mark.pass {
  background: #00703c;
  color: #fff;
  box-shadow: inset 0 0 0 2px #00703c;
}
.mot-test-head mark.fail {
  background: #d4351c;
  color: #fff;
  box-shadow: inset 0 0 0 2px #d4351c;
}
.mot-no-advisories {
  padding: 10px 12px;
  border-left: 5px solid #00703c;
  background: #e9f6ef;
  color: #0b0c0c !important;
  font-weight: 700;
}
.mot-history-reveal {
  display: none;
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed #b1b4b6;
  background: #fff;
}
.vehicle-history.is-mot-preview .mot-history-reveal {
  display: flex;
  justify-content: center;
}
.mot-history-reveal .btn {
  min-width: 180px;
}
.mot-defect-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.mot-defect {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-top: 10px;
  border-top: 1px solid #b1b4b6;
}
.mot-defect span {
  display: inline-block;
  margin-bottom: 4px;
  color: #d4351c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.mot-defect p {
  margin: 0;
  color: #0b0c0c;
}
.fix-note-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #1d70b8;
  background: #1d70b8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.dealer-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #0f131a;
  border: 1px solid #1f2633;
}
.vehicle-trust-card {
  display: grid;
  gap: 10px;
}
.vehicle-trust-card h3,
.vehicle-trust-card p {
  margin: 0;
}
.vehicle-trust-card p {
  color: var(--muted);
}
.similar-vehicles-section {
  margin-top: 28px;
}
.similar-vehicle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-enquiry-bar {
  display: none;
}
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.public-admin-return-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.public-admin-return-row .back-link {
  margin-bottom: 0;
}
.admin-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #202838;
  border-radius: 6px;
  background: #0d1118;
  color: #ffcf2e;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(6, 79, 42, 0.12);
}
.admin-return-button:hover {
  color: #ffffff;
  text-decoration: none;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-actions .back-link {
  margin-bottom: 0;
}

.empty {
  padding: 28px;
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 14px;
}

/* Stock listing */
.stock-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}
.stock-page-head h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.1;
}
.stock-page-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.stock-filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: var(--panel);
  border: 1px solid #1d2330;
  border-radius: 14px;
}
.stock-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.stock-filters input,
.stock-filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #2a3242;
  border-radius: 10px;
  background: #0d1015;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.stock-filters input:focus,
.stock-filters select:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}
.filter-actions {
  display: flex;
  gap: 8px;
}
.filter-actions .btn {
  min-height: 46px;
  white-space: nowrap;
  cursor: pointer;
}
.stock-results-section {
  padding-top: 24px;
}
.stock-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.stock-meta div {
  min-width: 0;
}
.stock-meta dt {
  color: var(--muted);
  font-size: 12px;
}
.stock-meta dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.page-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2a3242;
  color: var(--text);
  background: #0d1015;
}
.page-link.active {
  color: #0b0d10;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}
.page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Bright corporate refresh */
a {
  color: var(--green);
}
a:hover {
  color: var(--brand-700);
}

.topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(6, 79, 42, 0.12);
  box-shadow: 0 10px 30px rgba(6, 79, 42, 0.07);
}
.brand,
.nav a {
  color: var(--green-900);
}
.nav a {
  font-weight: 700;
}
.logo {
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 79, 42, 0.14);
}
.nav .cta,
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ffe579);
  color: #183219;
  border-color: rgba(219, 167, 8, 0.4);
  box-shadow: 0 12px 26px rgba(255, 207, 46, 0.32);
}
.btn {
  border-color: var(--line);
  border-radius: 10px;
  font-weight: 800;
}
.btn-outline {
  background: #ffffff;
  color: var(--green);
  border-color: rgba(6, 79, 42, 0.24);
  box-shadow: 0 10px 22px rgba(6, 79, 42, 0.06);
}
.btn-outline:hover {
  border-color: var(--brand-600);
  color: var(--green-900);
}
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.hero {
  border-bottom: 1px solid rgba(6, 79, 42, 0.12);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 248, 238, 0.94) 50%, rgba(236, 248, 232, 0.98) 50.2%, rgba(255, 250, 222, 0.92) 100%)
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--green), var(--brand), var(--green));
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 79, 42, 0.09), transparent 32%),
    repeating-linear-gradient(135deg, rgba(6, 79, 42, 0.045) 0 1px, transparent 1px 22px);
}
.eyebrow {
  color: var(--green);
}
.hero h1,
.stock-page-head h1,
.service-intro h1,
.checkout-summary h1,
.admin-hero-bar h1,
.specs h1 {
  color: var(--green-900);
}
.hero p {
  color: #4d5d57;
}
.hero-logo,
.hero-panel-logo {
  box-shadow: 0 20px 50px rgba(6, 79, 42, 0.16);
}
.hero-panel-logo {
  box-shadow: none;
}
.hero-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-stripe {
  background: linear-gradient(90deg, var(--green), #0d6c3b);
  border: 0;
  color: #fff;
}
.contact-label {
  color: var(--brand);
}
.contact-grid p,
.contact-grid a {
  color: #fff;
}

.section {
  position: relative;
}
.section-head h2 {
  color: var(--green-900);
}
.section-head p,
.stock-page-head p:not(.eyebrow),
.service-intro > p:not(.eyebrow),
.delivery-note,
.delivery-result,
.booking-dialog p {
  color: var(--muted);
}

.card,
.review,
.news,
.service-card,
.enquiry-panel,
.gallery,
.dealer-card,
.empty,
.stock-filters,
.vehicle-history,
.booking-dialog,
.delivery-map-panel,
.jdv-panel,
.jdv-list,
.jdv-tag-panel,
.admin-panel,
.admin-stat,
.admin-account-row,
.admin-appointment-dialog {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow);
}
.card-media,
.card-img,
.checkout-summary-image,
.delivery-map-panel,
.admin-image-preview img,
.admin-stock-thumb {
  background: #edf4ed;
  border-color: var(--line);
}
.card-price,
.cost-summary .total,
.admin-calendar-cost,
.admin-appointment-actions strong,
.admin-count-pill,
.admin-price-pill {
  color: var(--green);
}
.stock-category,
.admin-count-pill,
.admin-type-pill,
.admin-status-pill,
.admin-price-pill,
.admin-calendar-type,
.admin-doc-row a {
  background: #f7fbf5;
  border-color: var(--line);
  color: var(--green-900);
}
.stock-category.premium {
  background: #fff8d7;
  border-color: rgba(219, 167, 8, 0.45);
  color: #8a6400;
}
.stock-category.sold,
.admin-status-pill.confirmed {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
.stock-category.trade-sale {
  background: rgba(255, 207, 46, 0.24);
  border-color: rgba(219, 167, 8, 0.42);
  color: var(--green-900);
}
.stock-category.delisted,
.admin-status-pill.attention,
.admin-warning-text {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text) !important;
}
.reserved-card {
  border-color: rgba(219, 167, 8, 0.48);
}
.reserved-media {
  position: relative;
  overflow: hidden;
}
.reserved-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.18);
}
.reserved-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-18deg);
  padding: 8px 18px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(6, 79, 42, 0.84);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.reserved-watermark.small {
  padding: 4px 8px;
  border-width: 2px;
  font-size: 10px;
}
.reserved-listing-note,
.reserved-detail-note {
  padding: 10px 12px;
  border: 1px solid rgba(219, 167, 8, 0.44);
  border-radius: 8px;
  background: #fff8d7;
  color: #5f4300;
  font-size: 13px;
  font-weight: 800;
}
.reserved-detail-note {
  margin: 10px 0 0;
}
.gallery-frame {
  display: none;
  border-radius: 10px;
}
.gallery-frame.active {
  display: block;
}
.gallery-frame .gallery-img {
  display: block;
}
.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.68;
  cursor: not-allowed;
  pointer-events: none;
}
.badge {
  background: #f6faf4;
  border-color: var(--line);
  color: #4d5d57;
}
.premium-selection-card {
  border-color: rgba(219, 167, 8, 0.4);
}
.premium-selection-strip {
  color: #1e1a05;
}

.service-form input,
.service-form select,
.service-form textarea,
.stock-filters input,
.stock-filters select,
.admin-history-note-form textarea,
.admin-review-image-actions input,
.admin-photo-upload input,
.admin-delist-form select,
.admin-delist-form input,
.jdv-form input,
.jdv-form select,
.jdv-inline-form select,
.jdv-settings-form input,
.jdv-settings-form select,
.admin-upload-form input[type="file"],
.admin-account-form input,
.admin-account-inline-form input,
.admin-inline-details input,
.admin-inline-details select,
.login-form input,
.address-result {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(6, 79, 42, 0.03);
}
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus,
.stock-filters input:focus,
.stock-filters select:focus,
.admin-history-note-form textarea:focus,
.admin-review-image-actions input:focus,
.admin-photo-upload input:focus,
.admin-delist-form select:focus,
.admin-delist-form input:focus,
.jdv-form input:focus,
.jdv-form select:focus,
.jdv-inline-form select:focus,
.jdv-settings-form input:focus,
.jdv-settings-form select:focus,
.admin-upload-form input:focus,
.admin-account-form input:focus,
.admin-account-inline-form input:focus,
.admin-inline-details input:focus,
.admin-inline-details select:focus,
.login-form input:focus,
.address-result:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand-600);
}
.form-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
.success-message,
.stripe-panel {
  background: #fff9d8;
  border-color: rgba(219, 167, 8, 0.35);
  color: var(--green-900);
}
.mot-fix-fieldset,
.option-fieldset {
  border-color: var(--line);
}

.cost-summary div,
.history-note,
.mot-test,
.admin-document-links,
.manual-reg-form,
.admin-delist-form,
.footer .copyright,
.footer {
  border-color: var(--line);
}
.delivery-map-fallback {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
}
.address-result:hover {
  border-color: var(--brand-600);
}

.stock-carousel-btn {
  background: #ffffff;
  border-color: rgba(6, 79, 42, 0.22);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}
.page-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--green-900);
}
.page-link.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.thumb,
.jdv-tag,
.jdv-drop-zone,
.jdv-row,
.jdv-job,
.jdv-settings-form,
.admin-appointment-item,
.admin-stock-row,
.admin-detail-grid section,
.admin-link-list a,
.admin-inline-details form,
.admin-document-links a {
  background: #fbfdf8;
  border-color: var(--line);
}
.thumb:hover,
.admin-appointment-item:hover,
.admin-appointment-item:focus-visible,
.admin-link-list a:hover,
.admin-doc-row a:hover,
.jdv-tag:hover {
  background: #fffdf1;
  border-color: rgba(219, 167, 8, 0.42);
}
.jdv-drop-zone {
  border-color: #cbd9cd;
}
.jdv-drop-zone.is-over {
  background: #fff9d8;
}

.admin-page,
.admin-topbar {
  background: var(--bg);
}
.admin-topbar {
  background: rgba(255, 255, 255, 0.9);
}
.admin-dialog-head {
  background: #ffffff;
  border-bottom-color: var(--line);
}
.admin-dialog-close,
.admin-inline-details summary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--green-900);
}
.admin-appointment-dialog::backdrop,
.booking-dialog::backdrop {
  background: rgba(20, 35, 29, 0.42);
}
.admin-sale-dialog {
  background: #ffffff;
  color: #111827;
  border-color: var(--line);
}
.admin-sale-dialog .admin-dialog-head,
.admin-sale-dialog .admin-sale-form,
.admin-sale-dialog .admin-choice-field,
.admin-sale-dialog .admin-checkbox-row,
.admin-sale-dialog .admin-installment-panel {
  background: #ffffff;
  color: #111827;
}
.admin-sale-dialog .admin-dialog-head h2,
.admin-sale-dialog .admin-choice-field legend,
.admin-sale-dialog .admin-installment-head h3,
.admin-sale-dialog .admin-installment-summary strong {
  color: #111827;
}
.admin-sale-dialog .admin-sale-form label,
.admin-sale-dialog .admin-installment-head p,
.admin-sale-dialog .admin-installment-summary {
  color: #374151;
}
.admin-sale-dialog .admin-sale-form input {
  background: #ffffff;
  border-color: #9ca3af;
  color: #111827;
}
.admin-sale-dialog .admin-checkbox-row input {
  width: auto;
}
.admin-sale-dialog .admin-choice-field,
.admin-sale-dialog .admin-installment-panel {
  border-color: #d1d5db;
}
.admin-sale-dialog .admin-sale-form input:focus {
  outline: 2px solid rgba(6, 79, 42, 0.22);
  border-color: var(--green);
}
.admin-sale-dialog .admin-sale-error,
.admin-sale-dialog .admin-installment-summary strong.attention {
  color: #b91c1c;
}

.analytics-tabs {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.analytics-tabs a,
.analytics-mini-grid article,
.analytics-event,
.analytics-speed select {
  background: #ffffff;
  border-color: var(--line);
  color: var(--green-900);
}
.analytics-tabs a:hover {
  background: #fffdf1;
  border-color: rgba(219, 167, 8, 0.42);
  color: var(--green-900);
}
.analytics-mini-grid strong,
.analytics-section-details > summary strong,
.analytics-journey,
.analytics-event > strong {
  color: var(--green-900);
}
.analytics-playback-stage-wrap {
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(6, 79, 42, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(6, 79, 42, 0.06) 1px, transparent 1px),
    #f8fbf5;
  background-size: 32px 32px;
}
.analytics-dashboard {
  gap: 18px;
}
.analytics-hero-bar {
  align-items: center;
  padding-bottom: 2px;
}
.analytics-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.analytics-context-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #506070;
  font-size: 12px;
  font-weight: 800;
}
.analytics-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.analytics-kpi-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon note";
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.analytics-kpi-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f7ef;
  color: var(--green);
}
.analytics-kpi-card.info .analytics-kpi-icon {
  background: #eef6ff;
  color: #2563eb;
}
.analytics-kpi-card.good .analytics-kpi-icon {
  background: #ecfdf3;
  color: #15803d;
}
.analytics-kpi-card.warn .analytics-kpi-icon {
  background: #fff7ed;
  color: #c2410c;
}
.analytics-icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.analytics-kpi-card span {
  grid-area: label;
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.analytics-kpi-card strong {
  grid-area: value;
  min-width: 0;
  color: #10201a;
  font-size: 30px;
  line-height: 1.05;
}
.analytics-kpi-card small {
  grid-area: note;
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}
.analytics-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 14px;
}
.analytics-chart-panel {
  display: grid;
  gap: 12px;
}
.analytics-split-bar {
  height: 16px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.analytics-split-bar span {
  display: block;
  min-width: 0;
}
.analytics-split-bar .good,
.analytics-legend .good,
.analytics-bar-row i,
.analytics-mini-grid article i {
  background: #16a34a;
}
.analytics-split-bar .warn,
.analytics-legend .warn {
  background: #f97316;
}
.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}
.analytics-legend span,
.analytics-quick-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.analytics-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.analytics-quick-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.analytics-quick-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label";
  column-gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: #10201a;
}
.analytics-quick-list span {
  grid-area: icon;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--green);
}
.analytics-quick-list span .analytics-icon-svg {
  width: 16px;
  height: 16px;
}
.analytics-quick-list strong {
  grid-area: value;
  font-size: 22px;
  line-height: 1;
}
.analytics-quick-list small {
  grid-area: label;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.analytics-bar-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.analytics-bar-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: #10201a;
}
.analytics-bar-row span,
.analytics-bar-row strong {
  position: relative;
  z-index: 1;
}
.analytics-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.analytics-bar-row strong {
  color: var(--green);
}
.analytics-bar-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
}
.analytics-mini-grid article {
  position: relative;
  overflow: hidden;
}
.analytics-mini-grid article i {
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
}
.analytics-section-details {
  box-shadow: var(--shadow-sm);
}
.analytics-section-details > summary {
  min-height: 48px;
}
.analytics-section-details > summary::after {
  content: "Open";
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.analytics-section-details[open] > summary::after {
  content: "Close";
}
.analytics-section-details > summary .admin-count-pill {
  margin-left: auto;
}
.analytics-table th {
  white-space: nowrap;
}
.analytics-table td {
  line-height: 1.4;
}
.analytics-row-action {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.analytics-visitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.analytics-visitor-summary article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}
.analytics-visitor-summary span,
.analytics-visitor-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-visitor-summary strong {
  color: var(--green-900);
  font-size: 24px;
  line-height: 1.05;
}
.analytics-timeline-list {
  display: grid;
  gap: 10px;
}
.analytics-timeline-list h3 {
  position: sticky;
  top: 126px;
  z-index: 2;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  font-size: 13px;
  text-transform: uppercase;
}
.analytics-timeline-item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.analytics-timeline-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.analytics-timeline-item h4,
.analytics-timeline-item p {
  margin: 0;
}
.analytics-timeline-item h4 {
  margin-top: 8px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.analytics-timeline-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer {
  background: linear-gradient(180deg, #ffffff, #f4f8ef);
}
.footer a {
  color: var(--green);
}
.footer a:hover {
  color: var(--brand-700);
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
}
.login-form {
  display: grid;
  gap: 12px;
}
.login-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}
.login-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font: inherit;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 40vw);
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
  }
  .hero-panel {
    width: clamp(360px, 42vw, 480px);
    min-height: clamp(360px, 42vw, 480px);
  }
}
@media (max-width: 980px) {
  .admin-sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #202838;
  }
  .admin-sidebar-collapsed .admin-sidebar {
    width: auto;
  }
  .admin-sidebar-collapsed .admin-shell-main {
    margin-left: 0;
  }
  .admin-sidebar-collapsed .admin-sidebar-head {
    grid-template-columns: minmax(0, 1fr) 34px;
    padding: 10px 8px 10px 14px;
  }
  .admin-sidebar-collapsed .admin-sidebar-brand {
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: stretch;
  }
  .admin-sidebar-collapsed .admin-sidebar-brand span,
  .admin-sidebar-collapsed .admin-sidebar-nav a,
  .admin-sidebar-collapsed .admin-sidebar-footer a {
    font-size: inherit;
    text-align: left;
  }
  .admin-sidebar-collapsed .admin-sidebar-toggle {
    margin: 0;
  }
  .admin-sidebar-collapsed .admin-sidebar-toggle span {
    transform: none;
  }
  .admin-sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-shell-main {
    margin-left: 0;
    padding: 18px 14px 28px;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-chart-grid { grid-template-columns: 1fr; }
  .analytics-dashboard-grid { grid-template-columns: 1fr; }
  .analytics-quick-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-workspace { grid-template-columns: 1fr; }
  .analytics-grid-two { grid-template-columns: 1fr; }
  .admin-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-appointment-item { grid-template-columns: 122px minmax(0, 1fr); }
  .admin-appointment-actions {
    grid-column: 2;
    justify-items: start;
  }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .stock-preview-grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(min(100%, 290px), calc((100% - 18px) / 2));
  }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .review-preview-grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(min(100%, 300px), calc((100% - 18px) / 2));
  }
  .news-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .car-detail .detail-grid { grid-template-columns: 1fr; }
  .specs {
    grid-column: auto;
    grid-row: auto;
  }
  .vehicle-detail-stack {
    grid-column: auto;
    grid-row: auto;
    column-count: 1;
  }
  .vehicle-description-desktop {
    display: none;
  }
  .vehicle-description-mobile {
    position: relative;
    display: block;
    overflow: hidden;
  }
  .vehicle-description-mobile.is-collapsed .vehicle-description-mobile-text {
    max-height: 17em;
    overflow: hidden;
  }
  .vehicle-description-mobile.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 118px;
    background:
      linear-gradient(180deg, rgba(255, 253, 241, 0), rgba(255, 253, 241, 0.55) 38%, #fffdf1 78%),
      linear-gradient(180deg, rgba(255, 253, 241, 0), #fffdf1);
    backdrop-filter: blur(1.2px);
    mask-image: linear-gradient(180deg, transparent 0%, black 34%, black 100%);
    pointer-events: none;
  }
  .vehicle-description-mobile.is-collapsed .vehicle-description-open {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-900);
    font: inherit;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
  }
  .why-buy-grid,
  .mot-summary-card dl,
  .similar-vehicle-grid {
    grid-template-columns: 1fr;
  }
  .service-page { grid-template-columns: 1fr; }
  .checkout-page { grid-template-columns: 1fr; }
  .admin-review-grid { grid-template-columns: 1fr; }
  .admin-review-edit-summary,
  .admin-review-edit-grid { grid-template-columns: 1fr; }
  .admin-review-edit-actions,
  .admin-review-delete-form { justify-content: stretch; }
  .admin-review-edit-actions .btn,
  .admin-review-delete-form .btn { width: 100%; }
  .jdv-drag-control,
  .jdv-board,
  .jdv-grid,
  .jdv-create-grid { grid-template-columns: 1fr; }
  .jdv-vehicle-drops { grid-template-columns: 1fr; }
  .jdv-row,
  .jdv-job { grid-template-columns: 1fr; align-items: start; }
  .jdv-settings-form { grid-template-columns: 1fr; align-items: stretch; }
  .jdv-settings-check { min-height: 34px; }
  .admin-appointment-decision-form {
    grid-template-columns: 1fr;
  }
  .admin-account-form,
  .admin-account-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-subscriber-filter { grid-template-columns: 1fr 1fr; }
  .admin-stock-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stock-filter-actions { grid-column: 1 / -1; }
  .stock-filters { grid-template-columns: repeat(2, 1fr); }
  .filter-search,
  .filter-actions { grid-column: 1 / -1; }
  .stock-results-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-panel {
    width: min(72vw, 520px);
    min-height: clamp(320px, 60vw, 480px);
  }
}
@media (max-width: 640px) {
  .topbar-inner { height: 64px; }
  .brand-text { display: none; }
  .nav { gap: 10px; font-size: 14px; }
  .nav .cta { display: none; }
  .admin-listing-facts-head { display: none; }
  .admin-listing-fact-row { grid-template-columns: 1fr; }
  .admin-listing-fact-actions { justify-content: stretch; }
  .admin-listing-fact-actions .btn { flex: 1 1 130px; }
  .admin-listing-fact-edit-grid { grid-template-columns: 1fr; }
  .admin-reel-grid,
  .admin-reel-details dl div,
  .content-engine-card,
  .content-engine-filter {
    grid-template-columns: 1fr;
  }
  .admin-reel-preview,
  .admin-reel-empty,
  .content-engine-media video,
  .content-engine-media img,
  .content-engine-empty {
    max-width: 260px;
  }
  .admin-stock-filter { grid-template-columns: 1fr; }
  .admin-stock-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-common-defects-head { display: none; }
  .admin-common-defect-row { grid-template-columns: 1fr; }
  .admin-common-defect-actions { justify-content: stretch; }
  .admin-common-defect-actions .btn { flex: 1 1 130px; }
  .admin-common-defect-edit-grid { grid-template-columns: 1fr; }
  .local-trust-head { align-items: flex-start; flex-direction: column; }
  .local-review-slider { grid-template-columns: minmax(0, 1fr); }
  .local-review-nav { display: none; }
  .local-review-track { grid-auto-columns: minmax(240px, 88%); }
  .admin-review-row { grid-template-columns: 1fr; }
  .admin-dashboard { padding-top: 18px; }
  .admin-command-nav {
    top: 64px;
    margin-inline: -8px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    scroll-snap-type: x proximity;
  }
  .admin-command-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .admin-hero-bar,
  .admin-panel-head,
  .admin-appointment-item,
  .admin-history-row,
  .admin-stock-row {
    grid-template-columns: 1fr;
  }
  .admin-hero-actions {
    justify-content: stretch;
  }
  .admin-hero-actions .btn,
  .admin-upload-form .btn {
    width: 100%;
    text-align: center;
  }
  .admin-stat-grid,
  .admin-chart-grid,
  .admin-chart-legend,
  .admin-subscriber-filter,
  .analytics-overview-grid,
  .analytics-quick-list,
  .admin-side-stack,
  .analytics-mini-grid {
    grid-template-columns: 1fr;
  }
  .admin-stat {
    min-height: 128px;
  }
  .admin-chart-head {
    display: grid;
  }
  .analytics-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x proximity;
  }
  .analytics-tabs a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .analytics-kpi-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }
  .analytics-kpi-icon {
    width: 36px;
    height: 36px;
  }
  .analytics-context-row span {
    flex: 1 1 100%;
    justify-content: center;
  }
  .analytics-section-details > summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .analytics-section-details > summary .admin-count-pill {
    margin-left: 0;
  }
  .analytics-section-details > summary::after {
    width: 100%;
    justify-content: center;
  }
  .analytics-event {
    grid-template-columns: 1fr;
  }
  .analytics-event > strong {
    font-size: 12px;
  }
  .analytics-visitor-summary,
  .analytics-timeline-item {
    grid-template-columns: 1fr;
  }
  .analytics-timeline-list h3 {
    top: 112px;
  }
  .admin-appointment-actions,
  .admin-stock-actions,
  .admin-history-actions {
    grid-column: auto;
    justify-items: stretch;
    width: 100%;
  }
  .admin-login-warning {
    grid-template-columns: 1fr;
  }
  .admin-stock-actions .btn,
  .admin-stock-actions button,
  .admin-history-actions .btn,
  .admin-history-actions button,
  .admin-appointment-actions button,
  .admin-inline-details {
    width: 100%;
    min-width: 0;
  }
  .admin-dialog-head,
  .admin-dialog-actions,
  .admin-detail-list div {
    grid-template-columns: 1fr;
  }
  .admin-dialog-head,
  .admin-dialog-actions {
    display: grid;
    justify-content: stretch;
  }
  .admin-sale-grid,
  .admin-installment-row {
    grid-template-columns: 1fr;
  }
  .admin-installment-head,
  .admin-installment-summary {
    display: grid;
    justify-content: stretch;
  }
  .admin-dialog-actions .btn,
  .admin-dialog-actions button {
    width: 100%;
  }
  .admin-stock-thumb {
    width: 100%;
    max-height: 180px;
  }
  .hero {
    min-height: auto;
  }
  .hero::after {
    height: 7px;
  }
  .hero-content {
    min-height: auto;
    gap: 30px;
    padding-top: 42px;
    padding-bottom: 56px;
  }
  .hero-logo { width: 76px; height: 76px; }
  .hero h1 { font-size: 32px; }
  .hero p {
    margin-bottom: 28px;
    font-size: 16px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-panel {
    min-height: 0;
    width: min(92vw, 390px);
    min-height: clamp(300px, 82vw, 420px);
    margin: 2px auto 0;
    padding: 0;
    aspect-ratio: 1 / 1;
  }
  .hero-panel-logo {
    object-fit: contain;
    background: transparent;
  }
  .showroom-price {
    padding: 16px;
  }
  .showroom-price strong {
    font-size: 40px;
    overflow-wrap: anywhere;
  }
  .gallery-img {
    height: 280px;
  }
  .gallery-nav {
    top: 148px;
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
  .gallery-prev { inset-inline-start: 14px; }
  .gallery-next { inset-inline-end: 14px; }
  .gallery-lightbox {
    padding: 54px 12px 24px;
  }
  .gallery-lightbox-inner {
    width: 100%;
  }
  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .gallery-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }
  .gallery-lightbox-prev { left: 12px; }
  .gallery-lightbox-next { right: 12px; }
  .running-costs summary,
  .mot-test-head,
  .mot-defect {
    display: grid;
    grid-template-columns: 1fr;
  }
  .running-costs summary strong,
  .mot-test-head mark,
  .fix-note-link {
    justify-self: start;
  }
  .running-costs dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .running-insurance-band {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .running-insurance-band span {
    grid-column: 1 / -1;
  }
  .running-costs-total div {
    display: grid;
    gap: 2px;
  }
  .section-head-row,
  .stock-page-head {
    display: grid;
    gap: 14px;
    align-items: start;
  }
  .section-head p {
    margin-bottom: 0;
  }
  .mailing-signup {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .mailing-signup-form {
    grid-template-columns: 1fr;
  }
  .mailing-signup-form .btn {
    width: 100%;
  }
  .sold-enquiry {
    align-items: stretch;
    flex-direction: column;
  }
  .sold-enquiry-actions {
    justify-content: stretch;
  }
  .sold-enquiry-actions .btn {
    flex: 1 1 180px;
    text-align: center;
  }
  .browse-stock-link {
    width: 100%;
    justify-content: center;
    margin: 2px 0 8px;
    white-space: normal;
  }
  .contact-stripe {
    padding: 16px 0;
    background: linear-gradient(180deg, var(--green), #0a6337);
  }
  .contact-grid {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 207, 46, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(4, 38, 22, 0.18);
  }
  .contact-grid > div {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .contact-grid > div:first-child {
    border-top: 0;
  }
  .contact-label {
    margin-bottom: 7px;
    font-size: 15px;
  }
  .contact-grid p {
    line-height: 1.45;
  }
  .page-actions {
    display: grid;
    gap: 10px;
  }
  .page-actions .btn {
    width: 100%;
    text-align: center;
  }
  .footer {
    margin-top: 34px;
    padding: 18px 0 0;
  }
  .footer-inner {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(13, 52, 32, 0.08);
  }
  .footer-brand,
  .footer-links,
  .footer-contact {
    padding: 16px 0;
  }
  .footer-brand {
    align-items: flex-start;
  }
  .footer-brand p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
  }
  .footer-links,
  .footer-contact {
    border-top: 1px solid var(--line);
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .footer-contact {
    gap: 10px;
  }
  .footer a {
    overflow-wrap: anywhere;
  }
  .footer .copyright {
    margin-top: 16px;
    padding: 14px 16px 24px;
    text-align: center;
    line-height: 1.45;
  }
  .footer .copyright p {
    margin: 0;
  }
  .mobile-enquiry-bar {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(100%, -50%);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  body .mobile-enquiry-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(100% - 38px), -50%);
  }
  body .mobile-enquiry-bar.is-visible.is-open {
    transform: translate(0, -50%);
  }
  .mobile-enquiry-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-height: 104px;
    padding: 10px 5px;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--green);
    color: #fff;
    box-shadow: 0 14px 36px rgba(6, 79, 42, 0.24);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-orientation: mixed;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .mobile-enquiry-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: min(126px, 34vw);
    padding: 7px 6px 7px 7px;
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(6, 79, 42, 0.24);
  }
  .mobile-enquiry-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 7px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
  }
  .mobile-enquiry-actions a:nth-child(2) {
    background: var(--brand);
    color: #111827;
  }
  body.has-mobile-enquiry-bar {
    padding-bottom: 0;
  }
  .card-grid { grid-template-columns: 1fr; }
  .stock-preview-grid {
    grid-template-columns: none;
    grid-auto-columns: 100%;
  }
  .stock-preview-grid .card {
    min-width: 0;
    min-height: 0;
  }
  .stock-carousel > .stock-carousel-btn {
    top: 90px;
    transform: none;
  }
  .stock-carousel-prev { left: 8px; }
  .stock-carousel-next { right: 8px; }
  .review-carousel > .stock-carousel-btn {
    top: 50%;
    transform: translateY(-50%);
  }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-preview-grid {
    grid-template-columns: none;
    grid-auto-columns: 100%;
  }
  .service-form { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; }
  .stock-filters,
  .stock-results-grid { grid-template-columns: 1fr; }
  .filter-actions { flex-direction: column; }
  .filter-actions .btn { text-align: center; }
  .admin-calendar-event {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .admin-calendar-cost {
    white-space: normal;
  }
}

/* Supplied review widget artwork/layout */
.local-trust-widget {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0 0 18px;
  gap: 24px;
  background: transparent;
  border-radius: 0;
}
.local-trust-tabs {
  min-height: 76px;
  gap: 32px;
  padding: 24px 30px 0;
  border-radius: 12px 12px 0 0;
  background: #f4f4f4;
  border-bottom: 1px solid #d6d6d6;
}
.local-trust-tabs button {
  font-size: 24px;
  padding: 0 0 23px;
  border-bottom-width: 3px;
}
.local-source-pill {
  gap: 8px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  color: #000;
  font-weight: 400;
}
.local-source-pill.google img {
  width: 25px;
  height: 25px;
}
.local-source-pill.trustindex span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a976a;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.local-source-pill.verified {
  display: none;
}
.local-trust-summary {
  min-height: 94px;
  margin-top: -24px;
  padding: 21px 30px;
  border-radius: 0 0 12px 12px;
  background: #f4f4f4;
}
.local-trust-rating-line {
  gap: 10px;
  font-size: 22px;
}
.local-trust-rating-line i {
  height: 28px;
}
.local-star-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: -3px;
}
.local-star-icons img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.local-star-icons .empty-star {
  filter: grayscale(1);
  opacity: 0.28;
}
.local-write-review {
  min-width: 208px;
  padding: 13px 24px;
  border-radius: 7px;
  font-size: 22px;
}
.local-review-slider {
  min-height: 0;
}
.local-review-track {
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  padding: 0 0 14px;
}
.local-review-card {
  min-height: 350px;
  height: 350px;
  padding: 30px;
  gap: 12px;
  border-radius: 12px;
  background: #f4f4f4;
  overflow: hidden;
}
.local-review-check {
  display: none;
}
.local-review-source-mark {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.local-review-source-mark.verified {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a976a;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}
.local-review-source-mark.google img {
  width: 30px;
  height: 30px;
}
.local-review-person {
  gap: 20px;
  padding-right: 48px;
}
.local-review-person img,
.local-review-avatar {
  width: 60px;
  height: 60px;
}
.local-review-avatar {
  font-size: 28px;
}
.local-review-person strong {
  font-size: 22px;
}
.local-review-person small,
.local-review-person a {
  font-size: 20px;
}
.local-review-card > .local-review-stars:not(.local-review-stars-svg) {
  display: none;
}
.local-review-stars {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 0;
}
.local-review-stars .local-star-icons img {
  width: 22px;
  height: 22px;
}
.local-review-source-badge {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  background: #4285f4;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.local-review-card h4 {
  font-size: 23px;
  line-height: 1.25;
  display: -webkit-box;
  max-height: 2.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.local-review-card blockquote {
  font-size: 23px;
  line-height: 1.42;
  display: -webkit-box;
  max-height: 3.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.local-review-read-more {
  font-size: 21px;
}
.local-review-card p {
  display: none;
}
.local-review-nav {
  right: -24px;
  width: 50px;
  height: 50px;
  font-size: 46px;
}
.local-trust-widget.compact {
  padding: 0;
  gap: 14px;
}
.local-trust-widget.compact .local-trust-tabs {
  min-height: 48px;
  gap: 12px;
  padding: 12px 14px 0;
}
.local-trust-widget.compact .local-trust-tabs button {
  font-size: 14px;
  padding-bottom: 12px;
}
.local-trust-widget.compact .local-source-pill.google img {
  width: 70px;
}
.local-trust-widget.compact .local-source-pill.trustindex img {
  width: 88px;
}
.local-trust-widget.compact .local-trust-summary {
  min-height: 0;
  margin-top: -14px;
  padding: 12px 14px;
}
.local-trust-widget.compact .local-trust-rating-line {
  font-size: 13px;
  gap: 7px;
}
.local-trust-widget.compact .local-star-icons img {
  width: 16px;
  height: 16px;
}
.local-trust-widget.compact .local-write-review {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
}
.local-trust-widget.compact .local-review-track {
  grid-auto-columns: minmax(260px, 94%);
  gap: 14px;
}
.local-trust-widget.compact .local-review-card {
  min-height: 210px;
  height: auto;
  padding: 14px;
  gap: 8px;
}
.local-trust-widget.compact .local-review-source-mark {
  top: 14px;
  right: 14px;
}
.local-trust-widget.compact .local-review-person {
  gap: 12px;
  padding-right: 34px;
}
.local-trust-widget.compact .local-review-person img,
.local-trust-widget.compact .local-review-avatar {
  width: 36px;
  height: 36px;
}
.local-trust-widget.compact .local-review-person strong,
.local-trust-widget.compact .local-review-card h4 {
  font-size: 14px;
}
.local-trust-widget.compact .local-review-person small,
.local-trust-widget.compact .local-review-read-more {
  font-size: 14px;
}
.local-trust-widget.compact .local-review-card blockquote {
  font-size: 13px;
}

@media (max-width: 640px) {
  .local-trust-widget {
    padding-bottom: 28px;
    gap: 28px;
  }
  .local-trust-tabs {
    min-height: 66px;
    gap: 10px;
    padding: 18px 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .local-trust-tabs::-webkit-scrollbar {
    display: none;
  }
  .local-trust-tabs button {
    flex: 0 0 auto;
    font-size: 18px;
    padding-bottom: 17px;
  }
  .local-source-pill {
    flex: 0 0 auto;
  }
  .local-source-pill.google img {
    width: 92px;
  }
  .local-source-pill.trustindex img {
    width: 104px;
  }
  .local-trust-summary {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    margin-top: -28px;
    padding: 26px 24px 28px;
    gap: 18px;
  }
  .local-trust-rating-line {
    display: grid;
    grid-template-columns: auto auto 1px auto;
    gap: 9px 13px;
    align-items: center;
    font-size: 21px;
  }
  .local-rating-score {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
  }
  .local-trust-stars {
    grid-column: 2 / -1;
    grid-row: 1;
  }
  .local-rating-label {
    grid-column: 1;
    grid-row: 2;
  }
  .local-trust-rating-line i {
    grid-column: 2;
    grid-row: 2;
    height: 28px;
  }
  .local-rating-count {
    grid-column: 3 / 5;
    grid-row: 2;
  }
  .local-star-icons img {
    width: 30px;
    height: 30px;
  }
  .local-write-review {
    min-width: 0;
    width: min(100%, 340px);
    padding: 14px 18px;
    font-size: 22px;
  }
  .local-review-track {
    grid-auto-columns: 100%;
    gap: 24px;
    padding-bottom: 38px;
  }
  .local-review-viewport {
    scrollbar-color: #555 #d6d6d6;
  }
  .local-review-card {
    min-height: 0;
    height: auto;
    padding: 32px 26px 34px;
    gap: 18px;
  }
  .local-review-source-mark {
    top: 32px;
    right: 30px;
  }
  .local-review-person {
    gap: 18px;
    padding-right: 54px;
  }
  .local-review-person img,
  .local-review-avatar {
    width: 68px;
    height: 68px;
  }
  .local-review-avatar {
    font-size: 30px;
  }
  .local-review-person strong {
    font-size: 26px;
  }
  .local-review-person small {
    font-size: 22px;
  }
  .local-review-stars .local-star-icons img {
    width: 31px;
    height: 31px;
  }
  .local-review-card h4 {
    font-size: 28px;
    max-height: 2.5em;
    -webkit-line-clamp: 2;
  }
  .local-review-card blockquote {
    font-size: 26px;
    line-height: 1.45;
    max-height: 7.25em;
    -webkit-line-clamp: 5;
  }
  .local-review-read-more {
    font-size: 23px;
  }
}

/* Halloween contrast pass: remove pale-green text and controls. */
body.halloween {
  --green: #ff9b39;
  --green-900: #f4edde;
}

body.halloween a,
body.halloween .footer a {
  color: #ffd19a;
}

body.halloween a:hover,
body.halloween .footer a:hover {
  color: #fff1df;
}

body.halloween .vehicle-description-teaser {
  color: #f0e8da;
}

body.halloween .vehicle-description-teaser span {
  color: #ff9b39;
  font-weight: 900;
}

body.halloween .badge,
body.halloween .stock-category {
  color: #f8eee0;
  border-color: #735139;
  background: #29201a;
}

body.halloween .stock-category.premium {
  color: #1b0d05;
  border-color: #ffb55e;
  background: #ff9b39;
}

body.halloween .stock-category.sold,
body.halloween .stock-category.trade-sale {
  color: #fff0eb;
  border-color: #a84037;
  background: #5b1b19;
}

body.halloween .stock-carousel-btn,
body.halloween .local-review-nav {
  color: #fff4e5;
  border-color: #c95b19;
  background: #21150f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52);
}

body.halloween .stock-carousel-btn:hover,
body.halloween .local-review-nav:hover {
  color: #170b04;
  border-color: #ffb15c;
  background: #ff9b39;
}

body.halloween .stock-carousel-btn:disabled {
  color: #c8bcae;
  border-color: #4d4036;
  background: #171516;
  opacity: 0.62;
}

body.halloween .local-trust-widget a,
body.halloween .local-trust-widget button,
body.halloween .local-review-card a {
  color: #1b1b1b;
}

body.halloween .local-review-read-more,
body.halloween .local-review-person a {
  color: #7d2d07;
  font-weight: 800;
}

body.halloween .local-write-review,
body.halloween .ti-header-write-btn {
  color: #1b0d05;
  border-color: #b94b08;
  background: #ff9b39;
  font-weight: 900;
}

body.halloween .cookie-consent a {
  color: #ffbc70;
}

body.halloween :focus-visible {
  outline: 3px solid #ffae55;
  outline-offset: 3px;
}

body.halloween .btn-outline,
body.halloween .browse-stock-link,
body.halloween .card-actions .btn-outline {
  color: #fff4e8;
  border-color: #a95a2d;
  background: #171516;
  box-shadow: inset 0 0 0 1px rgba(255, 165, 82, 0.08), 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.halloween .btn-outline:hover,
body.halloween .browse-stock-link:hover,
body.halloween .card-actions .btn-outline:hover {
  color: #160b04;
  border-color: #ffb466;
  background: #ff9b39;
}

/* Halloween showroom and checkout readability */
body.halloween .showroom-price {
  border-color: #98522c;
  background: linear-gradient(145deg, #2b1710, #171416);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

body.halloween .showroom-price span,
body.halloween .eyebrow {
  color: #ffbd78;
}

body.halloween .showroom-price strong,
body.halloween .checkout-summary h1,
body.halloween .specs h1 {
  color: #fff3df;
}

body.halloween .why-buy-panel,
body.halloween .mot-summary-card,
body.halloween .common-defects-card,
body.halloween .review-snippet-card,
body.halloween .vehicle-description,
body.halloween .vehicle-description-desktop,
body.halloween .running-costs,
body.halloween .vehicle-history,
body.halloween .history-block,
body.halloween .common-defect-dialog-inner,
body.halloween .vehicle-description-dialog,
body.halloween .vehicle-description-dialog-head,
body.halloween .running-cost-dialog {
  color: #f4edde;
  border-color: #5b4031;
  background: linear-gradient(145deg, #1d1a1b, #121214);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

body.halloween .why-buy-panel::before {
  background: linear-gradient(180deg, #ff9b39, #8c271b);
}

body.halloween .why-buy-panel h2,
body.halloween .common-defects-head h2,
body.halloween .common-defect-dialog h3,
body.halloween .vehicle-description-dialog-head h2,
body.halloween .running-cost-dialog h3,
body.halloween .vehicle-history summary,
body.halloween .history-block h3 {
  color: #fff3df;
}

body.halloween .why-buy-panel h2::before {
  color: #170b04;
  background: #ff9b39;
}

body.halloween .why-buy-grid a {
  color: #f4edde;
  border-color: #60412f;
  background: #171516;
}

body.halloween .why-buy-grid a:hover {
  border-color: #c96a31;
  background: #241a17;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

body.halloween .why-buy-grid a::before {
  border-color: #ffad5b;
  background: radial-gradient(circle, #ff9b39 0 35%, transparent 38%);
}

body.halloween .why-buy-grid span,
body.halloween .common-defects-head span {
  color: #ffad5b;
}

body.halloween .why-buy-grid strong,
body.halloween .common-defects-list strong,
body.halloween .review-snippet-card blockquote,
body.halloween .running-costs dt,
body.halloween .running-insurance-band span {
  color: #f4edde;
}

body.halloween .why-buy-grid small,
body.halloween .common-defects-list p,
body.halloween .common-defect-dialog p,
body.halloween .review-snippet-card p,
body.halloween .running-costs-body p,
body.halloween .running-costs dd span,
body.halloween .running-costs-source,
body.halloween .history-note span,
body.halloween .delivery-note,
body.halloween .delivery-result,
body.halloween .stripe-panel span {
  color: #d2c7b9;
}

body.halloween .mot-summary-card {
  border-left-color: #ff9b39;
}

body.halloween .mot-summary-card > div > span,
body.halloween .mot-summary-card dt {
  color: #d2c7b9;
}

body.halloween .mot-summary-card > div > strong,
body.halloween .mot-summary-card dd,
body.halloween .running-costs dd strong,
body.halloween .running-insurance-band strong,
body.halloween .running-costs-total strong {
  color: #ffad5b;
}

body.halloween .mot-summary-card dl div,
body.halloween .running-mileage-control {
  color: #f4edde;
  border-color: #554035;
  background: #262123;
}

body.halloween .common-defects-list div,
body.halloween .running-costs dl > div,
body.halloween .running-insurance-band,
body.halloween .running-costs-total,
body.halloween .history-note {
  border-color: #4e3b31;
}

body.halloween .common-defect-info,
body.halloween .common-defect-dialog-close,
body.halloween .vehicle-description-dialog-close,
body.halloween .running-cost-help,
body.halloween .running-cost-dialog-close,
body.halloween .gallery-nav,
body.halloween .gallery-lightbox-nav {
  color: #fff3df;
  border-color: #a85b31;
  background: #1a1616;
}

body.halloween .common-defect-status,
body.halloween .common-defect-status.is-tick {
  color: #ffb465;
  background: #3a2118;
}

body.halloween .vehicle-description,
body.halloween .vehicle-description-desktop,
body.halloween .vehicle-description-dialog-body {
  color: #e8ded0;
}

body.halloween .running-costs summary {
  color: #f4edde;
  border-color: #4e3b31;
  background: #191719;
}

body.halloween .running-costs summary strong,
body.halloween .running-costs-total span {
  color: #fff3df;
}

body.halloween .running-costs summary::before {
  border-left-color: #ff9b39;
}

body.halloween .enquiry-panel {
  color: #f4edde;
  border-color: #5b4031;
  background: linear-gradient(145deg, #1d1a1b, #121214);
}

body.halloween .enquiry-panel h2,
body.halloween .checkout-form label,
body.halloween .option-fieldset legend {
  color: #f4edde;
}

body.halloween .option-fieldset {
  border-color: #5b4031;
  background: #141315;
}

body.halloween .radio-option,
body.halloween .booking-viewing-type label,
body.halloween .checkbox-option {
  color: #f4edde;
  border-color: #554035;
  background: #1b1819;
}

body.halloween .stripe-panel {
  color: #f4edde;
  border-color: #a9572b;
  background: linear-gradient(135deg, #351b12, #1b1617);
  box-shadow: inset 4px 0 0 #ff9b39;
}

body.halloween .stripe-panel strong {
  color: #ffb465;
}

body.halloween .cost-summary dt {
  color: #d2c7b9;
}

body.halloween .cost-summary dd {
  color: #f4edde;
}

body.halloween .cost-summary .total {
  color: #ffad5b;
}

body.halloween .checkout-summary-image,
body.halloween .delivery-map-panel {
  border-color: #5b4031;
  background: #171516;
}
