:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f5f5f7; }
.inventory-body { padding-top: 52px; font-family: 'Sora', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #fff; }
.lucy-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06); }
.lucy-logo { color: #1d1d1f; font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .5px; text-decoration: none; }
.lucy-menu-btn { margin: -8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: none; border: 0; border-radius: 0; cursor: pointer; }
.lucy-menu-btn span { display: block; width: 22px; height: 2px; background: #1d1d1f; border-radius: 2px; transition: transform .25s, opacity .2s; }
.lucy-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lucy-menu-btn.open span:nth-child(2) { opacity: 0; }
.lucy-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lucy-menu-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lucy-menu-overlay.open { opacity: 1; pointer-events: auto; }
.lucy-menu-panel { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001; width: 280px; max-width: 80vw; padding: 72px 24px 24px; display: flex; flex-direction: column; background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.08); transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.9,.4,1); }
.lucy-menu-panel.open { transform: translateX(0); }
.lucy-menu-panel a { display: block; padding: 14px 0; color: #1d1d1f; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 16px; font-weight: 500; text-decoration: none; }
.lucy-menu-panel a:hover { color: #0071e3; }
.inventory-body .page { margin-top: 48px; }
.topbar { height: 64px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid #e5e5e7; }
.topbar a { color: #1d1d1f; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.topbar .nav-link { color: #0071e3; font-size: .9rem; letter-spacing: 0; }
.topbar span { color: #6e6e73; font-size: .9rem; }
.page { width: min(1120px, 92vw); margin: 48px auto; }
.narrow { width: min(760px, 92vw); }
.hero-card, .content-card, .trust-card, .metric-card { background: #fff; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.hero-card { overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; }
.hero-photo, .photo-placeholder { width: 100%; height: 560px; min-height: 0; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; background: #e9eef5; color: #6e6e73; }
.hero-copy { padding: clamp(28px, 5vw, 64px); }
.eyebrow { color: #0071e3; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04; }
h2 { margin-top: 0; font-size: 1.2rem; }
.price { margin: 18px 0; font-size: 2rem; font-weight: 750; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; color: #6e6e73; }
.facts span { padding: 8px 12px; background: #f5f5f7; border-radius: 999px; }
.actions { display: flex; gap: 12px; margin-top: 32px; }
button { border: 0; border-radius: 999px; padding: 13px 20px; background: #0071e3; color: #fff; font: inherit; font-weight: 700; }
button.secondary { background: #e8f2fd; color: #0071e3; }
.button-link { display: inline-block; border-radius: 999px; padding: 12px 18px; background: #0071e3; color: #fff; font-weight: 700; text-decoration: none; }
.secondary-link { background: #e8f2fd; color: #0071e3; }
.trust-card { margin-top: 18px; padding: 22px 28px; color: #515154; }
.disclaimer-card { margin-top: 18px; padding: 22px 28px; border-radius: 24px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.05); color: #515154; }
.disclaimer-card summary { cursor: pointer; color: #1d1d1f; font-weight: 750; }
.disclaimer-copy { margin-top: 18px; color: #515154; line-height: 1.6; }
.disclaimer-copy p { margin: 0 0 14px; }
.disclaimer-copy ul { margin: 0 0 14px 20px; padding: 0; }
.disclaimer-copy li { margin: 6px 0; }
.vehicle-overview { margin-top: 18px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.overview-item { padding: 16px 0; border-top: 1px solid #ededf0; }
.overview-item span { display: block; margin-bottom: 5px; color: #6e6e73; font-size: .82rem; }
.overview-item strong { color: #1d1d1f; font-size: .98rem; overflow-wrap: anywhere; }
.photo-gallery { margin-top: 18px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-heading h2 { margin: 0; }
.gallery-heading span { color: #6e6e73; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.gallery-tile { display: block; overflow: hidden; border-radius: 14px; background: #e9eef5; aspect-ratio: 4 / 3; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.gallery-tile:hover img { transform: scale(1.03); }
.status-row { display: flex; align-items: center; gap: 14px; color: #6e6e73; }
.status-pill { padding: 7px 12px; border-radius: 999px; background: #e7f7ed; color: #16833b; font-weight: 700; }
.status-page { width: min(1160px, 92vw); }
.status-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 44px); background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%); }
.status-hero h1 { max-width: 760px; }
.status-hero-actions { display: grid; justify-items: end; gap: 10px; min-width: 170px; }
.status-privacy { color: #86868b; font-size: .82rem; text-align: right; }
.seller-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.seller-summary .metric-card { min-height: 154px; }
.seller-summary .metric-card span { display: block; margin-bottom: 10px; color: #6e6e73; font-size: .9rem; }
.seller-summary .metric-card small { display: block; margin-top: 8px; color: #86868b; }
.primary-metric { background: #0071e3; color: #fff; }
.primary-metric span, .primary-metric small { color: rgba(255,255,255,.78) !important; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-heading h2, .card-heading p { margin: 0; }
.card-heading span { color: #86868b; font-size: .88rem; }
.recommendation-card { border: 1px solid rgba(0,113,227,.16); }
.recommendation-card h2 { margin-bottom: 10px; font-size: 1.65rem; }
.source-list { display: grid; gap: 12px; }
.status-source-row { align-items: center; gap: 18px; border-top: 0; padding: 0; }
.status-source-row > div { flex: 1; min-width: 0; }
.status-source-row span { display: block; margin-bottom: 7px; color: #515154; font-weight: 700; }
.status-source-row i { display: block; height: 8px; min-width: 8px; border-radius: 999px; background: #0071e3; }
.status-disclaimer { color: #6e6e73; }
.status-disclaimer p { margin-bottom: 0; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 16px; }
.metric-card, .content-card { padding: 26px; }
.metric-card strong { display: block; font-size: 2rem; }
.metric-card span { color: #6e6e73; }
.content-card { margin-top: 16px; }
.source-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #ededf0; text-transform: capitalize; }
.inventory-heading { max-width: 720px; margin-bottom: 36px; }
.inventory-heading h1 { margin-bottom: 18px; }
.inventory-heading > p:last-child { color: #6e6e73; font-size: 1.08rem; line-height: 1.6; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.inventory-filters { margin-bottom: 30px; padding: 22px; border: 1px solid #ededf0; border-radius: 20px; background: #f5f5f7; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; }
.filter-actions a { color: #515154; font-weight: 650; text-decoration: none; }
.vehicle-card { overflow: hidden; border-radius: 22px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.05); transition: transform .18s ease, box-shadow .18s ease; }
.vehicle-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.09); }
.vehicle-card img, .card-photo-placeholder { display: block; width: 100%; height: 220px; object-fit: cover; }
.card-photo-placeholder { display: grid; place-items: center; background: #e9eef5; color: #6e6e73; }
.vehicle-card-copy { padding: 22px; }
.vehicle-card h2 { margin: 0 0 12px; font-size: 1.2rem; }
.card-price { margin: 0 0 14px; font-size: 1.4rem; font-weight: 750; }
.card-facts { display: grid; gap: 5px; color: #6e6e73; font-size: .92rem; }
.empty-card { padding: 44px; border-radius: 24px; background: #fff; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 38px 0 12px; }
.pagination a { padding: 11px 18px; border-radius: 999px; background: #e8f2fd; color: #0071e3; font-weight: 700; text-decoration: none; }
.pagination span { color: #6e6e73; font-size: .92rem; }
.admin-body { background: #f5f5f7; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 38px; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.login-card h1 { font-size: 2.3rem; }
.login-card > p:not(.eyebrow):not(.form-error) { color: #6e6e73; }
.login-card form { display: grid; gap: 10px; margin-top: 28px; }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; background: #fff; color: #1d1d1f; font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(0,113,227,.18); border-color: #0071e3; }
.form-error { padding: 12px 14px; border-radius: 12px; background: #fff0f0; color: #b42318; font-weight: 650; }
.text-button { padding: 6px; background: transparent; color: #0071e3; }
.narrow-admin { width: min(960px, 92vw); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { margin-bottom: 0; }
.admin-vehicle-list { display: grid; gap: 14px; }
.admin-vehicle-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.04); }
.admin-vehicle-row h2 { margin: 10px 0 6px; }
.admin-vehicle-row p { margin: 0; color: #6e6e73; }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.admin-row-actions a:not(.button-link) { color: #0071e3; text-decoration: none; font-weight: 650; }
.status-draft, .status-paused { background: #f2f2f7; color: #515154; }
.status-sold { background: #e8f2fd; color: #0062bd; }
.status-cancelled { background: #fff0f0; color: #b42318; }
.form-page { width: min(820px, 92vw); }
.admin-form { padding: 28px; border-radius: 22px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 28px; }
.form-actions a { color: #515154; }
.photo-manager { margin-top: 20px; }
.photo-manager > p { color: #6e6e73; }
.photo-manager > form { display: flex; align-items: center; gap: 14px; margin: 20px 0 24px; }
.photo-manager input[type="file"] { flex: 1; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-photo-card { position: relative; overflow: hidden; border: 1px solid #ededf0; border-radius: 14px; background: #f5f5f7; }
.admin-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photo-card form { padding: 8px; }
.main-photo-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 6px 9px; border-radius: 999px; background: rgba(0,113,227,.92); color: #fff; font-size: .72rem; font-weight: 750; }
.photo-order-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; padding: 8px 8px 0; }
.photo-order-actions form { padding: 0; }
.photo-action { width: 100%; padding: 8px 10px; border-radius: 10px; background: #e8f2fd; color: #0071e3; font-size: .78rem; }
.photo-action:disabled { opacity: .45; cursor: not-allowed; }
.delete-photo { width: 100%; padding: 8px 12px; background: #fff0f0; color: #b42318; }
.empty-photos { grid-column: 1 / -1; }
.save-first { margin-top: 20px; }
.buyer-form-page { width: min(760px, 92vw); }
.form-intro { color: #6e6e73; font-size: 1.05rem; }
.buyer-form { margin-top: 24px; }
.buyer-form > button { margin-top: 24px; }
.optional { color: #86868b; font-weight: 500; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 14px; border: 1px solid #d2d2d7; border-radius: 12px; }
fieldset legend { padding: 0 6px; font-size: .88rem; font-weight: 700; }
fieldset label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
fieldset input { width: auto; }
.large-value { margin: 0; font-size: 2rem; font-weight: 750; }
.activity-list { display: grid; gap: 12px; }
.activity-card { padding: 18px; border: 1px solid #ededf0; border-radius: 16px; }
.activity-card p { margin: 8px 0; white-space: pre-wrap; }
.activity-card small { color: #86868b; }
.offer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-activity-card a { color: #0071e3; }
.confirmation-card .button-link { margin-top: 18px; }
.admin-top-actions, .email-actions { display: flex; align-items: center; gap: 16px; }
.mode-notice { padding: 14px 18px; border-radius: 14px; background: #e8f2fd; color: #0057a8; }
.email-log-list { display: grid; gap: 14px; margin-top: 24px; }
.email-log-row { padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.04); }
.email-log-row > div { display: flex; align-items: center; gap: 12px; }
.email-log-row p, .email-log-row small { color: #6e6e73; }
.email-log-row details { margin: 14px 0; }
.email-log-row summary { color: #0071e3; cursor: pointer; font-weight: 700; }
.email-log-row iframe { width: 100%; height: 520px; margin-top: 12px; border: 1px solid #ededf0; border-radius: 12px; background: #fff; }
.status-logged { background: #fff7e6; color: #8a5700; }
.status-sent { background: #e7f7ed; color: #16833b; }
.status-failed { background: #fff0f0; color: #b42318; }

@media (max-width: 720px) {
  .page { margin-top: 24px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-photo, .photo-placeholder { height: 320px; min-height: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .status-hero { flex-direction: column; }
  .status-hero-actions { justify-items: stretch; width: 100%; }
  .status-privacy { text-align: left; }
  .seller-summary, .status-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .inventory-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .pagination { gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { flex-direction: column; }
  .admin-heading, .admin-vehicle-row { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .admin-top-actions, .email-actions { align-items: stretch; flex-direction: column; }
  .photo-manager > form { align-items: stretch; flex-direction: column; }
  .admin-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 721px) and (max-width: 980px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
