/* audizer.com. Palette follows the app (crates/app/src/theme.rs): graphite wells and one amber accent. */
/* Self-hosted, subset, OFL 1.1 (see /fonts/OFL-*.txt). Display: Bricolage Grotesque. Text: Instrument Sans. Numbers: IBM Plex Mono.
   The *-fb faces are local fallbacks scaled to the web fonts' widths so text doesn't reflow when they swap in. */
@font-face { font-family: 'Adz Display'; src: url('/fonts/adz-display-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Display'; src: url('/fonts/adz-display-600.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Text'; src: url('/fonts/adz-text-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Text'; src: url('/fonts/adz-text-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Adz Text'; src: url('/fonts/adz-text-600.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Mono'; src: url('/fonts/adz-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Mono'; src: url('/fonts/adz-mono-500.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Adz Display fb'; src: local('Helvetica Neue Bold'), local('Arial Bold'); size-adjust: 96%; }
@font-face { font-family: 'Adz Text fb'; src: local('Helvetica Neue'), local('Arial'); size-adjust: 100%; }
@font-face { font-family: 'Adz Mono fb'; src: local('Menlo'), local('Courier New'); size-adjust: 100%; }
:root {
  --bg0: #121315; --bg1: #191b1e; --bg2: #202327; --bg3: #2a2e33;
  --line: #2c3035; --line-strong: #3a3f46;
  --text: #d9dce1; --dim: #9aa0a9; --faint: #6b717a; --ink: #ece9e2;
  --amber: #e3a545; --amber-dim: #5a4828; --ok: #58b98a; --err: #e06a5e;
  --display: 'Adz Display', 'Adz Display fb', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Adz Text', 'Adz Text fb', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Adz Mono', 'Adz Mono fb', Menlo, monospace;
  --wrap: 1200px; --gut: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-feature-settings: 'kern'; margin: 0; background: var(--bg0); color: var(--text); font: 400 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::selection { background: var(--amber-dim); color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #111; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font: 700 clamp(40px, 6.6vw, 80px)/1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
h2 { font: 700 clamp(28px, 3.7vw, 44px)/1.08 var(--display); letter-spacing: -0.022em; text-wrap: balance; }
h3 { font: 600 17px/1.35 var(--sans); letter-spacing: 0; }
p { margin: 0 0 1.05em; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--text); max-width: 39em; }
.dim { color: var(--dim); }
.label { font: 500 11.5px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--dim); }
.label b { color: var(--amber); font-weight: 500; }
code, kbd { font: 400 .88em var(--mono); background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--ink); white-space: nowrap; }
kbd { border-bottom-width: 2px; }
pre { font: 400 14px/1.6 var(--mono); background: var(--bg1); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; overflow-x: auto; color: var(--ink); }
pre code { background: none; border: 0; padding: 0; white-space: pre; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(18, 19, 21, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand img { height: 26px; width: auto; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.top nav a { font: 500 14.5px var(--sans); color: var(--dim); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; -webkit-tap-highlight-color: transparent; }
.menu-btn i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.top.open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .menu-btn i:nth-child(2) { opacity: 0; }
.top.open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); max-height: calc(100dvh - 58px); overflow-y: auto; overscroll-behavior: contain; }
.mnav[hidden] { display: none; }
.top .mnav .wrap { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; gap: 0; padding-top: 6px; padding-bottom: 22px; text-align: left; }
.mnav a:not(.btn) { font: 600 20px/1.2 var(--display); color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav a[aria-current] { color: var(--amber); }
.mnav .btn { margin-top: 20px; }
html.nav-open, html.nav-open body { overflow: hidden; }
.top.open { background: var(--bg0); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--amber); color: #17130a !important; font: 600 16px var(--sans); padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 1px solid var(--amber); }
.btn:hover { background: #f0b65a; border-color: #f0b65a; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn small { font: 400 12.5px var(--mono); opacity: .75; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ruler: the timeline's bar ruler, used as the section divider */
.ruler { height: 22px; border-top: 1px solid var(--line); background:
  repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 140px),
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 35px);
  background-size: auto 100%, auto 7px; background-repeat: repeat-x; background-position: left top; opacity: .9; }

/* sections */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .label { margin-bottom: 22px; display: block; }
.hero h1 { max-width: 11em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 24px; }
.hero .shot { margin-top: clamp(40px, 6vw, 72px); }
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band + .band, .ruler + .band { border-top: 0; }
.band.alt { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { max-width: 20em; }
.band h2 + p, .band h2 + .lede { margin-top: 18px; }
.sect-h { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { background: var(--bg0); padding: 24px 24px 26px; display: block; text-decoration: none; color: var(--text); }
.band.alt .cell { background: var(--bg1); }
a.cell:hover { background: var(--bg2); color: var(--text); }
a.cell:hover h3 { color: var(--amber); }
.cell h3 { margin-bottom: 8px; }
.cell p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.cell .label { display: block; margin-bottom: 14px; }
.more { display: inline-block; margin-top: 22px; font: 500 15px var(--sans); }

/* screenshots */
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--bg1); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.shot img { width: 100%; }
.shot figcaption, figure.detail figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--dim); max-width: 60em; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber-dim); padding: 4px 6px 3px; border-radius: 2px; margin-right: 10px; white-space: nowrap; position: relative; top: -1px; }
figure.detail { margin: 0; }
figure.detail img { border: 1px solid var(--line-strong); border-radius: 6px; width: 100%; }

/* lists */
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 13px 0 13px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li b { color: var(--ink); font-weight: 600; }
.asks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.asks li { font: italic 400 16.5px/1.45 var(--sans); color: var(--ink); padding: 12px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; }
.asks li::before { content: '“'; color: var(--amber); }
.asks li::after { content: '”'; color: var(--amber); }

/* readout tables (measurements) */
.tablewrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--bg1); white-space: nowrap; }
td { color: var(--text); }
td:first-child { color: var(--ink); }
table, .tool input, output, .big { font-variant-numeric: tabular-nums; }
.readout td:not(:first-child), .readout th:not(:first-child), td.n, th.n { font-family: var(--mono); font-size: 14.5px; white-space: nowrap; text-align: right; }
.readout td.after { color: var(--amber); }
th.n, .readout th:not(:first-child) { font-size: 11px; }
.tool th { white-space: normal; }
.caption { font-size: 14px; color: var(--dim); margin-top: 12px; max-width: 56em; }

/* prose pages and guides */
.crumbs { font: 400 12.5px var(--mono); color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.doc { padding: clamp(36px, 6vw, 68px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; max-width: 16em; }
.doc .dek { font-size: 19px; color: var(--dim); margin: 18px 0 0; max-width: 38em; line-height: 1.5; }
.meta { font: 400 12.5px var(--mono); color: var(--faint); margin-top: 22px; }
.prose { max-width: 720px; margin-top: 36px; }
.prose.wide { max-width: 860px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 1.8em 0 .5em; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--amber); font-family: var(--mono); font-size: .88em; }
.prose strong { color: var(--ink); font-weight: 600; }
.answer { border-left: 2px solid var(--amber); padding: 4px 0 4px 20px; margin: 0 0 1.6em; }
.answer p { font: 400 19.5px/1.55 var(--sans); color: var(--ink); margin: 0 0 .6em; }
.answer p:last-child { margin: 0; }
.inapp { background: var(--bg1); border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px 8px; margin: 2.2em 0; }
.inapp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 500 11.5px var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--amber); }
.inapp p, .inapp li { font-size: 16px; }
.note { border: 1px dashed var(--line-strong); border-radius: 4px; padding: 16px 18px 4px; margin: 1.6em 0; font-size: 15.5px; color: var(--dim); }
.note b { display: block; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.faq { margin-top: 3em; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 1.3em; }
.faq dt { font: 600 17px/1.4 var(--sans); color: var(--ink); margin-top: 1.3em; }
.faq dd { margin: .4em 0 0; color: var(--text); }
.related { margin-top: 3em; }
.related .label { display: block; margin-bottom: 14px; }
.getit { margin-top: 3em; padding: 26px; border: 1px solid var(--line-strong); border-radius: 4px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; background: var(--bg1); }
.getit p { margin: 0; max-width: 32em; font-size: 16px; }
.getit p b { color: var(--ink); font: 600 23px/1.2 var(--display); letter-spacing: -0.02em; display: block; margin-bottom: 4px; }

/* index lists */
.index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 32px; padding: 16px 0; text-decoration: none; align-items: baseline; }
.index a b { font: 600 19px/1.25 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.index a span { font-size: 15px; color: var(--dim); line-height: 1.5; }
.index a:hover b { color: var(--amber); }
.cat { margin-top: 56px; }
.cat > .label { display: block; margin-bottom: 14px; }
.catnav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.catnav a { font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.catnav a:hover { color: var(--amber); }

/* tools */
.tool { background: var(--bg1); border: 1px solid var(--line-strong); border-radius: 12px; padding: 24px; margin: 32px 0; max-width: 940px; }
.tool .row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; margin-bottom: 20px; }
.tool label { display: grid; gap: 7px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tool input, .tool select { font: 500 20px var(--mono); color: var(--amber); background: var(--bg0); border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; width: 9.5ch; min-width: 130px; -moz-appearance: textfield; appearance: none; }
.tool select { width: auto; font-size: 16px; color: var(--ink); padding: 12px 34px 12px 12px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.tool input::-webkit-outer-spin-button, .tool input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tool input:focus, .tool select:focus { outline: none; border-color: var(--amber); }
.tool button { font: 500 14px var(--sans); color: var(--ink); background: var(--bg3); border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 16px; cursor: pointer; }
.tool button:hover { border-color: var(--amber); }
.tool .tablewrap { margin: 0; background: var(--bg0); }
.tool output, .big { display: block; font: 500 30px/1.2 var(--mono); color: var(--amber); }
.tool .out { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tool .out > div { background: var(--bg0); padding: 14px 16px; }
.tool .out .label { display: block; margin-bottom: 6px; }
.tool .hint { font-size: 14px; color: var(--dim); margin: 14px 0 0; }
td.hl, tr.hl td { color: var(--amber); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 44px; font-size: 14.5px; color: var(--dim); }
.foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.foot .cols div { display: grid; gap: 9px; align-content: start; }
.foot .cols b { font: 500 11.5px var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.family { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.family b { font: 500 11.5px var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.family a span { color: var(--faint); }
.fine { font-size: 13px; color: var(--faint); max-width: 70em; margin: 0 0 8px; line-height: 1.55; }
.fine a { text-decoration: underline; text-decoration-color: var(--line-strong); }

/* 404 */
.lost { padding: 18vh 0 22vh; }
.lost .big { font-size: clamp(60px, 14vw, 150px); line-height: 1; margin-bottom: 24px; }

/* ---- product pages ---- */
.top nav .has { position: relative; }
.kicker { font: 600 13px/1.3 var(--sans); letter-spacing: .01em; color: var(--amber); display: block; margin-bottom: 12px; }
.hero.c { text-align: center; }
.hero.c h1, .hero.c .lede { margin-left: auto; margin-right: auto; }
.hero.c .ctas { justify-content: center; }
.hero .sub { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* "say it" console: what you type, what happens */
.say { display: grid; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.say > div { display: grid; grid-template-columns: minmax(0, 4fr) 28px minmax(0, 7fr); gap: 14px; align-items: center; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.say q { quotes: none; font: 500 17px/1.3 var(--mono); color: var(--ink); }
.say q::before { content: '› '; color: var(--amber); }
.say i { font-style: normal; color: var(--faint); text-align: center; }
.say span { color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.say span b { color: var(--ink); font-weight: 600; }

/* feature rows: picture one side, words the other */
.frow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5.5vw, 72px) 0; }
.frow + .frow { border-top: 1px solid var(--line); }
.frow.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.frow.flip > .pic { order: 2; }
.frow .pic { margin: 0; }
.frow .pic img { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .9); background: var(--bg1); }
.frow h2 { font-size: clamp(26px, 3.1vw, 38px); }
.frow p { margin-top: 16px; color: var(--text); }
.frow ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.frow li { padding-left: 22px; position: relative; font-size: 16px; line-height: 1.5; color: var(--dim); }
.frow li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--amber)); }
.frow li b { color: var(--ink); font-weight: 600; }
.frow .more { margin-top: 20px; }

/* device grid */
.bigpic { margin: 0 0 clamp(20px, 3vw, 36px); }
.bigpic .pic { margin: 0; }
.bigpic img { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .9); }
.devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
.dev { display: block; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; text-decoration: none; color: var(--text); }
a.dev:hover { border-color: var(--line-strong); background: var(--bg2); color: var(--text); }
.dev svg { width: 100%; height: 54px; display: block; margin-bottom: 14px; }
.dev b { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 4px; }
.dev span { font-size: 14.5px; line-height: 1.45; color: var(--dim); display: block; }

/* fact strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: var(--bg0); padding: 20px 22px; }
.facts b { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.facts span { font-size: 14.5px; color: var(--dim); line-height: 1.45; display: block; }

/* card grids (features index, guide hubs) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--line-strong); color: var(--text); }
a.card:hover h3 { color: var(--amber); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
.card div { padding: 18px 20px 20px; }
.card h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hub > div { background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 14px; }
.hub.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub.two > div { padding: 6px 22px; }
.hub.two li:first-child a { border-top: 0; }
.cat h2 { font-size: clamp(24px, 2.8vw, 32px); }
.hub h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.hub p { font-size: 14.5px; color: var(--dim); margin: 0 0 12px; line-height: 1.45; }
.hub ul { list-style: none; margin: 0; padding: 0; }
.hub li a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 15.5px; line-height: 1.35; color: var(--text); }
.hub li a:hover { color: var(--amber); }

/* effect reference blocks */
.fx { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(32px, 5vw, 60px) 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.fx .pic img { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg1); }
.fx h2 { font-size: clamp(24px, 2.8vw, 32px); }
.fx p { margin-top: 12px; }
.fx dl { margin: 18px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; font-size: 15px; }
.fx dt, .fx dd { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.fx dt { color: var(--ink); font-weight: 600; padding-right: 20px; }
.fx dd { color: var(--dim); }
.fx .try { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13.5px/1 var(--mono); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; white-space: nowrap; max-width: 100%; }
.chip::before { content: '› '; color: var(--amber); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font: 500 14px var(--sans); color: var(--dim); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.jump a:hover { color: var(--ink); border-color: var(--line-strong); }
.cta-band { text-align: center; }
.cta-band h2, .cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .ctas { justify-content: center; }

@media (max-width: 860px) {
  .frow, .frow.flip, .fx { grid-template-columns: minmax(0, 1fr); }
  .frow.flip > .pic { order: 0; }
  .cards, .hub, .hub.two { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .say > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .say i { display: none; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index a { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  :root { --gut: 18px; }
  body { font-size: 16.5px; }
  .hide-sm { display: none; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 14px; }
  .top nav a:not(.btn) { display: none; }
  .menu-btn { display: flex; }
  .btn { flex-wrap: wrap; row-gap: 2px; text-align: center; }
  .btn small { white-space: nowrap; }
  .chip { white-space: normal; line-height: 1.35; }
  .brand img { height: 22px; }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn.sm { width: auto; }
  .answer p { font-size: 18px; }
  .tool { padding: 18px 16px; }
  .tool input { min-width: 110px; }
  th, td { padding: 9px 10px; }
  th { letter-spacing: .06em; font-size: 10.5px; white-space: normal; }
  .readout td:not(:first-child), .readout th:not(:first-child) { white-space: normal; font-size: 13.5px; }
  .readout th:not(:first-child) { font-size: 10.5px; }
  .prose table:not(.readout) { min-width: 540px; }
  .tool table { min-width: 0; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- before / after demo player ---------- */
.ab { background: var(--bg1); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 28px); margin-top: 26px; }
.ab-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-pick button { font: 600 17px var(--sans); color: var(--ink); background: var(--bg0); border: 2px solid var(--line-strong); border-radius: 6px; padding: 14px 16px; cursor: pointer; text-align: left; }
.ab-pick button small { display: block; font-weight: 400; font-size: 13px; color: var(--dim); margin-top: 2px; }
.ab-pick button[aria-pressed="true"] { border-color: var(--amber); }
.ab-pick button[data-v="after"][aria-pressed="true"] { border-color: var(--ok); }
.ab-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.ab-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg0); cursor: pointer; display: grid; place-items: center; }
.ab-play svg { width: 18px; height: 18px; fill: currentColor; }
.ab-wave { position: relative; flex: 1; height: 52px; cursor: pointer; touch-action: none; }
.ab-wave canvas { width: 100%; height: 100%; display: block; }
.ab-time { flex: none; font: 400 13px var(--mono); color: var(--dim); min-width: 92px; text-align: right; }
.ab-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--dim); }
.ab-foot label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.ab-foot kbd { font-size: 12px; }
.ab-credit { font-size: 13px; color: var(--faint); margin-top: 14px; line-height: 1.5; }
.ab-why { color: var(--faint); }
@media (max-width: 560px) { .ab-why { display: none; } .ab-time { display: none; } .ab-pick button { font-size: 15px; padding: 12px; } .ab-keys { display: none; } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- instrument sound buttons ---------- */
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.snd { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg1); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; color: var(--text); cursor: pointer; font: inherit; }
.snd:hover { border-color: var(--line-strong); }
.snd.on { border-color: var(--amber); }
.snd-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg0); display: grid; place-items: center; }
.snd-ic svg { width: 13px; height: 13px; fill: currentColor; }
.snd-t b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.snd-t small { color: var(--dim); font-size: 13px; }
@media (max-width: 560px) { .snd-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .snd { padding: 10px; gap: 9px; } .snd-ic { width: 30px; height: 30px; } .snd-t b { font-size: 14px; } .snd-t small { font-size: 12px; } }

/* ---------- comparison pages ---------- */
.cmp-h { font-size: clamp(24px, 2.8vw, 30px); margin: 2.2em 0 .7em; }
.cmp table { table-layout: fixed; }
.cmp th[scope="row"] { width: 19%; white-space: normal; font-size: 11px; line-height: 1.4; }
.cmp thead th:not(:first-child) { font-size: 12px; color: var(--ink); }
.cmp td { font-size: 15px; line-height: 1.5; }
.cmp td:first-child { color: var(--text); }
.cmp td b { color: var(--ink); font-weight: 600; }
.cmpdoc .index { padding-left: 0; }
.sources { margin-top: 2.6em; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--dim); }
.sources summary { cursor: pointer; font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sources summary:hover { color: var(--ink); }
.sources ul { padding-left: 1.1em; margin: 14px 0; }
.sources li { margin-bottom: .45em; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .cmp table { table-layout: auto; }
  .cmp thead { display: none; }
  .cmp tr { display: block; padding: 12px 12px 6px; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp th[scope="row"] { display: block; width: auto; padding: 0 0 6px; border: 0; background: none; }
  .cmp td { display: block; padding: 0 0 8px; border: 0; font-size: 14.5px; }
  .cmp td::before { content: attr(data-h); display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 2px; }
  .cmp td + td::before { color: var(--faint); }
}

/* ---------- guide layout ---------- */
.guide .g-head { max-width: 760px; }
.g-meta { font: 400 12.5px/1.5 var(--mono); color: var(--faint); margin: 18px 0 0; }
.g-has { color: var(--amber); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; margin-top: 36px; }
.g-layout > .prose { margin-top: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); }
.g-prose > * { grid-column: 1; }
.g-prose > .gdev, .g-prose > .dev-ab { grid-column: 1 / -1; max-width: 920px; }
.toc { display: none; }
@media (min-width: 1180px) {
  .g-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: block; position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; }
  .toc .label { display: block; margin-bottom: 12px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.35; color: var(--dim); text-decoration: none; }
  .toc a:hover { color: var(--ink); }
  .toc a[aria-current] { color: var(--ink); border-left-color: var(--amber); }
}
.g-prose > p, .g-prose > ul, .g-prose > ol { max-width: 680px; }
.g-prose h2 { scroll-margin-top: 80px; }
.g-prose .answer { margin-bottom: 2em; }

/* callouts */
.callout { border: 1px solid var(--line); border-radius: 6px; background: var(--bg1); padding: 20px 22px 6px; margin: 2.2em 0; }
.callout > h2 { font: 600 13px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.co-ic { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; }
.co-start { border-left: 3px solid var(--ok); }
.co-start .co-ic { background: var(--ok); -webkit-mask: radial-gradient(circle, #000 3px, transparent 3.5px), radial-gradient(circle, transparent 7px, #000 7.5px); mask: radial-gradient(circle, #000 3px, transparent 3.5px), radial-gradient(circle, transparent 7px, #000 7.5px); }
.co-mistakes { border-left: 3px solid var(--err); }
.co-mistakes .co-ic { background: var(--err); clip-path: polygon(50% 4%, 96% 92%, 4% 92%); border-radius: 0; }
.callout .tablewrap { background: var(--bg0); }
.callout ul { padding-left: 1.1em; }
.callout p, .callout li { font-size: 16px; }

/* end block */
.doit { margin-top: 3.2em; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line-strong); border-radius: 8px; background: linear-gradient(180deg, var(--bg2), var(--bg1)); }
.doit-t { display: flex; gap: 18px; align-items: flex-start; }
.doit-t img { flex: none; margin-top: 4px; }
.doit h2 { font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.doit p { margin: 0; font-size: 16px; color: var(--text); max-width: 34em; }
.doit-b { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.doit-more { font-size: 14px; color: var(--dim); }

/* ---------- guide devices ---------- */
.gdev, .dev-ab { margin: 2.4em 0 2.6em; position: relative; }
.dev-ab .ab { margin-top: 0; }
.gdev { --panel: #24272b; --well: #0e0f11; --g: #23262a; --wave: #3b4048; --wave-in: rgba(150, 158, 168, .38); --gr: #e2664f; --spec: rgba(140, 150, 162, .16); --spec-line: rgba(170, 178, 188, .45);
  background: var(--panel); border: 1px solid #353a41; border-radius: 10px; box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); padding: 0 0 14px; }
.gdev figcaption, .dev-ab figcaption { margin: 12px 16px 0; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.dev-ab figcaption { margin: 12px 0 0; }
.dev-credit { margin: 8px 16px 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.dev-ab .dev-credit { margin: 8px 0 0; }
.dev-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #31353b; flex-wrap: wrap; min-height: 56px; }
.dev-name { font: 500 15px/1.2 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dev-name span { color: var(--dim); font-weight: 400; }
.dev-st { font: 400 12px var(--mono); color: var(--dim); }
.dev-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #17181a; display: grid; place-items: center; cursor: pointer; }
.dev-play svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
.dev-play.on { background: var(--acc); }
.dev-play.on svg { margin-left: 0; }
.gdev:not(.live) .js { visibility: hidden; }
.dev-tabs { margin-left: auto; display: flex; background: #1b1d20; border: 1px solid #353a41; border-radius: 7px; padding: 3px; gap: 2px; }
.dev-tabs button { font: 500 13.5px var(--sans); color: var(--dim); background: none; border: 0; border-radius: 5px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.dev-tabs button[aria-selected="true"] { background: #33373e; color: var(--ink); }
.dev-tabs button[data-m="ai"][aria-selected="true"] { color: var(--ok); }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.gdev[data-mode="ai"] .dev-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.gdev[data-mode="ai"] .dev-chips { display: none; }
.dev-panel { padding: 12px 12px 0; min-width: 0; }

/* views: dark wells that draw what the device is doing */
.dv-row { display: flex; gap: 10px; align-items: stretch; }
.dv-view { position: relative; background: var(--well); border: 1px solid #2a2e33; border-radius: 4px; overflow: hidden; height: 200px; flex: 1 1 auto; min-width: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.dv-view > svg, .dv-view > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dv-sq { flex: 0 0 200px; width: 200px; cursor: ew-resize; }
.dv-view .g { stroke: var(--g); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dv-view .g.z { stroke: #30343a; }
.dv-view .g.f { stroke: #1a1c1f; }
.dv-lab { position: absolute; left: 6px; top: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); pointer-events: none; background: rgba(13, 14, 16, .78); padding: 3px 5px; border-radius: 3px; z-index: 1; }
.dv-lab b { font-weight: 500; margin-left: 8px; }
.dv-labr { left: auto; right: 9px; text-transform: none; letter-spacing: 0; }
.dv-tag { position: absolute; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); pointer-events: none; white-space: nowrap; background: rgba(13, 14, 16, .78); padding: 2px 4px; border-radius: 3px; z-index: 1; }
.dv-axl { position: absolute; font: 400 10px/1 var(--mono); color: #6b717a; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }
.dv-axr { left: auto !important; right: 5px; transform: translateY(-50%); }
.dv-legend { position: absolute; right: 8px; top: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.dv-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.dv-legend .in { background: #8c939c; } .dv-legend .out { background: var(--acc); } .dv-legend .gr { background: var(--gr); }
.dv-diag { stroke: #4a4f57; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dv-curve { fill: none; stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dv-fill { fill: var(--acc); opacity: .12; }
.dv-thr { stroke: var(--acc); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.dv-gate .dv-thr { stroke-dasharray: none; stroke-width: 1.5; }
.dv-dot { fill: var(--well); stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dv-thrlab { top: 40px; margin-left: 6px; }
.dv-gate .dv-thrlab { left: 9px; margin: -16px 0 0; top: auto; }
.dv-ratiolab { left: 9px; top: 24px; color: var(--dim); }
.dv-wave { opacity: 1; }
.gdev.has-hist .dv-wave { opacity: 0; transition: opacity .3s; }
.dv-hist canvas, .dv-gate canvas { z-index: 1; }
.dv-gr { flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); color: var(--dim); }
.dv-grbar { flex: 1; width: 12px; background: var(--well); border: 1px solid #2a2e33; border-radius: 2px; position: relative; overflow: hidden; }
.dv-grbar i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--gr); transform-origin: top; transform: scaleY(0); }
.dv-gr output { font: 500 11px var(--mono); color: var(--gr); min-height: 11px; }
.dv-badge { position: absolute; right: 8px; top: 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: #23262a; border: 1px solid #353a41; padding: 4px 7px; border-radius: 3px; z-index: 2; }
.dv-badge.open { color: #101112; background: var(--acc); border-color: var(--acc); }
.dv-band { fill: var(--acc); opacity: .08; }
.dv-edge { stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dv-bandlab { top: 24px; margin-left: 9px; }
.dv-bandlab.flip { transform: translateX(-100%); margin-left: -9px; }
.dv-listen { align-self: center; }
.dv-deess { cursor: ew-resize; }
.dv-gate { cursor: ns-resize; }

/* knobs */
.dv-knobs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 12px 0 4px; }
.kn { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border-radius: 6px; cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; position: relative; }
.kn:focus-visible { box-shadow: 0 0 0 2px var(--acc); }
.kn-s { width: 48px; height: 48px; overflow: visible; display: block; }
.kn-t { fill: none; stroke: #3a3f46; stroke-width: 3; stroke-linecap: round; }
.kn-a { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; }
.kn-c { fill: url(#none) #2b2f34; stroke: #1a1c1f; stroke-width: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.kn-p { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.kn.drag .kn-c, .kn:hover .kn-c { fill: #31353b; }
.kn-l { font: 500 10.5px/1.1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 2px; text-align: center; }
.kn-v { font: 400 12px/1.2 var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kn.na { opacity: .35; pointer-events: none; }
.kn-pop { position: absolute; z-index: 5; background: #2f3338; border: 1px solid #454a52; border-radius: 8px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); display: grid; gap: 8px; }
.kn-pop label { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.kn-pop output { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.kn-pop input { width: 100%; accent-color: var(--acc); height: 30px; }
.kn-pop button { justify-self: end; font: 500 13px var(--sans); background: #3b4047; color: var(--ink); border: 0; border-radius: 5px; padding: 6px 12px; }

/* segmented, toggles, chips */
.dv-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 6px 0 4px; }
.dv-opts .label, .lm-ctl .label { font-size: 10.5px; }
.dv-in { padding: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.seg { display: inline-flex; background: #1b1d20; border: 1px solid #353a41; border-radius: 6px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { font: 500 12.5px var(--sans); color: var(--dim); background: none; border: 0; border-radius: 4px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.seg button[aria-checked="true"] { background: #3a3f47; color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.dv-toggle { font: 500 12.5px var(--sans); color: var(--dim); background: #2b2f34; border: 1px solid #3a3f46; border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.dv-toggle[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #121314; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 12px 0; margin-top: 8px; border-top: 1px solid #31353b; }
.dev-chips .label { font-size: 10.5px; margin-right: 4px; }
.dev-chips button { font: 500 13px var(--sans); color: var(--ink); background: #2b2f34; border: 1px solid #3a3f46; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.dev-chips button:hover { border-color: var(--acc); }
.dev-chips button[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.dev-chips .dev-reset { background: none; color: var(--dim); border-style: dashed; }
.gdev button:focus-visible, .dev-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }

/* EQ */
.dv-eqv { height: 260px; }
.dv-sum { fill: none; stroke: #f1ede6; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dv-bfill { fill: var(--bc); fill-opacity: .13; stroke: var(--bc); stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gdev.bypassed .dv-sum, .gdev.bypassed .dv-bfill, .gdev.bypassed .eq-h { opacity: .25; }
.eq-h { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bc); color: #141516; font: 600 11px/22px var(--mono); text-align: center; border: 0; padding: 0; cursor: grab; z-index: 2; box-shadow: 0 0 0 2px rgba(14, 15, 17, .8); touch-action: none; }
.eq-h::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; }
.eq-h.sel { box-shadow: 0 0 0 2px var(--well), 0 0 0 4px var(--bc); }
.eq-h.off { opacity: .4; }
.eq-h.drag { cursor: grabbing; }
.eq-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 10px; padding: 8px 10px; background: #1d1f23; border: 1px solid #2f3338; border-left: 3px solid var(--bandc, var(--acc)); border-radius: 4px; }
.eq-strip .dv-knobs { padding: 0; }
.eq-pick { display: flex; gap: 4px; }
.eq-pick button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #2b2f34; color: var(--dim); font: 600 12px var(--mono); cursor: pointer; }
.eq-pick button[aria-checked="true"] { background: var(--bc); color: #141516; }

/* loudness */
.dv-lmv { height: 220px; }
.dv-st { fill: none; stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dv-tgt { stroke: #4a5058; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.dv-tgt.on { stroke: var(--ok); stroke-dasharray: none; stroke-width: 1.5; }
.dv-tgl { position: absolute; left: 9px; transform: translateY(-115%); font: 500 10px/1 var(--mono); color: #6b717a; white-space: nowrap; }
.dv-tgl.on { color: var(--ok); }
.dv-tgl.mid { left: 46%; }
.dv-tgl.below { transform: translateY(20%); }
.dv-gate .dv-thrlab { text-transform: none; letter-spacing: .04em; }
.dv-ph { stroke: var(--ink); stroke-width: 1; opacity: .6; vector-effect: non-scaling-stroke; }
.lm-boxes { flex: 0 0 180px; display: grid; gap: 6px; }
.lm-box { background: var(--well); border: 1px solid #2a2e33; border-radius: 4px; padding: 7px 10px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px; }
.lm-box span { grid-column: 1 / -1; font: 500 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.lm-box b { font: 400 22px/1.2 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.lm-box small { font: 400 12px var(--mono); color: var(--dim); }
.lm-ctl { display: grid; gap: 10px; padding: 12px 0 4px; }
.lm-ctl > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lm-ctl .label { min-width: 54px; }
.lm-norm { justify-content: flex-start; }
.lm-say { margin: 0; font-size: 14.5px; color: var(--text); flex: 1 1 260px; }

/* reverb, delay, latency */
.dv-rv .dv-hi { fill: none; stroke: #56b7c9; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dv-hit { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rv-lo { color: var(--acc); } .rv-hi { color: #56b7c9; }
.dv-tap { fill: var(--acc); }
.dv-dry { fill: var(--ink); }
.dv-latv .lt-in { fill: #5b8def; } .dv-latv .lt-out { fill: #a48be6; } .dv-latv .lt-conv { fill: #6b717a; }
.lt-play { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lt-hear { stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lt-t1 { color: var(--ink); }
.lt-t1, .lt-t2 { text-transform: none; letter-spacing: .02em; }
.lt-k { position: absolute; left: 9px; font: 400 10.5px/1 var(--mono); color: var(--dim); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.lt-k i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.lt-k i:first-child { margin-left: 0; }
.lt-k .lt-in { background: #5b8def; } .lt-k .lt-out { background: #a48be6; } .lt-k .lt-conv { background: #6b717a; }
.dv-lat .lm-boxes { flex-basis: 170px; }

/* assistant panel: a compact replica of the app's */
.ai[hidden] { display: none; }
.ai { background: #1c1e21; display: flex; flex-direction: column; min-width: 0; margin: 12px 12px 0 0; border: 1px solid #31353b; border-radius: 6px; height: max(var(--panel-h, 400px), 400px); overflow: hidden; }
.ai-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #2c3035; font: 500 15px var(--sans); color: var(--ink); }
.ai-st { display: inline-flex; align-items: center; gap: 6px; font: 400 13px var(--sans); color: var(--dim); }
.ai-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ai-st.busy i { background: var(--amber); animation: aiPulse 1s infinite; }
@keyframes aiPulse { 50% { opacity: .35; } }
.ai-demo { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border: 1px solid #3a3f46; border-radius: 3px; padding: 4px 6px; }
.ai-log { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; flex: 1; overscroll-behavior: contain; }
.ai-log:empty::before { content: 'Tap a request below. The assistant reads the device, measures, and makes the moves.'; font-size: 13.5px; color: var(--faint); line-height: 1.45; }
.ai-me { align-self: stretch; background: #2a2d32; border-radius: 6px; padding: 9px 11px; font-size: 14.5px; color: var(--ink); }
.ai-step { border-left: 3px solid var(--ok); background: #232629; border-radius: 0 4px 4px 0; padding: 5px 9px; font-size: 12.5px; line-height: 1.4; color: var(--text); animation: aiIn .25s ease-out; }
@keyframes aiIn { from { opacity: 0; transform: translateY(4px); } }
.ai-say { font-size: 14px; line-height: 1.5; color: var(--ink); margin-top: 4px; }
.ai-meta { font: 400 11.5px var(--mono); color: #6b717a; }
.ai-asks { padding: 8px 12px; border-top: 1px solid #2c3035; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-asks .label { width: 100%; font-size: 10px; }
.ai-ask { font: 400 13px var(--sans); color: var(--ink); background: #2a2d32; border: 1px solid #3a3f46; border-radius: 999px; padding: 6px 11px; cursor: pointer; text-align: left; }
.ai-ask:hover:not(:disabled) { border-color: var(--ok); }
.ai-ask:disabled { opacity: .5; cursor: default; }
.ai-foot { display: flex; gap: 6px; padding: 0 12px 8px; }
.ai-foot button { font: 500 12.5px var(--sans); color: var(--ink); background: #2b2f34; border: 1px solid #3a3f46; border-radius: 5px; padding: 6px 10px; cursor: pointer; }
.ai-foot button:disabled { opacity: .4; cursor: default; }
.ai-note { margin: 0; padding: 8px 12px 10px; font-size: 12px; line-height: 1.45; color: var(--faint); border-top: 1px solid #2c3035; }

@media (max-width: 860px) {
  .gdev[data-mode="ai"] .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .ai { margin: 12px 12px 0; height: 440px; }
}
@media (max-width: 600px) {
  .gdev { margin-left: calc(-1 * var(--gut) + 6px); margin-right: calc(-1 * var(--gut) + 6px); border-radius: 8px; }
  .dev-bar { padding: 8px 10px; gap: 8px 10px; }
  .dev-tabs { margin-left: 0; width: 100%; }
  .dev-tabs button { flex: 1; padding: 8px 6px; }
  .dev-panel { padding: 10px 8px 0; }
  .dv-view { height: 160px; }
  .dv-row { gap: 6px; }
  .dv-sq { flex-basis: 132px; width: 132px; }
  .dv-legend { display: none; }
  .dv-eqv { height: 210px; }
  .dv-lmv { height: 170px; }
  .dv-row.dv-loud, .dv-row.dv-lat { flex-direction: column; }
  .lm-boxes { grid-template-columns: 1fr 1fr; flex-basis: auto; }
  .lm-box b { font-size: 19px; }
  .kn { width: 58px; }
  .kn-s { width: 42px; height: 42px; }
  .gdev .dv-knobs { gap: 4px 2px; }
  .kn-l { font-size: 9.5px; letter-spacing: .06em; }
  .kn-v { font-size: 11px; }
  .eq-strip { gap: 8px; padding: 8px 6px; }
  .dv-gr { flex-basis: 26px; }
  .doit-t img { display: none; }
  .lt-k { display: none; }
  .dv-tgl.mid { display: none; }
  .dv-lat .lm-boxes { grid-template-columns: repeat(3, 1fr); }
  .dv-lat .lm-box small { font-size: 10px; }
  .seg button { padding: 6px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ai-step { animation: none; } .ai-st.busy i { animation: none; } .gdev.has-hist .dv-wave { transition: none; } }

.snd.rec { display: inline-flex; float: right; padding: 6px 12px 6px 6px; gap: 8px; margin: -6px 0 0 12px; }
.snd.rec .snd-ic { width: 26px; height: 26px; } .snd.rec .snd-ic svg { width: 10px; height: 10px; } .snd.rec .snd-t b { font-size: 13.5px; }
@media (max-width: 560px) { .snd.rec { float: none; display: flex; margin: 10px 0 0; width: max-content; } }

/* ---------- AnyRig page: the panel's stealth look (near-black, hairlines, one cold accent) ---------- */
body.phantom { --bg0: #08090b; --bg1: #0c0e11; --bg2: #111419; --bg3: #171b21; --line: #1a1d22; --line-strong: #2a2f37; --ink: #e4e9ee; --text: #b9c1ca; --dim: #7f8894; --faint: #4c535c; --amber: #9ce6ee; --ok: #9ce6ee; background: var(--bg0); }
body.phantom .top { background: rgba(8, 9, 11, .9); }
body.phantom .btn:not(.ghost) { background: transparent; color: #9ce6ee !important; border: 1px solid rgba(156, 230, 238, .55); }
body.phantom .btn:not(.ghost):hover { background: rgba(156, 230, 238, .08); border-color: #9ce6ee; }
body.phantom .kicker, body.phantom .label { color: #9ce6ee; letter-spacing: .14em; }
body.phantom h1 { font-weight: 400; letter-spacing: .02em; }
body.phantom .doc h2 { font-weight: 400; letter-spacing: .01em; }
body.phantom .ab, body.phantom .say, body.phantom .getit { background: transparent; border-color: var(--line); }
body.phantom .ab-pick button { background: transparent; border-width: 1px; }
body.phantom .ab-pick button[aria-pressed="true"], body.phantom .ab-pick button[data-v="after"][aria-pressed="true"] { border-color: #9ce6ee; box-shadow: 0 0 18px rgba(156, 230, 238, .12); }
body.phantom .ab-play, body.phantom .snd-ic { background: transparent; color: #9ce6ee; border: 1px solid rgba(156, 230, 238, .6); }
body.phantom .snd { background: transparent; }
body.phantom a { text-decoration-color: rgba(156, 230, 238, .6); }
body.phantom .doc figure img, body.phantom .doc .shot img { border-color: var(--line); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(156, 230, 238, .18); }

body.phantom .phantom-hero { margin: 34px 0 10px; } body.phantom .phantom-hero img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Ember page: the panel's warm black with ember and gold ---------- */
body.ember { --bg0: #0f0c0b; --bg1: #171210; --bg2: #1d1815; --bg3: #262019; --line: #2a221d; --line-strong: #3b3029; --ink: #f1e7dc; --text: #d2c4b6; --dim: #a8988a; --faint: #6f6359; --amber: #ff8f3f; --amber-dim: #5c3418; --ok: #f6bd5a; background: var(--bg0); }
body.ember .top { background: rgba(15, 12, 11, .9); }
body.ember .btn:not(.ghost) { background: #ff8f3f; border-color: #ff8f3f; color: #1a0e06 !important; }
body.ember .btn:not(.ghost):hover { background: #ffa25e; border-color: #ffa25e; }
body.ember .kicker, body.ember .label { color: #f6bd5a; }
body.ember .say, body.ember .getit { background: var(--bg1); border-color: var(--line); }
body.ember .snd { background: var(--bg1); }
body.ember .snd-ic { background: linear-gradient(135deg, #ff8f3f, #f6bd5a); color: #1a0e06; }
body.ember .snd.on { border-color: #ff8f3f; box-shadow: 0 0 18px rgba(255, 143, 63, .14); }
body.ember a { text-decoration-color: rgba(255, 143, 63, .6); }
body.ember .doc figure img { border-color: var(--line); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(255, 110, 40, .22); }

h1 img.ph-mark { display: inline-block !important; width: 0.9em !important; height: 0.9em !important; max-width: none; margin: 0 .25em 0 0 !important; vertical-align: -0.1em; border: 0 !important; box-shadow: none !important; }
.card h3 img.card-mark { display: inline-block !important; width: 22px !important; height: 22px !important; aspect-ratio: 1; object-fit: contain; max-width: none; margin: 0 8px 0 0 !important; vertical-align: -5px; border: 0 !important; border-radius: 0 !important; background: none !important; }

.dl-pair { display: inline-flex; flex-wrap: wrap; gap: 10px; }

/* ---------- sound lists: /sounds/ and the synth pack pages (js/sound-player.js, js/sounds.js) ---------- */
.s-h { font: 600 15px var(--sans); color: var(--dim); margin: 26px 0 8px; letter-spacing: .01em; }
.s-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.s-row { --pos: 0%; display: grid; grid-template-columns: 40px minmax(160px, 1.1fr) minmax(120px, 1.4fr) 44px 64px auto; gap: 16px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; transition: background-color .08s; }
.s-row:not([data-src]) { cursor: default; }
.s-row:hover { background: var(--bg1); }
.s-row.cur { background: var(--bg2); box-shadow: inset 2px 0 0 var(--amber); }
.s-play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg1); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.s-play svg { width: 13px; height: 13px; fill: currentColor; }
.s-row:hover .s-play, .s-row.cur .s-play { border-color: var(--amber); color: var(--amber); }
.s-row.playing .s-play { background: var(--amber); color: #15120c; border-color: var(--amber); }
.s-play.s-none { cursor: default; font-size: 15px; color: var(--faint); border-style: dashed; }
.s-main { min-width: 0; }
.s-main b { display: block; font: 600 15px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row.cur .s-main b { color: var(--amber); }
.s-main span { display: block; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-main span a { color: var(--dim); text-decoration: none; }
.s-main span a:hover { color: var(--amber); }
.s-wave { position: relative; height: 34px; min-width: 0; }
.s-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--faint); }
.s-row:hover .s-wave svg { fill: var(--dim); }
.s-wave svg.on { fill: var(--amber); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.s-row:not(.cur) .s-wave svg.on { display: none; }
.s-nowave { display: flex; align-items: center; font: 400 11.5px var(--mono); color: var(--faint); letter-spacing: .06em; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); height: 14px; }
.s-key, .s-bpm { font: 400 12.5px var(--mono); color: var(--dim); white-space: nowrap; text-align: right; }
.s-bpm small { font-size: 10px; color: var(--faint); margin-left: 3px; }
.s-files { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.s-dl { font: 500 12px var(--mono); color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 11px; white-space: nowrap; background: var(--bg0); }
.s-dl:hover { border-color: var(--amber); color: var(--amber); }
.s-alt { display: flex; gap: 6px; }
.s-alt a { font: 400 11.5px var(--mono); color: var(--faint); text-decoration: none; }
.s-alt a:hover { color: var(--amber); }
.s-row[draggable="true"]:active { cursor: grabbing; }

/* ---------- /sounds/ shelves: hero, rails of cover art, genre tiles (scripts/sounds.mjs shelves()) ---------- */
.wide-lib { max-width: 1320px; }
.lib-h1 { font: 700 clamp(26px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -0.025em; margin-top: 14px; }
.lib-h1 em { font-style: normal; color: var(--amber); }
.lib-all { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; margin-top: 56px; scroll-margin-top: 84px; }
.lib-dek { margin-top: 6px; }
.art { display: block; width: 100%; height: 100%; }
img.art { object-fit: cover; }
.gt-img { background-size: cover; background-position: center; }
.gt-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25) 75%); }
.gt-img::after { display: none; }
.hx { position: relative; margin-top: 22px; }
.hx-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.hx-track::-webkit-scrollbar { display: none; }
.hx-s { --pos: 0%; flex: 0 0 100%; scroll-snap-align: start; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 32px; min-height: 440px; padding: 44px 56px; overflow: hidden;
  background: radial-gradient(120% 140% at 88% 10%, color-mix(in srgb, var(--a) 55%, transparent), transparent 55%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--b) 70%, transparent), transparent 60%), var(--c); }
.hx-s::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--pos); background: #fff; opacity: .9; }
.hx-s:not(.cur)::after { display: none; }
.hx-t { position: relative; z-index: 1; min-width: 0; }
.hx-t .label { color: rgba(255, 255, 255, .78); }
.hx-t .label b { color: #fff; }
.hx-t h2 { font: 700 clamp(44px, 7vw, 96px)/.92 var(--display); letter-spacing: -0.04em; color: #fff; margin: 14px 0 16px; text-wrap: balance; }
.hx-t p { color: rgba(255, 255, 255, .86); font-size: 17px; line-height: 1.5; max-width: 54ch; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.hx-b .btn { background: #fff; border-color: #fff; color: #111 !important; }
.hx-b .btn:hover { background: #fff; opacity: .9; }
.hx-b .btn.ghost { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .5); color: #fff !important; backdrop-filter: blur(6px); }
.hx-b .btn.ghost:hover { border-color: #fff; opacity: 1; }
.hx-play.s-play { width: 62px; height: 62px; background: var(--a); border: 0; color: #0d0d0f; box-shadow: 0 10px 34px color-mix(in srgb, var(--a) 60%, transparent); transition: transform .12s; }
.hx-play.s-play svg { width: 20px; height: 20px; }
.hx-play.s-play:hover { transform: scale(1.08); }
.hx-art { position: relative; justify-self: end; width: min(100%, 360px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; transform: rotate(3deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .25s; }
.hx-s:hover .hx-art { transform: rotate(1deg) scale(1.02); }
.hx-s.playing .hx-art { animation: hx-bob 1.9s ease-in-out infinite; }
@keyframes hx-bob { 50% { transform: rotate(1.5deg) scale(1.035); } }
.hx-dots { position: absolute; left: 56px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }
.hx-dots button { width: 26px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; }
.hx-dots button[aria-current] { background: #fff; width: 44px; }
.rail { margin-top: 44px; }
.rail > header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.rail h2 { font: 700 clamp(21px, 2.2vw, 27px)/1.15 var(--display); letter-spacing: -0.015em; }
.rail > header span { font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rail-all { font: 500 13px var(--mono); color: var(--amber); text-decoration: none; white-space: nowrap; }
.rail-all:hover { text-decoration: underline; }
.rail-nav { margin-left: auto; display: flex; gap: 6px; flex: none; }
.rail-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg1); color: var(--ink); font: 400 20px/1 var(--sans); cursor: pointer; padding: 0 0 3px; }
.rail-nav button:hover { border-color: var(--amber); color: var(--amber); }
.rail-x { list-style: none; margin: 0 -8px; padding: 8px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 8px; scrollbar-width: none; }
.rail-x::-webkit-scrollbar { display: none; }
.pk { --pos: 0%; position: relative; flex: 0 0 208px; scroll-snap-align: start; min-width: 0; }
.pk.pk-snd { flex-basis: 176px; }
.pk-art { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--c); text-decoration: none; text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); transition: transform .16s cubic-bezier(.2, .7, .3, 1), box-shadow .16s; }
.pk-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 34%, transparent 46%, rgba(0, 0, 0, .78)); }
.pk:hover .pk-art, .pk.cur .pk-art { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 2px var(--a); }
.pk-kind { position: absolute; left: 12px; top: 11px; z-index: 1; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.pk-art b { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; font: 700 21px/1.02 var(--display); letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.pk-snd .pk-art b { font-size: 17px; }
.pk-play.s-play { position: absolute; right: 10px; top: calc(208px - 56px); z-index: 2; width: 46px; height: 46px; background: var(--a); border: 0; color: #0d0d0f; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px); transition: opacity .14s, transform .14s; pointer-events: none; }
.pk-snd .pk-play.s-play { top: calc(176px - 56px); }
button.pk-play.s-play { pointer-events: auto; }
.pk-play.s-play svg { width: 15px; height: 15px; }
.pk:hover .pk-play, .pk.cur .pk-play, .pk-play:focus-visible { opacity: 1; transform: none; }
.pk.playing .pk-play.s-play, .hx-s.playing .hx-play.s-play { background: #fff; color: #0d0d0f; }
.pk.cur .pk-art::before { content: ''; position: absolute; left: 0; bottom: 0; z-index: 2; height: 3px; width: var(--pos); background: #fff; }
.pk-art:has(+ .pk-play:hover) { transform: translateY(-4px) scale(1.03); }
.pk-sub { display: block; margin-top: 9px; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub a { color: var(--dim); text-decoration: none; font: 500 11.5px var(--mono); margin-left: 6px; }
.pk-sub a:hover { color: var(--amber); }
.gts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gt { position: relative; display: block; padding: 16px 16px 14px; min-height: 86px; border-radius: 14px; text-decoration: none; overflow: hidden; background: linear-gradient(135deg, var(--b), var(--c) 90%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .14s; }
.gt::after { content: ''; position: absolute; right: -22px; bottom: -30px; width: 84px; height: 84px; border-radius: 50%; background: var(--a); opacity: .9; transition: transform .2s; }
.gt:hover { transform: translateY(-3px); }
.gt:hover::after { transform: scale(1.25); }
.gt b { position: relative; z-index: 1; display: block; font: 700 21px/1.05 var(--display); letter-spacing: -0.02em; color: #fff; }
.gt i { position: relative; z-index: 1; display: block; margin-top: 4px; font: 400 11.5px var(--mono); font-style: normal; color: rgba(255, 255, 255, .78); }
@media (hover: none) { .pk-play.s-play { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hx-s { grid-template-columns: 1fr; padding: 30px 26px 46px; min-height: 0; }
  .hx-art { position: absolute; right: -40px; top: -30px; width: 210px; opacity: .55; }
  .hx-dots { left: 26px; }
  .rail > header span, .rail-nav { display: none; }
}
@media (max-width: 560px) {
  .hx-track { border-radius: 16px; }
  .hx-t p { -webkit-line-clamp: 2; font-size: 15.5px; }
  .hx-play.s-play { width: 54px; height: 54px; }
  .pk { flex-basis: 156px; } .pk.pk-snd { flex-basis: 138px; }
  .pk-play.s-play { top: calc(156px - 54px); } .pk-snd .pk-play.s-play { top: calc(138px - 54px); }
  .pk-art b { font-size: 17px; }
  .rail { margin-top: 34px; }
  .gts { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hx-s.playing .hx-art { animation: none; } }

/* filters */
.s-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.s-search { display: flex; align-items: center; gap: 10px; background: var(--bg1); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; min-height: 52px; position: sticky; top: 64px; z-index: 6; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); }
.s-search:focus-within { border-color: var(--amber); }
.s-search svg { width: 17px; height: 17px; fill: none; stroke: var(--dim); stroke-width: 1.6; flex: none; }
.s-search input { flex: 1; min-width: 0; font: 400 17px var(--sans); color: var(--ink); background: none; border: 0; outline: 0; padding: 12px 0; }
.s-search input::-webkit-search-cancel-button { filter: invert(.6); }
kbd { font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--bg0); }
.s-tabs, .s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-tabs button, .s-chips button { font: 500 14px var(--sans); color: var(--text); background: var(--bg1); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.s-tabs button { font-size: 15px; padding: 8px 16px; }
.s-tabs button i, .s-chips button i { font: 400 11px var(--mono); font-style: normal; color: var(--faint); }
.s-tabs button:hover, .s-chips button:hover { border-color: var(--line-strong); color: var(--ink); }
.s-tabs button[aria-pressed="true"], .s-chips button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #15120c; }
.s-tabs button[aria-pressed="true"] i, .s-chips button[aria-pressed="true"] i { color: #4b3a1c; }
.s-chips button.zero, .s-tabs button.zero { display: none; }
.s-genres button { font-size: 13px; padding: 5px 11px; min-height: 32px; }
.s-more-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-more-f select { font: 400 14px var(--sans); color: var(--ink); background: var(--bg1); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; }
.s-clear { font: 500 13px var(--sans); color: var(--amber); background: none; border: 0; cursor: pointer; padding: 8px 6px; text-decoration: underline; text-underline-offset: 3px; }
.s-count { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 13px var(--mono); color: var(--dim); margin: 22px 0 8px; }
.s-keys { color: var(--faint); font-size: 12px; }
.s-keys kbd { margin: 0 1px; }
.s-empty { padding: 28px 10px; color: var(--dim); cursor: default; }
.s-more { text-align: center; margin-top: 18px; }

/* now playing */
.s-now { --pos: 0%; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, calc((100vw - 1240px) / 2)); background: rgba(25, 27, 30, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line-strong); }
.s-now button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg2); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.s-now button svg { width: 13px; height: 13px; fill: currentColor; }
.s-now .np-play { width: 44px; height: 44px; background: var(--amber); border-color: var(--amber); color: #15120c; }
.np-what { flex: 1; min-width: 0; margin-left: 6px; }
.np-what b { display: block; font: 600 14.5px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-what span { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-bar { height: 14px; display: flex; align-items: center; cursor: pointer; margin-top: 2px; }
.np-bar i { display: block; height: 3px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--amber) var(--pos), var(--line-strong) var(--pos)); }
body.has-now { padding-bottom: 78px; }

@media (max-width: 900px) {
  .s-row { grid-template-columns: 40px minmax(0, 1fr) minmax(70px, .8fr) auto; gap: 12px; }
  .s-key, .s-bpm, .s-alt, .s-keys { display: none; }
}
@media (max-width: 560px) {
  .s-row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px 4px; }
  .s-wave { display: none; }
  .s-search { top: 58px; }
  .s-search kbd { display: none; }
  .s-tabs, .s-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
  .s-tabs::-webkit-scrollbar, .s-chips::-webkit-scrollbar { display: none; }
  .s-tabs button, .s-chips button { flex: none; }
  .s-more-f select { flex: 1 1 45%; }
  .np-dl { display: none; }
  .s-now .np-prev { display: none; }
}

/* homepage: free sound library strip */
.home-packs { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-packs a { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .15s; }
.home-packs a:hover { transform: translateY(-3px); }
.home-packs img { width: 100%; height: 100%; object-fit: cover; }
.home-packs a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .8)); }
.home-packs a::after { background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .88)); }
.home-packs .hp-t { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.home-packs .hp-t i { font: 500 11px/1.2 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.home-packs b { font: 700 17px/1.05 var(--display); color: #fff; }
@media (max-width: 860px) { .home-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .home-packs b { font-size: 15px; } .home-packs .hp-t i { font-size: 10px; } }
