:root { --bg:#101214; --card:#1B1E22; --line:#33383E; --line2:#5A616A; --text:#F5F3EE; --mute:#A9AEB4; --yel:#FFD23F; --yel2:#FFE27A; --org:#FF7A59; --grn:#5BD68A; --track:#262A2F; --subsel:#3A3000; }
* { box-sizing:border-box; }
html, body { background:var(--bg); }
body { margin:0; color:var(--text); font:15px/1.4 'Barlow', system-ui, sans-serif; overflow-x:hidden; -webkit-tap-highlight-color:transparent; }
button { font:inherit; cursor:pointer; color:inherit; }
a { color:var(--yel); } a:hover { color:var(--yel2); }
input { font:inherit; }
main { max-width:430px; margin:0 auto; padding:20px 24px calc(96px + env(safe-area-inset-bottom)); min-height:100dvh; }
header.top { display:flex; justify-content:space-between; align-items:center; height:44px; margin-bottom:16px; }
.wordmark { font-family:'Barlow Condensed', sans-serif; font-style:italic; font-weight:700; font-size:30px; letter-spacing:.02em; color:var(--yel); background:none; border:0; padding:0; }
h1 { margin:0; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:44px; line-height:1; text-transform:uppercase; }
.lbl { margin:20px 0 8px; font-family:'Barlow Condensed', sans-serif; font-weight:600; font-size:15px; letter-spacing:.12em; text-transform:uppercase; color:var(--mute); display:flex; justify-content:space-between; align-items:baseline; }
.lbl small { font-family:'Barlow', sans-serif; font-weight:400; letter-spacing:0; text-transform:none; font-size:12px; }

/* setup */
#setup { display:flex; flex-direction:column; min-height:calc(100dvh - 120px); }
.bgrid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.bgrid button { height:52px; border-radius:12px; border:1px solid var(--line); background:var(--card); font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:24px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chips button { height:40px; padding:0 14px; border-radius:20px; border:1px solid var(--line); background:var(--card); font-size:14px; font-weight:500; }
.chips button:disabled { opacity:.35; cursor:not-allowed; }
.near { display:flex; gap:8px; align-items:center; }
.near input { flex:1; height:44px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--text); padding:0 14px; font-size:16px; letter-spacing:.05em; min-width:0; }
.near input:focus { outline:2px solid var(--yel); outline-offset:1px; border-color:transparent; }
.near .loc { font-size:13px; color:var(--mute); white-space:nowrap; }
.vlist { display:flex; flex-direction:column; gap:10px; }
.grp { display:flex; flex-direction:column; gap:8px; }
.ghead { display:flex; justify-content:space-between; align-items:center; min-height:44px; background:none; border:0; border-bottom:1px solid var(--line); padding:0; font-family:'Barlow Condensed', sans-serif; font-weight:600; font-size:15px; letter-spacing:.12em; text-transform:uppercase; color:var(--mute); }
.ghead .sel { color:var(--yel); font-weight:700; letter-spacing:.04em; margin-left:auto; margin-right:10px; }
.ghead svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; flex:none; }
.grp.open .ghead svg { transform:rotate(180deg); }
.grp .rows { display:none; flex-direction:column; gap:8px; }
.grp.open .rows { display:flex; }
.vlist .rows button { height:56px; padding:0 16px; border-radius:12px; border:1px solid var(--line); background:var(--card); display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; }
.vlist .t { display:flex; flex-direction:column; gap:1px; min-width:0; }
.vlist .n { font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:20px; line-height:1.1; text-transform:uppercase; }
.vlist .s { font-size:13px; color:var(--mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vlist .rows svg { display:none; flex:none; }
[aria-pressed="true"] { background:var(--yel) !important; border-color:var(--yel) !important; color:var(--bg) !important; }
[aria-pressed="true"] .s { color:var(--subsel); }
[aria-pressed="true"] svg { display:block; }
.foot { margin-top:auto; padding-top:20px; display:flex; flex-direction:column; gap:12px; }
.fit { margin:0; font-size:14px; line-height:1.4; color:var(--mute); }
.fit b { color:var(--text); font-weight:600; }
.cta { height:56px; width:100%; border-radius:28px; border:0; background:var(--yel); color:var(--bg); display:flex; align-items:center; justify-content:center; gap:10px; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:22px; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; }
.cta:disabled { opacity:.35; cursor:not-allowed; }
.cta.outline { height:52px; background:none; border:1px solid var(--line2); color:var(--text); font-size:20px; }
.cta.small { height:44px; font-size:18px; width:auto; padding:0 18px; }

/* deck */
.pill { height:44px; padding:0 14px; border-radius:22px; border:1px solid var(--line); background:none; display:flex; align-items:center; gap:8px; font-size:14px; font-weight:500; max-width:60%; }
.pill span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stage { position:relative; height:calc(100dvh - 300px); min-height:460px; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.card { height:100%; background:var(--card); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; cursor:grab; will-change:transform; }
.card.drag { cursor:grabbing; transition:none; }
.card.settle { transition:transform .25s ease, opacity .25s ease; }
.card.enter { animation:enter .28s ease; }
@keyframes enter { from { transform:scale(.96) translateY(10px); opacity:0; } to { transform:none; opacity:1; } }
.photo { flex:1; min-height:180px; position:relative; background:#2B3440 center/cover no-repeat; }
.tag { position:absolute; top:12px; padding:6px 10px; border-radius:8px; background:rgba(16,18,20,.82); font-size:12px; font-weight:600; letter-spacing:.02em; }
.tag.tl { left:12px; } .tag.tr { right:12px; }
.price { position:absolute; left:12px; bottom:12px; padding:2px 10px 4px; border-radius:8px; background:var(--yel); color:var(--bg); font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:30px; line-height:1.1; }
.dots { position:absolute; right:12px; bottom:16px; display:flex; gap:4px; }
.dots i { width:6px; height:6px; border-radius:3px; background:rgba(245,243,238,.45); }
.dots i.on { background:var(--yel); width:14px; }
.stamp { position:absolute; top:56px; padding:4px 12px; border:3px solid; border-radius:8px; font-family:'Barlow Condensed', sans-serif; font-weight:700; letter-spacing:.08em; font-size:28px; line-height:1; opacity:0; }
.stamp.yes { left:16px; color:var(--yel); border-color:var(--yel); transform:rotate(-12deg); }
.stamp.no { right:16px; color:var(--org); border-color:var(--org); transform:rotate(12deg); }
.info { padding:14px 18px 16px; display:flex; flex-direction:column; gap:8px; }
.info h3 { margin:0; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:30px; line-height:1.1; text-transform:uppercase; }
.meta { margin-top:2px; font-size:14px; color:var(--mute); }
.why { margin:0; font-size:13px; color:var(--yel); display:flex; gap:6px; align-items:center; }
.why svg { width:14px; height:14px; flex:none; }
.deal { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:3px 9px; border-radius:7px; border:1px solid var(--line); color:var(--mute); }
.deal.lo { color:var(--grn); border-color:rgba(91,214,138,.45); } .deal.hi { color:var(--org); border-color:rgba(255,122,89,.45); }
.row { display:flex; gap:10px; align-items:flex-start; margin:0; font-size:15px; line-height:1.35; }
.row svg { flex:none; margin-top:1px; }
.row strong { font-weight:600; }
.row.loves strong { color:var(--yel); } .row.flags strong { color:var(--org); }
.actions { display:flex; align-items:center; justify-content:center; gap:16px; padding:14px 0 0; }
.round { width:64px; height:64px; border-radius:32px; border:2px solid var(--line2); background:var(--bg); display:flex; align-items:center; justify-content:center; }
.round.like { border-color:var(--yel); background:var(--yel); color:var(--bg); }
.round.mid { width:48px; height:48px; border:1px solid var(--line); }
.round.ghost { width:44px; height:44px; border:1px solid var(--line); color:var(--mute); }
.round:disabled { opacity:.3; cursor:not-allowed; }
.count { height:44px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; color:var(--mute); }
.count b { color:var(--text); font-weight:600; }
.empty { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; color:var(--mute); background:var(--card); border-radius:20px; gap:8px; }
.empty h3 { margin:0; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:30px; text-transform:uppercase; color:var(--text); }
.empty .chips { justify-content:center; margin-top:8px; }

/* matches */
.mh { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.mh span { font-size:14px; color:var(--mute); white-space:nowrap; }
.mtools { display:flex; gap:8px; margin-top:14px; }
.mtools button { flex:1; height:40px; border-radius:20px; border:1px solid var(--line); background:none; font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:6px; }
.mtools button[aria-pressed="true"] { background:var(--yel); border-color:var(--yel); color:var(--bg); }
.mtools svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
#matchList, #gList { list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.match { background:var(--card); border-radius:16px; padding:12px; display:flex; gap:14px; position:relative; }
.match .thumb { flex:none; width:96px; height:96px; border-radius:10px; background:#2B3440 center/cover; cursor:pointer; }
.match .mid { flex:1; min-width:0; display:flex; flex-direction:column; }
.match h2 { margin:0; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:22px; line-height:1.15; text-transform:uppercase; }
.match .sub { margin-top:2px; font-size:14px; color:var(--mute); }
.match .sub b { color:var(--text); font-weight:600; }
.match a { margin-top:auto; min-height:44px; display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; text-decoration:none; }
.match .rm { align-self:flex-start; background:none; border:0; color:var(--mute); padding:4px; }
.match .ck { align-self:flex-start; width:28px; height:28px; border-radius:14px; border:2px solid var(--line2); background:none; display:flex; align-items:center; justify-content:center; color:var(--bg); flex:none; }
.match .ck[aria-pressed="true"] { background:var(--yel); border-color:var(--yel); }
.match .ck svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; display:none; }
.match .ck[aria-pressed="true"] svg { display:block; }
.note { margin:20px 0 0; font-size:13px; line-height:1.45; color:var(--mute); }
.mempty { margin-top:20px; background:var(--card); border-radius:16px; padding:32px 20px; text-align:center; color:var(--mute); }
.cmpbar { position:fixed; left:0; right:0; bottom:calc(86px + env(safe-area-inset-bottom)); display:flex; justify-content:center; z-index:9; pointer-events:none; }
.cmpbar .cta { pointer-events:auto; width:auto; padding:0 24px; height:48px; font-size:19px; box-shadow:0 8px 24px rgba(0,0,0,.4); }
.cmp { width:100%; border-collapse:collapse; font-size:14px; }
.cmp th, .cmp td { padding:10px 6px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.cmp th { font-family:'Barlow Condensed', sans-serif; font-weight:600; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); width:26%; }
.cmp td b { font-family:'Barlow Condensed', sans-serif; font-size:18px; color:var(--yel); }
.cmp td.best { color:var(--grn); font-weight:600; }
.cmp .ct { width:100%; aspect-ratio:4/3; border-radius:8px; background:#2B3440 center/cover; margin-bottom:6px; }
.cmp .cn { font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:16px; line-height:1.1; text-transform:uppercase; }

/* taste */
.sub { font-size:14px; color:var(--mute); }
.bars { display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.bar-row { display:flex; flex-direction:column; gap:6px; }
.bar-row .l { display:flex; justify-content:space-between; align-items:baseline; font-size:15px; }
.bar-row .l span:first-child { font-weight:500; } .bar-row .l span:last-child { font-size:13px; color:var(--mute); }
.track { height:8px; border-radius:4px; background:var(--track); overflow:hidden; }
.track i { display:block; height:8px; border-radius:4px; background:var(--yel); transition:width .4s ease; }
.pass-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pass-chips span { height:36px; padding:0 14px; border-radius:18px; border:1px solid var(--line2); display:flex; align-items:center; font-size:14px; font-weight:500; }
.tlabel { margin:24px 0 0; display:flex; align-items:center; gap:8px; font-family:'Barlow Condensed', sans-serif; font-weight:600; font-size:15px; letter-spacing:.12em; text-transform:uppercase; color:var(--mute); }
.tlabel.y { color:var(--yel); }
.tlabel svg { width:16px; height:16px; }
.list { margin-top:16px; background:var(--card); border-radius:16px; padding:0 16px; display:flex; flex-direction:column; }
.list button { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:none; border:0; border-bottom:1px solid var(--line); padding:0; text-align:left; width:100%; }
.list button:last-child { border-bottom:0; }
.list .k { font-size:15px; color:var(--mute); }
.list .v { display:flex; align-items:center; gap:6px; font-size:15px; font-weight:600; }
.list .v svg { width:16px; height:16px; fill:none; stroke:var(--mute); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.list .v.danger { color:var(--org); }
.about { margin-top:28px; }
.about p { margin:0 0 12px; font-size:14px; color:var(--mute); } .about ul { margin:0 0 12px; padding-left:20px; font-size:14px; color:var(--mute); }
.about h2 { margin:20px 0 6px; font-family:'Barlow Condensed', sans-serif; font-weight:600; font-size:15px; letter-spacing:.12em; text-transform:uppercase; color:var(--yel); }

/* car profile sheet + overlays */
.sheet { position:fixed; inset:0; z-index:20; background:var(--bg); overflow-y:auto; }
.sheet .inner { max-width:430px; margin:0 auto; min-height:100%; display:flex; flex-direction:column; }
.sheet .hero { height:264px; flex:none; position:relative; background:#2B3440; }
.strip { height:100%; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.strip::-webkit-scrollbar { display:none; }
.strip img { flex:none; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; display:block; }
.sheet .hero .tag { top:auto; bottom:14px; }
.sheet .back { position:absolute; top:16px; left:16px; width:44px; height:44px; border-radius:22px; border:0; background:rgba(16,18,20,.82); display:flex; align-items:center; justify-content:center; z-index:1; }
.sheet .share { position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:22px; border:0; background:rgba(16,18,20,.82); display:flex; align-items:center; justify-content:center; z-index:1; }
.sheet .body { flex:1; padding:18px 24px 0; display:flex; flex-direction:column; gap:14px; }
.sheet h1 { font-size:34px; line-height:1.05; }
.sheet .pl { margin-top:6px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sheet .pl b { font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:26px; color:var(--yel); }
.sheet .pl span { font-size:14px; color:var(--mute); }
.sheet dl { margin:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
.sheet dl div { background:var(--card); border-radius:12px; padding:9px 14px; }
.sheet dt { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); }
.sheet dd { margin:1px 0 0; font-size:16px; font-weight:600; }
.sheet h2 { margin:0 0 4px; display:flex; align-items:center; gap:8px; font-family:'Barlow Condensed', sans-serif; font-weight:700; font-size:18px; letter-spacing:.06em; text-transform:uppercase; }
.sheet h2.l { color:var(--yel); } .sheet h2.f { color:var(--org); }
.sheet section p { margin:0; font-size:15px; line-height:1.4; }
.sheet .disc { margin:0; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:13px; line-height:1.4; color:var(--mute); }
.sheet .bar { flex:none; display:flex; align-items:center; gap:12px; padding:12px 24px calc(28px + env(safe-area-inset-bottom)); }
.sheet .bar .round { width:56px; height:56px; flex:none; }
.sheet .bar .cta { flex:1; }
.sheet.plain .body { padding-top:56px; }
.sheet.plain .back { position:fixed; }

/* toast */
.toast { position:fixed; left:50%; bottom:calc(100px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(20px); background:var(--text); color:var(--bg); padding:10px 16px; border-radius:999px; font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:30; white-space:nowrap; max-width:90vw; }
.toast.on { opacity:1; transform:translateX(-50%) translateY(0); }
.toast svg { width:18px; height:18px; }

/* nav */
nav.tabs { position:fixed; left:0; right:0; bottom:0; z-index:10; background:var(--bg); border-top:1px solid var(--line); }
nav.tabs .in { max-width:430px; margin:0 auto; display:flex; padding:8px 24px calc(20px + env(safe-area-inset-bottom)); }
.tab { flex:1; min-height:44px; background:none; border:0; color:var(--mute); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:12px; font-weight:600; }
.tab svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tab[aria-current="page"] { color:var(--yel); }
.tab[aria-current="page"] .hf { fill:currentColor; }
.tab .ic { position:relative; display:flex; }
.tab .badge { position:absolute; top:-5px; left:16px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--yel); color:var(--bg); font-size:11px; font-weight:600; line-height:18px; text-align:center; }
[hidden] { display:none !important; }
@media (prefers-reduced-motion: reduce) { .card.enter { animation:none; } .track i { transition:none; } }
