:root {
  --ink: #152522;
  --muted: #68736f;
  --line: #dce3df;
  --paper: #ffffff;
  --canvas: #f4f6f5;
  --jade: #2f7b69;
  --jade-soft: #e3f0eb;
  --gold: #c98a35;
  --danger: #b9534d;
  --shadow: 0 12px 30px rgba(25, 45, 40, 0.1);
}

html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; font-size: 19px; text-decoration: none; white-space: nowrap; letter-spacing: 0; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 7px; }
.brand-mark svg { width: 19px; height: 19px; }
.nav { display: flex; height: 100%; gap: 24px; margin-left: auto; }
.nav button, .nav a { color: var(--muted); border: 0; background: transparent; padding: 0; border-bottom: 2px solid transparent; text-decoration: none; display: inline-flex; align-items: center; }
.nav button.active, .nav a.active { color: var(--ink); border-color: var(--jade); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--paper); border-radius: 7px; }
.icon-button:hover { border-color: var(--jade); color: var(--jade); }
.icon-button svg { width: 18px; height: 18px; }
.primary-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; }
.primary-button:hover { background: #263b36; }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-weight: 650; }
.danger-light { color: #a33b31; border-color: #f0cac5; background: #fff7f5; }

.hero { min-height: 360px; color: #fff; background: #172824; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/car-01.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 28, 25, 0.68); }
.hero-content { max-width: 1240px; min-height: 360px; margin: 0 auto; padding: 74px 24px 46px; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; color: #d8e8e0; font-size: 13px; font-weight: 700; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #79c3a9; }
h1 { max-width: 740px; margin: 0; font-size: 44px; line-height: 1.16; letter-spacing: 0; }
.hero p { max-width: 520px; margin: 14px 0 0; color: #e6eeeb; font-size: 16px; line-height: 1.7; }
.hero-metrics { margin-top: 28px; display: flex; gap: 28px; }
.hero-metric b { display: block; font-size: 20px; }
.hero-metric span { color: #ccdad4; font-size: 13px; }

.content { max-width: 1240px; margin: 0 auto; padding: 34px 24px 64px; }
.admin-login { display: grid; place-items: start center; min-height: 55vh; }
.login-panel { width: min(460px, 100%); }
.login-panel p { margin-top: -4px; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 10px; margin-top: 16px; }
.login-form label { color: #52605b; font-size: 13px; font-weight: 700; }
.login-form input { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font: inherit; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 26px; letter-spacing: 0; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.admin-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.admin-status-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.admin-status-filter button { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-weight: 700; }
.admin-status-filter button span { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border-radius: 11px; color: var(--muted); background: #eef2f0; font-size: 12px; }
.admin-status-filter button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.admin-status-filter button.active span { color: var(--ink); background: #fff; }
.inventory-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.segmented button { height: 32px; padding: 0 12px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 13px; }
.segmented button.active { color: var(--ink); background: var(--jade-soft); font-weight: 700; }
.search { position: relative; width: min(100%, 260px); }
.search svg { position: absolute; left: 11px; top: 10px; width: 17px; height: 17px; color: var(--muted); }
.search input { width: 100%; height: 38px; padding: 0 11px 0 36px; color: var(--ink); border: 1px solid var(--line); outline: 0; border-radius: 7px; background: var(--paper); }
.search input:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47, 123, 105, 0.12); }
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.car-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 2px 8px rgba(20, 39, 34, 0.03); transition: transform .18s ease, box-shadow .18s ease; }
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-image { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #dce5e1; }
.car-info { padding: 16px; }
.car-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.car-name { margin: 0; font-size: 18px; line-height: 1.35; }
.status { flex: 0 0 auto; padding: 4px 7px; border-radius: 4px; background: var(--jade-soft); color: var(--jade); font-size: 12px; font-weight: 700; }
.status.reserved { color: #9a641e; background: #f9ecd7; }
.status.sold { color: #78827e; background: #edf0ee; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 15px; color: var(--muted); font-size: 13px; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price { color: var(--danger); font-weight: 800; font-size: 24px; }
.price small { margin-right: 1px; font-size: 14px; }
.view-link { border: 0; padding: 0; color: var(--jade); background: transparent; font-weight: 700; }
.empty { grid-column: 1 / -1; padding: 56px 16px; text-align: center; border: 1px dashed var(--line); color: var(--muted); background: var(--paper); border-radius: 8px; }

.dashboard { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0; }
.panel-head h3 { margin: 0; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.stat { padding: 18px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 25px; }
.stat span { color: var(--muted); font-size: 12px; }
.manager-list { padding: 4px 18px 18px; }
.manager-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 128px auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.manager-row.sold { opacity: 0.82; }
.manager-row.sold b { text-decoration: line-through; text-decoration-thickness: 1px; }
.manager-row:last-child { border-bottom: 0; }
.manager-row img { width: 62px; height: 44px; object-fit: cover; border-radius: 5px; }
.manager-row b, .manager-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.manager-row select { height: 32px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }
.manager-actions { display: flex; gap: 7px; }
.publish-action { color: var(--gold); border-color: #e8d7bb; background: #fffaf1; }
.publish-action:hover { color: #a96f12; border-color: #d6b479; }
.sold-action { color: #2f7b69; border-color: #cfe3dc; background: #f2faf7; }
.restore-action { color: #7a4f2a; border-color: #ead4bb; background: #fff8ef; }
.print-action { color: #6d4b22; border-color: #ead4bb; background: #fff8ef; }
.manager-side { padding: 18px; }
.manager-side h3 { margin: 0 0 14px; font-size: 18px; }
.visit-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.visit-stat { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid #cfe3dc; border-radius: 7px; background: #f2faf7; }
.visit-stat b { color: var(--jade); font-size: 29px; line-height: 1.1; }
.visit-stat span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.visit-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.manager-side-subtitle { margin-top: 24px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.tip-list { display: grid; gap: 0; }
.tip { padding: 15px 0; border-bottom: 1px solid var(--line); }
.tip:last-child { border-bottom: 0; }
.tip b { display: block; margin-bottom: 5px; font-size: 14px; }
.tip span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(15, 31, 27, 0.56); }
.modal { width: min(680px, 100%); max-height: min(800px, calc(100vh - 36px)); overflow: auto; border-radius: 8px; background: var(--paper); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 18px; }
.detail-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 7px; background: #e8eeeb; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #e8eeeb; border: 1px solid var(--line); }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 16px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.detail-meta div { padding: 12px; background: var(--paper); }
.detail-meta span { display: block; color: var(--muted); font-size: 12px; }
.detail-meta b { display: block; margin-top: 5px; font-size: 15px; }
.detail-copy { color: #45534e; line-height: 1.75; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #52605b; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: 0; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(47, 123, 105, 0.12); }
.field input[type="file"] { padding: 10px; background: #f9fbfa; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.55; }
.photo-manage-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.photo-manage-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #e8eeeb; }
.report-preview, .customer-report-link { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); text-decoration: none; background: #f9fbfa; }
.report-preview:hover, .customer-report-link:hover { border-color: var(--jade); }
.report-preview svg, .customer-report-link svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--jade); }
.report-preview b, .customer-report-link b { display: block; font-size: 14px; line-height: 1.35; }
.report-preview span, .customer-report-link span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.private-file-preview { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid #ead4bb; border-radius: 7px; color: var(--ink); background: #fffaf4; }
.private-file-preview > svg { flex: 0 0 auto; width: 20px; height: 20px; color: #9a642e; }
.private-file-preview > div { min-width: 0; flex: 1; }
.private-file-preview b, .private-file-preview span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.private-file-preview b { font-size: 14px; line-height: 1.35; }
.private-file-preview span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.private-file-preview .secondary-button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; }
.private-file-preview .secondary-button svg { width: 16px; height: 16px; }
.customer-shell .customer-report-link { color: #f5f1e8; border-color: #2b2e37; background: #17181f; }
.customer-shell .customer-report-link svg { color: #f1ca62; }
.customer-shell .customer-report-link b { color: #fffaf0; }
.customer-shell .customer-report-link span { color: #a8abb3; }
.form-foot { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: calc(100vw - 32px); padding: 11px 14px; color: #fff; background: var(--ink); border-radius: 7px; box-shadow: var(--shadow); transform: translate(-50%, 120px); transition: transform .18s ease; font-size: 14px; }
.toast.show { transform: translate(-50%, 0); }

.customer-shell { min-height: 100vh; color: #f8f3e5; background: #0b0b0d; }
.customer-app { width: min(100%, 430px); min-height: 100vh; margin: 0 auto; padding: 38px 16px 104px; background: #0b0b0d; }
.customer-head { margin-bottom: 18px; }
.customer-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.customer-title-row h1 { margin: 0; color: #fffaf0; font-size: 28px; line-height: 1.15; font-weight: 800; }
.customer-icon-button, .customer-detail-actions button, .customer-back { border: 0; color: #fff; background: transparent; }
.customer-icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.customer-icon-button svg, .customer-detail-actions svg { width: 22px; height: 22px; }
.customer-chips { display: flex; gap: 9px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.customer-chips::-webkit-scrollbar { display: none; }
.customer-chips button { flex: 0 0 auto; min-width: 56px; height: 32px; padding: 0 14px; border: 1px solid #292b32; border-radius: 16px; color: #bfc0c6; background: #17181f; font-size: 13px; font-weight: 700; }
.customer-chips button.active { color: #17110b; border-color: #f1ca62; background: #f1ca62; }
.customer-search { position: relative; display: block; margin-top: 8px; }
.customer-search svg { position: absolute; left: 12px; top: 10px; width: 17px; height: 17px; color: #8f929b; }
.customer-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border: 1px solid #252730; border-radius: 12px; color: #f5f1e8; outline: 0; background: #15161c; }
.customer-search input::placeholder { color: #787b83; }
.customer-search input:focus { border-color: #f1ca62; box-shadow: 0 0 0 3px rgba(241, 202, 98, 0.12); }
.customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.customer-car-card { overflow: hidden; border: 1px solid #292b33; border-radius: 10px; color: #fff; background: #1a1b22; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); transition: transform .16s ease, border-color .16s ease; }
.customer-car-card:hover { transform: translateY(-2px); border-color: #3a3d47; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); }
.customer-car-image { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; display: block; background: #e7ebe9; }
.customer-car-info { padding: 11px 12px 13px; }
.customer-car-name { display: -webkit-box; min-height: 42px; margin: 0 0 7px; overflow: hidden; color: #f6f2ea; font-size: 15px; line-height: 1.35; font-weight: 800; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.customer-car-specs { display: flex; flex-wrap: wrap; gap: 4px 8px; min-height: 18px; color: #979aa4; font-size: 12px; }
.customer-price { margin-top: 4px; color: #f1ca62; font-size: 19px; line-height: 1.2; font-weight: 850; }
.customer-empty { grid-column: 1 / -1; padding: 44px 12px; text-align: center; color: #8f929b; border: 1px dashed #292b33; border-radius: 10px; background: #15161c; }
.customer-tabbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; width: min(348px, calc(100vw - 36px)); height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 6px; border: 1px solid #282a33; border-radius: 31px; background: rgba(25, 26, 33, 0.96); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38); transform: translateX(-50%); backdrop-filter: blur(14px); }
.customer-tabbar button { display: grid; place-items: center; gap: 2px; border: 0; border-radius: 25px; color: #a8abb3; background: transparent; font-size: 11px; }
.customer-tabbar button svg { width: 18px; height: 18px; }
.customer-tabbar .active-strong { color: #17110b; background: #f1ca62; font-weight: 800; }
.customer-detail { position: fixed; inset: 0; z-index: 40; color: #f8f3e5; background: #0b0b0d; }
.customer-detail-scroll { width: min(100%, 430px); height: 100vh; margin: 0 auto; overflow: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); background: #0b0b0d; }
.customer-detail-media { position: relative; overflow: hidden; border-radius: 0 0 12px 12px; background: #111218; }
.customer-main-photo { width: 100%; display: block; padding: 0; border: 0; background: transparent; }
.customer-detail-media img { width: 100%; aspect-ratio: 1.35 / 1; display: block; object-fit: cover; background: #e7ebe9; }
.customer-dots { position: absolute; left: 0; right: 0; bottom: 17px; display: flex; justify-content: center; gap: 5px; }
.customer-dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.42); }
.customer-dots button.active { width: 18px; border-radius: 99px; background: #f1ca62; }
.customer-thumb-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.customer-thumb-strip::-webkit-scrollbar { display: none; }
.customer-thumb-strip button { flex: 0 0 68px; padding: 2px; border: 1px solid #2d3039; border-radius: 8px; background: #17181f; }
.customer-thumb-strip button.active { border-color: #f1ca62; }
.customer-thumb-strip img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; border-radius: 6px; background: #e7ebe9; }
.customer-detail-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 8px; }
.customer-back { display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 18px; font-weight: 800; }
.customer-back svg { width: 24px; height: 24px; }
.customer-detail-actions { display: flex; gap: 12px; }
.customer-detail-actions button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; }
.customer-detail-card { margin: 8px 16px 12px; padding: 14px; border: 1px solid #2a2c35; border-radius: 10px; background: #1a1b21; }
.customer-detail-card h2 { margin: 8px 0 8px; color: #fffaf0; font-size: 19px; line-height: 1.32; }
.customer-detail-card h3 { margin: 0 0 12px; color: #fffaf0; font-size: 16px; }
.customer-detail-card p { margin: -24px 0 0; color: #9397a1; text-align: right; font-size: 12px; }
.customer-badges { display: flex; gap: 8px; }
.customer-badges span { height: 22px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 5px; color: #241b0f; background: #f1ca62; font-size: 12px; font-weight: 800; }
.customer-badges .green { color: #0d3b2c; background: #74d9a1; }
.customer-detail-price { color: #f1ca62; font-size: 27px; line-height: 1.15; font-weight: 900; }
.customer-param-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.customer-param-grid div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; }
.customer-param-grid span { color: #989ca5; font-size: 13px; }
.customer-param-grid b { overflow: hidden; color: #fffaf0; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.customer-highlights { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.customer-highlights li { display: flex; align-items: start; gap: 8px; color: #c7c9cf; font-size: 14px; line-height: 1.45; }
.customer-highlights svg { flex: 0 0 auto; width: 17px; height: 17px; color: #74d9a1; margin-top: 1px; }
.customer-detail-bottom { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; margin: 14px 16px 0; }
.customer-dark-button, .customer-gold-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; font-weight: 850; text-decoration: none; }
.customer-dark-button { color: #f1ca62; border: 1px solid #30323b; background: #17181f; }
.customer-gold-button { color: #17110b; border: 0; background: #f1ca62; }
.customer-dark-button svg, .customer-gold-button svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .topbar { height: 60px; }
  .topbar-inner { padding: 0 16px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav { display: none; }
  .top-actions .primary-button { width: 38px; padding: 0; }
  .top-actions .primary-button span { display: none; }
  .hero, .hero-content { min-height: 330px; }
  .hero-content { padding: 52px 18px 34px; }
  h1 { font-size: 34px; }
  .hero p { font-size: 14px; }
  .hero-metrics { gap: 18px; }
  .content { padding: 25px 16px 44px; }
  .login-panel { padding: 22px; }
  .login-panel h2 { margin-top: 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading .primary-button { width: 100%; }
  .admin-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-heading-actions .primary-button, .admin-heading-actions .secondary-button { width: 100%; min-height: 42px; padding: 0 10px; }
  .admin-status-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-status-filter button { justify-content: center; min-height: 42px; }
  .inventory-tools { align-items: stretch; }
  .search { width: 100%; }
  .car-grid { grid-template-columns: 1fr; gap: 14px; }
  .dashboard { grid-template-columns: 1fr; }
  .panel-head { align-items: start; gap: 12px; padding: 16px 14px 0; }
  .panel-head .secondary-button { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .manager-list { padding: 2px 14px 14px; }
  .manager-row { grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 8px 10px; padding: 14px 0; }
  .manager-row img { width: 58px; height: 44px; }
  .manager-row select { grid-column: 2 / 3; width: 100%; min-height: 36px; }
  .manager-actions { grid-column: 2 / 3; justify-content: start; }
  .manager-actions .icon-button { width: 42px; height: 40px; }
  .manager-side { padding: 16px 14px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 94vh; border-radius: 10px 10px 0 0; }
  .edit-modal { max-height: 100vh; border-radius: 0; }
  .modal-head { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .detail-meta { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .field input, .field select, .field textarea { min-height: 44px; font-size: 16px; }
  .photo-manage-strip { grid-template-columns: repeat(3, 1fr); }
  .report-preview, .customer-report-link { padding: 11px 12px; }
  .report-preview b, .customer-report-link b { font-size: 13px; }
  .form-foot { position: sticky; bottom: 0; z-index: 2; margin: 18px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
  .form-foot .secondary-button, .form-foot .primary-button { flex: 1; min-height: 44px; }
}
