:root {
  --ink: #111214;
  --muted: #6d6d68;
  --paper: #e9e9e6;
  --card: #fffef9;
  --line: #dcd8cc;
  --red: #e31e2b;
  --green: #1b7f56;
  --shadow: 0 18px 55px rgba(21,21,21,.10);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.topbar { height: 82px; display: flex; align-items: center; gap: 13px; padding: 0 max(22px, calc((100vw - 1320px)/2)); background: #0b0c0e; color: white; letter-spacing: .08em; border-bottom: 1px solid #27282b; }
.topbar strong, .topbar small { display: block; }
.topbar small { font-size: 9px; color: #c8c8c3; margin-top: 3px; }
.brandmark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); transform: skew(-9deg); font-weight: 900; font-size: 20px; box-shadow: 8px 0 0 rgba(227,30,43,.22); }
.brandmark span { transform: skew(9deg); }
.topbar .quiet { margin-left: auto; background: transparent; color: white; border: 1px solid #555; border-radius: 999px; padding: 8px 15px; }
main { max-width: 1320px; margin: 0 auto; padding: 34px 22px 90px; }
.hero { position: relative; min-height: 650px; padding: clamp(32px, 5vw, 70px); border-radius: 10px; overflow: hidden; color: white; background: linear-gradient(115deg, rgba(11,12,14,.98) 0%, rgba(11,12,14,.94) 47%, rgba(11,12,14,.72) 100%), repeating-linear-gradient(135deg, transparent 0 29px, rgba(255,255,255,.025) 30px 31px), radial-gradient(circle at 93% 15%, #8f121b 0, #2a1215 25%, #111214 58%); box-shadow: 0 28px 70px rgba(10,10,10,.22); display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); gap: clamp(34px, 5vw, 74px); align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--red); }
.hero::after { content: "H"; position: absolute; right: -35px; top: -105px; color: rgba(255,255,255,.025); font-size: 620px; line-height: 1; font-weight: 950; transform: skew(-9deg); pointer-events: none; }
.hero-copy, .picker-card { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 800; color: #d8474d; }
h1 { max-width: 690px; margin: 17px 0 24px; font-size: clamp(48px, 6vw, 84px); line-height: .94; letter-spacing: -.065em; text-transform: uppercase; }
h1 em { color: var(--red); font-style: normal; }
h2 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.035em; }
.lead { max-width: 540px; color: #b9babd; font-size: 18px; line-height: 1.55; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #303136; color: #888b91; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.trust-row b { display: block; margin-bottom: 4px; color: white; font-size: 15px; letter-spacing: 0; text-transform: none; }
.picker-card { padding: clamp(24px, 3.2vw, 42px); color: var(--ink); background: rgba(250,250,247,.98); border-radius: 8px; box-shadow: 0 26px 80px rgba(0,0,0,.38); }
.picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.picker-head h2 { margin: 3px 0 20px; font-size: clamp(30px, 3vw, 42px); }
.step-kicker { color: var(--red); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .17em; }
.fitment-badge { padding: 7px 10px; background: var(--ink); color: white; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; transform: skew(-7deg); }
.search { display: flex; margin: 0 0 16px; padding: 4px; background: #fff; border: 1px solid #d7d7d2; border-radius: 5px; }
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,43,.08); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 14px; background: transparent; }
.search button { width: 48px; border: 0; border-radius: 3px; background: var(--red); color: white; font-size: 21px; transition: transform .18s ease, background .18s ease; }
.search button:hover { background: #bd111d; transform: translateX(2px); }
.catalog { display: grid; gap: 11px; }
.field-step { display: grid; grid-template-columns: 125px 1fr; align-items: center; gap: 14px; }
.catalog label { color: #5d5e62; font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.catalog label span { display: inline-grid; width: 27px; height: 27px; margin-right: 8px; place-items: center; background: #e7e7e3; color: #8b8c90; font-size: 9px; border-radius: 50%; }
.catalog select { width: 100%; min-width: 0; padding: 14px 42px 14px 14px; border-radius: 4px; border: 1px solid #d5d5d0; background: #fff; color: var(--ink); outline: 0; }
.catalog select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,30,43,.08); }
.catalog select:disabled { color: #a0a09c; background: #efefec; }
.result { margin-top: 9px; padding: 20px; color: var(--ink); background: #111214; border-radius: 5px; }
.empty-result { color: #9b9da2; }
.result-line { display: block; width: 38px; height: 3px; margin-bottom: 13px; background: var(--red); }
.result p { margin: 0; line-height: 1.45; }
.result-vehicle { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: white; }
.result-vehicle small { display: block; color: #85878c; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.result-vehicle strong { display: block; margin-top: 4px; font-size: 21px; }
.verified { color: #7ed2a5; font-size: 11px; font-weight: 750; white-space: nowrap; }
.blade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.blade { min-height: 83px; padding: 12px; color: white; background: #202125; border: 1px solid #303136; border-radius: 4px; }
.blade small { display: block; margin-bottom: 6px; color: #8e9095; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.blade strong { font-size: 22px; }
.blade span { display: block; margin-top: 3px; color: #aaa; font-size: 10px; }
.blade.unavailable { opacity: .48; }
.adapter-note { margin-top: 10px !important; color: #999ba0; font-size: 11px; }
.status { min-height: 20px; margin: 10px 0 0; color: #77787c; font-size: 12px; }
.unlock, .ledger { margin-top: 24px; padding: clamp(25px, 5vw, 55px); background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.unlock { max-width: 650px; margin-left: auto; margin-right: auto; text-align: center; }
.lock-orbit { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #eeeae0; font-size: 32px; }
.unlock form { max-width: 380px; margin: 25px auto 0; display: grid; gap: 10px; }
.unlock label { text-align: left; font-size: 13px; color: var(--muted); }
.unlock input { padding: 15px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 24px; letter-spacing: .3em; }
.unlock button, .entry-form button { border: 0; border-radius: 12px; background: var(--ink); color: white; padding: 14px 18px; font-weight: 750; }
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.session-meta { display: flex; align-items: center; gap: 10px; }
.role-badge { padding: 8px 11px; border-radius: 999px; background: #eeeae0; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.session-pill { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(27,127,86,.12); }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.totals article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8f6ef; }
.totals span, .totals strong { display: block; }
.totals span { color: var(--muted); font-size: 13px; }
.totals strong { margin-top: 7px; font-size: 25px; }
.totals .balance { background: var(--ink); color: white; }
.entry-form { display: grid; grid-template-columns: 1.1fr 1fr 1fr 2fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 18px; }
.entry-form-heading { grid-column: 1 / -1; margin-bottom: 3px; }
.entry-form input { min-width: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.entry-actions { display: flex; gap: 6px; }
.entry-actions button { white-space: nowrap; }
.secondary { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: white; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { background: #efede5; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: white; font-size: 12px; }
.row-actions .danger { color: var(--red); }
.locked-row { opacity: .72; }
.money-out { color: var(--red); font-variant-numeric: tabular-nums; }
.money-in { color: var(--green); font-variant-numeric: tabular-nums; }
.audit-panel { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.audit-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.audit-head h3 { margin: 4px 0 16px; font-size: 24px; }
.audit-table { min-width: 760px; }
.audit-change { max-width: 430px; white-space: normal; color: var(--muted); }
footer { padding: 28px 22px 45px; color: var(--muted); text-align: center; font-size: 12px; letter-spacing: .08em; }
@media (max-width: 1030px) { .hero { grid-template-columns: 1fr; } .hero-copy { max-width: 760px; } .picker-card { max-width: 760px; } .entry-form { grid-template-columns: repeat(2, 1fr); } .entry-actions { grid-column: 1 / -1; } }
@media (max-width: 680px) { .topbar { height: 70px; } main { padding: 12px 0 60px; } .hero { min-height: 0; padding: 40px 16px 18px; border-radius: 0; gap: 30px; } h1 { font-size: clamp(42px, 14vw, 62px); } .trust-row { margin-top: 28px; } .picker-card { margin: 0 -4px; padding: 22px 15px; } .field-step { grid-template-columns: 1fr; gap: 6px; } .blade-grid { grid-template-columns: 1fr 1fr; } .result-vehicle { display: block; } .verified { display: block; margin-top: 8px; } .totals { grid-template-columns: 1fr; } .ledger-head, .session-meta { align-items: flex-start; } .session-meta { flex-direction: column-reverse; } .entry-form { grid-template-columns: 1fr; } .entry-actions { grid-column: 1; } }
