:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e4e7ef;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-text: #ffffff;
  --accent-soft: #eaf0ff;
  --hero-1: #0b1224;
  --hero-2: #1a2347;
  --error: #b42318;
  --ok: #067647;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, .25);
  --img-bg: linear-gradient(180deg, #ffffff 0%, #f1f3f8 100%);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-soft: #0f1422;
    --surface: #121827;
    --surface-2: #1a2132;
    --text: #e8ecf4;
    --muted: #98a2b3;
    --border: #252d40;
    --accent: #5b8cff;
    --accent-2: #a78bfa;
    --accent-text: #0b1020;
    --accent-soft: #1b2540;
    --error: #ff8a80;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --img-bg: linear-gradient(180deg, #f7f8fb 0%, #e9ecf3 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px max(24px, calc((100vw - 1320px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.search {
  flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 40px; border-radius: 999px; min-width: 0;
  background: var(--surface-2); border: 1px solid transparent; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--text); }
.account { position: relative; display: flex; align-items: center; gap: 8px; }
.account-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.account-panel p { margin: 0; font-size: 13px; }
.link { all: unset; cursor: pointer; color: var(--accent); font-size: 14px; }
.banner { margin: 0; padding: 12px max(24px, calc((100vw - 1320px) / 2)); background: var(--accent-soft); color: var(--text); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform .12s, box-shadow .12s, filter .12s, background .12s;
}
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.large { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.wide { width: 100%; height: 46px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .45), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(37, 99, 235, .4), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; color: #c7d2fe; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.hl { background: linear-gradient(90deg, #93c5fd, #c4b5fd 60%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #cbd5e1; font-size: 18px; margin: 18px 0 26px; max-width: 560px; }
.hero .lede strong { color: #fff; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px 6px 6px 16px;
  background: #fff; border-radius: 14px; color: #64748b; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; color: #0f172a; background: none; height: 44px; }
.stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 28px 0 0; }
.stats strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; }
.stats span { color: #94a3b8; font-size: 13px; }
.showcase { margin: 0; }
.showcase-frame {
  border-radius: 20px; overflow: hidden; background: var(--img-bg);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.showcase-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s; }
.showcase-frame img.fade { opacity: .15; }
.showcase figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: #cbd5e1; font-size: 14px; }
.showcase figcaption a { color: #fff; font-weight: 600; }
.showcase-swatches { display: flex; gap: 6px; }
.showcase-swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); opacity: .55; transition: transform .2s, opacity .2s; }
.showcase-swatches i.on { opacity: 1; transform: scale(1.3); box-shadow: 0 0 0 2px #fff; }

/* ---------- Sections ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: 48px 24px 0; }
.section h2 { font-size: 26px; font-weight: 800; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.make-chips, .chip-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.make-chips a, .chip-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm);
}
.make-chips a:hover, .chip-links a:hover { border-color: var(--accent); text-decoration: none; color: var(--accent); }
.make-chips span, .chip-links span { color: var(--muted); font-size: 12px; font-weight: 600; }
.chip-links { margin-top: 18px; }
.section > .chip-links { margin-top: 14px; }

.page-head { max-width: 1320px; margin: 0 auto; padding: 8px 24px 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-head .lede { color: var(--muted); font-size: 17px; max-width: 760px; margin: 12px 0 0; }
.crumbs { max-width: 1320px; margin: 0 auto; padding: 20px 24px 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }
.make-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.make-grid a { display: block; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.make-grid a:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow); }
.make-grid strong { display: block; font-family: var(--display); font-size: 17px; }
.make-grid span { color: var(--muted); font-size: 13px; }

/* ---------- Browse ---------- */
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.layout { display: grid; grid-template-columns: 236px 1fr; gap: 32px; }
.filters {
  position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 18px;
  padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filter label, .filter .label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
select {
  width: 100%; height: 40px; padding: 0 10px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
}
select:disabled { opacity: .55; }
.color-filter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.color-filter button {
  aspect-ratio: 1; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 2px var(--surface); transition: transform .12s;
}
.color-filter button:hover { transform: scale(1.1); }
.color-filter button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.btn.filters-toggle { display: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar p { margin: 0; font-weight: 500; }
.results-actions { display: flex; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { width: auto; height: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.card-image { all: unset; cursor: zoom-in; display: block; aspect-ratio: 3 / 2; background: var(--img-bg); overflow: hidden; }
.card-image:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 700; }
.card h3 a { color: var(--text); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.color-name { font-size: 13px; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button {
  position: relative; width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 2px var(--surface); transition: transform .12s;
}
.swatches button:hover { transform: scale(1.15); }
.swatches.large button { width: 32px; height: 32px; }
.swatches button[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Rendered-on-demand colors: small sparkle marker */
.swatches button[data-gen]::after {
  content: "✦"; position: absolute; right: -5px; top: -7px; font-size: 9px; color: var(--accent-2);
}
.swatches.large button[data-gen]::after { font-size: 11px; right: -4px; top: -8px; }

.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.is-loading { position: relative; }
.is-loading img { opacity: .45; filter: saturate(.4); transition: opacity .2s; }
.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid rgba(255,255,255,.7); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 0 4px; }
.load-more .btn { min-width: 220px; }

/* ---------- Vehicle page ---------- */
.vehicle { max-width: 1320px; margin: 0 auto; padding: 4px 24px 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.vehicle-media { position: relative; border-radius: 20px; overflow: hidden; background: var(--img-bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vehicle-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vehicle-info { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.vehicle-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.vehicle-info p { margin: 0; }
.vehicle-copy { color: var(--muted); font-size: 14px; }
.color-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.color-links strong { font-weight: 700; }
.gen-badge {
  position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px);
}
.gen-badge::before { content: "✦ "; color: #c4b5fd; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 18px 0 0; }
.color-tile { all: unset; cursor: pointer; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.color-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.color-tile:focus-visible { outline: 2px solid var(--accent); }
.color-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--img-bg); }
.color-tile span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.color-tile i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.color-tile em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--accent-2); font-weight: 600; }
.buy { display: flex; flex-direction: column; gap: 8px; }
.buy .btn { width: 100%; }
.error { color: var(--error); font-size: 14px; margin: 0; }
.link-arrow { font-size: 14px; font-weight: 600; }

/* ---------- Detail dialog ---------- */
.detail {
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.detail::backdrop, .signin::backdrop { background: rgba(8, 11, 20, .65); backdrop-filter: blur(4px); }
.detail .close, .signin .close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 22px; cursor: pointer;
}
.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; }
.detail-image { position: relative; background: var(--img-bg); display: flex; align-items: center; }
.detail-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-info { padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; }
.detail-info h2 { font-size: 24px; padding-right: 32px; }
.detail-info p { margin: 0; }

/* ---------- Sign-in dialog ---------- */
.signin {
  width: min(420px, calc(100vw - 32px)); padding: 30px 26px 26px; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.signin h2 { font-size: 22px; margin-bottom: 6px; }
.signin > p { margin: 0 0 18px; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.email-form { display: flex; flex-direction: column; gap: 8px; }
.email-form label { font-size: 13px; font-weight: 600; }
.email-form input { height: 44px; padding: 0 12px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
#signInMsg { margin-top: 12px; }

/* ---------- How / pricing / FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.steps li { padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.steps h3 { font-size: 17px; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; }
.price-card {
  display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 32px; align-items: center;
  padding: 32px; border-radius: 20px; background: var(--surface);
  border: 1px solid transparent; box-shadow: var(--shadow);
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--accent), var(--accent-2));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.price { margin: 10px 0 2px; }
.price strong { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq h2 { margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 800px; }

/* ---------- Footer ---------- */
.footer { margin-top: 72px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; font-size: 13px; }
.footer-inner p { max-width: 460px; }
.footer h2 { font-size: 14px; margin-bottom: 10px; }
.footer nav ul { list-style: none; padding: 0; margin: 0; columns: 4 120px; }
.footer nav li { margin-bottom: 6px; }
.footer nav a { color: var(--muted); }

.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.prose h1 { font-size: 34px; margin-bottom: 12px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px 48px; }
  .showcase-frame { transform: none; }
  .vehicle { grid-template-columns: 1fr; gap: 20px; }
  .vehicle-info { position: static; }
  .price-card { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand span, .nav, .account-email { display: none; }
  .search { margin-left: 0; padding: 0 10px; }
  .account .btn.small { padding: 0 10px; }
  .banner { padding: 12px 16px; }
  .section { padding: 36px 16px 0; }
  .page-head, .crumbs, .vehicle { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; }
  .stats { gap: 20px; }
  .stats strong { font-size: 20px; }
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .btn.filters-toggle { display: inline-flex; height: 36px; padding: 0 12px; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .color-filter { grid-template-columns: repeat(9, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 14px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .results-actions { width: 100%; justify-content: space-between; }
  .detail { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-info { padding: 20px 16px 32px; }
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; padding: 32px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
