:root {
  --brand-900: #000000;
  --brand-800: #0a0a0a;
  --brand-700: #191919;
  --brand-600: #fff200;
  --brand-100: #fffbd1;
  --brand-50: #fffde5;
  --accent-600: #d6cb00;
  --accent-500: #fff200;
  --accent-100: #fff9bf;
  --ink-950: #ffffff;
  --ink-800: #e8e8e8;
  --ink-600: #b8b8b8;
  --ink-500: #888888;
  --ink-400: #636363;
  --line: #303030;
  --line-strong: #464646;
  --surface: #111111;
  --surface-soft: #191919;
  --canvas: #050505;
  --danger: #fff200;
  --danger-soft: #272400;
  --success: #fff200;
  --warning: #fff200;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, .55);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .72);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 242, 0, .08), transparent 30rem),
    linear-gradient(180deg, #0a0a0a 0, var(--canvas) 100%);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg:not(.svg-sprite) {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 max(22px, calc((100vw - 1420px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(250, 250, 247, .88);
  border-bottom: 1px solid rgba(215, 219, 213, .8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
  border-radius: 15px 15px 15px 6px;
  box-shadow: 0 8px 20px rgba(6, 61, 51, .2);
}
.brand-mark svg { width: 30px; height: 30px; stroke-width: 1.5; }
.brand-copy { display: grid; min-width: 0; line-height: 1.2; }
.brand-copy strong { font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand-copy small { color: var(--ink-500); font-size: 11px; letter-spacing: .09em; margin-top: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid #d3eae3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.network-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a67d;
  box-shadow: 0 0 0 4px rgba(37, 166, 125, .12);
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 8px 18px rgba(7, 81, 69, .18);
}
.button-primary:hover { box-shadow: 0 11px 24px rgba(7, 81, 69, .25); }
.button-quiet {
  background: #fff;
  color: var(--ink-800);
  border: 1px solid var(--line-strong);
}
.button-quiet:hover { border-color: #bfc7c1; background: #fbfcfb; }
.button-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #f2c9c4; }
.button[disabled] { opacity: .55; pointer-events: none; }

.page-shell {
  width: min(1420px, calc(100% - 44px));
  margin: 28px auto 0;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: 50px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(6, 61, 51, .98), rgba(8, 102, 83, .94)),
    #075145;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(5, 72, 58, .2);
}
.hero-decoration {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}
.hero-decoration::before,
.hero-decoration::after { content: ""; position: absolute; border: inherit; border-radius: inherit; }
.hero-decoration-one { width: 430px; height: 430px; right: -140px; top: -245px; }
.hero-decoration-one::before { inset: 46px; }
.hero-decoration-one::after { inset: 92px; }
.hero-decoration-two { width: 150px; height: 150px; left: 31%; bottom: -110px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9dd7c6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.hero-copy h1 {
  margin: 14px 0 10px;
  max-width: 460px;
  font-size: clamp(29px, 3vw, 45px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.hero-copy p { margin: 0; max-width: 520px; color: rgba(255, 255, 255, .69); font-size: 14px; }
.stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  min-height: 116px;
  padding: 19px 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, .095);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}
.stat-card span { color: rgba(255, 255, 255, .62); font-size: 12px; }
.stat-card strong { display: block; font-size: clamp(22px, 2vw, 31px); line-height: 1; letter-spacing: -.025em; }
.stat-card small { color: rgba(255, 255, 255, .53); font-size: 11px; }
.stat-card.emphasis { color: #fff5e8; background: rgba(226, 154, 60, .18); border-color: rgba(255, 207, 142, .22); }
.stat-skeleton {
  height: 116px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(255,255,255,.08) 20%, rgba(255,255,255,.16) 40%, rgba(255,255,255,.08) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

.inventory-section { padding: 44px 0 36px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}
.section-kicker { color: var(--brand-600); }
.section-heading h2 { margin: 4px 0 3px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--ink-500); font-size: 13px; }
.toolbar {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(142px, 190px));
  gap: 10px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(229, 231, 226, .9);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.search-field {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.search-field:focus-within { background: #fff; border-color: #9ccabc; box-shadow: 0 0 0 4px rgba(11, 122, 98, .08); }
.search-field svg { width: 19px; color: var(--ink-400); flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; outline: none; color: var(--ink-950); }
.search-field input::placeholder { color: #9da8a4; }
.toolbar select {
  height: 46px;
  padding: 0 38px 0 13px;
  color: var(--ink-800);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
}
.toolbar select:focus { background: #fff; border-color: #9ccabc; box-shadow: 0 0 0 4px rgba(11, 122, 98, .08); }

.vehicle-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vehicle-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(225, 228, 222, .95);
  border-radius: 22px;
  box-shadow: 0 8px 26px rgba(23, 52, 44, .055);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: #cbd8d2;
  box-shadow: 0 18px 42px rgba(15, 51, 40, .12);
}
.vehicle-media {
  position: relative;
  height: 218px;
  overflow: hidden;
  background: linear-gradient(135deg, #dcece7, #f2eee4);
}
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.vehicle-card:hover .vehicle-media img { transform: scale(1.035); }
.vehicle-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(4, 28, 23, .38));
  pointer-events: none;
}
.vehicle-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(7, 81, 69, .22);
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.75), transparent 28%),
    linear-gradient(135deg, #d9ebe6, #f4eee3);
}
.vehicle-placeholder svg { width: 96px; height: 96px; stroke-width: 1.25; }
.card-badges {
  position: absolute;
  z-index: 2;
  inset: 13px 13px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.stock-no, .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 5px 14px rgba(10, 40, 32, .1);
}
.stock-no { color: #fff; background: rgba(8, 55, 46, .74); backdrop-filter: blur(7px); }
.status-badge { color: #fff; background: var(--success); }
.status-badge.status-booked { background: var(--warning); }
.status-badge.status-sold { background: #68736f; }
.vehicle-card-body { padding: 18px 18px 17px; }
.vehicle-title {
  margin: 0;
  min-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -.012em;
}
.vehicle-meta {
  margin: 10px 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--ink-500);
  font-size: 12px;
}
.vehicle-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.vehicle-meta svg { width: 15px; height: 15px; color: var(--ink-400); }
.vehicle-meta span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.price-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price-block { min-width: 0; }
.price-block small { display: block; color: var(--ink-500); font-size: 11px; }
.price-block strong { display: block; margin-top: 1px; color: var(--brand-700); font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
.price-block strong em { font-family: ui-rounded, "Arial Rounded MT Bold", sans-serif; font-style: normal; font-size: .68em; margin-right: 2px; }
.price-original { color: var(--ink-400); font-size: 12px; text-decoration: line-through; }
.savings-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #a65a10;
  background: var(--accent-100);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.savings-pill.muted { color: var(--ink-500); background: var(--surface-soft); }
.vehicle-facts {
  margin-top: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface-soft);
  border-radius: 13px;
}
.vehicle-fact { min-width: 0; text-align: center; border-right: 1px solid var(--line); }
.vehicle-fact:last-child { border-right: 0; }
.vehicle-fact span { display: block; color: var(--ink-500); font-size: 10px; }
.vehicle-fact strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-footer-note { color: var(--ink-500); font-size: 11px; }
.card-actions { display: flex; align-items: center; gap: 6px; }
.card-action, .icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.card-action:hover, .icon-button:hover { color: var(--brand-700); background: var(--brand-50); border-color: #d2e8e1; transform: translateY(-1px); }
.card-action svg, .icon-button svg { width: 17px; height: 17px; }
.card-action.danger:hover { color: var(--danger); background: var(--danger-soft); border-color: #f0cec9; }

.empty-state {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255,255,255,.72);
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
}
.empty-state-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 25px 25px 25px 8px;
}
.empty-state-icon svg { width: 40px; height: 40px; }
.empty-state h3 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { margin: 0 auto 20px; max-width: 460px; color: var(--ink-500); font-size: 13px; }
.card-skeleton {
  height: 490px;
  border-radius: 22px;
  background: linear-gradient(100deg, #ebece7 20%, #f7f7f3 40%, #ebece7 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.page-footer {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-400);
  font-size: 11px;
  border-top: 1px solid rgba(215,219,213,.8);
}

dialog.modal-dialog,
dialog.drawer-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-950);
  outline: none;
}
dialog.modal-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 980px);
}
dialog.modal-dialog::backdrop,
dialog.drawer-dialog::backdrop { background: rgba(7, 25, 20, .56); backdrop-filter: blur(3px); }
.modal-card, .drawer {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-card { max-height: min(92dvh, 980px); display: flex; flex-direction: column; }
.modal-header {
  min-height: 82px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.modal-close { width: 38px; height: 38px; }
.form-modal-card { max-width: 920px; }
.vehicle-form { overflow-y: auto; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-title {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 800;
}
.form-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  margin-right: -14px;
  background: var(--brand-600);
  border-radius: 3px;
}
.form-section-title span { flex: 1; }
.form-section-title small { color: var(--ink-400); font-size: 11px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field.span-2, .span-2 { grid-column: span 2; }
.field > span { color: var(--ink-600); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink-950);
  background: #fafbf8;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.field input, .field select { height: 45px; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff;
  border-color: #8cc4b4;
  box-shadow: 0 0 0 4px rgba(11, 122, 98, .08);
}
.price-preview {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--brand-800);
  background: linear-gradient(90deg, var(--brand-50), #fbfcf8);
  border: 1px solid #d5eae3;
  border-radius: 12px;
}
.price-preview span { font-size: 12px; }
.price-preview strong { color: var(--accent-600); font-size: 19px; }
.modal-footer {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fbfbf8;
  border-top: 1px solid var(--line);
}
.modal-footer p { margin: 0; max-width: 560px; color: var(--ink-500); font-size: 11px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.form-modal-card .modal-footer { position: sticky; bottom: 0; z-index: 3; }
.edit-photo-upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#editPhotoStatus {
  color: var(--ink-500);
  font-size: 12px;
}

.edit-photo-preview {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.edit-photo-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f5f6f2;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.edit-photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0,0,0,.68);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.edit-photo-delete svg {
  width: 13px;
  height: 13px;
}
.edit-photo-item img {
  width: 100%;
  height: 88px;
  display: block;
  object-fit: cover;
}
.edit-photo-item figcaption {
  padding: 7px 9px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}
.edit-photo-empty {
  padding: 18px;
  color: var(--ink-400);
  background: #f7f8f5;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
}


.drawer-dialog {
  width: min(720px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
}
.drawer { width: 100%; height: 100%; border-radius: 24px 0 0 24px; display: flex; flex-direction: column; }
.drawer-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: 112px;
  padding: 20px 74px 18px 26px;
  display: flex;
  align-items: flex-end;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.drawer-header .modal-close { position: absolute; top: 20px; right: 24px; }
.drawer-heading { min-width: 0; }
.drawer-heading h2 { margin: 4px 0 2px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.drawer-heading p { margin: 0; color: var(--ink-500); font-size: 12px; }
.drawer-content { flex: 1; overflow-y: auto; padding: 22px 24px 36px; background: #f4f4ef; }

.detail-photo {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #dcece7, #f2eee4);
  border-radius: 20px;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo .vehicle-placeholder svg { width: 130px; height: 130px; }
.detail-photo-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(8, 36, 29, .72);
  border-radius: 8px;
  font-size: 11px;
  backdrop-filter: blur(6px);
}
.detail-status-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-status-row .stock-no { color: var(--ink-600); background: #fff; box-shadow: none; border: 1px solid var(--line); }
.detail-panel {
  margin-top: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 4px 14px rgba(18,45,37,.035);
}
.detail-panel h3 { margin: 0 0 14px; font-size: 15px; }
.detail-price-panel {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  color: #fff;
  background: linear-gradient(130deg, var(--brand-800), var(--brand-600));
  border: 0;
}
.detail-price-main { padding: 24px; }
.detail-price-main small { display: block; color: rgba(255,255,255,.6); font-size: 11px; }
.detail-price-main strong { display: block; margin: 4px 0 7px; font-size: 38px; line-height: 1.15; letter-spacing: -.045em; }
.detail-price-main strong em { margin-right: 4px; font-family: ui-rounded, "Arial Rounded MT Bold", sans-serif; font-style: normal; font-size: .58em; }
.detail-original { color: rgba(255,255,255,.62); font-size: 12px; }
.detail-original del { margin-left: 5px; }
.detail-savings {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,.09);
  border-left: 1px solid rgba(255,255,255,.12);
}
.detail-savings span { color: rgba(255,255,255,.64); font-size: 11px; }
.detail-savings strong { margin-top: 4px; color: #ffdca8; font-size: 24px; letter-spacing: -.03em; }
.detail-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-actions .button { width: 100%; }
.detail-actions .wide { grid-column: span 2; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.fact-item {
  min-width: 0;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.fact-item:nth-last-child(-n+2) { border-bottom: 0; }
.fact-item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
.fact-item:nth-child(even) { padding-right: 0; padding-left: 16px; }
.fact-item span { display: block; color: var(--ink-500); font-size: 11px; }
.fact-item strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.detail-text { margin: 0; color: var(--ink-800); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-text.muted { color: var(--ink-400); }
.file-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.file-section {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.file-section-header {
  min-height: 56px;
  padding: 11px 13px 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.file-section-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 10px;
}
.file-icon svg { width: 17px; height: 17px; }
.file-section-title strong { display: block; font-size: 13px; }
.file-section-title small { display: block; color: var(--ink-500); font-size: 10px; }
.upload-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 9px;
}
.file-list { padding: 8px 12px 12px; display: grid; gap: 7px; }
.file-empty { padding: 11px 3px 8px; color: var(--ink-400); font-size: 11px; }
.file-row {
  min-width: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-soft);
  border-radius: 10px;
}
.file-type-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
}
.file-row-info { min-width: 0; flex: 1; }
.file-row-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.file-row-info span { display: block; color: var(--ink-400); font-size: 9px; }
.file-row-actions { display: flex; gap: 5px; }
.mini-action {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.mini-action:hover { color: var(--brand-700); border-color: #c8e1d9; }
.mini-action.danger:hover { color: var(--danger); border-color: #efc8c3; }
.mini-action svg { width: 14px; height: 14px; }
.photo-file-grid { padding: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.photo-file-card { min-width: 0; overflow: hidden; background: var(--surface-soft); border-radius: 10px; }
.photo-file-card img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #e5e9e5; }
.photo-file-actions { padding: 6px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.photo-file-actions a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-500); font-size: 9px; }

.media-dialog { width: min(760px, calc(100vw - 32px)); }
.media-modal-card { max-height: min(94dvh, 1040px); }
.media-preview {
  min-height: 420px;
  overflow: auto;
  padding: 20px;
  display: grid;
  place-items: start center;
  background:
    linear-gradient(45deg, #ebede8 25%, transparent 25%, transparent 75%, #ebede8 75%),
    linear-gradient(45deg, #ebede8 25%, #f7f7f3 25%, #f7f7f3 75%, #ebede8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}
#posterCanvas { width: min(100%, 540px); height: auto; display: none; background: #f4f2ec; box-shadow: 0 18px 50px rgba(18,45,37,.18); border-radius: 12px; }
#posterCanvas.ready { display: block; }
.media-loading { display: grid; place-items: center; align-self: center; min-height: 360px; color: var(--ink-500); }
.media-loading p { margin: 13px 0 0; font-size: 12px; }
.spinner { width: 34px; height: 34px; border: 3px solid #d6dfda; border-top-color: var(--brand-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.print-dialog { width: min(760px, calc(100vw - 32px)); }
.print-preview-stage { min-height: 620px; overflow: auto; padding: 22px; background: #dcddd8; }
#printPreview { width: min-content; margin: 0 auto; }
#printPreview .print-sheet.preview { transform: scale(.62); transform-origin: top center; margin-bottom: -426px; box-shadow: 0 14px 34px rgba(20,33,29,.22); }

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.toast {
  min-width: 250px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(18, 43, 36, .94);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(10,25,20,.22);
  font-size: 12px;
  animation: toast-in .25s ease both;
  backdrop-filter: blur(10px);
}
.toast.success { background: rgba(8, 103, 77, .96); }
.toast.error { background: rgba(164, 55, 45, .96); }
.toast::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; opacity: .85; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
#printRoot { display: none; }

/* A4 price sheet */
.print-sheet {
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  padding: 11mm 12mm 10mm;
  color: #14231f;
  background: #fff;
  font-family: var(--font);
}
.print-sheet * { box-sizing: border-box; }
.print-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8mm;
  padding-bottom: 5mm;
  border-bottom: 1.2mm solid var(--brand-800);
}
.print-brand-name { display: flex; align-items: center; gap: 3mm; }
.print-logo {
  width: 13mm;
  height: 13mm;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-800);
  border-radius: 4mm 4mm 4mm 1mm;
  font-size: 7mm;
  font-weight: 900;
}
.print-brand-name strong { display: block; font-size: 6.2mm; line-height: 1.15; letter-spacing: .02em; }
.print-brand-name small { display: block; margin-top: 1mm; color: var(--ink-500); font-size: 2.8mm; letter-spacing: .12em; }
.print-stock { text-align: right; }
.print-stock span { display: block; color: var(--ink-500); font-size: 2.7mm; }
.print-stock strong { font-size: 4.4mm; }
.print-main-photo {
  position: relative;
  height: 64mm;
  margin-top: 6mm;
  overflow: hidden;
  background: linear-gradient(135deg, #dcece7, #f2eee4);
  border-radius: 5mm;
}
.print-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.print-photo-empty { height: 100%; display: grid; place-items: center; color: rgba(7,81,69,.28); font-size: 5mm; font-weight: 800; }
.print-status {
  position: absolute;
  left: 5mm;
  top: 5mm;
  padding: 1.5mm 3mm;
  color: #fff;
  background: var(--brand-700);
  border-radius: 999px;
  font-size: 3mm;
  font-weight: 800;
  letter-spacing: .06em;
}
.print-title-row { margin-top: 5mm; display: flex; align-items: flex-start; justify-content: space-between; gap: 6mm; }
.print-title { min-width: 0; }
.print-title p { margin: 0 0 1mm; color: var(--brand-700); font-size: 3mm; font-weight: 800; letter-spacing: .12em; }
.print-title h1 { margin: 0; font-size: 8.2mm; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.print-title h1.compact { font-size: 6.6mm; }
.print-source { flex: 0 0 auto; padding: 2mm 3mm; color: var(--ink-600); background: #f3f5f1; border-radius: 3mm; font-size: 2.8mm; }
.print-price-row {
  margin-top: 5mm;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--brand-800), var(--brand-600));
  border-radius: 5mm;
}
.print-price-main { padding: 5mm 6mm; }
.print-price-main span { display: block; color: rgba(255,255,255,.66); font-size: 3mm; }
.print-price-main strong { display: block; margin-top: 1mm; font-size: 13mm; line-height: 1.08; letter-spacing: -.045em; }
.print-price-main strong em { margin-right: 1mm; font-family: ui-rounded, "Arial Rounded MT Bold", sans-serif; font-style: normal; font-size: .55em; }
.print-price-main del { display: block; margin-top: 1mm; color: rgba(255,255,255,.66); font-size: 3.1mm; }
.print-save {
  padding: 5mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,.09);
  border-left: .3mm solid rgba(255,255,255,.16);
}
.print-save span { color: rgba(255,255,255,.66); font-size: 3mm; }
.print-save strong { margin-top: 1mm; color: #ffd9a0; font-size: 7.3mm; line-height: 1.1; }
.print-save.muted strong { color: rgba(255,255,255,.8); }
.print-facts {
  margin-top: 5mm;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: .3mm solid #dfe4df;
  border-left: .3mm solid #dfe4df;
}
.print-fact {
  min-width: 0;
  padding: 3.2mm 4mm;
  border-right: .3mm solid #dfe4df;
  border-bottom: .3mm solid #dfe4df;
}
.print-fact span { display: block; color: #78857f; font-size: 2.7mm; }
.print-fact strong { display: block; margin-top: .6mm; font-size: 3.8mm; line-height: 1.35; overflow-wrap: anywhere; }
.print-text-sections { margin-top: 4mm; display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.print-text-box { padding: 3.5mm 4mm; background: #f6f7f3; border-radius: 3.5mm; }
.print-text-box h3 { margin: 0 0 2mm; color: var(--brand-700); font-size: 3.4mm; }
.print-text-box p { margin: 0; max-height: 22mm; overflow: hidden; font-size: 3.1mm; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.print-text-box.compact p { font-size: 2.7mm; line-height: 1.45; }
.print-footer {
  margin-top: 5mm;
  padding-top: 3mm;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5mm;
  color: #77827e;
  border-top: .3mm solid #dfe4df;
  font-size: 2.7mm;
}
.print-footer strong { color: var(--brand-800); font-size: 3.4mm; }

@media (max-width: 1180px) {
  .hero-panel { grid-template-columns: .75fr 1.25fr; gap: 30px; padding: 38px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 92px; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(140px, 180px)); }
  .toolbar select:last-child { grid-column: span 3; }
}

@media (max-width: 820px) {
  .topbar { height: 64px; padding: 0 14px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px 13px 13px 5px; }
  .network-badge { display: none; }
  .topbar-actions .button { min-height: 39px; padding: 0 13px; }
  .page-shell { width: min(100% - 24px, 720px); margin-top: 16px; }
  .hero-panel { min-height: 0; padding: 28px 22px 22px; grid-template-columns: 1fr; gap: 24px; border-radius: 24px; }
  .hero-copy h1 { font-size: 30px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { min-height: 92px; padding: 15px; }
  .stat-card strong { font-size: 24px; }
  .inventory-section { padding-top: 32px; }
  .section-heading h2 { font-size: 24px; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .toolbar select:last-child { grid-column: span 2; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-media { height: 235px; }
  .vehicle-title { min-height: auto; }
  .page-footer { width: calc(100% - 24px); flex-direction: column; gap: 6px; }
  .modal-dialog { width: calc(100vw - 20px); max-height: 96dvh; }
  .modal-card { max-height: 96dvh; border-radius: 20px; }
  .modal-header { min-height: 72px; padding: 15px 17px; }
  .modal-header h2 { font-size: 20px; }
  .form-section { padding: 18px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .span-2 { grid-column: span 1; }
  .modal-footer { padding: 14px 17px; align-items: flex-start; flex-direction: column-reverse; }
  .modal-actions { width: 100%; }
  .modal-actions .button { flex: 1; }
  .drawer-dialog { width: 100vw; height: 100dvh; }
  .drawer { border-radius: 0; }
  .drawer-header { min-height: 98px; padding: 16px 66px 15px 18px; }
  .drawer-header .modal-close { top: 16px; right: 17px; }
  .drawer-heading h2 { font-size: 21px; }
  .drawer-content { padding: 16px 14px 30px; }
  .detail-photo { height: 260px; }
  .detail-price-main { padding: 20px 18px; }
  .detail-price-main strong { font-size: 32px; }
  .detail-savings { padding: 16px 10px; }
  .detail-savings strong { font-size: 20px; }
  .media-preview { min-height: 340px; padding: 12px; }
  .print-preview-stage { min-height: 480px; padding: 12px; }
  #printPreview .print-sheet.preview { transform: scale(.42); margin-bottom: -651px; }
  .photo-file-grid { grid-template-columns: repeat(2, 1fr); }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 480px) {
  .brand-copy strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions .button span { display: none; }
  .topbar-actions .button { width: 41px; padding: 0; }
  .hero-panel { padding: 24px 18px 18px; }
  .hero-copy h1 { font-size: 27px; }
  .hero-copy p { font-size: 12px; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 84px; padding: 13px; border-radius: 14px; }
  .stat-card strong { font-size: 21px; }
  .toolbar { padding: 9px; }
  .toolbar select { font-size: 12px; }
  .vehicle-media { height: 205px; }
  .vehicle-card-body { padding: 16px; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail-actions .wide { grid-column: span 1; }
  .detail-price-panel { grid-template-columns: 1fr; }
  .detail-savings { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .detail-facts { grid-template-columns: 1fr; }
  .fact-item, .fact-item:nth-child(odd), .fact-item:nth-child(even) { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact-item:last-child { border-bottom: 0; }
  .photo-file-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { width: 100%; height: 297mm; margin: 0 !important; padding: 0 !important; background: #fff !important; overflow: hidden !important; }
  body > *:not(#printRoot) { display: none !important; }
  #printRoot { display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 297mm !important; overflow: hidden !important; }
  #printRoot .print-sheet { display: flex !important; flex-direction: column !important; box-shadow: none !important; transform: var(--print-scale, none) !important; transform-origin: center center !important; margin: 0 !important; }
}

/* Lotus-inspired black and yellow theme */
::selection { color: #000; background: #fff200; }
.topbar {
  background: rgba(0, 0, 0, .95);
  border-bottom: 1px solid #252525;
  box-shadow: inset 0 -2px 0 rgba(255, 242, 0, .76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { gap: 16px; }
.brand-logo {
  width: auto;
  height: 43px;
  max-width: 290px;
  display: block;
  object-fit: contain;
}
.brand-subtitle {
  padding-left: 16px;
  color: #a8a8a8;
  border-left: 1px solid #3f3f3f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}
.network-badge {
  color: #fff200;
  background: #0d0c00;
  border-color: #4b4700;
  border-radius: 2px;
  letter-spacing: .08em;
}
.network-badge i { background: #fff200; box-shadow: 0 0 0 4px rgba(255, 242, 0, .13); }
.button {
  border-radius: 2px;
  font-weight: 800;
  letter-spacing: .035em;
}
.button-primary,
.button-primary:hover {
  color: #000;
  background: #fff200;
  border: 1px solid #fff200;
  box-shadow: none;
}
.button-primary:hover { background: #ffe900; }
.button-quiet {
  color: #fff;
  background: #000;
  border-color: #fff200;
}
.button-quiet:hover { color: #fff200; background: #111000; border-color: #fff200; }
.button-danger { color: #fff200; background: #171600; border-color: #fff200; }

.hero-panel {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(255, 242, 0, .08), transparent 38%),
    linear-gradient(135deg, #000 0%, #0b0b0b 62%, #151400 100%);
  border: 1px solid #333;
  border-top: 4px solid #fff200;
  border-radius: 2px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .58);
}
.hero-decoration { border-color: rgba(255, 242, 0, .18); }
.eyebrow, .section-kicker { color: #fff200; }
.hero-copy h1 { color: #fff; text-transform: none; }
.hero-copy p { color: #a9a9a9; }
.stat-card {
  background: #111;
  border-color: #303030;
  border-radius: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.stat-card span, .stat-card small { color: #888; }
.stat-card strong { color: #fff200; }
.stat-card.emphasis { color: #fff; background: #171600; border-color: #fff200; }
.stat-card.emphasis strong { color: #fff200; }
.stat-skeleton {
  border-radius: 2px;
  background: linear-gradient(100deg, #111 20%, #222 40%, #111 60%);
  background-size: 220% 100%;
}

.toolbar {
  background: #0b0b0b;
  border-color: #303030;
  border-radius: 2px;
  box-shadow: none;
}
.search-field,
.toolbar select {
  color: #fff;
  background: #171717;
  border-color: #303030;
  border-radius: 2px;
}
.search-field:focus-within,
.toolbar select:focus {
  background: #111;
  border-color: #fff200;
  box-shadow: 0 0 0 2px rgba(255, 242, 0, .16);
}
.search-field input { color: #fff; }
.search-field input::placeholder { color: #6d6d6d; }
.toolbar select option { color: #fff; background: #111; }

.vehicle-card {
  background: #111;
  border-color: #303030;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
}
.vehicle-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  background: #fff200;
}
.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: #fff200;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .58);
}
.vehicle-media { background: #181818; }
.vehicle-media::after { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); }
.vehicle-placeholder {
  color: rgba(255, 242, 0, .3);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 242, 0, .1), transparent 32%),
    linear-gradient(135deg, #151515, #050505);
}
.stock-no {
  color: #fff200;
  background: rgba(0, 0, 0, .82);
  border: 1px solid #fff200;
  box-shadow: none;
}
.status-badge { color: #000; background: #fff200; box-shadow: none; border-radius: 2px; }
.status-badge.status-booked { color: #fff200; background: #111; border: 1px solid #fff200; }
.status-badge.status-sold { color: #ccc; background: #333; }
.vehicle-title { color: #fff; }
.vehicle-meta { color: #999; }
.vehicle-meta svg { color: #fff200; }
.price-line { border-top-color: #383838; }
.price-block small { color: #8a8a8a; }
.price-block strong { color: #fff200; }
.price-original { color: #666; }
.savings-pill { color: #000; background: #fff200; border-radius: 2px; }
.savings-pill.muted { color: #999; background: #242424; }
.vehicle-facts { background: #181818; border-radius: 2px; }
.vehicle-fact { border-right-color: #343434; }
.vehicle-fact span { color: #777; }
.vehicle-fact strong { color: #e9e9e9; }
.card-footer-note { color: #777; }
.card-action, .icon-button {
  color: #fff;
  background: #111;
  border-color: #3a3a3a;
  border-radius: 2px;
}
.card-action:hover, .icon-button:hover { color: #000; background: #fff200; border-color: #fff200; }
.card-action.danger:hover { color: #000; background: #fff200; border-color: #fff200; }

.empty-state { background: #0c0c0c; border-color: #454545; border-radius: 2px; }
.empty-state-icon { color: #000; background: #fff200; border-radius: 2px; }
.empty-state p { color: #888; }
.card-skeleton {
  border-radius: 2px;
  background: linear-gradient(100deg, #111 20%, #1d1d1d 40%, #111 60%);
  background-size: 220% 100%;
}
.page-footer { color: #777; border-top-color: #303030; }

dialog.modal-dialog::backdrop,
dialog.drawer-dialog::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(5px); }
.modal-card, .drawer {
  background: #0b0b0b;
  border-color: #333;
  border-radius: 2px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .82), 0 0 0 1px rgba(255, 242, 0, .17);
}
.modal-header { border-bottom-color: #303030; background: #0b0b0b; }
.modal-header h2 { color: #fff; }
.form-section { border-bottom-color: #303030; }
.form-section-title::before { background: #fff200; }
.form-section-title small { color: #777; }
.field > span { color: #aaa; }
.field input, .field select, .field textarea {
  color: #fff;
  background: #151515;
  border-color: #3d3d3d;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  color: #fff;
  background: #111;
  border-color: #fff200;
  box-shadow: 0 0 0 2px rgba(255, 242, 0, .14);
}
.price-preview { color: #fff; background: #171600; border-color: #fff200; border-radius: 2px; }
.price-preview strong { color: #fff200; }
.modal-footer { background: #101010; border-top-color: #303030; }
.modal-footer p { color: #777; }

.drawer-header { background: #0b0b0b; border-bottom-color: #303030; box-shadow: inset 0 -2px 0 #fff200; }
.drawer-heading h2 { color: #fff; }
.drawer-heading p { color: #888; }
.drawer-content { background: #050505; }
.detail-photo { background: #181818; border-radius: 2px; }
.detail-photo-count { color: #000; background: #fff200; border-radius: 2px; }
.detail-status-row .stock-no { color: #fff200; background: #111; border-color: #fff200; }
.detail-panel { background: #111; border-color: #303030; border-radius: 2px; box-shadow: none; }
.detail-panel h3 { color: #fff; }
.detail-price-panel {
  color: #000;
  background: #fff200;
  border: 1px solid #fff200;
}
.detail-price-main small,
.detail-price-main strong,
.detail-original { color: #000; }
.detail-price-main strong { color: #000; }
.detail-original { opacity: .72; }
.detail-savings { color: #fff200; background: #000; border-left-color: #333; }
.detail-savings span { color: #aaa; }
.detail-savings strong { color: #fff200; }
.fact-item { border-bottom-color: #303030; }
.fact-item:nth-child(odd) { border-right-color: #303030; }
.fact-item span { color: #777; }
.fact-item strong { color: #eee; }
.detail-text { color: #c9c9c9; }
.detail-text.muted { color: #666; }
.file-section { background: #111; border-color: #303030; border-radius: 2px; }
.file-section-header { border-bottom-color: #303030; }
.file-icon { color: #000; background: #fff200; border-radius: 2px; }
.file-section-title strong { color: #eee; }
.file-section-title small, .file-empty { color: #777; }
.file-row { background: #191919; border-radius: 2px; }
.file-type-mark { color: #fff200; background: #101000; border-color: #3c3900; border-radius: 2px; }
.file-row-info strong { color: #ddd; }
.file-row-info span { color: #777; }
.mini-action { color: #bbb; background: #111; border-color: #3b3b3b; border-radius: 2px; }
.mini-action:hover { color: #000; background: #fff200; border-color: #fff200; }
.mini-action.danger:hover { color: #000; border-color: #fff200; }
.photo-file-card { background: #191919; border-radius: 2px; }
.photo-file-card img { background: #222; }
.photo-file-actions a { color: #888; }

.media-preview {
  background:
    linear-gradient(45deg, #0d0d0d 25%, transparent 25%, transparent 75%, #0d0d0d 75%),
    linear-gradient(45deg, #0d0d0d 25%, #151515 25%, #151515 75%, #0d0d0d 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}
#posterCanvas { background: #000; border-radius: 2px; box-shadow: 0 18px 55px rgba(0, 0, 0, .75), 0 0 0 1px #333; }
.media-loading { color: #888; }
.spinner { border-color: #333; border-top-color: #fff200; }
.print-preview-stage { background: #161616; }
.toast { color: #000; background: rgba(255, 242, 0, .98); border-color: #fff200; border-radius: 2px; box-shadow: 0 14px 40px rgba(0, 0, 0, .58); }
.toast.success { color: #000; background: rgba(255, 242, 0, .98); }
.toast.error { color: #fff200; background: rgba(0, 0, 0, .98); border-color: #fff200; }

/* A4 paper keeps white stock for efficient printing, with black and yellow branding. */
.print-sheet { color: #000; background: #fff; }
.print-brand { border-bottom-color: #fff200; }
.print-brand-name { display: grid; gap: 1.5mm; }
.print-logo { width: 58mm; height: auto; display: block; object-fit: contain; }
.print-brand-name small { display: block; color: #555; font-size: 2.5mm; letter-spacing: .12em; }
.print-stock span { color: #666; }
.print-stock strong { color: #000; }
.print-status { color: #000; background: #fff200; border-radius: 0; }
.print-title p { color: #000; }
.print-title h1 { color: #000; }
.print-source { color: #fff; background: #000; border-radius: 0; }
.print-price-row { color: #000; background: #fff200; border: .4mm solid #000; border-radius: 0; }
.print-price-main span,
.print-price-main strong,
.print-price-main strong em,
.print-price-main del { color: #000; }
.print-save { color: #fff200; background: #000; border-left-color: #000; }
.print-save span { color: #ccc; }
.print-save strong { color: #fff200; }
.print-save.muted strong { color: #fff; }
.print-facts { border-color: #bbb; }
.print-fact { border-color: #bbb; }
.print-fact span { color: #555; }
.print-fact strong { color: #000; }
.print-text-box { background: #fffde5; border-radius: 0; }
.print-text-box h3 { color: #000; }
.print-text-box p { color: #222; }
.print-footer { color: #555; border-top-color: #000; }
.print-footer strong { color: #000; }

@media (max-width: 820px) {
  .brand-logo { height: 35px; max-width: min(54vw, 220px); }
  .brand-subtitle { display: none; }
}

html, body { max-width: 100%; overflow-x: hidden; }

.photo-file-card { position: relative; }
.cover-photo-badge {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  padding: 3px 7px;
  color: #000;
  background: #fff200;
  border: 1px solid #000;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

/* A4 price board without vehicle photography */
.print-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
}
.print-title-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2mm;
}
.print-sheet.no-photo .print-title-row { margin-top: 9mm; }
.print-sheet.no-photo .print-title h1 { font-size: 9.6mm; }
.print-sheet.no-photo .print-title h1.compact { font-size: 7.2mm; }
.print-sheet.no-photo .print-status {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.8mm 3mm;
}
.print-sheet.no-photo .print-price-row { margin-top: 8mm; }
.print-sheet.no-photo .print-facts { margin-top: 8mm; }
.print-sheet.no-photo .print-fact { padding: 4.2mm 4.5mm; }
.print-sheet.no-photo .print-fact span { font-size: 2.9mm; }
.print-sheet.no-photo .print-fact strong { font-size: 4.2mm; }
.print-sheet.no-photo .print-text-sections { margin-top: 7mm; }
.print-sheet.no-photo .print-text-box { padding: 4.5mm 5mm; }
.print-sheet.no-photo .print-text-box p {
  max-height: 38mm;
  font-size: 3.3mm;
  line-height: 1.68;
}
.print-sheet.no-photo .print-footer { margin-top: auto; }

/* Expanded A4 text layout */
.print-sheet.no-photo .print-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.print-sheet.no-photo .print-fact {
  min-height: 19mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.print-sheet.no-photo .print-text-sections {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 4mm;
}
.print-sheet.no-photo .print-text-box {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.print-sheet.no-photo .print-text-box h3 {
  flex: 0 0 auto;
}
.print-sheet.no-photo .print-text-box p {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: hidden;
}
.print-sheet.no-photo .print-footer {
  flex: 0 0 auto;
}

/* A4 top-left brand logo */
.print-brand {
  align-items: flex-start;
}
.print-brand-logo {
  display: grid;
  gap: 1.2mm;
  padding-left: 3.5mm;
  border-left: 1.5mm solid #fff200;
}
.print-brand-logo .print-logo {
  width: 70mm;
  max-height: 18mm;
  object-fit: contain;
  object-position: left center;
}
.print-brand-logo small {
  color: #555;
  font-size: 2.5mm;
  letter-spacing: .13em;
}

/* A4 report download QR */
.print-footer {
  align-items: flex-end;
}
.print-footer-copy {
  display: grid;
  gap: 1.5mm;
  max-width: 112mm;
}
.print-report-download {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 1mm;
}
.print-report-download img {
  width: 25mm;
  height: 25mm;
  display: block;
  padding: 1mm;
  background: #fff;
  border: .3mm solid #000;
}
.print-report-download span {
  color: #000;
  font-size: 2.5mm;
  font-weight: 800;
  letter-spacing: .04em;
}

/* Password confirmation */
.password-dialog {
  width: min(460px, calc(100vw - 32px));
}
.password-card {
  max-width: 460px;
}
.password-dialog-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.password-dialog-body > p:first-child {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.7;
}
.password-dialog-body > p:first-child:empty {
  display: none;
}

/* Employee login */
.login-dialog {
  width: min(460px, calc(100vw - 32px));
}
.login-card {
  overflow: hidden;
  background: #090909;
  border: 1px solid #333;
  border-radius: 2px;
  box-shadow: 0 30px 100px rgba(0,0,0,.85), 0 0 0 1px rgba(255,242,0,.18);
}
.login-header {
  padding: 34px 30px 22px;
  background: #050505;
  border-bottom: 1px solid #303030;
}
.login-logo {
  width: min(250px, 78%);
  height: auto;
  display: block;
}
.login-header p {
  margin: 18px 0 0;
  color: #888;
  font-size: 12px;
  line-height: 1.7;
}
.login-form {
  padding: 24px 30px 20px;
  display: grid;
  gap: 14px;
}
.login-submit {
  width: 100%;
  margin-top: 2px;
}
.login-error {
  min-height: 18px;
  margin: 0;
  color: #fff200;
  font-size: 12px;
}
.login-footer {
  padding: 14px 30px 20px;
  color: #555;
  font-size: 10px;
  letter-spacing: .08em;
}

.qr-notice {
  margin: 7px 0 0 !important;
  color: #fff200 !important;
  font-size: 11px !important;
  line-height: 1.55;
}

/* Consignment service marketing hero */
.marketing-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  padding: 38px 42px;
}
.marketing-copy {
  min-width: 0;
}
.marketing-copy h1 {
  max-width: none;
  margin: 12px 0 22px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.22;
}
.marketing-block {
  min-width: 0;
  padding: 16px 18px;
  background: rgba(255,242,0,.055);
  border-left: 3px solid #fff200;
}
.marketing-block h2 {
  margin: 0 0 12px;
  color: #fff200;
  font-size: 15px;
  line-height: 1.4;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tags span {
  padding: 7px 11px;
  color: #ffffff;
  background: #111111;
  border: 1px solid #464646;
  font-size: 12px;
  font-weight: 700;
}
.promise-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.marketing-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.marketing-list li {
  color: #d7d7d7;
  font-size: 12px;
  line-height: 1.55;
}
.contact-strip {
  margin-top: 16px;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  color: #ffffff;
  border-top: 1px solid #3a3a3a;
  font-size: 12px;
  font-weight: 700;
}
.contact-strip a {
  color: #fff200;
}
.marketing-hero .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.marketing-hero .stat-card {
  min-height: 104px;
}

@media (max-width: 1100px) {
  .marketing-hero {
    grid-template-columns: 1fr;
  }
  .marketing-hero .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .marketing-hero {
    grid-template-columns: 1fr;
    padding: 26px 20px 22px;
  }
  .marketing-copy h1 {
    font-size: 28px;
  }
  .promise-grid {
    grid-template-columns: 1fr;
  }
  .marketing-hero .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-strip {
    flex-direction: column;
  }
}

/* Inventory type switch */
.inventory-switch {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: stretch;
  background: #0b0b0b;
  border: 1px solid #303030;
}
.inventory-tab {
  min-width: 150px;
  height: 44px;
  padding: 0 18px;
  color: #888888;
  background: transparent;
  border: 0;
  border-right: 1px solid #303030;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.inventory-tab:last-child { border-right: 0; }
.inventory-tab:hover { color: #ffffff; }
.inventory-tab.active {
  color: #000000;
  background: #fff200;
}
.vehicle-form[data-vehicle-kind="used"] .field[data-kind="new"],
.vehicle-form[data-vehicle-kind="new"] .field[data-kind="used"],
.vehicle-form[data-vehicle-kind="used"] .form-section[data-kind="new"],
.vehicle-form[data-vehicle-kind="new"] .form-section[data-kind="used"] {
  display: none;
}

@media (max-width: 820px) {
  .inventory-switch { display: flex; width: 100%; }
  .inventory-tab { flex: 1; min-width: 0; padding: 0 10px; }
}

/* New-car configuration and benefits emphasis */
.vehicle-form[data-vehicle-kind="new"] #configurationInput,
.vehicle-form[data-vehicle-kind="new"] #displayBenefitsInput {
  min-height: 210px;
}
.detail-text.expanded-text {
  min-height: 150px;
  padding: 16px;
  background: #181818;
  border: 1px solid #303030;
  font-size: 14px;
  line-height: 1.85;
}

/* New-car A4: configuration gets five times the space of benefits */
.print-sheet.new-car-print .print-text-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 4mm;
}
.print-sheet.new-car-print .print-text-box {
  height: 100%;
  min-height: 0;
}
.print-sheet.new-car-print .print-text-box p {
  overflow: visible;
}

/* Quote-sheet inspired new-car A4 */
.print-sheet.new-car-print {
  color: #000;
  background: #fff;
  font-family: "Heiti SC", "SimHei", "黑体", "Microsoft YaHei", sans-serif;
}
.print-sheet.new-car-print .print-brand {
  align-items: flex-start;
  border-bottom: 1.2mm solid #000;
}
.new-car-print-photo-wrap {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2mm;
}
.new-car-print-photo {
  width: 46mm;
  height: 46mm;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #777;
  background: transparent;
  border: 0;
  font-size: 3mm;
}
.new-car-print-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.print-sheet.new-car-print .print-stock span,
.print-sheet.new-car-print .print-stock strong,
.print-sheet.new-car-print .print-title p,
.print-sheet.new-car-print .print-title h1,
.print-sheet.new-car-print .print-fact span,
.print-sheet.new-car-print .print-fact strong,
.print-sheet.new-car-print .print-text-box h3,
.print-sheet.new-car-print .print-text-box p,
.print-sheet.new-car-print .print-footer,
.print-sheet.new-car-print .print-footer strong {
  color: #000;
}
.print-sheet.new-car-print .print-source {
  color: #fff;
  background: #000;
  border-radius: 0;
}
.print-sheet.new-car-print .print-price-row {
  color: #fff;
  background: #000;
  border: 0;
}
.print-sheet.new-car-print .print-price-main span,
.print-sheet.new-car-print .print-price-main strong,
.print-sheet.new-car-print .print-price-main del {
  color: #fff;
}
.print-sheet.new-car-print .print-save {
  color: #000;
  background: #fff;
  border-left: .35mm solid #fff;
}
.print-sheet.new-car-print .print-save span { color: #555; }
.print-sheet.new-car-print .print-save strong { color: #000; }
.print-sheet.new-car-print .print-facts,
.print-sheet.new-car-print .print-fact {
  border-color: #000;
}
.print-sheet.new-car-print .print-text-box {
  background: #fff;
  border: .35mm solid #000;
  border-radius: 0;
}
.print-sheet.new-car-print .print-text-box h3 {
  padding-bottom: 1.5mm;
  border-bottom: .35mm solid #000;
}
.print-sheet.new-car-print .print-footer {
  border-top-color: #000;
}

/* New-car A4 vehicle data column */
.print-sheet.new-car-print .print-text-sections {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.print-vehicle-data-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.print-vehicle-data-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5mm 2mm;
  align-content: stretch;
}
.print-vehicle-data-item {
  min-width: 0;
  padding: 1.4mm 0;
  border-bottom: .25mm solid #999;
}
.print-vehicle-data-item span {
  display: block;
  color: #555;
  font-size: 2.2mm;
  line-height: 1.25;
}
.print-vehicle-data-item strong {
  display: block;
  margin-top: .5mm;
  color: #000;
  font-size: 2.6mm;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* New-car A4: combined vehicle data and configuration, benefits on the right */
.print-sheet.new-car-print .print-text-sections {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.print-data-config-box,
.print-benefits-box {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.print-data-config-box .print-vehicle-data-grid {
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1mm 1.4mm;
}
.print-data-config-box .print-vehicle-data-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.print-config-content {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 1mm;
  padding-top: 1mm;
  display: flex;
  flex-direction: column;
  border-top: .35mm solid #000;
}
.print-config-content h4 {
  flex: 0 0 auto;
  margin: 0;
  color: #000;
  font-size: 2.8mm;
  line-height: 1.2;
}
.print-config-content p,
.print-benefits-box p {
  flex: 1 1 auto;
  min-height: 0;
  margin: .8mm 0 0;
  overflow: hidden;
  font-size: 2.8mm;
  line-height: 1.5;
}
.print-sheet.new-car-print .print-vehicle-data-item {
  padding: .1mm 0;
  border-bottom-width: .2mm;
}
.print-sheet.new-car-print .print-vehicle-data-item span {
  font-size: 1.45mm;
  line-height: 1.05;
}
.print-sheet.new-car-print .print-vehicle-data-item strong {
  margin-top: .1mm;
  font-size: 1.8mm;
  line-height: 1.1;
}

/* New-car A4 page uses full page below a top-right Lotus roundel */
.print-sheet.new-car-print {
  padding-top: 10mm;
}
.new-car-a4-roundel {
  position: absolute;
  z-index: 2;
  top: 9mm;
  right: 12mm;
  width: 44mm;
  height: 44mm;
  object-fit: contain;
}
.print-sheet.new-car-print .print-title-row {
  min-height: 47mm;
  margin-top: 0;
  padding-right: 50mm;
  align-items: flex-start;
}
.print-sheet.new-car-print .print-title-meta {
  align-items: flex-start;
}
.print-sheet.new-car-print .print-price-row {
  margin-top: 3mm;
}
.print-sheet.new-car-print .print-price-row.no-savings {
  grid-template-columns: 1fr;
}

/* Keep all drive modes visible in the A4 data column */
.print-data-config-box .print-vehicle-data-item[data-key="driveModes"] {
  grid-column: span 2;
}
.print-data-config-box .print-vehicle-data-item[data-key="driveModes"] strong {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 1.55mm;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

/* Tighten new-car A4 vertical space for one-page output */
.print-sheet.new-car-print {
  padding: 5mm 9mm 4mm;
}
.new-car-a4-roundel {
  top: 4mm;
  right: 9mm;
  width: 38mm;
  height: 38mm;
}
.print-sheet.new-car-print .print-title-row {
  min-height: 35mm;
  padding-right: 42mm;
}
.print-sheet.new-car-print .print-price-row {
  margin-top: 2mm;
}
.print-sheet.new-car-print .print-facts {
  margin-top: 3mm;
}
.print-sheet.new-car-print .print-text-sections {
  margin-top: 3mm;
}
.print-sheet.new-car-print .print-footer {
  margin-top: 2mm;
  padding-top: 1.5mm;
}
