:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #111821;
  --ink-2: #364150;
  --muted: #667180;
  --line: #e1e5ea;
  --line-2: #cbd2da;
  --brand: #ec6416;
  --brand-dark: #c4500c;
  --brand-soft: #fff0e6;
  --top: #0f1720;
  --top-ink: #eef1f5;
  --top-muted: #9aa5b3;
  --ok: #0f7a45;
  --ok-soft: #e3f4ea;
  --warn: #9a5a00;
  --warn-soft: #fff3d9;
  --bad: #b92c2c;
  --bad-soft: #fce8e8;
  --info: #2155c4;
  --info-soft: #e7eefc;
  --eu: #1d3fa6;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .06), 0 4px 14px rgba(15, 23, 32, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* demo bar + header */
#demo-bar { background: #fff7d6; border-bottom: 1px solid #f0dd95; color: #5b4800; font-size: 13px; }
.demo-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; white-space: nowrap; }
#top { background: var(--top); color: var(--top-ink); position: sticky; top: 0; z-index: 20; }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand small { font-weight: 500; font-size: 13px; color: var(--top-muted); letter-spacing: 0; }
.logo-mark { width: 30px; height: 30px; color: var(--brand); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--top-muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.nav a:hover { color: var(--top-ink); background: rgba(255, 255, 255, .06); }
.nav a.active { color: var(--top-ink); background: rgba(255, 255, 255, .1); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-link { color: var(--top-muted); font-size: 14px; text-decoration: none; }
.top-link:hover { color: var(--top-ink); text-decoration: underline; }
.cart-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--top-ink); background: rgba(255, 255, 255, .08); }
.cart-btn.active, .cart-btn:hover { background: rgba(255, 255, 255, .16); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn .count { position: absolute; top: -5px; right: -6px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.seller-pick select { background: rgba(255, 255, 255, .08); color: var(--top-ink); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 7px 10px; max-width: 220px; }
.seller-pick option { color: var(--ink); }

/* buttons, chips, pills, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 10px; font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #26303c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(15, 23, 32, .05); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.is-added { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sm { padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { background: #eceff3; color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 400; color: var(--ink); }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236, 100, 22, .18); }
.field-hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field-error { font-weight: 600; color: var(--bad); font-size: 12.5px; }
.seg { display: inline-flex; background: #e8ebef; border-radius: 10px; padding: 3px; gap: 2px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.page { padding-top: 24px; padding-bottom: 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* number plate */
.plate-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.plate { display: flex; align-items: stretch; background: #fff; border: 3px solid #111; border-radius: 10px; overflow: hidden; min-width: 0; flex: 1 1 280px; max-width: 380px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.plate-eu { background: var(--eu); color: #fff; width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 0; font-weight: 700; font-size: 15px; gap: 4px; }
.plate-stars { width: 22px; height: 22px; border-radius: 50%; border: 2px dotted #ffd500; }
.plate input { border: 0; outline: none; width: 100%; min-width: 0; padding: 8px 14px; font-size: 34px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-family: "DIN Alternate", "Arial Narrow", var(--font); background: transparent; }
.plate input::placeholder { color: #c3c9d1; }
.plate:focus-within { box-shadow: 0 0 0 4px rgba(236, 100, 22, .35); }
.plate-msg { flex-basis: 100%; min-height: 20px; font-size: 14px; color: var(--muted); }
.plate-msg.is-error { color: var(--bad); font-weight: 600; }
.plate-form.is-loading .plate input { color: var(--muted); }
.plate-try { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plate-badge { display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 6px; overflow: hidden; background: #fff; font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.plate-badge::before { content: "CY"; background: var(--eu); color: #fff; font-size: 10px; padding: 0 5px; display: flex; align-items: flex-end; padding-bottom: 2px; letter-spacing: 0; }
.plate-badge span { padding: 2px 8px; }

/* home */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(236, 100, 22, .22), transparent 60%), var(--top); color: var(--top-ink); padding: 56px 0 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -.03em; max-width: 760px; }
.hero h1 em { font-style: normal; color: #ff8a45; }
.hero .lead { color: var(--top-muted); font-size: 18px; max-width: 640px; margin: 14px 0 28px; }
.hero .plate-try { color: var(--top-muted); margin-top: 6px; }
.hero .plate-try .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--top-ink); }
.hero .plate-msg { color: var(--top-muted); }
.hero .plate-msg.is-error { color: #ff9b9b; }
.hero-alt { margin-top: 18px; font-size: 14px; color: var(--top-muted); }
.hero-alt a { color: var(--top-ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -28px; }
.step { padding: 20px; }
.step b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }
.section { padding: 48px 0 0; }
.section h2 { font-size: 22px; margin-bottom: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { display: block; text-decoration: none; padding: 16px; font-weight: 700; font-size: 15px; }
.cat-tile span { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.cat-tile:hover { border-color: var(--ink-2); }
.seller-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.seller-strip span { padding: 10px 16px; font-weight: 700; color: var(--ink-2); }
.sell-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 28px; align-items: center; background: var(--ink); color: var(--top-ink); border: 0; }
.sell-cta h2 { color: #fff; margin-bottom: 8px; }
.sell-cta p { color: var(--top-muted); }
.sell-cta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--top-ink); font-size: 14px; }
.sell-cta li { display: flex; gap: 8px; }
.sell-cta li svg { width: 18px; height: 18px; color: #ff8a45; flex: none; margin-top: 2px; }
.sell-cta .btn { margin-top: 18px; }
.footer { padding: 40px 0; color: var(--muted); font-size: 13px; }

/* parts page */
.vehicle-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; }
.vehicle-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; }
.vehicle-icon svg { width: 28px; height: 28px; }
.vehicle-name { font-size: 19px; font-weight: 800; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; margin-top: 4px; align-items: center; }
.vehicle-meta .fit { color: var(--ok); font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.vehicle-meta .fit svg { width: 16px; height: 16px; }
.finder { padding: 22px; display: grid; gap: 22px; }
.finder h2 { font-size: 17px; margin-bottom: 10px; }
.finder .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.finder .or::before, .finder .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.manual { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 12px; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-box input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px 10px 38px; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236, 100, 22, .18); }
.toolbar select { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; background: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.results-meta { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.results { display: grid; gap: 14px; }
.part { overflow: hidden; }
.part-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px 12px; align-items: flex-start; }
.part-head h3 { font-size: 17px; }
.part-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.part-head .from { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.part-head .from b { display: block; font-size: 20px; color: var(--ink); }
.offers { border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1.2fr) minmax(170px, 1.2fr) 110px 150px; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer.best { background: #fffaf5; }
.offer-seller { font-weight: 700; }
.offer-seller small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.offer-brand b { font-weight: 700; }
.offer-brand code { display: block; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.offer-price { text-align: right; font-weight: 800; font-size: 18px; }
.offer-price small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.offer .btn { width: 100%; }
.best-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 7px; border-radius: 5px; margin-top: 3px; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.seller-group { margin-bottom: 16px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.group-head h2 { font-size: 16px; }
.line { display: grid; grid-template-columns: 1fr auto 100px 36px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.line-title { font-weight: 650; }
.line-sub { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: #f4f5f7; cursor: pointer; font-size: 17px; font-weight: 700; }
.qty button:hover { background: #e8ebef; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.line-total { text-align: right; font-weight: 750; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.icon-btn:hover { background: var(--bad-soft); color: var(--bad); }
.group-foot { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 18px; align-items: start; }
.group-foot .totals { min-width: 200px; }
.summary { padding: 20px; position: sticky; top: 80px; display: grid; gap: 16px; }
.summary h2 { font-size: 18px; }
.rows { display: grid; gap: 6px; font-size: 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; }
.rows .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.pay-note { font-size: 12.5px; color: var(--muted); }
.buyer-fields { display: grid; gap: 12px; }

/* orders (buyer + seller) */
.order { margin-bottom: 14px; overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-id { font-weight: 800; }
.order-head .meta { color: var(--muted); font-size: 13px; }
.order-body { padding: 4px 18px 14px; }
.order-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-items td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-items td:last-child { text-align: right; white-space: nowrap; }
.order-items .q { color: var(--muted); width: 48px; }
.order-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding-top: 12px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-actions select { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 13px; }
.timeline { display: flex; gap: 0; margin: 14px 0 6px; }
.timeline li { list-style: none; flex: 1; position: relative; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.timeline li.done { color: var(--ink); font-weight: 650; }
.timeline li.done::before, .timeline li.done::after { background: var(--ok); }
.timeline { padding: 0; }
.money-split { font-size: 13px; color: var(--muted); text-align: right; }
.money-split b { color: var(--ink); font-size: 17px; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 24px; margin-top: 4px; letter-spacing: -.02em; }
.stat.highlight { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.highlight span { color: var(--top-muted); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* seller catalog + payouts */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.panel { padding: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 6px; }
.panel > p { color: var(--muted); font-size: 14px; }
.drop { margin-top: 14px; border: 2px dashed var(--line-2); border-radius: var(--r); padding: 28px 20px; text-align: center; background: #fafbfc; }
.drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop p { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.drop input[type="file"] { display: none; }
.cols { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.cols code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef0f3; padding: 1px 6px; border-radius: 5px; }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.data td.r, .data th.r { text-align: right; }
.data tr.bad td { background: var(--bad-soft); }
.data tfoot td { font-weight: 800; border-bottom: 0; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-top: 14px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--info-soft); color: var(--info); }

/* toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(6px); }

@media (max-width: 960px) {
  .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "seller price" "brand price" "avail avail" "add add"; gap: 6px 14px; }
  .offer-seller { grid-area: seller; }
  .offer-brand { grid-area: brand; }
  .offer-avail { grid-area: avail; }
  .offer-avail .pill { white-space: normal; }
  .offer-price { grid-area: price; }
  .offer-add { grid-area: add; }
  .cart-layout, .two-col, .sell-cta { grid-template-columns: 1fr; }
  .summary { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.brand, .nav a, .top-link { white-space: nowrap; }
@media (max-width: 1120px) {
  .top-inner { gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -4px; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr; margin-top: 20px; }
  .manual { grid-template-columns: 1fr; }
  .vehicle-bar { grid-template-columns: auto 1fr; }
  .vehicle-bar .btn { grid-column: 1 / -1; }
  .line { grid-template-columns: 1fr auto; }
  .line .qty { grid-row: 2; }
  .line-total { grid-row: 2; }
  .group-foot { grid-template-columns: 1fr; }
  .part-head { flex-direction: column; }
  .part-head .from { text-align: left; }
  .plate input { font-size: 28px; }
  .seller-pick select { max-width: 160px; }
  .demo-inner { flex-wrap: wrap; }
}

/* ---- live platform additions ---- */
.top-user { color: var(--top-muted); font-size: 13.5px; white-space: nowrap; }
.top-user b { color: var(--top-ink); font-weight: 650; }
.link-btn.light { color: var(--top-muted); }
.link-btn.light:hover { color: var(--top-ink); }
.auth-card { max-width: 480px; margin: 32px auto; padding: 24px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 24px; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section-card { padding: 20px; margin-bottom: 16px; display: grid; gap: 14px; }
.section-card h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.section-card h2 .num-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; }
.car-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fafbfc; }
.car-card .vehicle-name { font-size: 17px; }
.lines { display: grid; gap: 8px; }
.line-row { display: grid; grid-template-columns: 1fr 90px 40px; gap: 8px; align-items: center; }
.line-row input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #fff; }
.line-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(236, 100, 22, .18); }
.req-card { padding: 16px 18px; display: grid; gap: 8px; text-decoration: none; }
a.req-card:hover { border-color: var(--ink-2); }
.req-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.req-ref { font-weight: 800; }
.req-lines { color: var(--ink-2); font-size: 14px; }
.list { display: grid; gap: 12px; }
.line-block { border-top: 1px solid var(--line); }
.line-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px 8px; font-weight: 700; }
.offer-pick { display: grid; grid-template-columns: 28px minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(150px, 1fr) 120px; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px dashed var(--line); cursor: pointer; }
.offer-pick:hover { background: #fafbfc; }
.offer-pick input { width: 18px; height: 18px; accent-color: var(--brand); }
.offer-pick.is-picked { background: #fff6ef; }
.offer-pick .offer-price { font-size: 17px; }
.waiting { display: flex; gap: 10px; align-items: center; padding: 14px 18px; color: var(--muted); font-size: 14px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.offer-form { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr .8fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px 18px 14px; background: #fafbfc; }
.offer-form .field input, .offer-form .field select { padding: 8px 10px; font-size: 14px; }
.my-offer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 18px; border-top: 1px dashed var(--line); font-size: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.admin-grid { display: grid; gap: 16px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.secret-box { font: 600 16px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 10px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 960px) {
  .offer-pick { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "pick seller price" "pick brand price" "pick avail avail"; gap: 4px 12px; }
  .offer-pick > :first-child { grid-area: pick; align-self: start; margin-top: 2px; }
  .offer-pick .offer-avail .pill { white-space: normal; }
  .offer-form { grid-template-columns: 1fr 1fr; }
  .offer-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .car-card { grid-template-columns: auto 1fr; }
  .car-card .btn { grid-column: 1 / -1; }
  .top-user { display: none; }
}
.offer-brand small { display: block; font-size: 12.5px; }
.toast.toast-bad { background: var(--bad); }
.part-head .sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.car-kv { margin-top: 10px; grid-template-columns: repeat(3, max-content minmax(0, 1fr)); }
.cat-section { margin-top: 20px; }
.cat-title { font-size: 18px; margin-bottom: 10px; }
.part-head .sub code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
@media (max-width: 720px) { .car-kv { grid-template-columns: max-content minmax(0, 1fr); } }
.stats.one-col { grid-template-columns: 1fr; }
.line .qty { justify-self: start; }
