[hidden] { display: none !important; }
:root {
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Menlo, monospace;
}
[data-theme="dark"] {
  --bg: #0e0f11; --surface: #17191c; --surface-2: #1f2226; --line: #2a2e33;
  --text: #f2f3f5; --muted: #9aa1aa; --accent: #ff5a1f; --accent-ink: #160a05;
  --accent-soft: rgba(255, 90, 31, .14); --shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
[data-theme="light"] {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #efede8; --line: #e2dfd8;
  --text: #15171a; --muted: #5d636b; --accent: #d9430c; --accent-ink: #ffffff;
  --accent-soft: rgba(217, 67, 12, .10); --shadow: 0 1px 2px rgba(20, 20, 20, .06);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background .25s var(--ease), color .25s var(--ease); }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav > a:not(.btn):hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s var(--ease), filter .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(.97); }

/* Binary theme switch */
.theme-switch { position: relative; display: inline-flex; cursor: pointer; }
.theme-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.track { width: 44px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s var(--ease); }
.thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .25s var(--ease); }
.theme-switch input:checked + .track .thumb { transform: translateX(20px); }
.theme-switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 64px 0 24px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 14px; max-width: 14ch; text-wrap: balance; }
.lede { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0 0 28px; text-wrap: pretty; }
.search { position: relative; max-width: 640px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; box-shadow: var(--shadow); transition: border-color .15s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select, .select .dd-btn { appearance: none; height: 40px; padding: 0 44px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.count { color: var(--muted); font-size: 14px; margin: 18px 0 0; min-height: 1.5em; }

/* Cards */
.grid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .35s var(--ease) both; transition: border-color .15s; }
.card.playing { border-color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.play:hover { background: var(--accent); color: var(--accent-ink); }
.play:active { transform: scale(.94); }
.play .i-pause, .card.playing .i-play { display: none; }
.card.playing .i-pause { display: block; }
.card.playing .play { background: var(--accent); color: var(--accent-ink); }
.meta { min-width: 0; }
.title { font-size: 17px; line-height: 1.25; margin: 2px 0 2px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin: 12px 0 10px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.credit { font-size: 12.5px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.credit a { color: var(--muted); }
.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lic { font: 600 12px/1 var(--mono); letter-spacing: .02em; padding: 6px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); text-decoration: none; white-space: nowrap; }
.lic.cc0 { color: #1f9d55; }
.lic.sa { color: #7c5cff; background: color-mix(in srgb, #7c5cff 12%, transparent); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Info folds (animated) */
.info { margin-top: 56px; display: grid; gap: 10px; }
.info-h { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fold { box-shadow: var(--shadow); transition: border-color .15s; }
.fold:hover, .fold[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.fold summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 18px; font-weight: 600; position: relative; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.fold[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fold-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.fold-body > div { overflow: hidden; padding: 0 18px; color: var(--muted); }
.fold-body p { margin: 0 0 12px; }
.fold.is-open .fold-body { grid-template-rows: 1fr; }

.foot { color: var(--muted); font-size: 13px; padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 56px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .top-nav > a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.brand span, .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .btn .long { display: none; }
  .brand span { font-size: 15px; }
  .top-nav { gap: 12px; }
}

/* Car cards (one card per car, one chip per sound state) */
.grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.card .actions { flex-direction: row; align-items: center; }
.card .title { margin: 0; }
.states { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip small { font-size: 12px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center; }
.card .bar { margin: 0; }
.card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-foot .credit { flex: 1 1 180px; }
.takes { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.takes button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 15px; line-height: 1; }
.takes button:hover { background: var(--surface-2); }

/* Review mode (?review=1) */
.review { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.review code { font: 11.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.review .btn { height: 30px; font-size: 13px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.review .btn.on { background: #c0392b; border-color: #c0392b; color: #fff; }
.card.rejected { opacity: .55; }
.review-bar { position: fixed; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 6; font-size: 14px; }
.review-bar .btn:not(.btn-primary) { border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }

/* Progress line (end to end, click to jump) */
.progress { display: flex; align-items: center; gap: 10px; align-self: stretch; }
.card .bar { flex: 1; height: 6px; margin: 0; cursor: pointer; position: relative; }
.card .bar::before { content: ""; position: absolute; inset: -8px 0; }  /* bigger touch target */
.card.playing .bar span { box-shadow: 0 0 8px var(--accent-soft); }
.time { font: 12px var(--mono); color: var(--muted); min-width: 9ch; text-align: right; font-variant-numeric: tabular-nums; }

/* Mobile */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 32px 0 16px; }
  .lede { font-size: 16px; margin-bottom: 20px; }
  .search input { height: 50px; font-size: 16px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .select select, .select .dd-btn { width: 100%; height: 44px; padding-left: 18px; }
  .card { padding: 14px; }
  .card-head { gap: 12px; }
  .chip { height: 36px; padding: 0 14px; }
  .icon-btn { width: 40px; height: 40px; }
  .takes button { width: 36px; height: 36px; }
  .info { margin-top: 40px; }
  .foot { padding: 28px 0 40px; margin-top: 40px; }
  .review-bar { left: 14px; right: 14px; bottom: 14px; flex-wrap: wrap; border-radius: 16px; }
}

@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .brand span { font-size: 14px; }
  .top-nav { gap: 10px; }
  .top-nav .btn { padding: 0 14px; }
}

/* Car title links to its own page */
.title-link { text-decoration: none; }
.title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Browse by make (home) */

/* Car and make pages */
.sub-page { padding: 32px 0 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.sub-h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; max-width: none; }
.clips { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.clip { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.clip-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clip audio { width: 100%; height: 40px; }
.clip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { height: 34px; font-size: 13px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-family: inherit; }
.btn-ghost:hover { background: var(--surface-2); }
.cta { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.section-h { font-size: 20px; letter-spacing: -.02em; margin: 40px 0 12px; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.link-list a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; text-decoration: none; }
.link-list a:hover { border-color: var(--accent); color: var(--accent); }
.car-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.car-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.car-list a { font-weight: 600; text-decoration: none; }
.car-list a:hover { color: var(--accent); }
.car-list span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .clips, .car-list { grid-template-columns: 1fr; } .cta .btn { width: 100%; justify-content: center; } }

/* Never scroll sideways */
html, body { overflow-x: clip; }
.toast { max-width: calc(100vw - 32px); text-align: center; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Mobile menu (hamburger) */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; padding: 0; }
.menu-btn svg { display: block; grid-area: 1 / 1; transition: opacity .2s, transform .35s var(--ease); }
.menu-btn path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn .i-x { opacity: 0; transform: rotate(-90deg); }
.menu-btn[aria-expanded="true"] .i-x { opacity: 1; transform: none; }
.menu-btn[aria-expanded="true"] .i-bars { opacity: 0; transform: rotate(90deg); }
.menu-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu { display: none; }
/* Hamburger menu: phones and tablets (iPad portrait and landscape). Keep in sync with MENU_QUERY in app.js. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .top-row:has(.menu-btn) .top-nav { display: none; }
  .menu-btn { display: grid; }
  /* Full-screen sheet, slides in from the right under the header bar */
  .menu { display: block; position: fixed; inset: 0; z-index: 4; background: var(--bg); padding-top: 64px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s; }
  .menu.open { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .menu-inner { overflow: visible; }
  .menu-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 32px; }
  /* Items follow the sheet in, one after another */
  .menu-body > * { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .4s var(--ease); }
  .menu.open .menu-body > * { opacity: 1; transform: none; }
  .menu.open .menu-body > :nth-child(1) { transition-delay: .10s; }
  .menu.open .menu-body > :nth-child(2) { transition-delay: .14s; }
  .menu.open .menu-body > :nth-child(3) { transition-delay: .18s; }
  .menu.open .menu-body > :nth-child(4) { transition-delay: .22s; }
  .menu.open .menu-body > :nth-child(5) { transition-delay: .26s; }
  .menu.open .menu-body > :nth-child(6) { transition-delay: .30s; }
  .menu-h { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .menu-filters .filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
  .menu-filters .select select, .menu-filters .select .dd-btn { height: 48px; font-size: 16px; padding: 0 52px 0 20px; }
  .menu-clear { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; }
  .menu-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .menu-link { color: var(--text); text-decoration: none; padding: 8px 0; font-size: 17px; }
  .menu-submit { justify-content: center; height: 52px; font-size: 16px; }
  /* Header stays on top while the sheet is open: logo + the button morphing into a cross */
  html:has(body.menu-open) { overflow: hidden; }
  body.menu-open .top { z-index: 6; background: var(--bg); backdrop-filter: none; }
}

/* Filter titles: hidden in the desktop pill row, shown in the mobile menu */
.sel-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .menu { display: flex; flex-direction: column; }
  .menu-inner { flex: 1; display: flex; }
  .menu-body { flex: 1; width: auto; margin-inline: 14px; min-height: 100%; gap: 14px; }
  .menu-filters .filters { gap: 14px; }
  .menu-filters .select { display: flex; flex-direction: column; gap: 6px; }
  .menu-filters .select::after { top: auto; right: 22px; bottom: 24px; transform: translateY(25%) rotate(45deg); }
  .menu-filters .sel-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 14px; font-weight: 600; color: var(--text); padding-left: 4px; }
  .menu-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
  .menu-bottom .menu-row { border-bottom: 0; margin-bottom: 4px; }
  .menu-record { justify-content: center; height: 52px; font-size: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
}

/* Theme button: shows the mode you switch to */
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s var(--ease); }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn:active { transform: scale(.94); }
.theme-btn svg { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--ease); }
[data-theme="dark"] .theme-btn .i-moon, [data-theme="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) { .menu-top .theme-btn { width: 44px; height: 44px; } }

/* Results: full width, three cards per row on desktop */
.results-col .grid { margin-top: 8px; }

/* Browse by make: a tag cloud at the bottom of the page */
.browse { margin-top: 48px; }
.makes { display: flex; flex-wrap: wrap; gap: 6px; }
.makes a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, color .15s, background .15s; }
.makes a small { display: none; }
.makes a:hover { border-color: var(--accent); color: var(--accent); }
.makes a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Footer credit */
.built { color: var(--text); font-weight: 500; }
.built a { color: var(--accent); text-decoration: none; }
.built a:hover { text-decoration: underline; }

/* ===== Hero: centred, with a background layer ===== */
.hero { position: relative; padding: 0; isolation: isolate; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 88px 0 28px; }
.hero h1 { max-width: none; margin: 0 0 18px; font-size: clamp(44px, 8.4vw, 104px); line-height: .94; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.hero h1 span { display: block; }
.h1-b { background: linear-gradient(92deg, var(--accent) 0%, #ffb347 55%, var(--accent) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; padding-bottom: .06em; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero .lede { margin: 0 auto 30px; max-width: 56ch; }
.hero .search { width: 100%; max-width: 640px; margin-inline: auto; }
.hero .search input { height: 58px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
.hero .filters { justify-content: center; }
.hero .count { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; color: var(--muted); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; } .eq i:nth-child(2) { height: 100%; animation-delay: -.3s; } .eq i:nth-child(3) { height: 60%; animation-delay: -.6s; } .eq i:nth-child(4) { height: 85%; animation-delay: -.15s; }
@keyframes eq { 50% { transform: scaleY(.35); } }

/* Background layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; }
.hero[data-bg="exhaust"] .hero-img { background-image: url("hero/exhaust.jpg"); opacity: 1; }
.hero[data-bg="trails"] .hero-img { background-image: url("hero/trails.jpg"); opacity: 1; }
.hero[data-bg="diecast"] .hero-img { background-image: url("hero/diecast.jpg"); opacity: 1; }
.hero[data-bg="garage"] .hero-img { background-image: url("hero/garage.jpg"); opacity: 1; }
/* Shade: keeps the centre readable, fades the bottom into the page */
.hero-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 45%, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 75%),
              linear-gradient(to bottom, color-mix(in srgb, var(--bg) 25%, transparent) 0%, transparent 30%, transparent 60%, var(--bg) 100%); }
[data-theme="light"] .hero[data-bg]:not([data-bg="cards"]) .hero-shade { background: radial-gradient(ellipse 60% 65% at 50% 45%, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 80%), linear-gradient(to bottom, transparent 55%, var(--bg) 100%); }
.hero[data-bg]:not([data-bg="cards"]) .hc { opacity: .32; }

/* Floating sound cards */
.hero-cards { position: absolute; inset: 0; }
.hc { position: absolute; width: 250px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,.25); opacity: .5; animation: drift 9s ease-in-out infinite; text-align: left; }
.hc-head { display: flex; align-items: center; gap: 10px; }
.hc-play { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); position: relative; flex: none; }
.hc-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hc b { display: block; font-size: 14px; line-height: 1.2; } .hc small { font-size: 12px; color: var(--muted); }
.hc-wave { display: flex; align-items: center; gap: 2px; height: 34px; margin: 12px 0 10px; }
.hc-wave i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.hc-wave i.on { background: var(--accent); }
.hc-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.hc-chips span { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.hc-chips span.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.hc1 { left: 9%;  top: 70px;  rotate: -8deg; }
.hc2 { left: 4%; top: 300px; rotate: 5deg;  scale: .9; filter: blur(1.5px); animation-delay: -3s; }
.hc3 { left: 15%; top: 480px; rotate: -3deg; scale: .8; filter: blur(3px); animation-delay: -6s; }
.hc4 { right: 9%; top: 60px;  rotate: 7deg;  animation-delay: -1.5s; }
.hc5 { right: 4%; top: 290px; rotate: -5deg; scale: .9; filter: blur(1.5px); animation-delay: -4.5s; }
.hc6 { right: 14%; top: 470px; rotate: 4deg;  scale: .8; filter: blur(3px); animation-delay: -7.5s; }
.hc3, .hc6 { opacity: .35; }
@keyframes drift { 50% { translate: 0 -12px; } }
@media (max-width: 1100px) { .hc { width: 210px; } .hc3, .hc6 { display: none; } }
@media (max-width: 860px) { .hc1, .hc4 { top: 24px; } .hc2, .hc5 { display: none; } .hc { opacity: .28; } }
@media (max-width: 640px) {
  .hero-inner { padding: 48px 0 16px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hc { width: 180px; padding: 10px; } .hc1 { left: -60px; top: 10px; } .hc4 { right: -60px; top: 230px; }
  .hc-wave { height: 22px; margin: 8px 0 6px; }
}
.search svg { z-index: 1; }
@media (max-width: 640px) { .hero .hc, .hero[data-bg] .hc { opacity: .16; } }

.hero .filters { margin-top: 32px; }

/* Show more */
.more-row { display: flex; justify-content: center; margin-top: 22px; }
.more-row:has(.more-btn[hidden]) { display: none; }
.more-btn { min-width: 220px; height: 48px; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Download question: a quiet card at the bottom right, never blocks the page */
.use-ask { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(360px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.28); opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.use-ask.show { opacity: 1; transform: none; }
.use-q { margin: 0 28px 4px 0; font-weight: 700; font-size: 16px; }
.use-sub { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.use-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.use-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.use-chip:hover, .use-chip:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.use-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.use-x:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .use-ask { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* Tablets: the menu sheet is full screen, its content keeps a readable width */
@media (min-width: 641px) and (max-width: 1366px) {
  .menu-inner { justify-content: center; }
  .menu-body { flex: 0 1 560px; max-width: calc(100% - 48px); margin-inline: 0; }
}

/* Custom dropdown (assets/dropdown.js). Mouse and trackpad only; touch keeps the native picker. */
.select::after { transition: transform .25s var(--ease), border-color .15s; }
.select.dd select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select .dd-btn { display: block; text-align: left; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.select .dd-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.select .dd-btn:focus-visible, .select.open .dd-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.select.open::after { border-color: var(--accent); transform: translateY(-25%) rotate(225deg); }
.menu-filters .select.open::after { transform: translateY(75%) rotate(225deg); }
.dd-list { position: fixed; z-index: 60; margin: 0; padding: 6px; list-style: none; max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none; transition: opacity .16s var(--ease), transform .22s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dd-list.up { transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.dd-list.show { opacity: 1; transform: none; pointer-events: auto; }
.dd-list:focus { outline: none; }
.dd-opt { position: relative; display: flex; align-items: center; min-height: 38px; padding: 0 36px 0 14px; border-radius: 999px; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap; user-select: none; }
.dd-opt.active { background: var(--surface-2); }
.dd-opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.dd-opt[aria-selected="true"]::after { content: ""; position: absolute; right: 16px; top: 50%; width: 5px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-65%) rotate(45deg); }
.menu-filters .dd-opt { min-height: 44px; font-size: 16px; }

/* ---- Forms: submit, unsubscribe (2026-11-28) ---- */
.page-h { font-size: clamp(30px, 4vw, 44px); max-width: none; margin: 0 0 10px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
button.btn { cursor: pointer; font-family: inherit; }
button.btn:not(.btn-ghost) { border: 0; }
button.btn:disabled { opacity: .6; cursor: default; }
.form { display: grid; gap: 22px; max-width: 760px; margin-top: 8px; }
.form-narrow { max-width: 420px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 20px 20px 22px; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { font-weight: 700; font-size: 15px; padding: 0 8px; margin-left: -8px; }
.row { display: grid; gap: 14px; }
.row-3 { grid-template-columns: 1fr 1.4fr .6fr; }
.row-2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 14px; font-weight: 600; }
.field b, .check b { color: var(--accent); font-weight: 700; }
.field input, .field textarea, .select-block select { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .select-block select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.select-block { display: block; }
.select-block select { height: 44px; padding-right: 44px; border-radius: 10px; }
.bad input, .bad textarea, .bad select, .drop.bad { border-color: #e5484d !important; }
.check.bad span { color: #e5484d; }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { color: var(--accent); }
.drop-main { font-weight: 600; overflow-wrap: anywhere; }
.drop-main u { color: var(--accent); }
.drop-hint { font-size: 13px; color: var(--muted); max-width: 52ch; }
.preview { width: 100%; height: 40px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, background .15s; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input, .use-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: 14px; color: var(--muted); }
.form-msg.err { color: #e5484d; }
.form-done { max-width: 760px; padding: 28px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: var(--surface); }
.form-done h2 { margin: 0 0 8px; }
.form-done p { color: var(--muted); }
.form-done .btn { margin-right: 8px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 22px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 18px; margin: 28px 0 6px; }
.prose p { color: var(--muted); margin: 0 0 12px; }
.prose a, .fine a, .foot p a { color: var(--accent); }
@media (max-width: 640px) { .row-3, .row-2, .choice-row { grid-template-columns: 1fr; } .form fieldset { padding: 16px; } .form-foot .btn { width: 100%; justify-content: center; } }

/* Download card: optional email step */
.use-form { display: grid; gap: 10px; }
.use-email { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.use-email:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.use-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.4; }
.use-consent a { color: var(--accent); }
.use-actions { display: flex; align-items: center; gap: 14px; }
.use-no { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.use-no:hover { color: var(--text); text-decoration: underline; }
.use-err { margin: 0; font-size: 13px; color: #e5484d; }
.use-err:empty { display: none; }

/* ---- Admin ---- */
.adm-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 20px; }
.adm-tab { position: relative; padding: 12px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.adm-tab[aria-selected="true"] { color: var(--text); }
.adm-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.adm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.adm-count { color: var(--muted); font-weight: 500; }
.adm-days { margin-left: auto; }
.adm-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-kpi { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.adm-kpi b { display: block; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-kpi span { color: var(--muted); font-size: 13px; }
.adm-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.adm-card h2 { font-size: 16px; margin: 0 0 12px; }
.adm-wide { margin-bottom: 14px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-note { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }
.adm-empty { color: var(--muted); font-size: 14px; margin: 0; }
.adm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.adm-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.adm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.adm-bars b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.adm-days-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.adm-days-chart span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.adm-days-chart i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.adm-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.adm-filter { display: flex; gap: 6px; margin-bottom: 14px; }
.use-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.adm-sub { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; display: grid; gap: 10px; }
.adm-sub-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.adm-sub h3 { margin: 0; font-size: 17px; }
.adm-sub-meta { margin: 0; color: var(--muted); font-size: 14px; }
.adm-sub audio { width: 100%; height: 40px; }
.adm-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--surface-2); }
.adm-new { background: var(--accent-soft); color: var(--accent); }
.adm-accepted { background: rgba(48, 164, 108, .15); color: #30a46c; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; }
.adm-dl a { color: var(--accent); }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-actions .btn-ghost { height: 40px; font-size: 15px; }
.adm-email-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.adm-email-head p { margin: 0; }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table th { color: var(--muted); font-weight: 600; background: var(--surface); }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.off td { color: var(--muted); text-decoration: line-through; }
@media (max-width: 900px) { .adm-kpis { grid-template-columns: repeat(3, 1fr); } .adm-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .adm-kpis { grid-template-columns: repeat(2, 1fr); } }
.form-done .btn-ghost, .adm-actions .btn-ghost { height: 40px; font-size: 15px; padding: 0 16px; }
.adm-days-chart span { max-width: 36px; }
.adm-days-chart { justify-content: space-between; }

/* Submit page: one centred column */
.submit-page { max-width: 760px; margin-inline: auto; }
.submit-head { text-align: center; }
.submit-head .lede { margin-inline: auto; }
.submit-page .fine { text-align: center; }

/* ---- Mobile pass (ux-rulebook FRM-01, TCH-01, RD-01), 2026-11-28 ---- */
.field input, .field textarea, .select-block select, .use-email { font-size: 16px; }
@media (max-width: 640px) {
  .top-nav .btn { height: 44px; }
  .top .btn-primary { height: 44px; }
  .clip-actions .btn, .cta .btn { height: 44px; font-size: 15px; padding: 0 18px; }
  .crumbs a { display: inline-block; padding: 6px 0; }
  .use-go { height: 44px; }
  .use-no { min-height: 44px; padding: 0 6px; }
  .use-consent { min-height: 44px; align-items: center; }
  .adm-days select { font-size: 16px; }
  .adm-tab { padding: 14px 12px; }
  .foot p a { display: inline-block; padding: 4px 0; }
}

/* Submit page: record or upload (2026-11-28) */
.src-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.src-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.src-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.src-tabs button[aria-selected="true"] svg { color: var(--accent); }
.rec { display: grid; justify-items: center; gap: 12px; padding: 22px 16px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg); text-align: center; }
.rec.on { border-style: solid; border-color: #e5484d; }
.rec.bad { border-color: #e5484d; }
.rec-meter { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; max-width: 360px; height: 56px; }
.rec-meter i { flex: 1; height: 6%; min-height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: height .08s linear; }
.rec.on .rec-meter i { background: var(--accent); }
.rec-meter i.hot { background: #e5484d !important; }
.rec-btn { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 4px solid color-mix(in srgb, #e5484d 35%, var(--line)); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease); }
.rec-btn:active { transform: scale(.95); }
.rec-btn span { width: 52px; height: 52px; border-radius: 50%; background: #e5484d; transition: width .2s var(--ease), height .2s var(--ease), border-radius .2s var(--ease); }
.rec.on .rec-btn span { width: 26px; height: 26px; border-radius: 6px; }
.rec.on .rec-btn { animation: rec-pulse 1.4s ease-in-out infinite; }
@keyframes rec-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 50% { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); } }
.rec-time { margin: 0; font: 600 20px/1 var(--mono); font-variant-numeric: tabular-nums; }
.rec-time span { color: var(--muted); font-weight: 400; }
.rec-tip { margin: 0; max-width: 46ch; font-size: 14px; color: var(--muted); }
.rec-tip.warn { color: #e5484d; font-weight: 600; }
.rec-done { display: grid; gap: 10px; width: 100%; justify-items: center; }
.rec-done audio { width: 100%; height: 44px; }
.rec-done .btn-ghost { height: 44px; font-size: 15px; padding: 0 18px; }
.rec.has-take .rec-btn { display: none; }

/* Form dropdown (Moment): same component as the filters, shaped like the form fields */
.select-block .dd-btn { width: 100%; height: 44px; padding: 0 44px 0 14px; border-radius: 10px; background: var(--bg); font-size: 16px; }
.select-block.dd::after { right: 18px; }
.field-hint { font-size: 13px; color: var(--muted); }
.dd-list.dd-form { max-height: min(460px, 60vh); border-radius: 12px; }
.dd-form .dd-opt { min-height: 42px; font-size: 16px; border-radius: 8px; }

/* Footer centred (2026-11-28) */
.foot { text-align: center; }
.foot p { margin-inline: auto; max-width: 80ch; text-wrap: balance; }

/* Submit page: send button centred, message under it */
.submit-page .form-foot { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.submit-page .form-msg:empty { display: none; }

/* Submit page: tick box row and thanks box centred */
.submit-page .check { justify-content: center; text-align: center; max-width: 640px; margin-inline: auto; }
.submit-page .form-done { text-align: center; margin-inline: auto; }
.submit-page .form-done .btn { margin: 4px; }
.submit-page .check { display: block; }
.submit-page .check input { display: inline-block; vertical-align: -4px; margin: 0 10px 0 0; }
.submit-page .check span { display: inline; }
