:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --ink: #12151a;
  --ink-soft: #3d4450;
  --muted: #6d7480;
  --line: rgba(18, 21, 26, 0.1);
  --copper: #b07845;
  --copper-dark: #8d5c32;
  --copper-soft: rgba(176, 120, 69, 0.12);
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(18, 21, 26, 0.08);
  --radius: 18px;
  --admin-bg: #101318;
  --admin-panel: #181d24;
  --admin-line: rgba(255, 255, 255, 0.08);
  --ok: #2f7d57;
  --danger: #b42318;
  --sold: #6b7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 241, 234, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}

.brand span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav a,
.nav button.linklike {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav a.is-active,
.nav a:hover,
.nav button.linklike:hover {
  background: var(--white);
  color: var(--ink);
}

.hero {
  padding: 72px 0 28px;
}

.eyebrow {
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 14ch;
  line-height: 1.05;
}

.hero p {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.ghost-link {
  color: var(--copper-dark);
  font-weight: 650;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.vehicle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d9d3c7;
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.badge.sold {
  background: var(--sold);
}

.brand-logo {
  width: 118px;
  height: 58px;
  object-fit: contain;
}

.brand-tagline { max-width: 220px; }

.badge.available {
  color: #fff;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.badge.reserved {
  color: #fff;
  background: rgba(0,76,255,.3);
  border: 1px solid rgba(76,130,255,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.badge.coming-soon {
  color: #fff;
  background: rgba(255,144,0,.3);
  border: 1px solid rgba(255,177,76,.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.price-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.spec {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.spec svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--copper);
}

.spec span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.services {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 48px 40px;
}

.services h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  max-width: 16ch;
}

.services .lead {
  margin: 14px 0 32px;
  color: rgba(244, 241, 234, 0.72);
  max-width: 62ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.service-card h3 {
  margin: 12px 0 8px;
  font-size: 1rem;
}

.service-card p {
  color: rgba(244, 241, 234, 0.68);
  font-size: 0.92rem;
}

.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--copper-soft);
  color: #e7c39a;
  display: grid;
  place-items: center;
}

.page-title {
  padding: 48px 0 8px;
}

.page-title h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.page-title p {
  color: var(--ink-soft);
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--copper-dark);
}

.hidden {
  display: none !important;
}

body.admin {
  background: var(--admin-bg);
  color: #e8edf3;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-side {
  border-right: 1px solid var(--admin-line);
  padding: 28px 18px;
}

.admin-side h1 {
  font-size: 1rem;
  margin-bottom: 28px;
}

.admin-side a,
.admin-side button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #c5ced8;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 4px;
}

.admin-side a.is-active,
.admin-side button.is-active,
.admin-side a:hover,
.admin-side button:hover {
  background: #232a33;
  color: #fff;
}

.admin-main {
  padding: 28px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}

.admin-top h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
}

.vehicle-list-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vehicle-list-title .title-separator { color: #6f7985; }
.vehicle-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 28px; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; color: #fff; font-family: "Manrope", Arial, sans-serif; font-size: 13px; font-weight: 800; line-height: 1; }
.vehicle-count-badge.count-total { background: #090b0e; border-color: #303740; }
.vehicle-count-badge.count-available { background: rgba(0,76,255,.48); border-color: rgba(92,139,255,.7); }
.vehicle-count-badge.count-sold { background: rgba(32,145,79,.5); border-color: rgba(74,222,128,.6); }
html[data-admin-theme="light"] .vehicle-list-title .title-separator { color: #8a9098; }
html[data-admin-theme="light"] .vehicle-count-badge.count-total { color: #fff; background: #171a1f; border-color: #343a43; }
html[data-admin-theme="light"] .vehicle-count-badge.count-available { color: #fff; background: #2563d9; border-color: #1d4ed8; }
html[data-admin-theme="light"] .vehicle-count-badge.count-sold { color: #fff; background: #23874c; border-color: #18713c; }

.form-title-vehicle::before { content: "·"; margin: 0 10px; color: #9aa6b2; }
.form-title-vehicle { color: #d9a675; }
html[data-admin-theme="light"] .form-title-vehicle { color: #8d5c32; }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.btn-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-with-icon svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
.btn-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  background: var(--copper);
  color: #1a120b;
}

.btn-ghost {
  background: #232a33;
  color: #e8edf3;
}

.btn-danger {
  background: #3a1d1d;
  color: #ffb4ab;
}

.panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  color: #9aa6b2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: #10151b;
  border: 1px solid var(--admin-line);
  color: #e8edf3;
  border-radius: 10px;
  padding: 10px 12px;
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.calc {
  background: #10151b;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--admin-line);
}

.calc span {
  display: block;
  color: #9aa6b2;
  font-size: 12px;
}

.calc strong {
  font-size: 1.2rem;
}

.fee-row {
  display: grid;
  grid-template-columns: 1fr 140px 40px;
  gap: 8px;
  margin-bottom: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--admin-line);
  font-size: 14px;
}

.table th {
  color: #9aa6b2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thumb-mini {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #2a313a;
}

.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photos img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
}

.photos img.cover {
  border-color: var(--copper);
}

.notice {
  font-size: 13px;
  color: #9aa6b2;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .vehicle-grid,
  .service-grid,
  .form-grid,
  .calc-row {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-logo { width: 94px; height: 50px; }
  .brand-tagline { max-width: 190px; }
  .nav {
    overflow: auto;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 28px 20px;
  }
}

/* Galeries et fiches véhicules : palette et typographie du site. */
.vehicle-card { position: relative; transition: transform .2s; }
.vehicle-card:hover { transform: translateY(-3px); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible::after { outline: 3px solid var(--copper); outline-offset: -3px; border-radius: var(--radius); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 28px; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow:hover { background: var(--paper-2); }
.photo-count { position: absolute; bottom: 14px; left: 14px; border-radius: 20px; padding: 4px 9px; background: rgba(18,21,26,.7); color: white; font-size: 12px; }
.photo-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.detail-heading { margin: 30px 0; }
.detail-heading:has(.detail-edit-link:not(.hidden)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
.detail-heading .eyebrow { grid-column: 1 / -1; }
.detail-edit-link { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; padding: 7px 15px 7px 8px; border: 1px solid #b98b5950; border-radius: 12px; background: #b98b590d; color: #775333; font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; text-decoration: none; box-shadow: none; transition: background-color .18s, border-color .18s, color .18s; }
.detail-edit-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: #b98b5917; }
.detail-edit-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.detail-edit-link .detail-edit-arrow { width: 15px; height: 15px; margin-left: 7px; opacity: .65; }
.detail-edit-link:hover { color: #5f4027; background: #b98b591f; border-color: #b98b5980; }
.detail-edit-link:focus-visible { outline: 2px solid #996c42; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .detail-edit-link { transition: none; } }
@media (max-width: 720px) {
  .detail-heading:has(.detail-edit-link:not(.hidden)) { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .detail-edit-link { justify-self: start; }
}
.detail-heading h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(2rem,4.5vw,3.6rem); line-height: 1.15; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr); gap: 28px; align-items: start; }
.gallery { min-width: 0; }
.main-photo { position: relative; aspect-ratio: 4/3; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.main-photo > img { width: 100%; height: 100%; object-fit: contain; }
.main-photo { isolation: isolate; }
.main-photo > .main-photo-image { position: relative; z-index: 1; }
.main-photo > .main-photo-backdrop { position: absolute; inset: 0; z-index: 0; object-fit: cover; transform: scale(1.12); filter: blur(22px) brightness(.55); pointer-events: none; user-select: none; }
.photo-slider { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px; scroll-snap-type: x mandatory; }
.photo-slider button { flex: 0 0 106px; border: 2px solid transparent; background: var(--paper-2); border-radius: 10px; overflow: hidden; cursor: pointer; scroll-snap-align: start; }
.photo-slider button[aria-pressed="true"] { border-color: var(--copper); }
.photo-slider img { width: 100%; height: 76px; object-fit: cover; }
.detail-info { background: var(--white); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-sidebar { display: grid; align-content: start; gap: 18px; min-width: 0; }
.vehicle-trade-in { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(133,195,168,.3); border-radius: var(--radius); color: #f2f8f4; background: radial-gradient(circle at 100% 0,rgba(109,170,139,.2),transparent 50%),linear-gradient(140deg,#183a32,#122a25); box-shadow: 0 18px 45px rgba(18,42,37,.15); }
.trade-in-heading { display: flex; align-items: center; gap: 13px; }
.trade-in-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; color: #b1dfc5; background: rgba(160,213,184,.1); border: 1px solid rgba(160,213,184,.28); border-radius: 50%; }
.trade-in-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-trade-in .eyebrow { color: #b1dfc5; font-size: 10px; margin-bottom: 7px; }
.vehicle-trade-in h2 { font-family: "Fraunces",Georgia,serif; font-size: clamp(1.3rem,2vw,1.65rem); line-height: 1.2; font-weight: 500; }
.trade-in-copy { margin: 20px 0; color: #d0e0d7; font-size: 14px; line-height: 1.7; }
.trade-in-benefits { display: grid; gap: 16px; list-style: none; }
.trade-in-benefits li { display: flex; align-items: flex-start; gap: 10px; }
.trade-in-benefits li > span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(160,213,184,.12); color: #b1dfc5; }
.trade-in-benefits svg { width: 15px; height: 15px; }
.trade-in-benefits strong { display: block; font-size: 13px; }
.trade-in-benefits p { margin-top: 4px; font-size: 12px; line-height: 1.65; color: #c0d5ca; }
.trade-in-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 22px; padding: 11px 14px; border: 1px solid rgba(177,223,197,.32); border-radius: 11px; background: rgba(177,223,197,.1); color: #f2f8f4; font-size: 13px; font-weight: 750; transition: background .2s; }
.trade-in-contact:hover { background: rgba(177,223,197,.2); }
.trade-in-contact:focus-visible { outline: 2px solid #b1dfc5; outline-offset: 3px; }
.trade-in-note { margin-top: 12px; font-size: 10px; line-height: 1.6; color: #acc5b8; }
@media (max-width: 720px) { .vehicle-trade-in { padding: 22px; } }
.detail-price { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.detail-spec { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.detail-spec svg, .highlight svg, .option-choice svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--copper); }
.detail-spec dt { color: var(--muted); font-size: 12px; }
.detail-spec dd { font-weight: 650; overflow-wrap: anywhere; }
.detail-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-section h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 2rem; margin-bottom: 22px; }
.highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.highlight { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); padding: 20px; border-radius: 14px; }
.vehicle-description { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 85ch; line-height: 1.9; color: var(--ink-soft); }
.detail-muted { color: var(--muted); }
.options-fieldset { border: 1px solid var(--admin-line); border-radius: 12px; padding: 16px; min-width: 0; }
.options-fieldset legend { color: #9aa6b2; padding: 0 6px; font-size: 13px; }
.option-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.option-picker .option-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; border: 1px solid var(--admin-line); border-radius: 10px; padding: 12px; color: #e8edf3; background: #181d24; cursor: pointer; text-transform: none; letter-spacing: 0; transition: border-color .18s,background .18s,transform .18s; }
.option-picker .option-choice:hover { border-color: rgba(176,120,69,.65); background: rgba(176,120,69,.08); transform: translateY(-1px); }
.option-picker .option-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option-picker .option-choice:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.option-choice:has(input:checked) { border-color: var(--copper); background: var(--copper-soft); }
.option-choice input { accent-color: var(--copper); }
.fee-row { grid-template-columns: minmax(0,1fr) 150px 175px 44px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 12px; margin: 8px 0; align-items: end; }
.fee-row label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fee-row input, .fee-row textarea { width: 100%; min-width: 0; }
.fee-comment { grid-column: 1 / -1; }
textarea { resize: vertical; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .highlights, .option-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.admin-side .nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #d9a675;
}

body.admin input[type="date"] { color-scheme: dark; }
body.admin input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .9;
  cursor: pointer;
}
@media (max-width: 720px) {
  .header-inner { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 12px; }
  .nav { width: 100%; white-space: nowrap; }
  .brand span { font-size: 9px; letter-spacing: .08em; }
  .detail-info { padding: 20px; }
  .highlights, .option-picker { grid-template-columns: 1fr; }
  .fee-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .fee-row > label:first-child { grid-column: 1 / -1; }
  .fee-row > button { grid-column: 2; justify-self: end; }
  .admin-main { padding: 18px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vehicle-card { transition: none; }
  .sold-marquee { overflow-x: auto; }
}
.table-scroll { overflow-x: auto; }
.fees-table td { vertical-align: top; }
.fee-note { color: #9aa6b2; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; max-width: 45ch; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table th.financial-column, .table td.financial-column { text-align: right; font-variant-numeric: tabular-nums; }
.table th.profit-column { padding-right: 28px; text-align: right; }
.table td.profit-column { padding-right: 28px; text-align: right; }
.fee-editor { background: #10151b; border: 1px solid var(--copper); border-radius: 14px; padding: 18px; margin-top: 14px; }
.fee-editor h3 { font-size: 1rem; }
.fee-editor .fee-row { grid-template-columns: minmax(0,1fr) 150px 175px; padding: 12px 0; border: 0; }
.fee-editor .notice { margin: 12px 0 0; }
.history-current { display: block; color: #9aa6b2; font-size: 11px; }
#add-fee, #clear-price-history { align-self: flex-start; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: default; }
.price-reduction { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ok); background: rgba(47,125,87,.08); border-radius: 9px; padding: 8px 10px; }
.price-reduction s { color: var(--muted); margin-right: 6px; }
@media (max-width: 720px) {
  #form-view > .admin-top { align-items: flex-start; flex-direction: column; }
  .fee-editor .fee-row { grid-template-columns: 1fr; }
  .fees-table .actions { flex-direction: column; }
}
.price-tag { display: flex; align-items: center; gap: 8px; }
.price-down-icon { display: inline-flex; color: var(--ok); }
.price-down-icon svg { width: 22px; height: 22px; }
.detail-price-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.detail-price-line .detail-price { margin: 0; }
.detail-discount { display: inline-flex; align-items: center; gap: 8px; background: rgba(47,125,87,.08); color: var(--ok); padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.detail-discount svg { width: 23px; height: 23px; }
.detail-discount strong { display: block; font-size: 16px; }
.initial-price { color: var(--muted); font-size: 12px; margin: -6px 0 20px; }
.appointment-contact { margin: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.appointment-contact h2 { margin: 4px 0 7px; font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.appointment-contact > p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.appointment-actions { display: grid; gap: 9px; }
.appointment-link { display: flex; align-items: center; gap: 12px; padding: 12px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 11px; transition: border-color .18s ease,transform .18s ease,background .18s ease; }
.appointment-link:hover { color: var(--ink); background: var(--paper-2); border-color: rgba(176,120,69,.55); transform: translateY(-1px); }
.appointment-link svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--copper); }
.appointment-link span { display: flex; flex-direction: column; min-width: 0; }
.appointment-link small { color: var(--muted); font-size: 11px; }
.appointment-link strong { font-size: 13px; overflow-wrap: anywhere; }
.appointment-unavailable { position: relative; overflow: hidden; }
.appointment-unavailable .appointment-status-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; }
.appointment-unavailable .appointment-status-icon svg { width: 25px; height: 25px; }
.appointment-coming { background: linear-gradient(145deg,var(--white),rgba(255,144,0,.08)); border-color: rgba(255,144,0,.28); }
.appointment-coming .appointment-status-icon { color: #a85f00; background: rgba(255,144,0,.14); }
.appointment-reserved { background: linear-gradient(145deg,var(--white),rgba(0,76,255,.07)); border-color: rgba(0,76,255,.24); }
.appointment-reserved .appointment-status-icon { color: #004ccc; background: rgba(0,76,255,.12); }
.finance-panel { margin-top: 28px; padding: 24px; border: 1px solid rgba(176,120,69,.3); border-radius: 16px; background: rgba(176,120,69,.04); }
.finance-panel h3 { margin-bottom: 20px; font-size: 1.1rem; }
.finance-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.finance-section { min-width: 0; padding: 20px; border: 1px solid var(--admin-line); border-radius: 14px; background: rgba(16,19,24,.72); }
.finance-section h4 { margin-bottom: 18px; padding-bottom: 11px; color: #d9a675; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(176,120,69,.24); }
.finance-section .field + .field, .warranty-details { margin-top: 16px; }
.finance-section input, .finance-section select { width: 100%; min-width: 0; }
.warranty-duration { border: 0; }
.warranty-duration legend { margin-bottom: 8px; color: #c5ced8; font-size: 13px; font-weight: 700; }
.duration-buttons { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.duration-button { padding: 9px 6px; color: #c5ced8; background: #232a33; border: 1px solid var(--admin-line); font-size: 12px; }
.duration-button:hover, .duration-button:focus-visible { border-color: rgba(176,120,69,.65); }
.duration-button.is-selected { color: #1a120b; background: #d9a675; border-color: #d9a675; }
.warranty-remaining { margin-top: 16px; padding: 11px 12px; border-radius: 10px; color: #c5ced8; background: #232a33; font-size: 13px; }
.warranty-remaining.is-active { color: #a7f3c3; background: rgba(46,160,87,.15); }
.warranty-remaining.is-expired { color: #fecaca; background: rgba(239,68,68,.13); }
.admin-photo { width: 128px; display: flex; flex-direction: column; gap: 6px; }
.photo-cover-button { background: transparent; padding: 0; border: 0; cursor: pointer; border-radius: 8px; }
.photos .admin-photo img { width: 128px; height: 92px; }
.photo-caption { font-size: 11px; color: #9aa6b2; text-align: center; }
.photo-remove { padding: 6px 10px; font-size: 12px; }
@media (max-width: 1180px) { .finance-sections { grid-template-columns: 1fr 1fr; } .warranty-section { grid-column: 1 / -1; } }
@media (max-width: 760px) { .finance-sections { grid-template-columns: 1fr; } .warranty-section { grid-column: auto; } }
@media (max-width: 720px) { .finance-panel { padding: 16px; } }
.table th.heading-purchase { color: #93c5fd; }
.table th.heading-fees { color: #fdba74; }
.table th.heading-cost { color: #fca5a5; }
.btn-sold { color: #a7f3c3; background: rgba(46,160,87,.16); border: 1px solid rgba(74,222,128,.25); transition: background .18s; }
.btn-sold:hover, .btn-sold:focus-visible { background: rgba(46,160,87,.32); }
.order-controls { display: flex; align-items: center; gap: 3px; }
.drag-handle, .order-arrow { color: #c5ced8; background: #232a33; border: 1px solid var(--admin-line); border-radius: 7px; min-width: 28px; min-height: 36px; cursor: pointer; }
.drag-handle { cursor: grab; font-size: 22px; }
.drag-handle:active { cursor: grabbing; }
.order-arrow:disabled { opacity: .3; cursor: default; }
#vehicle-rows tr.is-dragging { opacity: .45; }
#vehicle-rows tr.drop-before td { box-shadow: inset 0 3px var(--copper); }
#vehicle-rows tr.drop-after td { box-shadow: inset 0 -3px var(--copper); }
#vehicle-rows tr td { transition: background-color .16s ease; }
#vehicle-rows tr:not(.is-dragging):hover td { background-color: rgba(255,255,255,.035); }
html[data-admin-theme="light"] #vehicle-rows tr:not(.is-dragging):hover td { background-color: rgba(141,92,50,.055); }
#equipment-rows tr.is-dragging { opacity: .45; }
#equipment-rows tr.drop-before td { box-shadow: inset 0 3px var(--copper); }
#equipment-rows tr.drop-after td { box-shadow: inset 0 -3px var(--copper); }
.equipment-label { display: flex; align-items: center; gap: 12px; }
.equipment-label svg { width: 24px; height: 24px; flex-shrink: 0; color: #d9a675; }
.equipment-editor { background: #10151b; border: 1px solid var(--admin-line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.equipment-editor h3, .equipment-editor .form-grid { margin-bottom: 16px; }
#equipment-status, #order-status { margin-top: 12px; }
.drag-handle { touch-action: none; user-select: none; }
.btn-deactivate { color: #fecaca; background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.25); transition: background .18s; }
.btn-deactivate:hover, .btn-deactivate:focus-visible { background: rgba(239,68,68,.28); }
.btn-activate { color: #bfdbfe; background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.28); transition: background .18s; }
.btn-activate:hover, .btn-activate:focus-visible { background: rgba(59,130,246,.3); }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; }
.icon-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; color: #c5ced8; background: #181d24; border: 1px solid var(--admin-line); border-radius: 10px; cursor: pointer; font-size: 12px; }
.icon-choice svg { width: 28px; height: 28px; color: #d9a675; }
.icon-choice[aria-pressed="true"], .icon-choice:hover { border-color: var(--copper); background: var(--copper-soft); }
.equipment-icon-preview { min-height: 48px; display: flex; align-items: center; color: #d9a675; font-size: 13px; }
.equipment-icon-preview > svg, .equipment-icon-preview > img { width: 40px; height: 40px; }
.equipment-label .custom-equipment-icon, .option-choice .custom-equipment-icon, .highlight .custom-equipment-icon { width: 26px; height: 26px; flex-shrink: 0; object-fit: contain; }
.custom-equipment-icon { display: inline-block; width: 26px; height: 26px; flex-shrink: 0; background-color: currentColor; -webkit-mask: var(--equipment-icon) center / contain no-repeat; mask: var(--equipment-icon) center / contain no-repeat; }
.equipment-label .custom-equipment-icon, .equipment-icon-preview .custom-equipment-icon { color: #d9a675; }
.option-choice .custom-equipment-icon, .highlight .custom-equipment-icon { color: var(--copper); }
.equipment-icon-preview > .custom-equipment-icon { width: 40px; height: 40px; }
.auth-gate { width: min(480px,calc(100% - 32px)); margin: 10vh auto; }
.auth-gate h1 { font-size: 1.6rem; margin-bottom: 18px; }
.auth-gate .field { margin-bottom: 16px; }
.auth-gate a { display: inline-block; margin-top: 20px; color: #d9a675; }
.auth-gate [role="alert"] { color: #fecaca; }
.migration-panel { margin-bottom: 24px; }
.migration-panel summary { cursor: pointer; font-weight: 700; }
.migration-panel .field, .migration-panel .notice { margin-top: 16px; }
#public-status:not(:empty) { padding: 24px 0; color: var(--ink-soft); }

/* Raccourcis de frais dans la fiche véhicule */
.fee-template-buttons { margin-bottom: 14px; }
.fee-template-buttons > .notice { margin: 0 0 8px; }
.document-options-list { display: grid; gap: 12px; }
.document-option-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 12px; }
.document-option-row .equipment-label { min-width: 0; overflow-wrap: anywhere; }
.document-option-row .equipment-label svg { flex-shrink: 0; }
.document-option-row .btn { min-height: 40px; }
.quick-fees { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-quick-fee { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 5px 9px; border-radius: 8px; font-size: 12px; line-height: 1.3; color: #e6edf3; background: rgba(176,120,69,.1); border: 1px solid rgba(176,120,69,.28); }
.btn-quick-fee > span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.btn-quick-fee strong { color: #d9a675; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-quick-fee:hover, .btn-quick-fee:focus-visible { background: rgba(176,120,69,.22); }

/* Badges vitrine : styles isolés pour pouvoir revenir facilement à la version précédente. */
.vehicle-card .price-tag.available-price {
  top: 12px;
  right: 12px;
  bottom: auto;
  color: var(--ink);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(17,24,31,.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.vehicle-card .badge.sold {
  top: 12px;
  right: 12px;
  left: auto;
  color: #eafff1;
  background: rgba(35,139,82,.66);
  border: 1px solid rgba(181,255,209,.34);
  box-shadow: 0 8px 24px rgba(13,75,42,.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.vehicle-card .price-tag.sold-price {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sold-detail { margin-bottom: 24px; padding: 18px; border: 1px solid rgba(47,125,87,.2); border-radius: 14px; background: rgba(47,125,87,.06); }
.sold-detail-badge { display: inline-flex; padding: 8px 12px; color: #f1fff6; background: rgba(35,139,82,.72); border: 1px solid rgba(35,139,82,.28); border-radius: 999px; box-shadow: 0 8px 24px rgba(13,75,42,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sold-owner-message { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink); font-size: 1.05rem; font-weight: 750; }
.sold-owner-message svg { width: 28px; height: 28px; flex: 0 0 28px; color: #c64d65; fill: rgba(198,77,101,.12); }

.sold-marquee-section { padding: 56px 0; overflow: hidden; background: linear-gradient(180deg,rgba(235,230,220,.45),rgba(244,241,234,0)); }
.sold-marquee-section .section-head { margin-bottom: 28px; }
.sold-marquee { overflow: hidden; padding: 0 45px 45px; }
@media (hover: hover) and (pointer: fine) {
  .sold-marquee { cursor: pointer; user-select: none; -webkit-user-select: none; }
  .sold-marquee img, .sold-marquee a { -webkit-user-drag: none; }
  .sold-marquee.is-dragging, .sold-marquee.is-dragging * { cursor: pointer !important; }
  .sold-marquee.is-dragging .vehicle-card { transform: none; }
}
.sold-marquee-track { display: flex; width: max-content; gap: 16px; will-change: transform; }
.sold-marquee-group { display: flex; gap: 16px; }
.sold-marquee .vehicle-card { width: min(360px,calc(100vw - 48px)); flex: 0 0 min(360px,calc(100vw - 48px)); }

.fullscreen-photo-button { position: absolute; z-index: 4; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #fff; background: rgba(18,21,26,.58); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; font-weight: 700; }
.fullscreen-photo-button:hover, .fullscreen-photo-button:focus-visible { background: rgba(18,21,26,.78); }
.fullscreen-photo-button svg { width: 19px; height: 19px; }
body.lightbox-open { overflow: hidden; }
.photo-lightbox { touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 64px 70px 58px; color: #fff; background: rgba(5,7,10,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox-stage { width: 100%; height: 100%; min-height: 0; min-width: 0; overflow: hidden; touch-action: none; }
.lightbox-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.lightbox-panel { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; flex-shrink: 0; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; touch-action: none; object-fit: contain; border-radius: 8px; box-shadow: 0 22px 70px rgba(0,0,0,.42); cursor: zoom-in; transition: transform .22s ease; transform-origin: center; }
.lightbox-stage img.is-zoomed { transform: scale(1.5); cursor: grab; }
.lightbox-close, .lightbox-arrow { position: absolute; z-index: 2; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.lightbox-close:hover, .lightbox-arrow:hover, .lightbox-close:focus-visible, .lightbox-arrow:focus-visible { background: rgba(255,255,255,.24); }
.lightbox-close { top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox-arrow { top: 50%; width: 48px; height: 58px; border-radius: 14px; transform: translateY(-50%); font-size: 40px; }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }
.lightbox-footer { position: absolute; right: 20px; bottom: 16px; left: 20px; display: flex; justify-content: center; gap: 20px; color: rgba(255,255,255,.78); font-size: 13px; pointer-events: none; }
.lightbox-footer [data-lightbox-count] { color: #fff; font-weight: 800; }
@media (max-width: 700px) {
  .fullscreen-photo-button span { display: none; }
  .fullscreen-photo-button { padding: 10px; }
  .photo-lightbox { padding: 58px 12px 70px; }
  .lightbox-arrow { top: auto; bottom: 12px; width: 44px; height: 44px; transform: none; }
  .lightbox-footer { bottom: 25px; padding: 0 54px; }
  .lightbox-footer span:last-child { display: none; }
}

.card-body h3 { display: flex; align-items: center; gap: 8px; }
.certified-card-check { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: #2f9b62; background: transparent; }
.certified-card-check svg { width: 15px; height: 15px; stroke-width: 2.5; }
.mileage-certified-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 7px 10px; color: #216b47; background: rgba(47,155,98,.1); border: 1px solid rgba(47,155,98,.3); border-radius: 999px; font-size: 12px; font-weight: 800; }
.mileage-certified-badge svg { width: 17px; height: 17px; color: #2f9b62; stroke-width: 2.5; }
.vehicle-documents { margin-top: 18px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.vehicle-documents .eyebrow { margin-bottom: 12px; }
.document-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.document-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; font-size: 13px; font-weight: 700; }
.document-item svg, .document-item .custom-equipment-icon { width: 23px; height: 23px; flex: 0 0 23px; color: var(--copper-dark); }
.document-item span { min-width: 0; overflow-wrap: anywhere; }
.detail-sidebar .vehicle-warranty-info { margin-top: 0; }
.detail-sidebar .warranty-durations { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-sidebar .vehicle-warranty-info h2 { font-size: clamp(1.35rem,2vw,1.65rem); line-height: 1.25; }
.vehicle-warranty-info { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; overflow: hidden; margin-top: 18px; padding: 26px; color: #fff; background: linear-gradient(135deg,#171b21 0%,#252a30 64%,#312419 100%); border: 1px solid rgba(217,166,117,.34); border-radius: var(--radius); box-shadow: 0 18px 45px rgba(18,21,26,.14); transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .28s ease,box-shadow .28s ease; will-change: transform; }
.vehicle-warranty-info.is-tilting { box-shadow: 0 22px 52px rgba(18,21,26,.2); transition: transform .1s ease-out,box-shadow .2s ease; }
.vehicle-warranty-info::after { content: ""; position: absolute; top: -70px; right: -55px; width: 190px; height: 190px; border-radius: 50%; background: rgba(176,120,69,.15); filter: blur(2px); pointer-events: none; }
.warranty-intro { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.warranty-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; color: #f1c89e; background: rgba(176,120,69,.2); border: 1px solid rgba(217,166,117,.3); border-radius: 50%; }
.warranty-icon svg { width: 27px; height: 27px; }
.vehicle-warranty-info .eyebrow { margin-bottom: 3px; color: #d9a675; }
.vehicle-warranty-info h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.45rem,3vw,1.9rem); font-weight: 500; }
.warranty-copy { position: relative; z-index: 1; max-width: 720px; margin: 20px 0; color: rgba(255,255,255,.78); line-height: 1.75; }
.warranty-copy strong { color: #fff; }
.warranty-durations { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.warranty-durations > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.warranty-durations > span.is-included { background: rgba(176,120,69,.22); border-color: rgba(217,166,117,.42); }
.warranty-durations strong { color: #fff; font-size: 14px; }
.warranty-durations small { color: rgba(255,255,255,.58); font-size: 10px; }
.warranty-note { position: relative; z-index: 1; margin-top: 14px; color: rgba(255,255,255,.5); font-size: 11px; }
.brand-combobox { position: relative; }
.brand-suggestions { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0; max-height: 240px; overflow-y: auto; padding: 6px; background: #20262f; border: 1px solid rgba(176,120,69,.5); border-radius: 11px; box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.brand-suggestions button { display: block; width: 100%; padding: 10px 11px; color: #e8edf3; background: transparent; border: 0; border-radius: 7px; text-align: left; cursor: pointer; }
.brand-suggestions button:hover, .brand-suggestions button.is-active { color: #fff; background: rgba(176,120,69,.22); }
@media (max-width: 620px) { .document-list { grid-template-columns: 1fr; } .vehicle-warranty-info { padding: 20px; } .warranty-durations { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .vehicle-warranty-info { transform: none; transition: none; } }

#vehicle-form { display: flex; flex-direction: column; gap: 18px; }
.form-section { padding: 22px; background: var(--admin-panel); border: 1px solid var(--admin-line); border-radius: 18px; }
.form-section > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #e8edf3; font-size: 1.08rem; }
.form-section-icon { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #d6ac86; }
.form-jump-panel a { gap: 10px; }
.form-jump-panel .form-section-icon { width: 18px; height: 18px; }
html[data-admin-theme="light"] .form-section-icon { color: #855a35; }
.vehicle-info-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.info-cluster { display: grid; gap: 12px; align-items: end; min-width: 0; padding: 16px; background: #141920; border: 1px solid rgba(255,255,255,.065); border-radius: 13px; }
.info-fields-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.info-fields-two, .mileage-cluster { grid-template-columns: repeat(2,minmax(0,1fr)); }
.brand-combobox, .brand-combobox input { width: 100%; min-width: 0; }
.certified-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; width: 100%; padding: 10px 12px; color: #c5ced8; background: #232a33; border: 1px solid var(--admin-line); border-radius: 10px; cursor: pointer; font-weight: 750; transition: background .18s,border-color .18s,color .18s; }
.certified-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.certified-toggle:hover, .certified-toggle:focus-visible { background: #2c343e; }
.certified-toggle.is-certified { color: #b9f6d1; background: rgba(47,155,98,.17); border-color: rgba(74,222,128,.38); }
#vehicle-form .finance-panel { margin-top: 0; background: var(--admin-panel); }
#vehicle-form > .actions { padding: 4px 2px 18px; }
@media (max-width: 1180px) {
  .vehicle-info-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .info-fields-three, .info-fields-two, .mileage-cluster { grid-template-columns: 1fr; }
  .form-section { padding: 16px; }
}
.spec-value { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.spec-value .certified-card-check { width: 19px; height: 19px; flex-basis: 19px; }
.spec-value .certified-card-check svg { width: 13px; height: 13px; }
.detail-spec dd.certified-mileage-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.certified-mileage-value .mileage-certified-badge { margin: 0; padding: 5px 8px; }

.admin-side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 0; overflow-y: auto; padding-bottom: 150px; background: var(--admin-bg); }
.admin-theme-control { position: fixed; z-index: 20; bottom: 18px; left: 18px; width: 204px; margin-top: auto; padding: 14px 0 0; background: var(--admin-bg); border-top: 1px solid var(--admin-line); }
.admin-theme-control > p { margin: 0 0 9px 10px; color: #9aa6b2; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-theme-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.admin-side .admin-theme-buttons button { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; margin: 0; padding: 8px 3px; color: #9aa6b2; text-align: center; font-size: 10px; }
.admin-theme-buttons button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-side .admin-theme-buttons button.is-active { color: #fff; background: rgba(176,120,69,.3); box-shadow: inset 0 0 0 1px rgba(217,166,117,.3); }

html[data-admin-theme="light"] body.admin { --admin-bg: #f4f1ea; --admin-panel: #fffdf8; --admin-line: rgba(18,21,26,.13); background: var(--admin-bg); color: #171a1f; }
html[data-admin-theme="light"] .admin-side { color: #252a31; background: #ebe6dc; border-color: rgba(18,21,26,.12); }
html[data-admin-theme="light"] .admin-theme-control { background: #ebe6dc; }
html[data-admin-theme="light"] .admin-side a,
html[data-admin-theme="light"] .admin-side button { color: #454c56; }
html[data-admin-theme="light"] .admin-side a.is-active,
html[data-admin-theme="light"] .admin-side button.is-active,
html[data-admin-theme="light"] .admin-side a:hover,
html[data-admin-theme="light"] .admin-side button:hover { color: #171a1f; background: rgba(255,253,248,.9); }
html[data-admin-theme="light"] .admin-side .nav-icon { color: #8d5c32; }
html[data-admin-theme="light"] .admin-side .admin-theme-buttons button.is-active { color: #171a1f; background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(141,92,50,.28); }
html[data-admin-theme="light"] .panel,
html[data-admin-theme="light"] .form-section { color: #171a1f; background: #fffdf8; border-color: rgba(18,21,26,.11); box-shadow: 0 10px 30px rgba(18,21,26,.04); }
html[data-admin-theme="light"] .form-section > h3,
html[data-admin-theme="light"] .finance-panel h3 { color: #171a1f; }
html[data-admin-theme="light"] .info-cluster,
html[data-admin-theme="light"] .finance-section,
html[data-admin-theme="light"] .equipment-editor,
html[data-admin-theme="light"] .fee-editor { color: #171a1f; background: #f4f1ea; border-color: rgba(18,21,26,.12); }
html[data-admin-theme="light"] .field input,
html[data-admin-theme="light"] .field select,
html[data-admin-theme="light"] .field textarea { color: #171a1f; background: #fff; border-color: rgba(18,21,26,.17); }
html[data-admin-theme="light"] .field label,
html[data-admin-theme="light"] .notice,
html[data-admin-theme="light"] .table th,
html[data-admin-theme="light"] .history-current,
html[data-admin-theme="light"] .admin-theme-control > p { color: #646c76; }
html[data-admin-theme="light"] .table td { color: #252a31; border-color: rgba(18,21,26,.1); }
html[data-admin-theme="light"] .btn-ghost,
html[data-admin-theme="light"] .drag-handle,
html[data-admin-theme="light"] .order-arrow { color: #30363e; background: #ebe6dc; border-color: rgba(18,21,26,.12); }
html[data-admin-theme="light"] .option-picker .option-choice,
html[data-admin-theme="light"] .certified-toggle { color: #30363e; background: #f4f1ea; border-color: rgba(18,21,26,.13); }
html[data-admin-theme="light"] .option-picker .option-choice:hover { background: rgba(176,120,69,.1); }
html[data-admin-theme="light"] .option-choice:has(input:checked) { background: rgba(176,120,69,.15); border-color: #b07845; }
html[data-admin-theme="light"] .brand-suggestions { background: #fffdf8; border-color: rgba(141,92,50,.45); box-shadow: 0 16px 34px rgba(18,21,26,.14); }
html[data-admin-theme="light"] .brand-suggestions button { color: #252a31; }
html[data-admin-theme="light"] .brand-suggestions button:hover,
html[data-admin-theme="light"] .brand-suggestions button.is-active { color: #171a1f; background: rgba(176,120,69,.14); }
html[data-admin-theme="light"] body.admin input[type="date"] { color-scheme: light; }
html[data-admin-theme="light"] body.admin input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
html[data-admin-theme="light"] .table th.heading-purchase { color: #2563eb; }
html[data-admin-theme="light"] .table th.heading-fees { color: #c2410c; }
html[data-admin-theme="light"] .table th.heading-cost { color: #dc2626; }
html[data-admin-theme="light"] .certified-toggle.is-certified { color: #166534; background: rgba(34,197,94,.14); border-color: rgba(22,163,74,.45); }
html[data-admin-theme="light"] .certified-toggle.is-certified:hover,
html[data-admin-theme="light"] .certified-toggle.is-certified:focus-visible { color: #14532d; background: rgba(34,197,94,.22); }
html[data-admin-theme="light"] .btn-quick-fee { color: #252a31; background: rgba(176,120,69,.1); border-color: rgba(141,92,50,.3); }
html[data-admin-theme="light"] .btn-quick-fee strong { color: #8d5c32; }
html[data-admin-theme="light"] .btn-quick-fee:hover,
html[data-admin-theme="light"] .btn-quick-fee:focus-visible { color: #171a1f; background: rgba(176,120,69,.2); }
html[data-admin-theme="light"] .calc { color: #171a1f; background: #f4f1ea; border-color: rgba(18,21,26,.12); }
html[data-admin-theme="light"] .calc span { color: #646c76; }
html[data-admin-theme="light"] .calc strong { color: #171a1f; }
html[data-admin-theme="light"] .btn-sold { color: #166534; background: rgba(34,197,94,.14); border-color: rgba(22,163,74,.4); }
html[data-admin-theme="light"] .btn-sold:hover,
html[data-admin-theme="light"] .btn-sold:focus-visible { color: #14532d; background: rgba(34,197,94,.25); border-color: rgba(21,128,61,.55); }
html[data-admin-theme="light"] .btn-deactivate,
html[data-admin-theme="light"] .btn-danger { color: #b42318; background: rgba(220,38,38,.1); border: 1px solid rgba(185,28,28,.32); }
html[data-admin-theme="light"] .btn-deactivate:hover,
html[data-admin-theme="light"] .btn-deactivate:focus-visible,
html[data-admin-theme="light"] .btn-danger:hover,
html[data-admin-theme="light"] .btn-danger:focus-visible { color: #7f1d1d; background: rgba(220,38,38,.2); border-color: rgba(153,27,27,.5); }
html[data-admin-theme="light"] .btn-activate { color: #1d4ed8; background: rgba(59,130,246,.12); border-color: rgba(37,99,235,.38); }
html[data-admin-theme="light"] .btn-activate:hover,
html[data-admin-theme="light"] .btn-activate:focus-visible { color: #1e3a8a; background: rgba(59,130,246,.22); border-color: rgba(29,78,216,.55); }
:is(.vehicle-table, .equipment-table) .order-controls { display: grid; grid-template-columns: 30px 30px; grid-template-rows: 26px 26px; gap: 0; width: fit-content; padding: 3px; border: 1px solid var(--admin-line); border-radius: 11px; background: var(--admin-panel); }
:is(.vehicle-table, .equipment-table) .order-controls button { display: grid; place-items: center; min-width: 0; min-height: 0; width: 30px; padding: 0; border: 0; border-radius: 6px; color: #9aa6b2; background: transparent; }
:is(.vehicle-table, .equipment-table) .order-controls .drag-handle { grid-row: 1 / 3; height: 52px; }
:is(.vehicle-table, .equipment-table) .order-controls .order-arrow { grid-column: 2; height: 26px; }
:is(.vehicle-table, .equipment-table) .order-controls svg { width: 19px; height: 19px; pointer-events: none; }
:is(.vehicle-table, .equipment-table) .drag-handle svg { fill: currentColor; }
:is(.vehicle-table, .equipment-table) .order-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(.vehicle-table, .equipment-table) .order-controls button:hover:not(:disabled), :is(.vehicle-table, .equipment-table) .order-controls button:active:not(:disabled) { color: #d9a675; background: rgba(176,120,69,.16); }
:is(.vehicle-table, .equipment-table) .order-controls button:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; }
:is(.vehicle-table, .equipment-table) .order-controls button:disabled { opacity: .25; cursor: default; }
html[data-admin-theme="light"] :is(.vehicle-table, .equipment-table) .order-controls button { color: #646c76; }
html[data-admin-theme="light"] :is(.vehicle-table, .equipment-table) .order-controls button:hover:not(:disabled), html[data-admin-theme="light"] :is(.vehicle-table, .equipment-table) .order-controls button:active:not(:disabled) { color: #8d5c32; background: rgba(141,92,50,.12); }
.admin-fees-link { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 4px 0; color: inherit; background: transparent; border: 0; border-radius: 4px; font: inherit; text-align: inherit; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.admin-fees-link:hover { text-decoration-style: solid; }
.admin-fees-link:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
#fees .fee-editor { scroll-margin-top: 20px; }
.admin-vehicle-edit-link { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: left; }
.admin-vehicle-photo-link { display: block; border-radius: 8px; }
.admin-vehicle-title-link { display: flex; flex-direction: column; gap: 2px; }
.admin-vehicle-title-link strong { color: inherit; font-size: inherit; }
.admin-vehicle-title-link span { color: #9aa6b2; }
.admin-vehicle-edit-link:hover strong,
.admin-vehicle-edit-link:focus-visible strong { color: #d9a675; }
.admin-vehicle-photo-link:hover .thumb-mini,
.admin-vehicle-photo-link:focus-visible .thumb-mini { outline: 2px solid #d9a675; outline-offset: 2px; }
html[data-admin-theme="light"] .admin-vehicle-title-link span { color: #646c76; }
html[data-admin-theme="light"] .admin-vehicle-edit-link:hover strong,
html[data-admin-theme="light"] .admin-vehicle-edit-link:focus-visible strong { color: #8d5c32; }
html[data-admin-theme="light"] .btn-primary { color: #fff; background: #8d5c32; border: 1px solid #754923; }
html[data-admin-theme="light"] .btn-primary:hover,
html[data-admin-theme="light"] .btn-primary:focus-visible { color: #fff; background: #70451f; border-color: #5f3919; }
.vehicle-search-bar { display: grid; grid-template-columns: minmax(180px,420px) minmax(0,1fr); align-items: end; gap: 8px 14px; margin: 20px 0 16px; }
.vehicle-search-bar > label { grid-column: 1; display: flex; align-items: center; gap: 8px; color: #c5ced8; font-size: 13px; font-weight: 750; }
.vehicle-search-bar > label svg { width: 18px; height: 18px; fill: none; stroke: #d9a675; stroke-width: 1.8; stroke-linecap: round; }
.vehicle-search-input { position: relative; grid-column: 1; }
.vehicle-search-input input { width: 100%; min-height: 44px; padding: 10px 42px 10px 13px; color: #e8edf3; background: #10151b; border: 1px solid var(--admin-line); border-radius: 11px; }
.vehicle-search-input input::-webkit-search-cancel-button { display: none; }
.vehicle-search-input button { position: absolute; top: 50%; right: 7px; width: 30px; height: 30px; color: #c5ced8; background: transparent; border: 0; border-radius: 8px; transform: translateY(-50%); cursor: pointer; font-size: 22px; line-height: 1; }
.vehicle-search-input button:hover { color: #fff; background: #232a33; }
.vehicle-status-filters { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-status-filters .filter-count { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 50%; background: rgba(148,163,184,.18); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vehicle-status-filters .vehicle-pending-filter.is-active { color: #f4cf94; background: #bb853329; border-color: #d6a35466; box-shadow: inset 0 0 0 1px #d6a35466; }
html[data-admin-theme="light"] .vehicle-status-filters .vehicle-pending-filter.is-active { color: #805316; background: #bb85331f; border-color: #bb853366; box-shadow: inset 0 0 0 1px #bb853366; }
.vehicle-sold-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; }
.vehicle-sold-filter svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-sold-filter.is-active { color: #b9f6d1; background: rgba(47,155,98,.2); box-shadow: inset 0 0 0 1px rgba(74,222,128,.32); }
#vehicle-search-status { grid-column: 3; margin: 0 0 11px; }
.vehicle-search-empty { padding: 28px !important; color: #9aa6b2 !important; text-align: center; }
html[data-admin-theme="light"] .vehicle-search-bar > label { color: #30363e; }
html[data-admin-theme="light"] .vehicle-search-input input { color: #171a1f; background: #fff; border-color: rgba(18,21,26,.17); }
html[data-admin-theme="light"] .vehicle-search-input button { color: #646c76; }
html[data-admin-theme="light"] .vehicle-search-input button:hover { color: #171a1f; background: #ebe6dc; }
html[data-admin-theme="light"] .vehicle-sold-filter.is-active { color: #166534; background: rgba(34,197,94,.14); box-shadow: inset 0 0 0 1px rgba(22,163,74,.38); }
.vehicle-available-filter.is-active { color: #bfdbfe; background: rgba(37,99,235,.2); box-shadow: inset 0 0 0 1px rgba(96,165,250,.45); }
html[data-admin-theme="light"] .vehicle-available-filter.is-active { color: #1d4ed8; background: rgba(37,99,235,.12); box-shadow: inset 0 0 0 1px rgba(37,99,235,.38); }
@media (max-width: 980px) { .vehicle-search-bar { grid-template-columns: minmax(0,1fr); } .vehicle-status-filters, #vehicle-search-status { grid-column: 1; grid-row: auto; } .vehicle-status-filters { width: 100%; max-width: 420px; } #vehicle-search-status { margin: 0; } }
@media (max-width: 720px) {
  .vehicle-status-filters { width: fit-content; max-width: 100%; gap: 6px; }
  .vehicle-status-filters .btn { min-height: 36px; padding: 6px 8px; gap: 5px; border-radius: 8px; font-size: 11px; line-height: 1.3; }
  .vehicle-status-filters svg { width: 14px; height: 14px; }
}
#logout .logout-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.session-user { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0; padding: 10px 12px; color: #c5ced8; font-size: 14px; font-weight: 650; }
.session-user svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html[data-admin-theme="light"] .session-user { color: #454c56; }
@media (max-width: 980px) {
  .admin-side { position: static; height: auto; min-height: auto; overflow: visible; padding-bottom: 28px; }
  .admin-theme-control { position: static; width: auto; margin-top: 20px; }
}

@media (max-width: 720px) {
  #fees, #fees > .table-scroll { min-width: 0; max-width: 100%; }
  .fees-table, .fees-table tbody { display: block; width: 100%; }
  .fees-table thead { display: none; }
  .fees-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-bg); }
  .fees-table tr:last-child { margin-bottom: 0; }
  .fees-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .fees-table td:first-child, .fees-table td:last-child { grid-column: 1 / -1; }
  .fees-table td:first-child > strong { font-size: 16px; }
  .fees-table .fee-note { max-width: none; margin: 6px 0 0; line-height: 1.6; }
  .fees-table td:nth-child(2)::before, .fees-table td:nth-child(3)::before { display: block; margin-bottom: 5px; color: #9aa6b2; font-size: 11px; font-weight: 650; }
  .fees-table td:nth-child(2)::before { content: "Date"; }
  .fees-table td:nth-child(3)::before { content: "Montant"; }
  .fees-table td.money { white-space: normal; text-align: right; font-size: 18px; font-weight: 800; }
  .fees-table td:last-child { padding-top: 12px; border-top: 1px solid var(--admin-line); }
  .fees-table .actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .fees-table .actions .btn { min-width: 0; min-height: 44px; padding: 10px 6px; overflow-wrap: anywhere; }
  html[data-admin-theme="light"] .fees-table .fee-note,
  html[data-admin-theme="light"] .fees-table td:nth-child(2)::before,
  html[data-admin-theme="light"] .fees-table td:nth-child(3)::before { color: #646c76; }
}

.vehicle-photo-empty { display: block; color: #9aa6b2; font-size: 12px; text-align: center; }
.vehicle-table .admin-vehicle-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #3971db; border-radius: 999px; color: #fff; background: #2459c4; font-size: 12px; line-height: 1.4; font-weight: 750; white-space: nowrap; }
.vehicle-table .admin-vehicle-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.vehicle-table tr[data-status="coming_soon"] .admin-vehicle-status { background: #945020; border-color: #b96b30; }
.vehicle-table tr[data-status="sold"] .admin-vehicle-status { background: #18713c; border-color: #23874c; }
.vehicle-table tr[data-status="reserved"] .admin-vehicle-status { background: #7050a0; border-color: #8c6cb9; }
@media (max-width: 720px) {
  #list-view .admin-top { flex-wrap: wrap; }
  #list-view > .panel { padding: 12px; }
  .vehicle-order-help, #list-view #order-status { display: none; }
  .vehicle-table, .vehicle-table tbody { display: block; width: 100%; }
  .vehicle-table thead { display: none; }
  .vehicle-table tr[data-order-id] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-bg); }
  .vehicle-table tr:last-child { margin-bottom: 0; }
  .vehicle-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .vehicle-table tr[data-order-id] > td:nth-child(1),
  .vehicle-table tr[data-order-id] > td:nth-child(6) { display: none; }
  .vehicle-table td:nth-child(2), .vehicle-table td:nth-child(3), .vehicle-table td:nth-child(4), .vehicle-table td:nth-child(5), .vehicle-table td:nth-child(11) { grid-column: 1 / -1; }
  .vehicle-table .admin-vehicle-photo-link { width: 100%; }
  .vehicle-table .thumb-mini { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
  .vehicle-table .vehicle-photo-empty { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--admin-line); border-radius: 9px; }
  .vehicle-table .admin-vehicle-title-link { width: 100%; gap: 4px; }
  .vehicle-table .admin-vehicle-title-link strong { font-size: 17px; }
  .vehicle-table td:nth-child(4) { justify-self: start; }
  .vehicle-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #9aa6b2; font-size: 11px; font-weight: 650; }
  .vehicle-table td.financial-column { padding: 10px 0; text-align: left; border-top: 1px solid var(--admin-line); }
  .vehicle-table td:nth-child(9) { order: 1; }
  .vehicle-table td:nth-child(7) { order: 2; color: #fdba74; }
  .vehicle-table td:nth-child(8) { order: 3; color: #fca5a5; }
  .vehicle-table td:nth-child(10) { order: 4; }
  .vehicle-table td:nth-child(11) { order: 5; }
  .vehicle-table td.financial-column[data-label]::before { color: inherit; }
  html[data-admin-theme="light"] .vehicle-table td:nth-child(7) { color: #c2410c; }
  html[data-admin-theme="light"] .vehicle-table td:nth-child(8) { color: #dc2626; }
  .vehicle-table .money { white-space: normal; font-size: 16px; }
  .vehicle-table .actions { gap: 8px; }
  .vehicle-table .actions .btn { min-height: 44px; }
  .vehicle-table .actions [data-edit] { flex: 1; }
  .vehicle-table .actions [data-sold] { flex: 1 0 100%; }
  html[data-admin-theme="light"] .vehicle-table td[data-label]::before,
  html[data-admin-theme="light"] .vehicle-photo-empty { color: #646c76; }
  html[data-admin-theme="light"] .vehicle-table td[data-profit="positive"] { color: #166534 !important; }
  html[data-admin-theme="light"] .vehicle-table td[data-profit="negative"] { color: #b91c1c !important; }
}

.admin-mobile-header { display: none; }
@media (max-width: 980px) {
  .admin-shell { grid-template-rows: auto 1fr; }
  .admin-shell.admin-menu-open { grid-template-rows: auto auto 1fr; }
  .admin-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--admin-line); background: var(--admin-bg); }
  .admin-mobile-header > span { font-weight: 800; }
  .admin-mobile-header small { display: block; font-size: 11px; font-weight: 500; }
  #admin-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--admin-line); border-radius: 10px; background: var(--admin-panel); color: inherit; font: inherit; cursor: pointer; }
  #admin-menu-toggle:focus-visible { outline: 2px solid #b07845; outline-offset: 3px; }
  #admin-menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  #admin-menu-toggle .menu-close, .admin-menu-open #admin-menu-toggle .menu-bars { display: none; }
  .admin-menu-open #admin-menu-toggle .menu-close { display: block; }
  .admin-side { display: none; border-right: 0; border-bottom: 1px solid var(--admin-line); padding: 12px 18px 18px; }
  .admin-menu-open .admin-side { display: flex; }
  .admin-side h1 { display: none; }
  .admin-side > button, .admin-side > a { min-height: 44px; }
  .admin-main { min-width: 0; padding: 20px 16px; }
}

.fullscreen-photo-hint { position: absolute; z-index: 5; top: 64px; right: 14px; max-width: min(250px, calc(100% - 28px)); padding: 11px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; background: #29211b; box-shadow: 0 8px 26px rgba(0,0,0,.25); font-size: 12px; line-height: 1.5; pointer-events: none; animation: fullscreen-hint-in .25s ease-out; }
.fullscreen-photo-hint::before { content: ''; position: absolute; top: -5px; right: 18px; width: 8px; height: 8px; background: #29211b; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); transform: rotate(45deg); }
.lightbox-stage img.is-zoomed:active { cursor: grabbing; }
@media (max-width: 700px) { .fullscreen-photo-hint { top: 14px; right: 66px; max-width: calc(100% - 82px); } .fullscreen-photo-hint::before { top: 16px; right: -5px; transform: rotate(135deg); } }
@keyframes fullscreen-hint-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fullscreen-photo-hint { animation: none; } .lightbox-stage img { transition: none; } }

.public-site .public-account { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; flex-shrink: 0; max-width: 180px; min-height: 44px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.public-site .public-account[hidden] { display: none; }
.public-account svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-site .public-account:hover { color: var(--copper); }
.public-account:hover span { text-decoration: underline; text-underline-offset: 3px; }
.public-account:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
@media (min-width: 721px) and (max-width: 980px) {
  .public-site .header-inner:has(.public-account:not([hidden])) .brand-tagline { display: none; }
  .public-site .public-account { max-width: 130px; }
}
@media (max-width: 720px) {
  .public-site .header-inner:has(.public-account:not([hidden])) { height: auto; gap: 4px 16px; }
  .public-site .public-account { margin-left: 0; }
}
.mobile-dock { display: none; }
@media (max-width: 720px) {
  .public-site { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .public-site .site-header .nav { display: none; }
  .public-site .site-header { position: static; }
  .public-site .header-inner { justify-content: center; height: 66px; }
  .public-site .brand { min-width: 0; gap: 12px; }
  .public-site .brand-logo { flex-shrink: 0; }
  .public-site .brand-tagline { display: block; min-width: 0; font-size: 9px; line-height: 1.6; letter-spacing: .1em; }
  .mobile-dock { position: fixed; z-index: 80; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; display: block; width: min(360px, calc(100% - 32px)); height: 76px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,253,248,0.7); box-shadow: 0 8px 32px rgba(18,21,26,.14), 0 2px 5px rgba(18,21,26,.04); backdrop-filter: blur(6px) saturate(3.15); -webkit-backdrop-filter: blur(6px) saturate(3.15); transition: width .3s cubic-bezier(.22,.8,.25,1), height .3s cubic-bezier(.22,.8,.25,1), border-radius .3s; }
  .mobile-dock-links { position: absolute; inset: 6px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); opacity: 1; transition: opacity .16s, transform .25s; }
  .mobile-dock-links a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 6px; border-radius: 21px; color: #4b505b; font-size: 11px; font-weight: 750; transition: color .2s, background .2s; }
  .mobile-dock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-dock-links a.is-active { color: #8d5c32; background: rgba(176,120,69,.11); }
  .mobile-dock-links a:focus-visible, .mobile-dock-expand:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
  .mobile-dock.is-compact { width: 156px; height: 48px; border-radius: 24px; }
  .mobile-dock.is-compact .mobile-dock-links { opacity: 0; transform: scale(.8); pointer-events: none; visibility: hidden; }
  .mobile-dock-expand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: inherit; color: #8d5c32; background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s; }
  .mobile-dock.is-compact .mobile-dock-expand { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-dock-current-icon { display: flex; }
  .mobile-dock-current-icon svg { width: 20px; height: 20px; }
  .mobile-dock .mobile-dock-chevron { width: 16px; height: 16px; }
  .lightbox-open .mobile-dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mobile-dock, .mobile-dock-links, .mobile-dock-links a, .mobile-dock-expand { transition: none; } }

@media (min-width: 721px) {
  .public-site .site-header { padding: 14px 0; border: 0; background: transparent; backdrop-filter: none; }
  .public-site .header-inner { min-height: 82px; height: auto; padding: 12px 18px; gap: 24px; border: 1px solid rgba(255,253,248,.9); border-radius: 24px; background: rgba(255,253,248,.88); box-shadow: 0 8px 32px rgba(37,28,19,.07), inset 0 0 0 1px rgba(141,92,50,.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .public-site .brand { gap: 20px; min-width: 0; }
  .public-site .brand-logo { width: 106px; height: 54px; flex-shrink: 0; }
  .public-site .brand-tagline { max-width: 176px; padding-left: 20px; border-left: 1px solid rgba(141,92,50,.22); color: #767067; font-size: 9px; line-height: 1.8; letter-spacing: .12em; }
  .public-site .nav { flex-shrink: 0; gap: 4px; padding: 5px; border: 1px solid rgba(141,92,50,.1); border-radius: 18px; background: rgba(235,230,220,.65); }
  .public-site .nav a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 13px; color: #666059; font-size: 12px; font-weight: 750; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
  .public-site .nav svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .public-site .nav a:hover { background: rgba(255,253,248,.8); color: #8d5c32; }
  .public-site .nav a.is-active { background: #29241f; color: #f5d4af; box-shadow: 0 3px 8px rgba(41,36,31,.16), inset 0 1px rgba(255,255,255,.08); }
  .public-site .nav a:focus-visible, .public-site .brand:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .public-site .header-inner { gap: 14px; padding: 10px 12px; }
  .public-site .brand { gap: 10px; }
  .public-site .brand-tagline { max-width: 132px; padding-left: 10px; font-size: 8px; }
  .public-site .brand-logo { width: 90px; }
  .public-site .nav a { padding: 10px; gap: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .public-site .nav a { transition: none; } }

@media (min-width: 721px) {
  /* Keep the header's space stable while its inner panel contracts. */
  .public-site .site-header { height: 110px; }
  .public-site .header-inner { width: calc(100% - 40px); max-width: 1180px; height: 82px; transition: max-width .38s cubic-bezier(.22,.8,.25,1), height .38s cubic-bezier(.22,.8,.25,1), min-height .38s, padding .38s, border-radius .38s, box-shadow .38s; }
  .public-site .brand { transition: gap .38s; }
  .public-site .brand-logo { transition: width .38s, height .38s; }
  .public-site .brand-tagline { overflow: hidden; transition: max-width .38s, padding .38s, opacity .2s, border-color .2s; }
  .public-site .site-header.is-compact .header-inner { max-width: 860px; height: 64px; min-height: 64px; padding: 6px 14px; border-radius: 20px; box-shadow: 0 8px 28px rgba(37,28,19,.12); }
  .public-site .site-header.is-compact .brand { gap: 0; }
  .public-site .site-header.is-compact .brand-logo { width: 86px; height: 44px; }
  .public-site .site-header.is-compact .brand-tagline { max-width: 0; padding-left: 0; opacity: 0; border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .public-site .header-inner, .public-site .brand, .public-site .brand-logo, .public-site .brand-tagline { transition: none; } }

.form-jump { display: none; }
#vehicle-form > .form-section { border-width: 2px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
#vehicle-form > .form-section.is-current-section { border-width: 2px; border-color: #d6ac86; background-image: linear-gradient(#d6ac8609, #d6ac8609); box-shadow: 0 0 0 2px #d6ac8626, 0 8px 24px #00000012; }
html[data-admin-theme="light"] #vehicle-form > .form-section.is-current-section { border-color: #a6754b; box-shadow: 0 0 0 2px #a6754b26, 0 8px 24px #a6754b0d; }
.form-jump-panel a.is-current-section { background: #d6ac8626; box-shadow: inset 3px 0 #d6ac86; color: #f5d4af; }
html[data-admin-theme="light"] .form-jump-panel a.is-current-section { background: #a6754b1f; box-shadow: inset 3px 0 #a6754b; color: #744923; }
@media (max-width: 720px) {
  #form-view { padding-bottom: 88px; }
  #vehicle-form h3 { scroll-margin-top: 100px; }
  .form-jump { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: block; }
  .admin-menu-open .form-jump { visibility: hidden; }
  .form-jump-toggle { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid #ecc39c; border-radius: 18px; background: linear-gradient(145deg, #edc59f, #bb8557); color: #241c16; box-shadow: 0 6px 24px #0005, inset 0 1px #fff6; cursor: pointer; transition: border-radius .28s, transform .28s; }
  .form-jump-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .form-jump-toggle path { transform-origin: center; transition: opacity .22s, transform .28s; }
  .form-jump-close { opacity: 0; transform: rotate(-90deg); }
  .form-jump.is-open .form-jump-close { opacity: 1; transform: rotate(0); }
  .form-jump.is-open .form-jump-list { opacity: 0; transform: rotate(90deg); }
  .form-jump.is-open .form-jump-toggle { border-radius: 50%; }
  .form-jump-panel { position: absolute; bottom: 62px; left: 0; width: min(286px, calc(100vw - 40px)); max-height: calc(100dvh - 160px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 10px; border: 1px solid #ffffff26; border-radius: 22px; background: rgba(27,32,40,.97); color: #f2f0ed; box-shadow: 0 16px 48px #0005; backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transform-origin: bottom left; transition: opacity .24s, transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s; }
  .form-jump.is-open .form-jump-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .form-jump-panel p { margin: 5px 10px 8px; color: #d6ac86; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .form-jump-panel a { display: flex; align-items: center; min-height: 44px; padding: 9px 10px; border-radius: 11px; color: inherit; font-size: 13px; font-weight: 650; }
  .form-jump-panel a:hover, .form-jump-panel a:focus-visible { background: #c5966926; }
  .form-jump a:focus-visible, .form-jump-toggle:focus-visible { outline: 2px solid #d6ac86; outline-offset: 2px; }
  html[data-admin-theme="light"] .form-jump-panel { background: rgba(255,253,249,.97); border-color: #a97d4933; color: #332b24; }
  html[data-admin-theme="light"] .form-jump-panel p { color: #855a35; }
}
@media (prefers-reduced-motion: reduce) {
  .form-jump-panel, .form-jump-toggle, .form-jump-toggle path, #vehicle-form > .form-section { transition: none; }
}

.vehicle-form-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sale-type-toggle { position: relative; overflow: hidden; flex-shrink: 0; width: 238px; height: 64px; padding: 0; border: 1px solid #ffffff26; border-radius: 16px; color: #e8edf3; background: linear-gradient(135deg,#29323d,#1c232c); box-shadow: 0 4px 12px #00000018, inset 0 1px #ffffff0a; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; text-align: left; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.sale-type-caption { position: absolute; top: 9px; left: 14px; color: #aeb9c6; font-size: 9px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.sale-type-toggle span { position: absolute; inset: 27px 42px 8px 14px; display: flex; align-items: center; gap: 9px; white-space: nowrap; transition: transform .32s cubic-bezier(.22,.8,.25,1), opacity .25s; }
.sale-type-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sale-type-switch { position: absolute; right: 12px; top: 22px; width: 20px; height: 20px; padding-left: 6px; box-sizing: content-box; border-left: 1px solid #ffffff26; fill: none; stroke: #aeb9c6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sale-type-toggle.just-switched span { transition: none; }
.sale-type-next { transform: translateY(-8px); opacity: 0; }
@media (hover: hover) { .sale-type-toggle:hover { border-color: #d6ac86; box-shadow: 0 5px 16px #00000022; } .sale-type-toggle:not(.just-switched):hover .sale-type-current { transform: translateY(12px); opacity: 0; } .sale-type-toggle:not(.just-switched):hover .sale-type-next { transform: translateY(0); opacity: 1; } }
.sale-type-toggle[aria-pressed="true"] { color: #f3d1ad; background: linear-gradient(135deg,#483525,#302820); border-color: #bd9065; }
.sale-type-toggle:focus-visible { outline: 2px solid #d6ac86; outline-offset: 3px; }
html[data-admin-theme="light"] .sale-type-toggle { color: #394453; background: linear-gradient(135deg,#fff,#f1f3f5); border-color: #cfd5dc; box-shadow: 0 3px 10px #18203008; }
html[data-admin-theme="light"] .sale-type-toggle[aria-pressed="true"] { color: #805126; background: linear-gradient(135deg,#fff5e8,#f2e2ce); border-color: #c79c72; }
html[data-admin-theme="light"] .sale-type-caption, html[data-admin-theme="light"] .sale-type-switch { color: #6c747d; stroke: #6c747d; border-color: #0000001a; }

.commission-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 26px; align-items: start; margin: 28px 0; }
.commission-brackets { min-width: 0; }
.commission-intro { max-width: 460px; margin-top: 24px; }
.commission-intro h3 { margin: 0 0 8px; }
.commission-brackets h3, .commission-preview h3 { margin: 0 0 8px; }
.commission-rates { display: grid; gap: 10px; margin: 20px 0; }
.commission-rate-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(110px,140px) 88px; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-panel); transition: border-color .2s, background-color .2s; }
.commission-rate-row.is-preview-bracket { border-color: #b88b60; background: #b88b6010; box-shadow: inset 3px 0 #b88b60; }
.commission-bracket-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.commission-bracket-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; background: #b88b601f; color: #d6ac86; font-size: 12px; font-weight: 800; }
.commission-bracket-name strong { display: block; font-size: 13px; }
.commission-bracket-name small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #9aa6b2; }
.commission-rate-row label { display: block; margin-bottom: 6px; font-size: 11px; color: #9aa6b2; }
.commission-rate-row input, .commission-preview input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--admin-line); border-radius: 10px; background: #10151b; color: #e8edf3; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.commission-rate-row input:focus, .commission-preview input:focus { outline: 2px solid #b88b60; outline-offset: 2px; }
.commission-unlimited { display: block; font-size: 12px; color: #9aa6b2; }
.commission-minimum { max-width: 420px; margin: 24px 0 0; }
.commission-preview { position: sticky; top: 24px; padding: 24px; border: 1px solid #b88b6055; border-radius: 20px; background: linear-gradient(145deg,#b88b601a,#b88b6005); }
.commission-preview .eyebrow { margin: 0 0 8px; color: #d6ac86; font-size: 10px; }
.commission-preview > label { display: block; margin: 22px 0 10px; font-size: 13px; }
.commission-preview-summary { margin: 24px 0 18px; padding-top: 22px; border-top: 1px solid #b88b6033; }
.commission-preview-summary > span { font-size: 12px; color: #9aa6b2; }
.commission-preview-summary strong { display: block; margin-top: 8px; font-size: 32px; line-height: 1.2; color: #d6ac86; overflow-wrap: anywhere; }
.commission-preview-summary p { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
html[data-admin-theme="light"] .commission-rate-row input, html[data-admin-theme="light"] .commission-preview input { background: #fff; color: #171a1f; }
html[data-admin-theme="light"] .commission-bracket-name small, html[data-admin-theme="light"] .commission-rate-row label, html[data-admin-theme="light"] .commission-unlimited, html[data-admin-theme="light"] .commission-preview-summary > span { color: #646c76; }
html[data-admin-theme="light"] .commission-bracket-number, html[data-admin-theme="light"] .commission-preview .eyebrow, html[data-admin-theme="light"] .commission-preview-summary strong { color: #855a35; }
@media (min-width: 981px) and (max-width: 1250px) { .commission-editor-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 16px; } .commission-rate-row { grid-template-columns: minmax(0,1fr) 80px; gap: 10px; padding: 12px; } .commission-bracket-name { grid-column: 1 / -1; } .commission-preview { padding: 18px; } }
@media (max-width: 720px) { .commission-editor-layout { grid-template-columns: minmax(0,1fr); gap: 24px; } .commission-preview { position: static; } .commission-rate-row { grid-template-columns: minmax(0,1fr) 85px; gap: 12px; } .commission-bracket-name { grid-column: 1 / -1; } }
@media (min-width: 981px) {
  .commission-editor-layout { grid-template-columns: minmax(0,460px) 260px; justify-content: start; gap: 18px; margin: 20px 0; }
  .commission-rates { gap: 0; margin: 14px 0; border: 1px solid var(--admin-line); border-radius: 12px; overflow: hidden; }
  .commission-rate-row { grid-template-columns: minmax(120px,1fr) 120px 80px; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--admin-line); border-radius: 0; }
  .commission-rate-row:last-child { border-bottom: 0; }
  .commission-bracket-name { grid-column: auto; gap: 8px; }
  .commission-bracket-name small { margin-top: 3px; }
  .commission-rate-row label { margin-bottom: 4px; }
  .commission-rate-row input { min-height: 38px; padding: 8px; border-radius: 8px; }
  .commission-minimum { max-width: 300px; margin-top: 18px; }
  .commission-preview { padding: 18px; border-radius: 14px; }
  .commission-preview > label { margin-top: 16px; }
  .commission-preview-summary { margin: 18px 0 14px; padding-top: 16px; }
}
.commission-brackets .commission-rates { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .commission-rate-row { transition: none; } }
@media (prefers-reduced-motion: reduce) { .sale-type-toggle span { transition: none; } }

/* Menu compact et parc sur ordinateurs portables. */
.admin-menu-tooltip { position: fixed; z-index: 1000; max-width: 260px; padding: 9px 13px; border-radius: 8px; background: #202630; color: #fff; box-shadow: 0 4px 18px #0004; font-size: 13px; pointer-events: none; }
.admin-menu-tooltip[hidden] { display: none; }
@media (min-width: 981px) {
  .admin-shell.admin-sidebar-collapsed { grid-template-columns: 76px minmax(0,1fr); }
  .admin-sidebar-collapsed .admin-side { padding-left: 10px; padding-right: 10px; padding-bottom: 175px; }
  .admin-sidebar-collapsed .admin-side h1,
  .admin-sidebar-collapsed .admin-side button > span,
  .admin-sidebar-collapsed .admin-side a > span,
  .admin-sidebar-collapsed .session-user > span,
  .admin-sidebar-collapsed .admin-theme-control > p { display: none; }
  .admin-sidebar-collapsed .admin-side button,
  .admin-sidebar-collapsed .admin-side a,
  .admin-sidebar-collapsed .session-user { justify-content: center; min-height: 42px; flex-shrink: 0; }
  .admin-sidebar-collapsed .admin-theme-control { left: 10px; width: 56px; }
  .admin-sidebar-collapsed .admin-theme-buttons { grid-template-columns: 1fr; }
  .admin-sidebar-collapsed #admin-sidebar-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 980px) { .admin-side #admin-sidebar-toggle { display: none; } }
/* Fiches du parc : identité compacte et bandeau financier aligné. */
@media (min-width: 721px) and (max-width: 1512px) {
  .admin-main { min-width: 0; padding: 24px; }
  .vehicle-table, .vehicle-table tbody { display: block; width: 100%; }
  .vehicle-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vehicle-table tr[data-order-id] { display: grid; grid-template-columns: 30px 110px repeat(5,minmax(0,1fr)); grid-template-rows: minmax(52px,auto) minmax(42px,auto) auto; column-gap: 16px; row-gap: 12px; padding: 20px; margin-bottom: 14px; border: 1px solid var(--admin-line); border-radius: 16px; background: var(--admin-bg); align-items: center; }
  .vehicle-table tr[data-order-id] > td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .vehicle-table tr[data-order-id] > td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .vehicle-table tr[data-order-id] > td:nth-child(2) { grid-column: 2; grid-row: 1 / 3; align-self: start; }
  .vehicle-table tr[data-order-id] > td:nth-child(3) { grid-column: 3 / 6; grid-row: 1; align-self: center; }
  .vehicle-table tr[data-order-id] > td:nth-child(4) { grid-column: 6 / 8; grid-row: 1; justify-self: end; }
  .vehicle-table tr[data-order-id] > td:nth-child(5) { grid-column: 3 / 5; grid-row: 2; font-size: 12px; color: #9aa6b2; }
  .vehicle-table tr[data-order-id] > td:nth-child(5)::before { content: 'Délai de vente · '; font-size: 11px; }
  .vehicle-table tr[data-order-id] > td:nth-child(5) .history-current { font-size: 10px; margin-top: 3px; }
  .vehicle-table tr[data-order-id] > td:nth-child(11) { grid-column: 5 / 8; grid-row: 2; justify-self: end; }
  .vehicle-table tr[data-order-id] > td.financial-column { grid-row: 3; align-self: stretch; padding: 14px 0 0; border-top: 1px solid var(--admin-line); text-align: left; }
  .vehicle-table tr[data-order-id] > td:nth-child(6) { grid-column: 3; }
  .vehicle-table tr[data-order-id] > td:nth-child(7) { grid-column: 4; }
  .vehicle-table tr[data-order-id] > td:nth-child(8) { grid-column: 5; }
  .vehicle-table tr[data-order-id] > td:nth-child(9) { grid-column: 6; }
  .vehicle-table tr[data-order-id] > td:nth-child(10) { grid-column: 7; }
  .vehicle-table td.financial-column::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #9aa6b2; font-size: 10px; line-height: 1.4; font-weight: 500; }
  .vehicle-table td:nth-child(6)::before { content: 'Achat'; }
  .vehicle-table td:nth-child(8)::before { content: 'Coût total'; }
  .vehicle-table .money { font-size: 14px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .vehicle-table td:nth-child(9) .money { font-weight: 800; }
  .vehicle-table .admin-fees-link { min-height: 0; padding: 0; }
  .vehicle-table .admin-vehicle-photo-link { width: 110px; overflow: hidden; border-radius: 11px; }
  .vehicle-table .thumb-mini { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: 11px; }
  .vehicle-table .vehicle-photo-empty { display: grid; place-items: center; width: 110px; height: 110px; padding: 12px; font-size: 11px; text-align: center; color: #9aa6b2; border: 1px dashed var(--admin-line); border-radius: 11px; }
  .vehicle-table .admin-vehicle-title-link { gap: 5px; }
  .vehicle-table .admin-vehicle-title-link strong { font-size: 17px; line-height: 1.35; letter-spacing: -.3px; }
  .vehicle-table .admin-vehicle-title-link span { font-size: 12px; }
  .vehicle-table .admin-vehicle-status { font-size: 10px; padding: 5px 8px; }
  .vehicle-table .actions { flex-wrap: nowrap; gap: 6px; }
  .vehicle-table .actions .btn { min-height: 34px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; font-size: 11px; }
  .vehicle-table .actions .btn-ghost { background: transparent; border: 1px solid var(--admin-line); }
  .vehicle-table .actions .btn-ghost:hover { background: #b98b5914; }
  .vehicle-table .order-controls { grid-template-columns: 28px; grid-template-rows: 22px 32px 22px; padding: 0; border: 0; background: transparent; }
  .vehicle-table .order-controls button { width: 28px; }
  .vehicle-table .order-controls .drag-handle { grid-column: 1; grid-row: 2; height: 32px; }
  .vehicle-table .order-controls .order-arrow { grid-column: 1; height: 22px; }
  .vehicle-table .order-controls .order-arrow[data-move="-1"] { grid-row: 1; }
  .vehicle-table .order-controls .order-arrow[data-move="1"] { grid-row: 3; }
  html[data-admin-theme="light"] .vehicle-table td.financial-column::before,
  html[data-admin-theme="light"] .vehicle-table tr[data-order-id] > td:nth-child(5) { color: #70747a; }
}
@media (min-width: 721px) and (max-width: 1150px) {
  .vehicle-table tr[data-order-id] { column-gap: 12px; padding: 16px; }
  .vehicle-table tr[data-order-id] > td.financial-column { grid-row: 4; }
  .vehicle-table tr[data-order-id] > td:nth-child(5) { grid-column: 3 / 8; }
  .vehicle-table tr[data-order-id] > td:nth-child(11) { grid-column: 3 / 8; grid-row: 3; }
  .vehicle-table .money { font-size: 12px; }
}

/* Navigation : surfaces discrètes, repères cuivrés et tirette extérieure. */
.admin-side { background: linear-gradient(165deg,#1a1e25 0%,#12161c 55%); border-right-color: #ffffff12; padding: 26px 14px 18px; scrollbar-width: thin; scrollbar-color: #ffffff25 transparent; }
.admin-menu-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; margin-bottom: 18px; border-bottom: 1px solid #ffffff0d; flex-shrink: 0; }
.admin-brand-mark { display: flex; align-items: baseline; justify-content: center; flex-shrink: 0; width: 38px; height: 42px; border: 1px solid #bd936344; border-radius: 12px; background: linear-gradient(145deg,#c19a7024,#c19a7005); color: #dec09b; font-family: Georgia,serif; font-size: 29px; line-height: 40px; }
.admin-brand-mark > span { font-size: 20px; color: #b98b59; }
.admin-side .admin-menu-brand h1 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.5px; }
.admin-menu-brand h1 small { display: block; margin-top: 5px; font-family: Manrope,sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; color: #939ca9; }
.admin-side > button, .admin-side > a { position: relative; flex-shrink: 0; min-height: 44px; padding: 11px 12px; margin-bottom: 5px; font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; border-radius: 10px; color: #aab3c0; transition: background-color .16s, color .16s, border-color .16s; }
.admin-side > button .nav-icon, .admin-side > a .nav-icon { width: 19px; height: 19px; flex: 0 0 19px; color: #939eae; }
.admin-side > button:hover, .admin-side > a:hover { background: #ffffff06; color: #f3eee7; border-color: #ffffff0a; }
.admin-side > button.is-active { background: #b98b5914; border-color: transparent; color: #efdbc1; box-shadow: none; }
.admin-side > button.is-active .nav-icon { color: #dbb88b; }
.admin-side #nav-migration { margin-bottom: 20px; }
.admin-side > a { border-top-color: #ffffff12; border-radius: 0 0 10px 10px; padding-top: 17px; }
.admin-side .session-user { flex-shrink: 0; font-size: 12px; color: #9da7b5; }
.admin-side #logout { color: #939caa; }
.admin-side .admin-theme-control { position: static; width: 100%; margin-top: auto; padding-top: 18px; background: transparent; border-top-color: #ffffff12; }
.admin-side .admin-theme-buttons { padding: 4px; border: 1px solid #ffffff0b; border-radius: 12px; background: #00000020; }
.admin-side .admin-theme-buttons button.is-active { background: #ffffff0d; box-shadow: none; color: #e2c5a1; }
#admin-sidebar-toggle { display: none; }
.admin-menu-tooltip { border: 1px solid #ffffff14; background: #242a33; border-radius: 9px; padding: 9px 13px; box-shadow: 0 8px 24px #0003; }
html[data-admin-theme="light"] .admin-side { background: linear-gradient(165deg,#faf8f3,#eeeae2); border-right-color: #252a3114; }
html[data-admin-theme="light"] .admin-menu-brand { border-bottom-color: #252a3110; }
html[data-admin-theme="light"] .admin-brand-mark { color: #775232; }
html[data-admin-theme="light"] .admin-side > button.is-active { color: #684727; background: #b98b5914; border-color: transparent; }
html[data-admin-theme="light"] .admin-side > button.is-active .nav-icon { color: #91643c; }
html[data-admin-theme="light"] .admin-side > button:hover, html[data-admin-theme="light"] .admin-side > a:hover { background: #ffffffa0; border-color: #252a310c; }
html[data-admin-theme="light"] .admin-side > a, html[data-admin-theme="light"] .admin-side .admin-theme-control { border-top-color: #252a3112; }
html[data-admin-theme="light"] .admin-side .admin-theme-buttons { background: #252a3105; border-color: #252a3110; }
@media (min-width: 981px) {
  #admin-sidebar-toggle { position: fixed; z-index: 40; top: 100px; left: 239px; display: grid; place-items: center; width: 24px; height: 48px; padding: 0; border: 1px solid #ffffff20; border-left: 0; border-radius: 0 10px 10px 0; background: #242a33; color: #d6b58e; box-shadow: none; cursor: pointer; }
  #admin-sidebar-toggle > span { display: none; }
  #admin-sidebar-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #admin-sidebar-toggle:hover { background: #343c47; color: #ffe0b8; }
  #admin-sidebar-toggle:focus-visible { outline: 2px solid #bd9363; outline-offset: 3px; }
  .admin-sidebar-collapsed #admin-sidebar-toggle { left: 75px; }
  .admin-sidebar-collapsed .admin-side { padding-bottom: 18px; }
  .admin-sidebar-collapsed .admin-menu-brand { justify-content: center; padding: 0 0 25px; }
  .admin-sidebar-collapsed .admin-side .admin-menu-brand h1 { display: none; }
  .admin-sidebar-collapsed .admin-side .admin-theme-control { width: 100%; }
  html[data-admin-theme="light"] #admin-sidebar-toggle { background: #eee8dd; color: #795735; border-color: #252a3120; }
  html[data-admin-theme="light"] #admin-sidebar-toggle:hover { background: #e1d7c8; }
}
@media (max-width: 980px) {
  .admin-menu-brand { display: none; }
  .admin-side .admin-theme-control { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .admin-side > button, .admin-side > a { transition: none; } }

/* Sélection plane, signalée par un trait court plutôt qu’une ombre. */
.admin-side > button.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; border-radius: 3px; background: #bd9363; transform: translateY(-50%); pointer-events: none; }
.admin-side .admin-theme-buttons button { box-shadow: none; }
html[data-admin-theme="light"] .admin-side .admin-theme-buttons button.is-active { box-shadow: none; background: #fffdf8; }

/* Identité, sélection contrastée et mouvement coordonné du rail. */
.admin-menu-brand { flex-direction: column; justify-content: center; gap: 10px; height: 140px; padding: 0 0 20px; }
.admin-brand-logo { display: block; width: 164px; height: 92px; object-fit: contain; padding: 8px; background: transparent; border-radius: 0; }
.admin-side .admin-menu-brand h1 { font-family: Manrope,sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #aeb6c2; white-space: nowrap; }
html[data-admin-theme="light"] .admin-side .admin-menu-brand h1 { color: #646c76; }
.admin-side > button.is-active, .admin-side > button.is-active:hover { background: #bd936324; color: #e5cfb3; border-color: #bd93632b; font-weight: 650; box-shadow: none; }
.admin-side > button.is-active .nav-icon { color: #cba77d; }
.admin-side > button.is-active::before { background: #b68e62; height: 16px; }
html[data-admin-theme="light"] .admin-side > button.is-active, html[data-admin-theme="light"] .admin-side > button.is-active:hover { background: #a77a4520; color: #684c30; border-color: #a77a4526; }
html[data-admin-theme="light"] .admin-side > button.is-active .nav-icon { color: #88633f; }
html[data-admin-theme="light"] .admin-side > button.is-active::before { background: #a47b50; }
@media (min-width: 981px) {
  .admin-shell { grid-template-columns: 240px minmax(0,1fr); transition: grid-template-columns .32s cubic-bezier(.22,.8,.25,1); }
  .admin-side { min-width: 0; overflow-x: hidden; transition: padding .32s cubic-bezier(.22,.8,.25,1); }
  #admin-sidebar-toggle { transition: left .32s cubic-bezier(.22,.8,.25,1), background-color .16s; }
  #admin-sidebar-toggle svg { transition: transform .32s cubic-bezier(.22,.8,.25,1); }
  .admin-brand-logo { transition: width .32s cubic-bezier(.22,.8,.25,1), height .32s cubic-bezier(.22,.8,.25,1), padding .32s; }
  .admin-side > button, .admin-side > a, .admin-side .session-user { overflow: hidden; }
  .admin-side > button > span, .admin-side > a > span, .admin-side .session-user > span { display: block; white-space: nowrap; overflow: hidden; min-width: 0; max-width: 180px; opacity: 1; transition: opacity .16s ease, max-width .32s cubic-bezier(.22,.8,.25,1); }
  .admin-sidebar-collapsed .admin-side > button > span, .admin-sidebar-collapsed .admin-side > a > span, .admin-sidebar-collapsed .admin-side .session-user > span { display: block; max-width: 0; opacity: 0; white-space: nowrap; }
  .admin-side > button, .admin-side > a, .admin-side .session-user { transition: gap .32s, padding .32s, background-color .16s, color .16s; }
  .admin-sidebar-collapsed .admin-side > button, .admin-sidebar-collapsed .admin-side > a, .admin-sidebar-collapsed .admin-side .session-user { gap: 0; }
  .admin-sidebar-collapsed .admin-brand-logo { width: 52px; height: 48px; padding: 4px; }
  .admin-sidebar-collapsed .admin-menu-brand { height: 140px; padding: 0 0 20px; }
  .admin-side .admin-menu-brand h1 { transition: opacity .16s; }
  .admin-sidebar-collapsed .admin-side .admin-menu-brand h1 { display: block; opacity: 0; width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-shell, .admin-side, #admin-sidebar-toggle, #admin-sidebar-toggle svg, .admin-brand-logo,
  .admin-side > button, .admin-side > a, .admin-side .session-user,
  .admin-side > button > span, .admin-side > a > span, .admin-side .session-user > span, .admin-side .admin-menu-brand h1 { transition: none; }
}

/* Recherche et filtres alignés sur les écrans de portable. */
@media (min-width: 721px) and (max-width: 1512px) {
  .vehicle-search-bar { grid-template-columns: minmax(160px,1fr) max-content; gap: 8px 12px; }
  .vehicle-search-input { grid-column: 1; grid-row: 2; min-width: 0; }
  .vehicle-status-filters { grid-column: 2; grid-row: 2; flex-wrap: nowrap; width: auto; max-width: none; gap: 6px; }
  .vehicle-status-filters .btn { padding: 9px 10px; gap: 6px; font-size: 12px; white-space: nowrap; }
}
/* Le survol des cartes s'applique à toute la surface, sans pavés par cellule. */
@media (max-width: 1512px) {
  #vehicle-rows tr[data-order-id] { transition: background-color .16s ease; }
  #vehicle-rows tr[data-order-id]:not(.is-dragging):hover { background-color: #ffffff09; }
  html[data-admin-theme="light"] #vehicle-rows tr[data-order-id]:not(.is-dragging):hover { background-color: #8d5c320e; }
  #vehicle-rows tr[data-order-id]:not(.is-dragging):hover td,
  html[data-admin-theme="light"] #vehicle-rows tr[data-order-id]:not(.is-dragging):hover td { background-color: transparent; }
}

/* Sélecteur de photos, assorti au choix du type de vente. */
.field .photo-upload-button { position: relative; display: inline-flex; align-items: center; gap: 12px; align-self: start; width: 290px; max-width: 100%; min-height: 72px; margin: 6px 0 14px; padding: 13px 16px; overflow: hidden; border: 1px solid #bd906566; border-radius: 16px; background: linear-gradient(135deg,#34302b,#20252d); color: #ecd7bd; cursor: pointer; transition: border-color .2s, background-color .2s; }
.photo-upload-button #photos { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.photo-upload-button svg { flex-shrink: 0; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-upload-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.photo-upload-copy small { font-size: 9px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: #b7ac9e; }
.photo-upload-copy strong { font-size: 13px; font-weight: 750; }
.photo-upload-button .photo-upload-plus { margin-left: auto; width: 19px; height: 19px; color: #d6ac86; transition: transform .25s ease; }
.field .photo-upload-button:hover { border-color: #d6ac86; }
.photo-upload-button:hover .photo-upload-plus { transform: rotate(90deg); }
.field .photo-upload-button:focus-within { outline: 2px solid #d6ac86; outline-offset: 3px; }
html[data-admin-theme="light"] .field .photo-upload-button { background: linear-gradient(135deg,#fffaf3,#f0e6d8); color: #755131; border-color: #cbb393; }
html[data-admin-theme="light"] .photo-upload-copy small { color: #847564; }
html[data-admin-theme="light"] .photo-upload-button .photo-upload-plus { color: #91643c; }
html[data-admin-theme="light"] .field .photo-upload-button:hover { border-color: #91643c; }
@media (prefers-reduced-motion: reduce) { .field .photo-upload-button, .photo-upload-button .photo-upload-plus { transition: none; } }

.vehicle-status-filters .vehicle-consignment-filter.is-active, .vehicle-status-filters .vehicle-consignment-filter.is-active:hover { color: #e6c39b; background: #b98b5924; border-color: #b98b5970; box-shadow: inset 0 0 0 1px #b98b5970; }
html[data-admin-theme="light"] .vehicle-status-filters .vehicle-consignment-filter.is-active, html[data-admin-theme="light"] .vehicle-status-filters .vehicle-consignment-filter.is-active:hover { color: #755131; background: #b98b5920; border-color: #b98b5960; box-shadow: inset 0 0 0 1px #b98b5960; }
@media (min-width: 721px) and (max-width: 1150px) {
  .vehicle-status-filters { gap: 4px; }
  .vehicle-status-filters .btn { padding: 8px 7px; gap: 4px; font-size: 11px; }
  .vehicle-status-filters svg { width: 15px; height: 15px; }
  .vehicle-status-filters .filter-count { min-width: 20px; height: 20px; font-size: 10px; }
}

/* Repère discret pour les véhicules confiés en dépôt-vente. */
.vehicle-consignment-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 7px; padding: 3px 7px; border: 1px solid #b98b5930; border-radius: 6px; background: #b98b5910; color: #c9a67e; font-size: 10px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.vehicle-consignment-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-admin-theme="light"] .vehicle-consignment-badge { color: #87613b; background: #b98b590d; border-color: #b98b5938; }

.vehicle-title-heading { display: flex; align-items: center; flex-wrap: nowrap; gap: 9px; }
.vehicle-title-heading .admin-vehicle-title-link { min-width: 0; }
.vehicle-title-heading .vehicle-consignment-badge { margin-top: 0; flex-shrink: 0; }
.vehicle-title-meta { display: block; margin-top: 5px; color: #9aa6b2; font-size: 12px; }
html[data-admin-theme="light"] .vehicle-title-meta { color: #646c76; }

/* Cartes vitrine : identité lisible, caractéristiques ordonnées, invitation au clic. */
.vehicle-card { border-radius: 20px; border-color: #ded8cf; box-shadow: 0 4px 18px #29241f06; transition: border-color .2s, box-shadow .2s; }
.vehicle-card:hover { transform: none; border-color: #bda78d; box-shadow: 0 10px 28px #29241f0c; }
.vehicle-card .card-body { flex: 1; gap: 20px; padding: 22px 22px 16px; }
.vehicle-card .card-identity h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.5px; }
.vehicle-card .card-link { color: #29241f; }
.vehicle-card .card-motorization { margin: 6px 0 0; color: #847564; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.vehicle-card .specs { margin-top: -8px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; padding: 18px 0; border-top: 1px solid #e9e3da; border-bottom: 1px solid #e9e3da; }
.vehicle-card .spec { align-items: center; gap: 10px; }
.vehicle-card .spec > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #a1876c; }
.vehicle-card .card-spec-copy { display: grid; gap: 3px; min-width: 0; }
.vehicle-card .card-spec-label { color: #817c75; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; font-weight: 500; }
.vehicle-card .spec-value { display: flex; align-items: center; gap: 3px; color: #39342e; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.vehicle-card .certified-card-check { width: 16px; height: 16px; flex-basis: 16px; }
.card-discover { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: #8d6540; font-size: 12px; font-weight: 750; }
.card-discover-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #b98b5910; transition: background-color .2s; }
.card-discover-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.vehicle-card:hover .card-discover-arrow, .vehicle-card:focus-within .card-discover-arrow { background: #b98b5929; }
.vehicle-card:hover .card-discover-arrow svg, .vehicle-card:focus-within .card-discover-arrow svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .vehicle-card, .card-discover-arrow, .card-discover-arrow svg { transition: none; } }
.vehicle-card .card-identity { min-height: 0; }
.vehicle-card .certified-card-check svg { color: #2f9b62; }
@media (max-width: 720px) { .vehicle-card .card-identity { min-height: 0; } }

/* Navigation photo discrète : apparition au survol, accès clavier et tactile. */
.vehicle-card .carousel-arrow { width: 38px; height: 46px; padding: 0; border: 1px solid #ffffff70; border-radius: 13px; background: #fffdf84d; color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 3px 12px #00000014; transition: opacity .3s ease, transform .36s cubic-bezier(.22,.8,.25,1), background-color .2s, border-color .2s; }
.vehicle-card .carousel-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.vehicle-card .carousel-arrow:hover { background: #fffdf873; border-color: #ffffff90; }
.vehicle-card .carousel-arrow:focus-visible { outline: 2px solid #8d6540; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .vehicle-card .carousel-arrow { opacity: 0; pointer-events: none; }
  .vehicle-card .carousel-arrow.prev { transform: translate(-8px,-50%); }
  .vehicle-card .carousel-arrow.next { transform: translate(8px,-50%); }
  .vehicle-card:hover .carousel-arrow, .vehicle-card:has(:focus-visible) .carousel-arrow { opacity: 1; pointer-events: auto; transform: translate(0,-50%); }
}
@media (prefers-reduced-motion: reduce) { .vehicle-card .carousel-arrow { transition: none; } }

/* Points forts : une liste compacte, sans apparence de bouton. */
.vehicle-highlights .document-list { grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 4px 20px; }
.vehicle-highlights .document-item { align-items: flex-start; gap: 9px; padding: 5px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 12px; line-height: 1.6; font-weight: 500; }
.vehicle-highlights .document-item svg,
.vehicle-highlights .document-item .custom-equipment-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
/* Description enrichie : même typographie dans l’éditeur et la fiche client. */
.description-composer { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-panel); }
.description-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border-bottom: 1px solid var(--admin-line); background: #b98b5909; }
.description-toolbar button, .description-toolbar .description-color { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; margin: 0; padding: 6px 9px; border: 1px solid var(--admin-line); border-radius: 7px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.description-toolbar button:hover, .description-toolbar button[aria-pressed="true"] { background: #b98b5929; border-color: #b98b5980; }
.description-toolbar .description-color input { width: 24px; height: 24px; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.rich-description { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.rich-description p, .rich-description > div { margin: 0 0 .7em; }
.rich-description ul, .rich-description ol { padding-left: 1.7em; margin: .65em 0; }
.rich-description ul { list-style: disc; }
.rich-description ol { list-style: decimal; }
.rich-description li { margin: .15em 0; }
.rich-description blockquote { margin: .8em 0; padding: 8px 16px; border-left: 3px solid #b98b59; background: #b98b5910; }
.rich-description a { color: #ac7845; text-decoration: underline; text-underline-offset: 3px; }
.description-editor { min-height: 220px; padding: 18px; outline: none; }
.description-editor:empty::before { content: attr(data-placeholder); color: #8c949e; pointer-events: none; }
.description-composer:focus-within { border-color: #b98b59; }
.description-toolbar { align-items: center; gap: 4px; }
.description-toolbar button { min-width: 34px; padding: 7px; }
.description-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.description-toolbar select { width: auto; min-height: 34px; max-width: 100%; padding: 5px 26px 5px 9px; border: 1px solid var(--admin-line); border-radius: 7px; font: inherit; font-size: 12px; }
.description-toolbar .description-color { position: relative; width: 34px; padding: 7px; }
.description-toolbar .description-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.description-color:focus-within { outline: 2px solid var(--copper); outline-offset: 2px; }
.rich-description h2 { font-family: 'Fraunces', Georgia, serif; font-size: 28px; line-height: 1.3; font-weight: 500; margin: .8em 0 .4em; }
.rich-description h3 { font-family: 'Manrope', sans-serif; font-size: 22px; line-height: 1.4; font-weight: 750; margin: .8em 0 .4em; }
.rich-description h4 { font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 1.4; font-weight: 650; margin: .8em 0 .4em; }
.rich-description > :first-child { margin-top: 0; }
.description-editor font[size="2"] { font-size: 12px; }
.description-editor font[size="3"] { font-size: 14px; }
.description-editor font[size="4"] { font-size: 18px; }

/* Action principale du parc, sobre et sans relief. */
:is(#btn-new, .vehicle-form-action) { min-height: 46px; padding: 7px 16px 7px 8px; gap: 11px; border: 1px solid #b98b5952; border-radius: 12px; background: #b98b5914; color: #e3c39e; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; box-shadow: none; transition: background-color .18s, border-color .18s, color .18s; }
:is(#btn-new, .vehicle-form-action) svg { box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border-radius: 8px; background: #b98b591c; stroke-width: 1.7; }
:is(#btn-new, .vehicle-form-action):hover { background: #b98b5926; border-color: #b98b5980; color: #f1d6b6; }
:is(#btn-new, .vehicle-form-action):focus-visible { outline: 2px solid #b98b59; outline-offset: 3px; }
html[data-admin-theme="light"] :is(#btn-new, .vehicle-form-action) { color: #775333; background: #b98b590d; border-color: #b98b5950; }
html[data-admin-theme="light"] :is(#btn-new, .vehicle-form-action):hover { color: #5f4027; background: #b98b591f; border-color: #b98b5980; }
@media (prefers-reduced-motion: reduce) { :is(#btn-new, .vehicle-form-action) { transition: none; } }

:is(#btn-cancel, #btn-cancel-bottom).vehicle-form-back { color: #b8c0ca; border-color: var(--admin-line); background: transparent; }
:is(#btn-cancel, #btn-cancel-bottom).vehicle-form-back svg { background: #949fac14; }
:is(#btn-cancel, #btn-cancel-bottom).vehicle-form-back:hover { background: #949fac12; border-color: #949fac55; }
html[data-admin-theme="light"] :is(#btn-cancel, #btn-cancel-bottom).vehicle-form-back { color: #5f6268; background: transparent; border-color: var(--admin-line); }
html[data-admin-theme="light"] :is(#btn-cancel, #btn-cancel-bottom).vehicle-form-back:hover { background: #949fac12; border-color: #949fac55; }
/* Footer éditorial et page de confidentialité. */
.site-footer { margin-top: 70px; padding: 0; background: #191d22; color: #cbc7bf; border-top: 1px solid #b98b5930; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 38px; padding: 52px 0 40px; }
.footer-brand img { width: 140px; height: 84px; object-fit: contain; }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.8; color: #999d9f; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding-top: 14px; }
.footer-column h2 { margin-bottom: 9px; color: #c5a681; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; }
.footer-column a { color: #e4e0d9; font-size: 12px; line-height: 1.6; }
.footer-column a:hover, .footer-bottom a:hover { color: #d9b891; text-decoration: underline; text-underline-offset: 5px; }
.footer-contact > a:first-of-type { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.footer-contact > span { color: #999d9f; font-size: 12px; line-height: 1.8; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 0; border-top: 1px solid #ffffff12; font-size: 10px; color: #999d9f; }
.footer-bottom > a { margin-left: auto; color: #c5a681; }
.privacy-back { display: inline-block; color: #8d6540; font-size: 12px; margin-bottom: 36px; }
.privacy-heading { max-width: 700px; margin-bottom: 44px; }
.privacy-heading h1 { font-family: Fraunces,Georgia,serif; font-size: clamp(32px,4.5vw,56px); font-weight: 500; line-height: 1.15; margin: 12px 0 22px; }
.privacy-heading > p:not(.eyebrow) { max-width: 600px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.privacy-date { display: block; margin-top: 20px; font-size: 11px; color: #81776b; }
.privacy-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 60px; align-items: start; }
.privacy-summary { position: sticky; top: 120px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.privacy-summary p { margin: 16px 0; font-size: 13px; line-height: 1.8; }
.privacy-summary a { display: block; font-size: 12px; color: #8d6540; margin: 10px 0; overflow-wrap: anywhere; }
.privacy-summary small { display: block; color: var(--muted); line-height: 1.8; margin-top: 14px; }
.privacy-content section { position: relative; padding: 0 0 28px 40px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.privacy-number { position: absolute; left: 0; top: 5px; color: #b79875; font-size: 11px; }
.privacy-content h2 { font-family: Fraunces,Georgia,serif; font-size: 24px; font-weight: 500; margin-bottom: 14px; }
.privacy-content p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin-bottom: 12px; }
.privacy-content a { color: #865b35; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-content .privacy-draft { padding: 14px 18px; border-left: 2px solid #b79875; background: #b7987510; font-size: 12px; margin-bottom: 30px; }
.privacy-content .privacy-source { font-size: 12px; }
@media (max-width: 980px) { .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; } .privacy-layout { grid-template-columns: 210px minmax(0,1fr); gap: 28px; } }
@media (max-width: 620px) { .footer-main { gap: 24px 16px; padding: 32px 0; } .footer-brand, .footer-contact { grid-column: 1 / -1; } .footer-brand { display: flex; align-items: center; gap: 20px; } .footer-brand img { width: 108px; } .footer-brand p { margin: 0; font-size: 12px; } .footer-bottom { padding-bottom: 105px; } .footer-bottom > a { margin-left: 0; } .privacy-layout { grid-template-columns: 1fr; } .privacy-summary { position: static; } .privacy-content section { padding-left: 30px; } }
/* Dedicated error page: editorial typography and a quiet road illustration. */
.not-found { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px,6vw,90px); align-items: center; padding-top: clamp(48px,7vw,100px); padding-bottom: clamp(64px,8vw,120px); min-height: 72vh; }
.not-found-copy { min-width: 0; }
.not-found-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: #89633f; text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 750; }
.not-found-eyebrow > span { width: 20px; height: 1px; background: currentColor; }
.not-found h1 { margin: 0; font-family: Fraunces,Georgia,serif; font-size: clamp(38px,4.4vw,66px); font-weight: 500; letter-spacing: -2px; line-height: 1.13; }
.not-found h1 em { color: #96704c; font-style: normal; }
.not-found-description { max-width: 420px; margin: 26px 0 32px; color: #666760; font-size: 14px; line-height: 1.9; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; }
.not-found-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 15px 20px; border: 1px solid #262c29; border-radius: 10px; background: #262c29; color: #fffdf8; font-size: 12px; font-weight: 650; transition: background .2s, border-color .2s; }
.not-found-primary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.not-found-primary:hover { background: #414a43; border-color: #414a43; }
.not-found-home { padding: 10px 0; border-bottom: 1px solid #bcb4a5; color: #5c5d55; font-size: 12px; transition: color .2s, border-color .2s; }
.not-found-home:hover { color: #8d5c32; border-color: #8d5c32; }
.not-found-actions a:focus-visible { outline: 2px solid #996c42; outline-offset: 5px; }
.not-found-signature { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 9px; font-weight: 750; letter-spacing: 1.5px; color: #777768; }
.not-found-signature span { font-weight: 400; letter-spacing: 0; color: #7b7c74; font-size: 11px; }
.not-found-art { position: relative; overflow: hidden; isolation: isolate; min-height: 470px; border: 1px solid #464a3e; border-radius: 140px 140px 20px 20px; background: radial-gradient(ellipse at 30% 0%,#495344 0%,#29332d 55%,#222b25 100%); color: #485347; }
.not-found-art-top { position: absolute; z-index: 2; top: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; align-items: center; color: #c7bc9f; font-size: 8px; letter-spacing: 2px; }
.not-found-art-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1; }
.not-found-number { position: relative; z-index: 1; margin-top: 65px; text-align: center; color: #e9dfca; font-family: Fraunces,Georgia,serif; font-size: clamp(130px,15vw,210px); font-weight: 500; letter-spacing: -10px; line-height: 1.3; }
.not-found-zero { color: #bf9b70; }
.not-found-road { position: absolute; bottom: 0; left: 0; width: 100%; height: 58%; }
.not-found-art-bottom { position: absolute; z-index: 2; bottom: 26px; left: 26px; right: 26px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #d3c9b4; }
.not-found-art-bottom > span:first-child { font-size: 8px; letter-spacing: 1.6px; }
.not-found-art-bottom > span:last-child { font-family: Fraunces,Georgia,serif; font-size: 13px; }
@media (max-width: 980px) { .not-found { gap: 28px; } .not-found-art { min-height: 410px; border-radius: 100px 100px 18px 18px; } .not-found-art-bottom { left: 18px; right: 18px; flex-wrap: wrap; } }
@media (max-width: 720px) { .not-found { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 60px; gap: 34px; } .not-found h1 { font-size: clamp(36px,9vw,52px); letter-spacing: -1.3px; } .not-found-eyebrow { margin-bottom: 20px; } .not-found-description { margin: 20px 0 24px; } .not-found-signature { margin-top: 28px; } .not-found-art { min-height: 330px; border-radius: 100px 100px 18px 18px; } .not-found-number { margin-top: 42px; font-size: 150px; } .not-found-art-top { top: 30px; } }
@media (prefers-reduced-motion: reduce) { .not-found-actions a { transition: none; } }
.hero:has(.hero-guarantee) { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.85fr); gap: clamp(32px,5vw,78px); align-items: center; }
.hero-introduction { min-width: 0; }
.hero-guarantee { padding: 28px 30px; border: 1px solid #b3947050; border-radius: 24px; background: linear-gradient(145deg,#fffdf8,#ece6db); }
.hero-guarantee-top { display: flex; align-items: center; gap: 12px; color: #886745; font-size: 9px; font-weight: 750; letter-spacing: 1.6px; }
.hero-guarantee-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #b3947040; border-radius: 12px; background: #b394700d; }
.hero-guarantee-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-guarantee h2 { margin: 20px 0 18px; font-family: Fraunces,Georgia,serif; font-size: clamp(24px,2.1vw,30px); line-height: 1.25; font-weight: 500; letter-spacing: -.7px; }
.hero-guarantee h2 em { color: #8f6b45; font-style: normal; }
.hero-guarantee-duration { display: flex; align-items: center; gap: 17px; padding: 0 0 20px; border-bottom: 1px solid #9c85652b; }
.hero-guarantee-duration > strong { font-family: Fraunces,Georgia,serif; font-size: 82px; font-weight: 500; line-height: 1; color: #8d6844; }
.hero-guarantee-duration > div { display: grid; gap: 5px; }
.hero-guarantee-duration span { font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
.hero-guarantee-duration small { font-size: 10px; color: #6b6e67; }
.hero .hero-guarantee-copy { margin: 18px 0; font-size: 12px; line-height: 1.8; color: #656860; }
.hero-guarantee-copy strong { color: #434a41; font-weight: 650; }
.hero-guarantee-extensions > span { font-size: 10px; color: #666a62; }
.hero-guarantee-extensions > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.hero-guarantee-extensions > div > span { padding: 7px 11px; border-radius: 7px; background: #9c856510; border: 1px solid #9c856524; color: #755738; font-size: 11px; font-weight: 650; }
.hero .hero-guarantee-note { margin: 14px 0 18px; color: #74756d; font-size: 10px; line-height: 1.7; }
.hero-guarantee-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #9c85652b; color: #735537; font-size: 11px; font-weight: 650; }
.hero-guarantee-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-guarantee-link:hover { color: #342b22; }
.hero-guarantee-link:focus-visible { outline: 2px solid #996c42; outline-offset: 5px; border-radius: 2px; }
#garantie-commerciale { scroll-margin-top: 130px; }
@media (max-width: 980px) { .hero:has(.hero-guarantee) { grid-template-columns: 1fr; gap: 32px; } .hero-guarantee { max-width: 620px; } }
@media (max-width: 480px) { .hero-guarantee { padding: 23px 21px; border-radius: 18px; } .hero-guarantee-top { letter-spacing: 1px; font-size: 8px; } .hero-guarantee-duration > strong { font-size: 72px; } }
/* Visitor announcements */
.site-announcement[hidden] { display: none; }
.site-announcement { display: flex; align-items: flex-start; gap: 18px; margin-top: 24px; padding: 22px 24px; border: 1px solid #bea07b70; border-radius: 16px; background: #ede6d9; color: #30382f; }
.announcement-symbol { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #b18a581a; color: #896238; }
.announcement-symbol svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.announcement-copy { flex: 1; min-width: 0; }
.announcement-kicker { color: #886440; font-size: 14px; font-weight: 650; }
.announcement-copy h2 { margin: 5px 0 7px; font-family: Fraunces,Georgia,serif; font-size: 24px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.announcement-copy p { font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
#announcement-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 1px solid #aa8a602e; border-radius: 50%; background: transparent; color: #66553e; cursor: pointer; }
#announcement-close:hover { background: #b18a581c; }
#announcement-close:focus-visible { outline: 2px solid #8d5c32; outline-offset: 3px; }
#announcement-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.announcement-editor-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; align-items: start; }
#announcement-form .field { margin: 20px 0; }
#announcement-form .actions { flex-wrap: wrap; }
.announcement-preview-card { margin: 20px 0; padding: 24px; border: 1px solid #bfa886; border-radius: 16px; background: #ede6d9; color: #30382f; overflow-wrap: anywhere; }
.announcement-preview-card h3 { margin: 8px 0; font-family: Fraunces,Georgia,serif; font-size: 24px; color: #30382f; }
.announcement-preview-card p { white-space: pre-wrap; font-size: 16px; line-height: 1.65; }
.announcement-state { padding: 8px 14px; border: 1px solid #92877960; border-radius: 30px; color: #94877a; font-size: 14px; }
.announcement-state.is-live { color: #469568; border-color: #46956860; background: #46956812; }
@media (max-width: 980px) { .announcement-editor-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .site-announcement { position: relative; padding: 20px; gap: 12px; } .announcement-symbol { display: none; } .announcement-copy { padding-right: 26px; } #announcement-close { position: absolute; top: 10px; right: 8px; } .announcement-copy h2 { font-size: 22px; } }
/* Public typography: 14px minimum for supporting text, 16px for reading. */
.public-site :is(.brand-tagline,.nav a,.mobile-dock-links a,.mobile-dock-expand,.public-account,.eyebrow,.badge,.photo-count,.card-spec-label,.card-discover,.detail-edit-link,.detail-spec dt,.mileage-certified-badge,.sold-detail-badge,.price-reduction,.detail-discount,.initial-price,.appointment-link small,.warranty-durations small,.warranty-note,.trade-in-note,.trade-in-contact,.trade-in-benefits strong,.trade-in-benefits p,.footer-brand p,.footer-column h2,.footer-column a,.footer-contact > span,.footer-bottom,.privacy-back,.privacy-date,.privacy-number,.privacy-summary p,.privacy-summary a,.privacy-summary small,.privacy-source,.privacy-draft,.not-found-eyebrow,.not-found-primary,.not-found-home,.not-found-signature,.not-found-signature span,.not-found-art-top,.not-found-art-bottom > span,.hero-guarantee-top,.hero-guarantee-duration small,.hero-guarantee-extensions > span,.hero-guarantee-extensions > div > span,.hero-guarantee-note,.hero-guarantee-link,.document-item,.fullscreen-photo-hint) { font-size: 14px; }
.public-site :is(.card-motorization,.spec-value) { font-size: 15px; }
.public-site :is(.hero-guarantee-copy,.appointment-contact > p:not(.eyebrow)) { font-size: 16px; line-height: 1.75; }
.public-site :is(.warranty-note,.trade-in-note) { color: #dad7cf; line-height: 1.7; }
.public-site .warranty-durations small { color: #dedbd4; line-height: 1.5; }
.public-site :is(.eyebrow,.hero-guarantee-top,.footer-column h2,.not-found-eyebrow,.not-found-art-top,.not-found-art-bottom > span:first-child) { letter-spacing: .07em; }
.public-site .brand-tagline { max-width: 235px; line-height: 1.5; letter-spacing: .03em; }
.public-site .footer-bottom { line-height: 1.6; }
.public-site .footer-contact > a:first-of-type { font-size: 18px; }
.public-site .card-spec-copy { min-width: 0; }
.public-site .spec-value { overflow-wrap: anywhere; }
.public-site .not-found-art-top { padding: 0 18px; text-align: center; }
.public-site .warranty-durations { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width: 721px) and (max-width: 1100px) { .public-site .header-inner { flex-wrap: wrap; row-gap: 10px; } .public-site .nav { margin-left: auto; } }
@media (max-width: 720px) { .public-site .brand-tagline { max-width: 215px; } .public-site .not-found-art-bottom { flex-wrap: wrap; } .public-site .footer-main { column-gap: 22px; } }
.public-site .appointment-link strong { font-size: 14px; }
.vehicle-share { margin: 0; padding: 24px; border: 1px solid #b98b5945; border-radius: 18px; background: #fffdf8; }
.vehicle-share-heading { display: flex; align-items: center; gap: 12px; }
.vehicle-share-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #b98b5945; border-radius: 50%; background: #f5eee4; color: #8c653f; }
.vehicle-share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-share h2 { margin: 0; font-family: Fraunces,Georgia,serif; font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -.4px; }
.vehicle-share > p { margin-top: 13px; color: #63685f; font-size: 16px; line-height: 1.65; }
.vehicle-share-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: 18px; padding: 13px 16px; min-height: 48px; border: 1px solid #b98b5960; border-radius: 10px; background: #b98b5910; color: #775333; font: inherit; font-size: 14px; font-weight: 650; text-align: left; cursor: pointer; transition: background-color .18s,border-color .18s; }
.vehicle-share-button:hover { background: #b98b5924; border-color: #b98b5990; }
.vehicle-share-button:focus-visible { outline: 2px solid #996c42; outline-offset: 4px; }
.vehicle-share-button:disabled { opacity: .65; cursor: wait; }
.vehicle-share .vehicle-share-status { font-size: 14px; }
.vehicle-share-status:empty { display: none; }
.vehicle-share-fallback { margin-top: 16px; }
.vehicle-share-fallback label { display: block; margin-bottom: 7px; font-size: 14px; color: #775333; }
.vehicle-share-fallback input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #b98b5960; border-radius: 8px; background: #fffdf8; color: #343930; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .vehicle-share-button { transition: none; } }
.vehicle-copy-toast { position: fixed; z-index: 1500; left: 50%; bottom: 28px; transform: translate(-50%,8px); display: flex; align-items: center; gap: 13px; max-width: calc(100vw - 32px); width: max-content; padding: 12px 20px 12px 12px; border: 1px solid #b98b5980; border-radius: 14px; background: linear-gradient(135deg,#fffdf8,#f0e4d3); color: #775333; box-shadow: 0 8px 28px #77533318; font-size: 15px; font-weight: 650; line-height: 1.5; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s,transform .2s,visibility .2s; }
.vehicle-copy-toast-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid #b98b5935; border-radius: 10px; background: #b98b5917; color: #946737; }
.vehicle-copy-toast-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-copy-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
@media (max-width: 720px) { .vehicle-copy-toast { bottom: calc(112px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .vehicle-copy-toast { transition: none; } }
.vehicle-fees-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.vehicle-fees-live-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; padding-left: 20px; border-left: 1px solid var(--admin-line); }
.vehicle-fees-live-total span { color: #aeb9c6; font-size: 13px; }
.vehicle-fees-live-total output { color: #e3c39e; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
html[data-admin-theme="light"] .vehicle-fees-live-total { border-color: #b98b5945; }
html[data-admin-theme="light"] .vehicle-fees-live-total span { color: #646c76; }
html[data-admin-theme="light"] .vehicle-fees-live-total output { color: #775333; }
@media (min-width: 981px) {
  :is(#vehicle-documents,#vehicle-options).option-picker { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  :is(#vehicle-documents,#vehicle-options) .option-choice { min-height: 48px; padding: 9px 10px; gap: 8px; font-size: 13px; line-height: 1.4; }
  :is(#vehicle-documents,#vehicle-options) .option-choice span { min-width: 0; overflow-wrap: anywhere; }
  :is(#vehicle-documents,#vehicle-options) .option-choice :is(svg,.custom-equipment-icon) { width: 22px; height: 22px; }
}
.reserved-detail { border-color: #356bab35; background: #356bab0c; }
.reserved-detail .reserved-detail-badge { background: #3268aa; border-color: #3268aa; color: #fff; box-shadow: none; }
.reserved-owner-message svg { color: #3268aa; fill: none; }
.reserved-detail-note { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #596b7d; }
.sold-detail.sold-complete { padding: 22px; border-color: #b98b5940; background: linear-gradient(135deg, #faf6ef, #fffdf9); border-radius: 16px; }
.sold-complete-heading { display: flex; align-items: center; gap: 12px; }
.sold-complete-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #b98b5945; border-radius: 50%; color: #936b40; background: #b98b590c; }
.sold-complete-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sold-complete .sold-detail-badge { padding: 0; color: #80603d; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; letter-spacing: .06em; }
.sold-complete-title { margin: 18px 0 8px; font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.sold-complete-note { margin: 0; font-size: 14px; line-height: 1.65; color: #736b60; }

.fee-title-field { position: relative; }
.fee-title-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 250px; overflow-y: auto; margin-top: 5px; padding: 5px; border: 1px solid #b98b5970; border-radius: 12px; background: var(--admin-panel); box-shadow: 0 12px 28px #0002; }
.fee-title-suggestions [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px; border-radius: 7px; cursor: pointer; color: #ede7de; font-size: 14px; font-weight: 500; }
.fee-title-suggestions [role="option"] > span { overflow-wrap: anywhere; }
.fee-title-suggestions [role="option"] small { flex-shrink: 0; font-size: 12px; color: #b5aaa0; font-weight: 400; }
.fee-title-suggestions [role="option"]:hover,.fee-title-suggestions [aria-selected="true"] { background: #b98b5920; }
html[data-admin-theme="light"] .fee-title-suggestions [role="option"] { color: #493b2e; }
html[data-admin-theme="light"] .fee-title-suggestions small { color: #796d60; }
.fee-suggestions-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.fee-history-panel { margin-top: 24px; }
.fee-history-heading h3 { font-family: Fraunces, serif; font-size: 27px; font-weight: 500; margin: 5px 0 8px; }
.fee-history-heading .eyebrow { color: #c7a47c; }
.fee-history-summary { margin: 18px 0; color: #dfbf97; font-size: 15px; }
.fee-history-controls { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.fee-history-controls label { display: grid; gap: 7px; flex: 1 1 240px; font-size: 14px; }
.fee-history-controls input,.fee-history-controls select { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid var(--admin-line); border-radius: 10px; background: var(--admin-bg); color: inherit; font: inherit; }
.fee-usage-count { display: inline-flex; justify-content: center; min-width: 34px; padding: 4px 10px; border-radius: 8px; background: #b98b591a; color: #dfbf97; font-weight: 700; }
.fee-history-table { min-width: 690px; }
.fee-history-panel > .notice { margin-top: 16px; }
html[data-admin-theme="light"] .fee-history-summary,html[data-admin-theme="light"] .fee-usage-count,html[data-admin-theme="light"] .fee-history-heading .eyebrow { color: #805a34; }
.fee-vehicle-trigger { border: 1px solid #b98b5950; cursor: pointer; font: inherit; text-decoration: underline dotted; text-underline-offset: 4px; }
.fee-vehicle-card { position: fixed; z-index: 5000; width: min(300px, calc(100vw - 16px)); border: 1px solid #b98b5970; border-radius: 14px; background: var(--admin-panel); color: #f1e7da; padding: 10px; box-shadow: 0 12px 35px #0003; }
.fee-vehicle-card a { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.fee-vehicle-card img,.fee-card-no-photo { width: 76px; height: 76px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.fee-card-no-photo { display: grid; place-items: center; font-size: 12px; text-align: center; background: #b98b5915; }
.fee-vehicle-card strong { display: block; font-size: 15px; }
.fee-vehicle-card small { display: block; font-size: 13px; color: #cfaa7c; margin-top: 7px; }
.fee-rename-dialog { margin: auto; width: min(480px,calc(100vw - 32px)); padding: 26px; border: 1px solid #b98b5970; border-radius: 18px; color: #eee5db; background: var(--admin-panel); }
.fee-rename-dialog::backdrop { background: #10131899; backdrop-filter: blur(3px); }
.fee-rename-dialog h3 { font: 26px Fraunces,serif; margin-bottom: 12px; }
.fee-rename-dialog p { font-size: 14px; margin-bottom: 18px; line-height: 1.7; }
.fee-rename-dialog label { display: block; margin-bottom: 7px; }
.fee-rename-dialog input { width: 100%; padding: 12px; border: 1px solid #b98b5960; border-radius: 9px; background: var(--admin-bg); color: inherit; font: inherit; }
.fee-rename-dialog [role="status"] { margin-top: 12px; }
html[data-admin-theme="light"] .fee-rename-dialog,html[data-admin-theme="light"] .fee-vehicle-card { color: #3c342b; }
html[data-admin-theme="light"] .fee-vehicle-card small { color: #805a34; }

.equipment-documents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 510px), 1fr)); gap: 24px; align-items: start; }
.equipment-documents-grid > div { min-width: 0; }
.equipment-documents-grid .admin-top { gap: 12px; flex-wrap: wrap; }
.equipment-documents-grid .admin-top h3 { font-family: Fraunces, serif; font-size: 25px; font-weight: 500; }
.equipment-documents-grid .panel { padding: 20px; }
.equipment-documents-grid .equipment-table td,.equipment-documents-grid .equipment-table th { padding: 12px 8px; }
.equipment-documents-grid .equipment-table .actions { gap: 6px; }
.equipment-documents-grid .equipment-table .actions .btn { padding: 8px 10px; }
.equipment-documents-grid .form-grid { grid-template-columns: 1fr; }
#document-options-list tr.drop-before td { box-shadow: inset 0 3px var(--copper); }
#document-options-list tr.drop-after td { box-shadow: inset 0 -3px var(--copper); }
