: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;
}

.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) auto;
  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;
}

.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 0;
}
.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;
}
.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;
}

.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-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;
}
.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;
}
.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-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-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-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-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;
}
.gallery {
  position: relative;
  background: #0e1218;
  border: 1px solid #1d2330;
  border-radius: 14px;
  padding: 10px;
}
.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 { left: 20px; }
.gallery-next { right: 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;
}
.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;
}
.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-body {
  padding: 0 14px 14px;
}
.running-costs-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.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-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;
}
.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-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);
}
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); }
.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.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-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-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) {
  .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; }
  .service-page { grid-template-columns: 1fr; }
  .checkout-page { grid-template-columns: 1fr; }
  .admin-review-grid { grid-template-columns: 1fr; }
  .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; }
  .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-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 { left: 14px; }
  .gallery-next { right: 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-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;
  }
  .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;
  }
}
