/* Right Ride — minimal, futuristic, Apple-like */
:root {
  --bg: #f5f5f7; --panel: #ffffff; --panel-2: #fbfbfd; --text: #1d1d1f; --muted: #6e6e73; --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14);
  --brand: #D02A1C; --brand-2: #E5341F; --brand-soft: rgba(208,42,28,.08); --brand-grad: linear-gradient(180deg, #E5341F, #D02A1C); --warn: #b45309; --warn-soft: rgba(245,158,11,.12);
  --no: #d70015; --yes: #1b8f3a; --chip: rgba(0,0,0,.045); --chip-hover: rgba(0,0,0,.08);
  --glass: rgba(255,255,255,.72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.12);
  --radius: 22px; --radius-sm: 14px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --panel: #1c1c1e; --panel-2: #161618; --text: #f5f5f7; --muted: #98989d; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
    --brand: #E5341F; --brand-2: #FF5A3A; --brand-soft: rgba(229,52,31,.16); --brand-grad: linear-gradient(180deg, #E5341F, #D02A1C); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.14);
    --no: #ff453a; --yes: #32d74b; --chip: rgba(255,255,255,.07); --chip-hover: rgba(255,255,255,.12);
    --glass: rgba(22,22,24,.72);
    --shadow: none; --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.47; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { color: var(--brand); }
::selection { background: var(--brand); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
h1, .display { font-family: Michroma, Inter, sans-serif; font-weight: 400; letter-spacing: .01em; }
h1 { font-size: 1.15rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- top bar: frosted glass ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px max(20px, calc((100vw - 1320px) / 2 + 20px)); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; padding: 2px 0; }
.logo img { height: 46px; width: auto; display: block; }
.logo .logo-n { display: none; }
@media (prefers-color-scheme: dark) { .logo .logo-d { display: none; } .logo .logo-n { display: block; } }
.loc { margin-left: auto; display: flex; gap: 8px; align-items: center; }
select { font: inherit; color: inherit; background: var(--chip); border: 0; border-radius: 999px; padding: 8px 32px 8px 14px; max-width: 220px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
select:hover { background-color: var(--chip-hover); }
.btn { font: inherit; font-weight: 500; border: 0; background: var(--chip); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--chip-hover); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn.primary:hover { background: var(--brand-grad); filter: brightness(1.08); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--chip); }
.btn.lg { padding: 13px 26px; font-size: 1rem; }
.btn.block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-weight: 500; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { text-align: center; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero-title { font-family: Michroma, Inter, sans-serif; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.12; margin: 0; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; max-width: 1320px; margin: 0 auto; padding: 8px 20px 20px; }
body.rec-mode .layout { padding-top: 28px; }
.filters { background: var(--panel); border-radius: var(--radius); padding: 18px 18px 8px; align-self: start; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; box-shadow: var(--shadow); scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.filters-head h2 { margin-right: auto; font-size: 1.1rem; font-weight: 700; }
.bucket { border-top: 1px solid var(--line); padding: 14px 0; }
.bucket:first-child { border-top: 0; }
.bucket > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.bucket > summary::-webkit-details-marker { display: none; }
.bucket > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.bucket:not([open]) > summary::after { transform: rotate(-45deg); }
.bucket .count { font-weight: 500; color: var(--brand); font-size: .78rem; margin-left: 8px; margin-right: auto; }
.group { margin-top: 12px; }
.group .label { font-size: .72rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 0; background: var(--chip); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.chip:hover { background: var(--chip-hover); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--panel); }

.range { display: flex; gap: 8px; align-items: center; }
.money { flex: 1; display: flex; align-items: center; gap: 4px; background: var(--chip); border-radius: 12px; padding: 0 10px; transition: box-shadow .2s var(--ease); }
.money:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.money span, .money em { color: var(--muted); font-style: normal; font-size: .85rem; }
.money input { width: 100%; min-width: 0; font: inherit; color: inherit; background: transparent; border: 0; outline: none; padding: 9px 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; margin-top: 10px; cursor: pointer; }
.toggle input { order: 2; appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--chip-hover); position: relative; cursor: pointer; transition: background .25s var(--ease); margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--yes); }
.toggle input:checked::after { transform: translateX(16px); }
.hint { font-size: .76rem; color: var(--muted); margin-top: 8px; }

/* ---------- results ---------- */
.results-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin: 6px 0 14px; flex-wrap: wrap; }
.results-head h1 { font-size: 1.25rem; }
.results-head p { margin: 6px 0 0; }
.sort { display: flex; gap: 8px; align-items: center; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.active-chips .chip { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.list { display: grid; gap: 16px; }

.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .5s var(--ease) both; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-main { display: grid; grid-template-columns: 168px 1fr auto; gap: 20px; padding: 18px 22px; align-items: center; }
.thumb { width: 168px; height: 100px; border-radius: 16px; background: linear-gradient(160deg, var(--panel-2), var(--chip)); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px 8px 12px; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .sil { width: 72%; height: auto; color: var(--muted); opacity: .55; }
.thumb .ph { font-family: Michroma, Inter, sans-serif; color: var(--muted); font-size: 1.6rem; opacity: .6; }
.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.card .brand { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .74rem; background: var(--chip); border-radius: 999px; padding: 3px 9px; color: var(--muted); font-weight: 500; }
.tag.good { background: color-mix(in srgb, var(--yes) 14%, transparent); color: var(--yes); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.xtag { background: var(--text); color: var(--panel); }
.price { text-align: right; white-space: nowrap; }
.price .big { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.price .small { font-size: .76rem; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 11px 22px; font-size: .88rem; }
.variants { border-top: 1px solid var(--line); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--panel-2); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.v { transition: background .15s; }
tr.v:hover td { background: var(--brand-soft); cursor: pointer; }
input[type="checkbox"].cmp-box { accent-color: var(--brand); width: 16px; height: 16px; }
.miss { color: var(--no); font-size: .78rem; }
.unk { color: var(--warn); font-size: .78rem; }
.yes { color: var(--yes); }
.no { color: var(--no); }
.q { color: var(--warn); }
.empty { background: var(--panel); border-radius: var(--radius); padding: 40px 30px; text-align: center; box-shadow: var(--shadow); }
.empty h2 { margin-bottom: 6px; }


/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); z-index: 1; }
.modal-head .btn.ghost { width: 34px; height: 34px; padding: 0; box-shadow: none; background: var(--chip); }
.modal-body { padding: 18px 24px 28px; }
.breakup td:last-child { text-align: right; }
.breakup tr.total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; }
.fgrid { columns: 2 240px; column-gap: 28px; }
.fgrid section { break-inside: avoid; margin-bottom: 16px; }
.fgrid ul { list-style: none; padding: 0; margin: 6px 0 0; }
.fgrid li { padding: 3px 0; font-size: .9rem; display: flex; gap: 8px; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--panel); }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin: 10px 0; }

.foot { max-width: 1320px; margin: 24px auto 70px; padding: 0 20px; font-size: .82rem; color: var(--muted); }
.foot p { max-width: 820px; }
.only-mobile { display: none; }
.find-btn { white-space: nowrap; }

/* ---------- two pages: home ↔ cars ---------- */
body[data-page="home"] .topbar .find-btn { opacity: 0; transform: translate(-50%, -30%) scale(.85); pointer-events: none; }
body[data-page="home"] #openFilters { opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }
#openFilters { transition: opacity .4s var(--ease), transform .5s var(--ease), background .2s; }
body[data-page="home"] .layout, body[data-page="home"] .foot, body[data-page="home"] .compare-bar { display: none !important; }
body[data-page="cars"] .hero { display: none; }

/* home page: a calm, full-screen landing */
@keyframes glow { from { opacity: .6; transform: translateY(10px) scale(1); } to { opacity: 1; transform: translateY(-10px) scale(1.06); } }
.hero-inner { position: relative; max-width: 900px; text-align: center; }

/* leaving a page */
body.leaving[data-page="cars"] .layout, body.leaving[data-page="cars"] .foot { animation: page-out-down .34s var(--ease) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-36px) scale(.94); filter: blur(6px); } }
@keyframes page-out-down { to { opacity: 0; transform: translateY(24px); filter: blur(4px); } }
/* arriving */
body.to-cars .layout, body.to-car .car-page { animation: page-in .6s var(--ease) backwards; }

body.to-cars .topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: sweep .9s var(--ease) both; }
body.to-home .hero-inner > :nth-child(2) { animation-delay: .06s; } body.to-home .hero-inner > :nth-child(3) { animation-delay: .12s; } body.to-home .hero-inner > :nth-child(4) { animation-delay: .18s; }
@keyframes page-in { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes title-in { from { opacity: 0; transform: translate(-50%, 0); filter: blur(4px); } to { opacity: 1; transform: translate(-50%, -50%); filter: none; } }
@keyframes btn-pop { 0% { opacity: 0; transform: scale(.85); } 55% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }
@keyframes sweep { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }

/* the header call to action: a glowing capsule with a living gradient ring */
@property --rr-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.rr-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; border: 0; padding: 2px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--text);
  background: conic-gradient(from var(--rr-a), #D02A1C, #FF7A55 18%, #ffd6c8 26%, #D02A1C 40%, rgba(208,42,28,.15) 62%, #D02A1C 85%);
  transition: transform .45s var(--ease), opacity .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--brand) 28%, transparent), 0 0 0 0 color-mix(in srgb, var(--brand) 30%, transparent); }
.rr-cta::before { content: ''; position: absolute; inset: -6px; border-radius: inherit; background: inherit; filter: blur(12px); opacity: .3; z-index: -1; animation: rr-breathe 2.8s ease-in-out infinite; }
@keyframes rr-spin { to { --rr-a: 360deg; } }
@keyframes rr-breathe { 50% { opacity: .55; transform: scale(1.03); } }
.rr-cta-in { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border-radius: 999px; background: var(--panel); overflow: hidden; isolation: isolate; transition: background .35s var(--ease), color .35s var(--ease); }
.rr-cta-in::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--brand) 16%, transparent) 50%, transparent 65%); transform: translateX(-130%); animation: shimmer 2.6s ease-in-out infinite; }
.rr-cta-orb { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #E5341F, #D02A1C 60%, #8E120A); box-shadow: inset 0 -2px 4px rgba(0,0,0,.25), 0 2px 8px color-mix(in srgb, var(--brand) 45%, transparent); flex: none; transition: transform .5s var(--ease); }
.rr-cta-text { font-family: Michroma, Inter, sans-serif; font-size: .8rem; letter-spacing: .04em; white-space: nowrap; background: linear-gradient(90deg, var(--text) 0%, var(--text) 40%, var(--brand) 50%, var(--text) 60%, var(--text) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rr-text 2.6s ease-in-out infinite; }
@keyframes rr-text { from { background-position: 100% 0; } 55%, to { background-position: 0 0; } }
.rr-cta-go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--brand); flex: none; transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.rr-cta:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 10px 34px color-mix(in srgb, var(--brand) 40%, transparent); }
.rr-cta:hover .rr-cta-in { background: var(--brand); }
.rr-cta:hover .rr-cta-text { background: none; color: #fff; -webkit-background-clip: border-box; }
.rr-cta:hover .rr-cta-orb { transform: rotate(-20deg) scale(1.08); background: #fff; color: var(--brand); }
.rr-cta:hover .rr-cta-go { transform: translateX(4px); background: rgba(255,255,255,.2); color: #fff; }
.rr-cta:active { transform: translate(-50%, -50%) scale(.97); }
.rr-cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 4px; }
@keyframes cta-arrive { 0% { opacity: 0; transform: translate(-50%, 10%) scale(.7); filter: blur(6px); } 60% { opacity: 1; transform: translate(-50%, -55%) scale(1.06); filter: none; } 100% { transform: translate(-50%, -50%) scale(1); } }

/* shimmer on the main call to action */
.shimmer { position: relative; overflow: hidden; isolation: isolate; }
.shimmer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-130%); animation: shimmer 2.6s ease-in-out infinite; pointer-events: none; }
.shimmer { z-index: 0; }
@keyframes shimmer { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }

/* ---------- state picker + location ---------- */
#state.locating { animation: pulse 1.2s ease-in-out infinite; }
#state.located { box-shadow: 0 0 0 2px var(--yes); transition: box-shadow .3s; }
#state.nudge { animation: nudge .6s var(--ease) 2; }
@keyframes pulse { 50% { background-color: var(--brand-soft); } }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 45%, transparent); } }
.loc-toast { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 12px; max-width: min(720px, calc(100vw - 24px)); padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .88rem; animation: toast-in .45s var(--ease) both; }
.lt-ico { color: var(--brand); font-size: 1.1rem; }
.lt-msg { flex: 1; }
.lt-act { display: flex; gap: 6px; align-items: center; flex: none; }
.lt-act .btn { padding: 7px 14px; font-size: .85rem; }
.lt-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- welcome + builder ---------- */
.wizard { width: min(640px, calc(100vw - 24px)); border-radius: 28px; overflow: visible; }
#wizardBody { position: relative; padding: 34px 34px 28px; }
.wz-ghost { position: absolute; pointer-events: none; margin: 0; z-index: 0; }
.wz-steps span { transition: background .5s var(--ease), transform .5s var(--ease); }
.wz-x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--chip); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .9rem; display: grid; place-items: center; }
.wz-x:hover { color: var(--text); background: var(--chip-hover); }
.wz-mark { display: block; height: 54px; width: auto; margin: 0 auto 20px; }
@media (prefers-color-scheme: dark) { .wz-mark { content: url(brand/logo-night.svg); } }
.wz-body h2 { font-size: 1.35rem; line-height: 1.35; margin: 0 0 6px; text-align: center; }
.wz-body > p { text-align: center; margin: 0 0 14px; }
.wz-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; padding-right: 40px; }
.wz-steps span { height: 4px; flex: 1; max-width: 52px; border-radius: 4px; background: var(--chip-hover); transition: background .3s var(--ease); }
.wz-steps span.done, .wz-steps span.on { background: var(--brand); }
.wz-steps em { font-style: normal; font-size: .76rem; color: var(--muted); margin-left: 8px; font-weight: 500; }
.wz-choices { display: grid; gap: 12px; margin-top: 20px; }
.wz-choices.two { grid-template-columns: 1fr 1fr; }
.wz-choices.three { grid-template-columns: repeat(3, 1fr); }
.wz-opt { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; border: 0; background: var(--chip); color: var(--text); border-radius: 18px; padding: 18px; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.wz-opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--brand); }
.wz-opt b { font-size: 1rem; letter-spacing: -.01em; }
.wz-opt span { font-size: .83rem; color: var(--muted); }
.wz-opt.primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 30%, transparent); }
.wz-opt.primary span { color: rgba(255,255,255,.85); }
.wz-opt.sel { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.wz-ico { width: 64px; height: 40px; color: var(--brand); margin-bottom: 6px; }
.wz-money { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 22px auto 14px; font-size: 1.8rem; font-weight: 600; }
.wz-money input { width: 5.5ch; font: inherit; text-align: center; color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--brand); padding: 4px 0; outline: none; }
.wz-money span:last-child { font-size: 1rem; color: var(--muted); font-weight: 500; }
.wz-quick { justify-content: center; }
.wz-err { color: var(--no); text-align: center; font-size: .85rem; }
.wz-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.wz-nav .btn { min-width: 124px; padding: 11px 20px; }
.prio { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; touch-action: none; }
.prio-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; border-radius: 16px; background: var(--chip); cursor: grab; user-select: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.prio-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.prio-item.dragging { cursor: grabbing; background: var(--panel); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--brand); transform: scale(1.02); position: relative; z-index: 2; }
.grip { color: var(--muted); letter-spacing: -2px; font-size: 1rem; }
.pn { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; }
.pt { display: flex; flex-direction: column; flex: 1; }
.pt small { color: var(--muted); }
.pm { display: flex; gap: 4px; }
.pm button { border: 0; background: var(--panel); color: var(--text); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: .65rem; }
.pm button:disabled { opacity: .3; cursor: default; }

/* ---------- recommendation mode ---------- */
.rec-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rec-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.rec-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rec-k { font-family: Michroma, Inter, sans-serif; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-right: 4px; }
.rec-sum .chip { cursor: default; }
.rec-sum .chip:hover { background: var(--chip); }
.rec-prio { font-size: .84rem; color: var(--muted); margin-left: 6px; }
.rec-prio b { color: var(--brand); }
.rec-prio .sep { margin: 0 6px; }
.rec-actions { display: flex; gap: 14px; align-items: center; }
.rec-card { cursor: pointer; }
.rec-card .thumb { position: relative; }
.rank { position: absolute; top: 8px; left: 8px; background: var(--text); color: var(--panel); font-weight: 700; font-size: .74rem; border-radius: 999px; padding: 2px 9px; }
.rec-card:first-child .rank { background: var(--brand); color: #fff; }
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-top: 12px; max-width: 470px; }
.sub { display: grid; grid-template-columns: 112px 1fr 30px; align-items: center; gap: 8px; font-size: .77rem; color: var(--muted); }
.sub b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.sbar { height: 5px; background: var(--chip-hover); border-radius: 5px; overflow: hidden; }
.sbar i { display: block; height: 100%; background: linear-gradient(90deg, #B81F14, #DA4330); border-radius: 5px; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.sub.est .sbar i { background: var(--muted); opacity: .4; }
.sub.est b { color: var(--muted); font-weight: 500; }
.match { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; color: var(--brand); margin-bottom: 4px; }
.match b { font-size: 1.8rem; font-family: Michroma, Inter, sans-serif; font-weight: 400; }
.match span { font-size: .76rem; }
.expert { border-top: 1px solid var(--line); padding: 11px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: .86rem; }
.xbadge { display: inline-block; background: var(--text); color: var(--panel); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .74rem; white-space: nowrap; }
.xs { flex: none; }
.pc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pc li::before { font-weight: 700; margin-right: 6px; }
.pc li.pro::before { content: '+'; color: var(--yes); }
.pc li.con::before { content: '–'; color: var(--no); }
.watch { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; text-decoration: none; }
.watch:hover { text-decoration: underline; }
.foot-links { display: flex; gap: 18px; align-items: center; }
.foot-links a { text-decoration: none; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 4px 16px 16px; }
  .filters { position: fixed; inset: 0; top: 0; max-height: none; border-radius: 0; z-index: 40; transform: translateX(-100%); transition: transform .35s var(--ease); padding-top: 20px; }
  .filters.open { transform: none; }
  .only-mobile { display: inline-flex; }
  .topbar { padding: 8px 16px; flex-wrap: wrap; }
  .logo img { height: 40px; }
  .rr-cta { position: relative; left: auto; top: auto; transform: none; margin-left: auto; }
  .rr-cta:hover, .rr-cta:active { transform: scale(1.02); }
  body[data-page="home"] .topbar .find-btn { transform: scale(.85); }
  @keyframes cta-arrive { 0% { opacity: 0; transform: scale(.7); filter: blur(6px); } 60% { opacity: 1; transform: scale(1.06); filter: none; } 100% { transform: none; } }
  .rr-cta-text { font-size: .68rem; letter-spacing: .02em; }
  .rr-cta-go { display: none; }
  .rr-cta-in { padding: 5px 12px 5px 5px; gap: 8px; }
  .rr-cta-orb { width: 24px; height: 24px; }
  .logo img { height: 36px; }
  .loc-toast { top: 112px; left: 12px; right: 12px; transform: none; max-width: none; flex-wrap: wrap; animation-name: toast-in-m; }
  @keyframes toast-in-m { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .lt-msg { flex: 1 1 calc(100% - 40px); }
  .lt-act { width: 100%; justify-content: flex-end; }
  .topbar .loc { order: 3; flex: none; width: calc(100% - 112px); margin: 0; }
  .loc select { flex: 1; max-width: none; min-width: 0; }
  .loc .btn { flex: none; }
  #openFilters { order: 4; margin-left: 0; width: 100px; flex: none; }
  .card-main { grid-template-columns: 92px 1fr; gap: 14px; padding: 16px; }
  .thumb { width: 92px; height: 64px; border-radius: 12px; }
  .price { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .card-foot, .expert { padding-left: 16px; padding-right: 16px; }
  .hide-sm { display: none; }
  .wz-choices.two, .wz-choices.three { grid-template-columns: 1fr; }
  .wz-opt { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px; }
  .wz-opt span { flex-basis: 100%; }
  .wz-ico { width: 48px; height: 30px; margin: 0; }
  .wz-choices.three .wz-opt span { flex-basis: auto; }
  #wizardBody { padding: 26px 18px 20px; }
  .subs { grid-template-columns: 1fr; }
  .expert { flex-direction: column; gap: 6px; }
  .card-foot { flex-wrap: wrap; gap: 8px; }
  .match { justify-content: flex-start; }
}

/* =========================================================
   Showroom browsing page (option B)
   ========================================================= */
.layout { display: block; max-width: 1400px; padding: 0 0 20px; }
body.rec-mode .layout { padding-top: 0; }
.results { min-width: 0; }
.shop-top { padding: 22px 40px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.q-hints { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; width: min(760px, 100%); font-size: .82rem; }
.q-hints[hidden] { display: none; }
.q-hint { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 500; padding: 4px 10px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); transition: background .2s var(--ease); }
.q-hint:hover { background: var(--brand-soft); }
.search { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); background: var(--chip); border-radius: 16px; padding: 0 16px; color: var(--muted); transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.search:focus-within { background: var(--panel); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .98rem; color: var(--text); padding: 13px 0; outline: none; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.tabs { position: sticky; top: 66px; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 0 40px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.tab-row { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tab-row::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); padding: 14px 0 12px; cursor: pointer; white-space: nowrap; position: relative; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--brand); animation: tab-in .35s var(--ease); }
@keyframes tab-in { from { transform: scaleX(.3); opacity: 0; } }
.filter-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--chip); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.filter-btn:hover { background: var(--chip-hover); }
.filter-btn.has { background: var(--text); color: var(--panel); }
.filter-btn span:empty { display: none; }
.filter-btn span { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }

/* shelves */
.shelves { padding: 8px 0 20px; }
.shelf { padding: 26px 0 4px; animation: rise .5s var(--ease) both; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 40px 12px; }
.shelf-head h2 { font-size: 1.12rem; margin: 0; }
.shelf-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.see { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 4px 0; }
.see:hover { text-decoration: underline; }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 40px; padding: 4px 40px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > .tile { flex: none; width: 300px; scroll-snap-align: start; }
.rail > .tile.big { width: 620px; }
.rail-btn { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.rail-btn.prev { left: 14px; } .rail-btn.next { right: 14px; }
.rail-wrap:hover .rail-btn { opacity: 1; }
.rail-btn:hover { transform: translateY(-60%) scale(1.08); }

/* tiles */
.tile { position: relative; border-radius: 24px; padding: 18px 18px 16px; background: linear-gradient(160deg, var(--panel-2), color-mix(in srgb, var(--chip) 100%, var(--panel))); background: linear-gradient(165deg, #f7f7f9, #ebebef); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); outline: none; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-lg); }
.timg { height: 150px; display: grid; place-items: center; margin: 14px 0 8px; }
.timg img { width: 100%; height: 150px; object-fit: contain; transition: transform .6s var(--ease); filter: drop-shadow(0 14px 14px rgba(0,0,0,.12)); }
.timg .sil { width: 70%; color: var(--muted); opacity: .5; }
.tile:hover .timg img { transform: scale(1.05) translateY(-2px); }
.tt h3 { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.tt .m { font-size: .84rem; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .pr { position: absolute; top: 14px; right: 14px; background: var(--panel); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: .85rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); z-index: 1; }
.tile .sc { position: absolute; top: 14px; left: 14px; background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 9px; font-weight: 700; font-size: .78rem; z-index: 1; }
.tw { display: inline-block; margin-top: 8px; font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.tw.ok { background: color-mix(in srgb, var(--yes) 14%, transparent); color: var(--yes); }
.tw.miss { background: color-mix(in srgb, var(--no) 12%, transparent); color: var(--no); }
.tw.unk { background: var(--warn-soft); color: var(--warn); }
.tile.big { background: radial-gradient(120% 120% at 80% 10%, #4a0b08 0%, #1b1b1f 55%, #111114 100%); color: #fff; }
.tile.big .timg { height: 210px; margin-top: 18px; }
.tile.big .timg img { height: 210px; filter: drop-shadow(0 20px 24px rgba(0,0,0,.5)); }
.tile.big .tt h3 { font-size: 1.4rem; }
.tile.big .m { color: #cfcfd4; }
.tile.big .pr { background: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }

/* grid view */
#gridView { padding: 22px 40px 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tile-grid > .tile { animation: rise .45s var(--ease) both; }
.tile-grid > .empty { grid-column: 1 / -1; }

/* filters drawer (all screen sizes) */
.filters { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(400px, 100vw); max-height: none; border-radius: 26px 0 0 26px; z-index: 60; transform: translateX(105%); transition: transform .45s var(--ease); padding: 22px 22px 90px; box-shadow: var(--shadow-lg); overflow-y: auto; }
.filters.open { transform: none; }
#closeFilters { display: inline-flex; width: 34px; height: 34px; padding: 0; box-shadow: none; background: var(--chip); }
#applyMobile { position: sticky; bottom: 0; margin-top: 18px; display: flex; box-shadow: 0 -10px 24px var(--panel); }
.filters { align-self: stretch; justify-self: stretch; padding-bottom: 22px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
body.drawer-open { overflow: hidden; }

/* model sheet */
.sheet-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; }
.sheet-img { border-radius: 22px; background: linear-gradient(165deg, #f7f7f9, #e9e9ee); height: 260px; display: grid; place-items: center; overflow: hidden; }
.sheet-img img { width: 92%; height: 240px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.15)); }
.sheet-price { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 10px; }
.sheet-price span { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.small { font-size: .82rem; }
.xline { margin-bottom: 10px; }
.sheet .pc { flex-direction: column; gap: 4px; font-size: .9rem; margin-bottom: 14px; }
.sheet-cta { display: flex; gap: 8px; flex-wrap: wrap; }

@media (prefers-color-scheme: dark) {
  .tile { background: linear-gradient(165deg, #1f1f22, #161618); }
  .sheet-img { background: linear-gradient(165deg, #222225, #161618); }
  .timg img { filter: drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
}
@media (max-width: 900px) {
  .shop-top { padding: 14px 16px 4px; }
  .q-hints { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .q-hint { white-space: nowrap; }
  .tabs { padding: 0 16px; top: 108px; gap: 10px; }
  .tab-row { gap: 20px; }
  .shelf-head { padding: 0 16px 10px; }
  .rail { padding: 4px 16px 16px; scroll-padding: 0 16px; gap: 12px; }
  .rail > .tile { width: 72vw; }
  .rail > .tile.big { width: 86vw; }
  .rail-btn { display: none; }
  #gridView { padding: 16px 16px 0; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .tile-grid .timg { height: 100px; } .tile-grid .timg img { height: 100px; }
  .tile-grid .tile { padding: 14px 12px 12px; border-radius: 20px; }
  .tile-grid .tile .pr { top: 10px; right: 10px; font-size: .76rem; padding: 3px 8px; }
  .tile-grid .tile .sc { top: 10px; left: 10px; font-size: .7rem; }
  .tile-grid .tt h3 { font-size: .98rem; }
  .filters { width: 100vw; border-radius: 0; }
  .sheet-hero { grid-template-columns: 1fr; }
  .sheet-img { height: 200px; }
}

/* =========================================================
   Home: Sunrise
   ========================================================= */
body[data-page="home"] .topbar { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sunrise { position: relative; height: 100svh; min-height: 560px; overflow: hidden; margin: 0; padding: 0; text-align: center; }
.sunrise .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky0 { stop-color: #fff7f2; } .sky1 { stop-color: #ffd9c8; } .sky2 { stop-color: #ffb492; }
.gr0 { stop-color: #ececf0; } .gr1 { stop-color: #f6f6f8; }
.as0 { stop-color: #3a3a3e; } .as1 { stop-color: #26262a; } .as2 { stop-color: #151517; }
.shoulder { fill: #d9d9df; } .edge { fill: #f2f2f4; } #dashes path { fill: #fff; }
.horizon { stroke: rgba(160, 90, 70, .25); stroke-width: 1; }
.sf0 { stop-color: #E5583F; } .sf1 { stop-color: #C9281B; } .sf2 { stop-color: #981B12; } .hl0 { stop-color: #DA4330; }
.sun-rise { transform-box: view-box; transform-origin: 680px 500px; animation: sunrise 1.8s .15s cubic-bezier(.16,.84,.24,1) both; }
@keyframes sunrise { from { transform: translateY(200px); } to { transform: none; } }
.halo { animation: halo 5s 2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes halo { to { transform: scale(1.08); opacity: .8; } }
.sun-copy { position: absolute; left: 0; right: 0; top: max(84px, 13svh); z-index: 2; padding: 0 20px; }
.sun-copy .hero-title { font-size: clamp(1.5rem, min(7.2vw, 7.2vh), 3.8rem); padding: 0 8px; background: none; color: #1d1d1f; -webkit-background-clip: border-box; background-clip: border-box; animation: page-in .9s .3s var(--ease) both; }
.sun-copy .lede { margin-top: 14px; color: #6e6e73; animation: page-in .9s .45s var(--ease) both; }
.sun-cta { position: absolute; left: 0; right: 0; top: var(--hz, 54.6%); transform: translateY(-50%); z-index: 3; display: flex; justify-content: center; padding: 0 16px; }
@keyframes cta-horizon { from { opacity: 0; transform: translateY(18px) scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.glass-pill { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 12px 40px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.6); }
.btn.plain { background: transparent; color: #1d1d1f; }
.btn.plain:hover { background: rgba(0,0,0,.06); }
body.leaving[data-page="home"] .sun-copy { animation: page-out .34s var(--ease) both; }
body.leaving[data-page="home"] .scene { animation: scene-out .4s var(--ease) both; }
@keyframes scene-out { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
@media (prefers-color-scheme: dark) {
  .sky0 { stop-color: #07070c; } .sky1 { stop-color: #2a0b10; } .sky2 { stop-color: #6a1408; }
  .gr0 { stop-color: #111113; } .gr1 { stop-color: #060607; }
  .horizon { stroke: rgba(255, 90, 60, .35); }
  .sf0 { stop-color: #FF7A55; } .sf1 { stop-color: #E5341F; } .sf2 { stop-color: #B81C10; } .hl0 { stop-color: #FF5A3A; }
  .as0 { stop-color: #1c1c1f; } .as1 { stop-color: #111113; } .as2 { stop-color: #060607; }
  .shoulder { fill: #26262a; } .edge { fill: #bdbdc4; } #dashes path { fill: #f5f5f7; }
  .sun-copy .hero-title { color: #f5f5f7; } .sun-copy .lede { color: #b8b8be; }
  .glass-pill { background: rgba(30,30,32,.55); box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
  .btn.plain { color: #f5f5f7; } .btn.plain:hover { background: rgba(255,255,255,.08); }
}
@media (max-width: 600px) {
  .sun-copy { top: max(80px, 13svh); }
  .glass-pill { gap: 4px; padding: 6px; }
  .glass-pill .btn.lg { padding: 11px 14px; font-size: .88rem; white-space: nowrap; }
  body[data-page="home"] .topbar .loc { order: 0; width: auto; margin-left: auto; }
  body[data-page="home"] .topbar .loc select { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .sun-rise, .halo { animation: none !important; } }

/* =========================================================
   Car page (#/car/…)
   ========================================================= */
body:not([data-page="car"]) .car-page { display: none; }
body[data-page="car"] .hero, body[data-page="car"] .layout, body[data-page="car"] .compare-bar { display: none !important; }
body:not([data-page="compare"]) .compare-page { display: none; }
body[data-page="compare"] .hero, body[data-page="compare"] .layout, body[data-page="compare"] .compare-bar { display: none !important; }
.cp-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 28px 40px; }
.cp-back { border: 0; background: var(--chip); color: var(--text); font: inherit; font-weight: 500; border-radius: 999px; padding: 7px 14px 7px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .2s var(--ease); }
.cp-back:hover { background: var(--chip-hover); }
.cp-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; margin: 18px 0 26px; }
.cp-img { border-radius: 28px; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), linear-gradient(165deg, #f7f7f9, #e9e9ee); height: 380px; display: grid; place-items: center; overflow: hidden; }
.cp-img img { width: 94%; height: 330px; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(0,0,0,.18)); animation: car-in .8s var(--ease) both; }
.cp-img .sil { width: 60%; color: var(--muted); }
@keyframes car-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.cp-eyebrow { color: var(--brand); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.cp-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; margin: 4px 0 14px; letter-spacing: -.03em; }
.cp-price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 12px; }
.cp-price span { color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cp-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cp-badge { display: inline-flex; align-items: baseline; gap: 3px; padding: 8px 14px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; }
.cp-badge b { font-size: 1.3rem; } .cp-badge small { color: var(--muted); }
.cp-badge span { margin-left: 8px; font-size: .8rem; color: var(--muted); }
.cp-badge.nc b { color: #c98a00; }
.cp-sec { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-bottom: 18px; scroll-margin-top: 80px; }
.cp-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-sec-head h2 { font-size: 1.35rem; margin: 0; }
.cp-sec-head p { margin: 4px 0 0; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cp-two .cp-sec { margin-bottom: 18px; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
.usp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: u; }
.usp li { counter-increment: u; position: relative; background: var(--panel-2); border-radius: 16px; padding: 14px 14px 14px 46px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; line-height: 1.35; animation: rise .5s var(--ease) both; }
.usp li:nth-child(2) { animation-delay: .05s; } .usp li:nth-child(3) { animation-delay: .1s; } .usp li:nth-child(4) { animation-delay: .15s; } .usp li:nth-child(5) { animation-delay: .2s; }
.usp li::before { content: counter(u); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 24px; height: 24px; color: var(--chip-hover); display: grid; }
.stars i.on { color: #f5b301; }
.stars svg { width: 100%; height: 100%; fill: currentColor; }
.nc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nc-bars { display: grid; gap: 10px; }
.nc-bars > div { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.nc-bars b small { color: var(--muted); font-weight: 500; }
.cp-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-weight: 500; }
.cp-links .watch { display: inline-flex; gap: 6px; align-items: center; }

/* variant helper */
.vh-filters { display: flex; gap: 24px; flex-wrap: wrap; }
.vh-need .chip { display: inline-flex; gap: 6px; align-items: baseline; }
.vh-need .chip small { opacity: .55; font-size: .72rem; }
.vh-need .chip.more { background: none; color: var(--brand); font-weight: 600; }
.vh-pick { margin: 18px 0 14px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), transparent 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 35%, transparent); animation: rise .4s var(--ease) both; }
.vh-pick-k { font-family: Michroma, Inter, sans-serif; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.vh-pick-main { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.vh-pick h3 { font-size: 1.35rem; margin: 0 0 2px; }
.vh-pick-p { text-align: right; } .vh-pick-p b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.vh-up { margin: 10px 0 4px; font-size: .9rem; }
.vh-pick.none { display: flex; gap: 14px; align-items: center; background: var(--chip); box-shadow: none; }
.vh-pick.none .sorry-ico { width: 64px; height: 48px; margin: 0; }
.vh-scroll { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: thin; }
.vh-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .86rem; }
.vh-table th, .vh-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: center; min-width: 118px; transition: opacity .25s var(--ease), background .25s var(--ease); }
.vh-table .vh-c0 { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; min-width: 170px; max-width: 200px; font-weight: 500; box-shadow: 1px 0 0 var(--line); }
.vh-table thead th { vertical-align: bottom; background: var(--panel); }
.vh-table thead th button { border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; display: grid; gap: 2px; justify-items: center; width: 100%; padding: 0; }
.vh-table .vh-vn { font-weight: 600; font-size: .84rem; line-height: 1.2; }
.vh-table thead b { font-size: .9rem; }
.vh-table thead em { font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; background: var(--brand-grad); border-radius: 999px; padding: 2px 8px; margin-top: 3px; }
.vh-table .best { background: var(--brand-soft); }
.vh-table .off { opacity: .38; }
.vh-table tr.want td { font-weight: 600; }
.vh-table tr.want .vh-c0 { color: var(--brand); }
.vh-table tr.spec td { color: var(--muted); }
.vh-table tr.spec .vh-c0 { color: var(--text); }
.vh-all { justify-content: flex-start; max-width: 380px; }

/* dealers */
.dl-find { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-find .btn { display: inline-flex; gap: 6px; align-items: center; }
.dl-pin { width: 150px; font: inherit; font-size: 1rem; letter-spacing: .08em; padding: 10px 14px; border-radius: 999px; border: 0; background: var(--chip); color: var(--text); outline: none; }
.dl-pin:focus { box-shadow: 0 0 0 2px var(--brand); background: var(--panel); }
.dl-where { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; color: var(--muted); }
.dl-where svg { color: var(--brand); }
.dl-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; counter-reset: d; }
.dl { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); animation: rise .4s var(--ease) both; }
.dl-n { font-size: 1rem; }
.dl-a { color: var(--muted); font-size: .86rem; margin: 2px 0 6px; }
.dl-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; align-items: center; }
.dl-km { font-weight: 600; }
.dl-tel { display: inline-flex; gap: 5px; align-items: center; font-weight: 600; text-decoration: none; }
.dl-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.dl-act .btn { padding: 8px 14px; font-size: .85rem; }
.dl-all { display: inline-flex; }

/* no results */
.empty.sorry { padding: 44px 24px; }
.sorry-ico { width: 96px; height: 72px; color: var(--brand); margin: 0 auto 10px; display: block; animation: sorry-bob 2.4s ease-in-out infinite; }
@keyframes sorry-bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
.relax { display: grid; gap: 8px; max-width: 460px; margin: 16px auto 14px; }
.relax-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--chip); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: background .2s var(--ease), transform .2s var(--ease); }
.relax-btn:hover { background: var(--brand-soft); transform: translateY(-1px); }
.relax-btn em { font-style: normal; font-weight: 600; color: var(--brand); white-space: nowrap; }

/* priorities bar */
.rec-bar { justify-content: flex-start; gap: 10px 14px; }
.pr-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pr-row.changed .pr-pill { animation: pr-flash .5s var(--ease); }
@keyframes pr-flash { from { transform: scale(.96); } }
.pr-pill:not(:first-child):hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 40%, transparent); }
.pr-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--chip); cursor: pointer; user-select: none; touch-action: pan-y; font-weight: 500; font-size: .9rem; transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.pr-pill:first-child { background: var(--brand-soft); }
.pr-pill .pn { width: 22px; height: 22px; font-size: .74rem; }
.pr-pill.dragging { cursor: grabbing; background: var(--panel); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--brand); position: relative; z-index: 2; }
.pr-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pr-mv { display: inline-flex; }
.pr-mv button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 1.05rem; line-height: 1; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; }
.pr-mv button:hover:not(:disabled) { background: var(--chip-hover); color: var(--text); }
.pr-mv button:disabled { opacity: .25; cursor: default; }
.pr-hint { font-size: .8rem; }

@media (prefers-color-scheme: dark) {
  .cp-img { background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%), linear-gradient(165deg, #222225, #161618); }
  .cp-img img { filter: drop-shadow(0 24px 22px rgba(0,0,0,.5)); }
}
@media (max-width: 900px) {
  .cp-wrap { padding: 12px 16px 30px; }
  .cp-hero { grid-template-columns: 1fr; gap: 18px; margin-top: 12px; }
  .cp-img { height: 230px; border-radius: 22px; } .cp-img img { height: 200px; }
  .cp-two { grid-template-columns: 1fr; gap: 0; }
  .cp-sec { padding: 18px 16px; scroll-margin-top: 120px; }
  .vh-table .vh-c0 { min-width: 120px; max-width: 140px; }
  .vh-table th, .vh-table td { min-width: 100px; padding: 8px; }
  .dl { flex-direction: column; align-items: stretch; }
  .dl-act { flex-direction: row; align-items: center; justify-content: space-between; }
  .nc-bars > div { grid-template-columns: 100px 1fr auto; }
  .pr-hint { display: none; }
}

.rt-more { font-size: .55em; color: var(--muted); font-family: Inter, sans-serif; letter-spacing: 0; font-weight: 500; }
.grid-split { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 18px 2px 4px; border-top: 1px solid var(--line); margin-top: 6px; font-size: .9rem; }
.grid-split b { font-size: 1.05rem; }

/* finder step 5: up / down arrows */
.tt { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tt li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 16px; background: var(--chip); position: relative; }
.tt li:first-child { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent); }
.tt li:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tt li .pn { width: 26px; height: 26px; flex: none; }
.tt li:nth-child(2) .pn { opacity: .85; } .tt li:nth-child(3) .pn { opacity: .7; } .tt li:nth-child(4) .pn { opacity: .55; }
.tt .pt { flex: 1; min-width: 0; display: grid; } .tt .pt b { font-size: .98rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .tt .pt small { color: var(--muted); font-size: .8rem; }
.tt-top { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand-grad); padding: 3px 8px; border-radius: 999px; animation: pop .35s var(--ease) both; }
.tt-mv { display: flex; gap: 6px; flex: none; }
.tt-mv button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: transform .15s var(--ease), color .15s; }
.tt-mv button:hover:not(:disabled) { transform: scale(1.08); color: var(--brand); }
.tt-mv button:disabled { opacity: .25; cursor: default; box-shadow: none; }
/* NCAP info */
.nc-by { display: flex; align-items: center; gap: 6px; }
.info-btn { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; font: italic 700 .72rem Georgia, serif; line-height: 18px; text-align: center; background: var(--chip-hover); color: var(--text); cursor: pointer; }
.info-btn[aria-expanded="true"], .info-btn:hover { background: var(--brand); color: #fff; }
.nc-info { background: var(--panel-2); border-radius: 14px; padding: 12px 14px; margin: -4px 0 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; animation: rise .3s var(--ease) both; }
.nc-info p { margin: 0 0 6px; } .nc-info p:last-child { margin: 0; }

/* car page: hero photo carousel + full-screen viewer */
.cp-media { min-width: 0; }
.cp-img.hg { position: relative; display: block; padding: 0; }
.hg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.hg-track::-webkit-scrollbar { display: none; }
.hg-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: grid; place-items: center; overflow: hidden; }
.hg-slide.main img { width: 94%; height: 330px; object-fit: contain; }
.hg-slide:not(.main) img { width: 100%; height: 100%; object-fit: cover; filter: none; animation: none; }
.hg-slide.broken, .lb-slide.broken, .lb-th.broken { display: none; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #1d1d1f; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: opacity .25s, transform .2s var(--ease); z-index: 2; }
.gal-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.gal-btn:disabled { opacity: 0; pointer-events: none; }
.gal-btn.prev { left: 12px; } .gal-btn.next { right: 12px; }
.hg .gal-btn { opacity: 0; } .hg:hover .gal-btn:not(:disabled), .hg:focus-within .gal-btn:not(:disabled) { opacity: 1; }
.hg-cap { position: absolute; left: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: .78rem; font-weight: 500; white-space: pre; pointer-events: none; max-width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; }
.hg-zoom { position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; pointer-events: none; }
.hg-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.hg-sws { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 3px; background: transparent; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 6px 10px rgba(255,255,255,.25), inset 0 -6px 10px rgba(0,0,0,.18); }
.sw:hover { transform: scale(1.1); }
.sw[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
.hg-int { display: flex; align-items: center; gap: 8px; border: 0; background: var(--chip); color: var(--text); font: inherit; padding: 4px 12px 4px 4px; border-radius: 12px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.hg-int img { width: 46px; height: 34px; object-fit: cover; border-radius: 9px; display: block; }
.hg-int span { display: grid; text-align: left; font-weight: 600; font-size: .84rem; line-height: 1.2; } .hg-int em { font-style: normal; font-weight: 400; font-size: .72rem; color: var(--muted); }
.hg-int[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(8,8,10,.94); color: #fff; display: flex; flex-direction: column; animation: lb-in .35s var(--ease); }
.lb::backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
body.lb-open { overflow: hidden; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.lb-title { display: grid; } .lb-title b { font-size: 1rem; } .lb-title span { font-size: .82rem; color: rgba(255,255,255,.7); white-space: pre; }
.lb-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; cursor: pointer; }
.lb-x:hover { background: rgba(255,255,255,.22); }
.lb-stage { position: relative; flex: 1; min-height: 0; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; margin: 0; display: grid; place-items: center; padding: 0 64px; }
.lb-slide img, .lb-slide .sil { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; filter: none; }
.lb-btn { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.lb-btn:hover:not(:disabled) { background: rgba(255,255,255,.26); }
.lb-thumbs { display: flex; gap: 8px; padding: 12px 18px 18px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lb-th { position: relative; flex: none; width: 84px; height: 56px; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.08); opacity: .55; transition: opacity .2s; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; }
.lb-th i { position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.lb-th:hover, .lb-th[aria-current="true"] { opacity: 1; }
.lb-th[aria-current="true"] { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 600px) {
  .hg-slide.main img { height: 200px; }
  .hg .gal-btn { opacity: 1; width: 34px; height: 34px; font-size: 1.2rem; } .gal-btn.prev { left: 8px; } .gal-btn.next { right: 8px; }
  .lb-slide { padding: 0; } .lb-slide img { border-radius: 0; } .lb-btn { display: none; }
  .lb-th { width: 64px; height: 44px; }
}
/* car page: ownership metrics */
.mt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mt { position: relative; background: var(--panel-2); border-radius: 18px; padding: 16px 16px 14px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.mt-k { font-size: .8rem; font-weight: 600; color: var(--muted); }
.mt-v { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.mt-v small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mt-v .stars { align-self: center; margin-left: 4px; } .mt-v .stars i { width: 16px; height: 16px; }
.mt-s { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.mt-tag { order: -1; align-self: flex-start; margin-bottom: 4px; font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 3px 7px; border-radius: 999px; }
.mt-list, .mt-src { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; }
.mt-list li, .mt-src li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--line); }
.mt-list span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-list em, .mt-src em { font-style: normal; color: var(--muted); font-size: .72rem; min-width: 34px; text-align: right; }
.mt-src a { color: var(--text); font-weight: 500; text-decoration: none; } .mt-src a:hover { color: var(--brand); }
@media (max-width: 1100px) { .mt-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { .gal { background: linear-gradient(165deg, #222225, #161618); } }
@media (max-width: 600px) {
  .mt-grid { grid-template-columns: 1fr; }
  .gal { border-radius: 16px; } .gal-btn { width: 36px; height: 36px; font-size: 1.3rem; } .gal-btn.prev { left: 8px; } .gal-btn.next { right: 8px; }
  .sw { width: 34px; height: 34px; } .cp-sec-head .seg { margin-top: 2px; }
}
@media (prefers-color-scheme: dark) { .sw span { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 6px 10px rgba(255,255,255,.2), inset 0 -6px 10px rgba(0,0,0,.25); } }
.vh-all-have { margin: 10px 0 0; font-size: .86rem; color: var(--yes); font-weight: 500; }

/* search: car-name suggestions */
.search-wrap { position: relative; width: min(640px, 100%); }
.search-wrap .search { width: 100%; }
.q-sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 6px; animation: rise .2s var(--ease); max-height: min(70vh, 460px); overflow: auto; }
.sug { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sug:hover, .sug[aria-selected="true"] { background: var(--chip); }
.sug-img { width: 72px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(165deg, #f7f7f9, #ebebef); overflow: hidden; }
.sug-img img { width: 100%; height: 100%; object-fit: contain; } .sug-img .sil { width: 52px; color: var(--muted); }
.sug-t { flex: 1; min-width: 0; display: grid; } .sug-t b { font-size: .95rem; } .sug-t small { color: var(--muted); font-size: .78rem; }
.sug-p { font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.sug-foot { padding: 8px 10px 4px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
@media (prefers-color-scheme: dark) { .sug-img { background: linear-gradient(165deg, #222225, #161618); } }
.mt-dist { display: flex; gap: 6px; margin-top: 6px; } .mt-dist span { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.dl-geo-note { margin: -4px 0 10px; }

/* header call to action: static glow, no idle animation; hover still animates */
.rr-cta, .rr-cta::before, .rr-cta-in::after, .rr-cta-text { animation: none !important; }
.rr-cta { --rr-a: 200deg; }
.rr-cta-in::after { display: none; }
.rr-cta-text { background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; }
.rr-cta-orb img { width: 14px; height: 20px; display: block; }
.rr-cta-orb .o-r { display: none; }
.rr-cta:hover .rr-cta-orb .o-w { display: none; } .rr-cta:hover .rr-cta-orb .o-r { display: block; }
.hg-slide.color img { object-fit: contain; width: 94%; height: 330px; }
.lb-slide img[src*="img/cars/"] { background: radial-gradient(120% 90% at 50% 100%, rgba(255,255,255,.10), transparent 60%); }
@media (max-width: 600px) { .hg-slide.color img { height: 200px; } }

/* "Right" and "Ride" are always written like the logo */
.rrw { font-family: Michroma, Inter, sans-serif; font-weight: 400; color: var(--brand); letter-spacing: .01em; font-size: .9em; }
h1 .rrw, .hero-title .rrw, .display .rrw, .ch-t .rrw { font-size: 1em; }
.btn.primary .rrw, .wz-opt.primary .rrw, .on-red .rrw, .cp-nav a.on .rrw { color: inherit; }

/* car page: three chapters */
.cp-nav { position: sticky; top: var(--topbar-h, 64px); z-index: 20; display: flex; gap: 6px; margin: 0 0 22px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.cp-nav::-webkit-scrollbar { display: none; }
.cp-nav a b { font-weight: 600; }
.cp-nav a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease); }
.cp-nav a .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; background: var(--chip); color: var(--muted); transition: inherit; }
.cp-nav a:hover { background: var(--chip); }
.cp-nav a.on { background: var(--brand-grad); color: #fff; }
.cp-nav a.on .n { background: rgba(255,255,255,.22); color: #fff; }
.cp-ch { scroll-margin-top: calc(var(--topbar-h, 64px) + 70px); margin-bottom: 34px; }
.ch-head { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 16px; }
.ch-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-family: Michroma, Inter, sans-serif; font-size: .95rem; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.ch-t { font-family: Michroma, Inter, sans-serif; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 4px 0 2px; letter-spacing: -.005em; }
.ch-head p { margin: 2px 0 0; }
.cp-sec-head h3 { font-size: 1.2rem; margin: 0; }

/* Find the Right Variant: choices left, the fitting variant right */
.vh-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 26px; align-items: start; }
.vh-split.one { grid-template-columns: 1fr; }
.vh-left .group { margin-top: 14px; }
.vh-left .vh-filters { gap: 18px; }
.vh-step { font-family: Michroma, Inter, sans-serif; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vh-carried { margin: 6px 0 0; }
.vh-reset { margin-top: 14px; }
.vh-right { position: sticky; top: calc(var(--topbar-h, 64px) + 78px); }
.vh-right .vh-pick { margin: 0; }
.vh-pick-specs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vh-pick-specs li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.vh-pick-has { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: .86rem; }
.vh-pick-has li::before { content: '✓'; color: var(--yes); font-weight: 700; margin-right: 8px; }
.vh-pick-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vh-pick-act .btn { padding: 9px 16px; font-size: .88rem; }
.vh-cmp { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.vh-cmp-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vh-cmp-h h3 { font-size: 1.1rem; margin: 0; }

/* Find the Right Dealer */
.dl-td { white-space: nowrap; }
.dl-web { font-weight: 500; text-decoration: none; }
.dl-web:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .vh-split { grid-template-columns: 1fr; gap: 18px; }
  .vh-right { position: sticky; bottom: 10px; top: auto; z-index: 5; }
  .vh-right .vh-pick { background: var(--panel); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35), inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 35%, transparent); }
  .vh-pick-specs, .vh-pick-has, .vh-up { display: none; }
  .vh-pick-main h3 { font-size: 1.1rem; }
  .vh-pick-p b { font-size: 1.2rem; }
  .vh-pick-act { margin-top: 10px; }
  .cp-nav { margin-left: -4px; margin-right: -4px; }
  .cp-nav a { padding: 8px 12px; font-size: .82rem; }
  .ch-n { width: 34px; height: 34px; font-size: .85rem; }
  .dl-act .dl-td { flex: 1; text-align: center; }
}

.vh-right .vh-pick-main { flex-direction: column; align-items: flex-start; gap: 10px; }
.vh-right .vh-pick-p { text-align: left; }

/* compare bar: three slots at the bottom of the cars page */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px max(16px, calc((100vw - 1320px) / 2 + 20px)) calc(10px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35); }
body[data-page="cars"] .foot { padding-bottom: 120px; }
body[data-page="cars"] .layout { padding-bottom: 110px; }
.cb-in { display: flex; align-items: center; gap: 14px; }
.cb-head { display: grid; gap: 1px; flex: none; min-width: 110px; }
.cb-head b { font-family: Michroma, Inter, sans-serif; font-weight: 400; font-size: .9rem; }
.cb-head .link { justify-self: start; padding: 0; }
.cb-slots { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cb-slot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.cb-slot.empty { justify-content: center; border: 0; font: inherit; font-weight: 600; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); border-radius: 14px; cursor: pointer; min-height: 58px; gap: 8px; }
.cb-slot.empty:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.cb-plus { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); font-size: 1.1rem; }
.cb-thumb { flex: none; width: 64px; height: 40px; display: grid; place-items: center; }
.cb-thumb img, .cb-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.cb-name { min-width: 0; display: grid; line-height: 1.2; font-size: .8rem; }
.cb-name b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-act { margin-left: auto; display: flex; gap: 4px; align-items: center; flex: none; }
.cb-btn { border: 0; background: var(--chip); color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.cb-btn:hover { background: var(--chip-hover); }
.cb-x { border: 0; background: none; color: var(--muted); font-size: .9rem; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.cb-x:hover { background: var(--chip); color: var(--text); }
.cb-go { flex: none; }
.cb-go[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 900px) {
  .cb-in { gap: 8px; flex-wrap: wrap; }
  .cb-head { min-width: 0; display: flex; gap: 8px; align-items: baseline; width: 100%; }
  .cb-slots { order: 2; width: 100%; gap: 6px; }
  .cb-go { order: 3; width: 100%; }
  .cb-slot { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; position: relative; text-align: center; }
  .cb-thumb { width: 100%; height: 34px; }
  .cb-name span:not(.muted), .cb-name .small { display: none; }
  .cb-name .muted { display: none; }
  .cb-act { position: absolute; top: 2px; right: 2px; }
  .cb-btn { display: none; }
  .cb-slot:not(.empty) { cursor: pointer; }
  .cb-slot.empty { min-height: 64px; flex-direction: column; font-size: .8rem; }
  body[data-page="cars"] .foot { padding-bottom: 190px; }
  body[data-page="cars"] .layout { padding-bottom: 170px; }
}
/* picker */
.cmp-pick { width: min(560px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); }
.cmp-pick::backdrop { background: rgba(0,0,0,.35); }
.cmp-pick[open] { display: flex; flex-direction: column; }
.cp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 6px; }
.cp-head h2 { margin: 0; font-size: 1.1rem; }
.cp-tools { display: grid; gap: 10px; padding: 6px 18px 12px; border-bottom: 1px solid var(--line); }
.cp-tools input { font: inherit; padding: 11px 14px; border-radius: 12px; border: 0; background: var(--chip); color: var(--text); outline: none; }
.cp-tools input:focus { box-shadow: 0 0 0 2px var(--brand); }
.cp-list { overflow: auto; padding: 8px 10px 14px; display: grid; gap: 2px; }
.cp-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cp-row:hover, .cp-row:focus-visible { background: var(--chip); }
.cp-th { height: 42px; display: grid; place-items: center; } .cp-th img, .cp-th svg { width: 100%; height: 100%; object-fit: contain; }
.cp-n { display: grid; line-height: 1.25; } .cp-p { font-weight: 600; font-size: .9rem; }
.cp-none { padding: 14px; }
/* compare page */
.cmp-title { margin: 6px 0 16px; }
.rq-top h2 { font-size: 1.2rem; margin: 0; }
.rq-top p { margin: 4px 0 0; }
.rq-buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; }
.rq-bucket { padding: 12px 14px; border-radius: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s var(--ease); }
.rq-bucket.on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.rq-bh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rq-chosen { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; align-items: center; }
.rq-chosen .chip.on { background: var(--brand-grad); color: #fff; }
.rq-opts .label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rq-opts .chip.sel { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.rq-opts .chip small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-left: 4px; }
.rq-opts .chip.more { background: none; color: var(--brand); font-weight: 600; }
.cmp-grid { margin-top: 18px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 18px 18px; overflow-x: auto; }
.cg-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(var(--n), minmax(150px, 1fr)); border-bottom: 1px solid var(--line); min-width: calc(150px + var(--n) * 150px); }
.cg-row:last-child { border-bottom: 0; }
.cg-k { padding: 12px 10px 12px 0; font-weight: 600; font-size: .9rem; display: grid; align-content: center; gap: 4px; }
.cg-tag { justify-self: start; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cg-tag.must { color: var(--brand); }
.cg-v { padding: 12px 10px; display: grid; align-content: center; gap: 3px; font-size: .9rem; }
.cg-v.best, .cg-car.best { background: var(--brand-soft); }
.cg-cars { border-bottom: 0; }
.cg-car { padding: 14px 10px 12px; display: grid; gap: 4px; align-content: start; border-radius: 18px 18px 0 0; position: relative; }
.cg-best { justify-self: start; font-size: .68rem; font-weight: 700; color: #fff; background: var(--brand-grad); padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.cg-img { height: 110px; display: grid; place-items: center; }
.cg-img img, .cg-img svg { width: 100%; height: 100%; object-fit: contain; }
.cg-name { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.cg-name:hover { color: var(--brand); }
.cg-var select { width: 100%; font: inherit; font-size: .82rem; padding: 7px 10px; border-radius: 10px; border: 0; background: var(--chip); color: var(--text); }
.cg-sum { font-size: .84rem; }
.cg-car .link { justify-self: start; padding: 0; }
.cg-why { margin: 4px 0 6px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); font-size: .92rem; }
.cg-sect { font-family: Michroma, Inter, sans-serif; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 20px 0 6px; }
.cg-empty { padding: 10px 0; }
.gr { justify-self: start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gr.g2 { color: #fff; background: var(--yes); }
.gr.g1 { color: var(--yes); background: color-mix(in srgb, var(--yes) 14%, transparent); }
.gr.g0 { color: var(--muted); background: var(--chip); }
.gr-why { font-size: .78rem; color: var(--muted); }
.gr-up { font-size: .74rem; color: var(--brand); }
.flash { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .88rem; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 60; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) {
  .rq-buckets { grid-template-columns: 1fr; }
  .cmp-grid { padding: 6px 10px 12px; }
  .cg-row { grid-template-columns: 96px repeat(var(--n), minmax(110px, 1fr)); min-width: calc(96px + var(--n) * 110px); }
  .cg-k { font-size: .8rem; }
  .cg-img { height: 70px; }
  .cg-v { font-size: .82rem; padding: 10px 6px; }
}

.cb-slot[data-slot] { cursor: pointer; }

/* compare: selected requirement chips and the must/nice switch */
.rq-opts .chip[aria-pressed="true"], .rq-opts .chip.sel { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.rq-opts .chip small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-left: 4px; }
.rq-seg { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; margin-left: 8px; vertical-align: middle; }
.rq-seg button { border: 0; background: none; font: 600 .82rem Inter, sans-serif; color: var(--text); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.rq-seg button[aria-pressed="true"] { background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.12); color: var(--brand); }
.rq-opts > .label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
@media (max-width: 700px) {
  .cmp-grid { overflow-x: visible; }
  .cg-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-width: 0; }
  .cg-row > .cg-k { grid-column: 1 / -1; padding: 12px 2px 2px; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .cg-cars > .cg-k { display: none; }
  .cg-v { padding: 6px 6px 12px; }
  .cg-car { padding: 10px 6px; }
  .cg-name { font-size: .92rem; }
  .cg-var select { font-size: .74rem; padding: 6px; }
}

/* compare: drag requirements into the must / nice boxes */
.rq-opts [data-drag], .rq-chosen [data-drag] { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rq-bucket.drop-on, .rq-opts.drop-on { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-soft); background: var(--brand-soft); }
.rq-opts { border-radius: 16px; transition: box-shadow .15s var(--ease), background .15s var(--ease); }
.rq-opts.drop-on { padding: 6px; margin: -6px; }
.chip.dragging { opacity: .35; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; margin: 0; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transform-origin: center; opacity: .95; cursor: grabbing; }
body.rq-dragging, body.rq-dragging * { cursor: grabbing !important; }

.rq-opts [hidden] { display: none !important; }
.rq-search { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 0 0 12px; padding: 9px 14px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.rq-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.rq-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); outline: none; }
.rq-none { align-self: center; }
.rq-groups { display: grid; gap: 14px; }
.rq-grp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rq-grp-h b { font-size: .92rem; }
.rq-groups > .chip.more { justify-self: start; }
.rq-grp-all { margin-left: auto; font-weight: 600; font-size: .85rem; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.rq-grp-all:hover { text-decoration: underline; }
@media (max-width: 600px) { .rq-grp-h > .muted { order: 3; flex-basis: 100%; margin-top: -4px; } }
