/* Remix Room: the Look Overhaul (2026-12-01) on the one-job pages. Every sound has a colour (--c1 main, --c2 light,
   --c3 deep): the page glows in the current sound's colours, and every sound is a colour orb. Buttons stay white.
   Why each piece looks the way it does: docs/changes/look-overhaul/intent.md. Zero green, one font. */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #6A3DF0; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #9D86FF; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #2B35C9; }
:root {
  --bg: #0A0910; --surface: #15131E; --raised: #211E2D; --glass: rgba(255,255,255,.06); --glass-2: rgba(255,255,255,.11);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --ink: #F4F2FA; --ink-2: #B5B1C6; --ink-3: #7C7892; --dark: #0B0A12;
  --accent: var(--c2); --unplayed: rgba(255,255,255,.14);
  --r: 10px; --r-lg: 16px; --top: 56px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
/* The sound colours. The page's root carries the current sound; an orb carries its own. They switch at once. */
:root, [data-snd="slowed"] { --c1: #6A3DF0; --c2: #9D86FF; --c3: #2B35C9; }
[data-snd="spedup"] { --c1: #FFB02E; --c2: #FFE08A; --c3: #F0522E; }
[data-snd="nightcore"] { --c1: #FF4FA0; --c2: #FF8FC3; --c3: #A629C2; }
[data-snd="daycore"] { --c1: #F08A8A; --c2: #FFD2C2; --c3: #8E3B6E; }
[data-snd="bass"] { --c1: #FF5533; --c2: #FF9A6B; --c3: #A8123A; }
[data-snd="slowedbass"] { --c1: #9A3DF0; --c2: #D29BFF; --c3: #5A1038; }
[data-snd="car"] { --c1: #D7263D; --c2: #FF8A7A; --c3: #3A0E1E; }
[data-snd="eightd"] { --c1: #3D8BFF; --c2: #9CC2FF; --c3: #2A2FBF; }
[data-snd="room"] { --c1: #9A8FB8; --c2: #D9D2EE; --c3: #4A4468; }
[data-snd="underwater"] { --c1: #2F6BFF; --c2: #8FB3FF; --c3: #0B1E6B; }
[data-snd="radio"] { --c1: #D9A066; --c2: #F5D7A8; --c3: #7A4A22; }
[data-snd="lofi"] { --c1: #E08E6A; --c2: #F7C9A8; --c3: #7A3B3B; }
[data-snd="vaporwave"] { --c1: #C46BFF; --c2: #FF9BDD; --c3: #4D7CFF; }
[data-snd="rain"] { --c1: #6C8CD5; --c2: #C2D0F2; --c3: #2D3A78; }
[data-snd="chopped"] { --c1: #8E2DE2; --c2: #C98AFF; --c3: #4A0E5A; }
[data-snd="echo"] { --c1: #8FA8FF; --c2: #D6DEFF; --c3: #4352B8; }
[data-snd="reverse"] { --c1: #C9C9D8; --c2: #FFFFFF; --c3: #6E6E82; }
[data-snd="plain"] { --c1: #5B6CFF; --c2: #A8B8FF; --c3: #2A2F8F; }
[data-snd="plain-volume"] { --c1: #FF7A2E; --c2: #FFB36B; --c3: #B8321A; }
[data-snd="plain-pitch"] { --c1: #2E9BFF; --c2: #8FD3FF; --c3: #1B3FA6; }
[data-snd="plain-speed"] { --c1: #FFC233; --c2: #FFE7A0; --c3: #E0691F; }
[data-snd="plain-reverb"] { --c1: #7D6BFF; --c2: #C9C0FF; --c3: #3A2A9F; }
[data-snd="hz432"] { --c1: #22B8F0; --c2: #A6E6FF; --c3: #1A4FA0; }
[data-snd="original"] { --c1: #8E8E9A; --c2: #C9C9D8; --c3: #3A3A44; }

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; }
body { position: relative; z-index: 0; min-height: 100%; color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
/* The glow: three soft lights in the sound's colours behind the top of the page. Plain gradients, no blur filter. */
body::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: 0; max-height: 780px; pointer-events: none;
  background: radial-gradient(60% 50% at 15% 6%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 70%),
    radial-gradient(55% 45% at 88% 16%, color-mix(in srgb, var(--c2) 32%, transparent), transparent 70%),
    radial-gradient(90% 55% at 50% 42%, color-mix(in srgb, var(--c3) 42%, transparent), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); }
button, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A sound orb: a little sphere in the sound's colours. */
.song-orb, .hero-orbs i, .chip i, .snd i, .dots i, .dr-tools a i, .related a i { display: block; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, var(--c2), var(--c1) 52%, var(--c3)); box-shadow: inset 0 -6px 14px rgba(0,0,0,.28), inset 0 4px 8px rgba(255,255,255,.22); }

/* ---------- header: logo, top tools (computer), All Tools ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 64%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { height: var(--top); max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; font-weight: 750; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand .logo { flex: none; }
.diag-badge { color: #FF4FA3; font-size: 10px; margin-left: 6px; }
.top-nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 11px; border: 0; background: none; color: var(--ink); border-radius: 99px; cursor: pointer; font-size: 15px; font-weight: 600; }
.menu-btn:active { background: var(--glass-2); }
/* phone: just ☰ (read out as All Tools) */
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 760px) {
  .menu-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .menu-btn { background: var(--glass); border: 1px solid var(--line-2); padding: 0 16px 0 12px; }
  .menu-btn:hover { background: var(--glass-2); }
}
@media (min-width: 960px) {
  .top-nav { display: flex; align-items: center; gap: 2px; margin-right: 10px; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; }
  .top-nav a:hover { color: var(--ink); background: var(--glass); }
  .top-nav a[aria-current=page] { color: var(--ink); background: var(--glass); font-weight: 650; }
}
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 99px; cursor: pointer; color: var(--ink-2); position: relative; transition: transform .12s ease-out; }
.icon-btn:active { transform: scale(.92); }
main { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons: white means "the thing to tap" ---------- */
.primary { border: 0; border-radius: 99px; background: #fff; color: var(--dark); font-weight: 700; font-size: 16px; letter-spacing: -.01em; height: 56px; padding: 0 28px; cursor: pointer; box-shadow: 0 10px 34px color-mix(in srgb, var(--c1) 45%, transparent); transition: transform .12s ease-out; }
.primary:active { transform: scale(.97); }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--glass); color: var(--ink); font-weight: 600; font-size: 15px; height: 48px; padding: 0 20px; cursor: pointer; }
.secondary:active { background: var(--glass-2); }
.text-btn { border: 0; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; height: 44px; padding: 0 8px; cursor: pointer; border-radius: var(--r); }
.text-btn:active { color: var(--ink); }

/* ---------- the page's name, then one card for its one job ---------- */
.page-head { padding: 28px 8px 20px; text-align: center; }
.page-head h1 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 750; letter-spacing: -.03em; }
.page-head p { margin: 8px auto 0; max-width: 520px; color: #DCD8EA; font-size: 16px; text-shadow: 0 1px 12px rgba(10,9,16,.6); }
@media (min-width: 760px) { .page-head { padding: 48px 8px 28px; } .page-head h1 { font-size: 44px; line-height: 50px; } .page-head p { font-size: 17.5px; } }
/* phone with a song: heading stays, its line goes (one screen) */
@media (max-width: 759px) {
  .has-song .page-head { padding: 14px 4px 12px; }
  .has-song .page-head h1 { font-size: 22px; line-height: 28px; }
  .has-song .page-head p { display: none; }
}
/* songs kept from before: the player from the first frame, never a flash of the start card */
.has-song .start { display: none; }
.has-song .player[hidden] { display: flex !important; }
.card { background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); border-radius: 26px; padding: 18px 18px 0; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
body.dragging .card { outline: 2px dashed var(--c2); outline-offset: 4px; }

/* before a song: what you'll get, one white button, and why it's safe */
.start { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 22px; text-align: center; }
.hero-orbs { position: relative; width: 240px; height: 118px; margin: 4px auto 8px; }
.hero-orbs i { position: absolute; animation: float 5s ease-in-out infinite alternate; }
.hero-orbs i:nth-child(1) { width: 90px; height: 90px; left: 75px; top: 12px; z-index: 2; box-shadow: inset 0 -8px 18px rgba(0,0,0,.28), inset 0 5px 10px rgba(255,255,255,.22), 0 12px 36px color-mix(in srgb, var(--c1) 50%, transparent); animation-delay: -1s; }
.hero-orbs i:nth-child(2) { width: 58px; height: 58px; left: 20px; top: 2px; animation-delay: -2s; }
.hero-orbs i:nth-child(3) { width: 42px; height: 42px; left: 40px; top: 70px; animation-delay: -3.5s; }
.hero-orbs i:nth-child(4) { width: 62px; height: 62px; left: 160px; top: 0; animation-delay: -.5s; }
.hero-orbs i:nth-child(5) { width: 44px; height: 44px; left: 168px; top: 70px; animation-delay: -2.8s; }
@keyframes float { to { transform: translateY(-6px); } }
.primary.big { width: 100%; max-width: 420px; height: 58px; font-size: 17px; }
.start p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.formats span { font: 600 11px/1 var(--mono); color: var(--ink-2); padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 99px; }
.start .fine { color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.start .lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
@media (pointer: coarse) { .start .drop { display: none; } }

/* with a song: the song, this page's control, Play, Download, then More Effects */
.player { display: flex; flex-direction: column; }
.player > * { border-top: 1px solid var(--line); padding: 10px 0; }
.player > .song { border-top: 0; padding: 0 0 10px; display: flex; align-items: center; gap: 12px; }
.player > .wave, .player > .times { border-top: 0; padding: 0; }
.song-orb { width: 46px; height: 46px; }
.song-txt { flex: 1; min-width: 0; }
.song-name { font-size: 17px; line-height: 22px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-sub { font: 12px/18px var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.change-song { flex: none; color: var(--ink); background: var(--glass); border-radius: 99px; padding: 0 14px; font-size: 13.5px; }
.wave { position: relative; height: 72px; cursor: pointer; touch-action: none; margin: 4px 0 6px; }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-played { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.w-head { position: absolute; top: -4px; bottom: -4px; width: 2px; left: calc(var(--p, 0) * 100%); background: #fff; border-radius: 2px; transform: translateX(-1px); box-shadow: 0 0 10px color-mix(in srgb, var(--c2) 80%, transparent); }
.times { display: flex; justify-content: space-between; font: 12px/16px var(--mono); color: var(--ink-3); padding-bottom: 8px !important; }
.status { color: var(--ink-2); font-family: var(--sans); }

/* More Effects: every other sound and slider, one tap away */
.player > .more { padding: 0; }
.more > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; cursor: pointer; font-weight: 650; font-size: 15px; color: var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.dots { display: flex; margin-left: auto; padding-left: 6px; }
.dots i { width: 18px; height: 18px; margin-left: -6px; border: 2px solid var(--surface); }
.more > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin: -4px 6px 0 2px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s ease-out; }
.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more[open] > summary { border-bottom: 1px solid var(--line); }
.more > .sound { padding: 12px 0 8px; }
.more > .controls { border-top: 1px solid var(--line); padding: 6px 0 12px; }

/* the sound row: four colour orbs and All Sounds */
.row-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.original { height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--glass); color: var(--ink); font-size: 13.5px; font-weight: 650; cursor: pointer; }
.original[aria-pressed="true"] { background: #fff; color: var(--dark); border-color: #fff; }
.orb-row { display: flex; }
.presets { flex: 4; display: grid; grid-template-columns: repeat(4, 1fr); }
.chip { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 88px; padding: 4px 2px; border: 0; background: none; color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.chip i { width: 52px; height: 52px; transition: transform .14s ease-out, box-shadow .18s; }
.chip:active i { transform: scale(.94); }
.chip span { max-width: 74px; }
.chip[aria-pressed="true"] i { box-shadow: inset 0 -6px 14px rgba(0,0,0,.28), inset 0 4px 8px rgba(255,255,255,.22), 0 0 0 3px var(--surface), 0 0 0 5px #fff; }
.chip[aria-pressed="true"] span { color: var(--ink); }
.chip.all i { display: grid; place-items: center; background: var(--glass-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }

/* sliders: label, a thick track in the sound's colours, the value */
.controls { display: flex; flex-direction: column; }
.ctl { display: grid; grid-template-columns: var(--name-w, 64px) 1fr 56px; align-items: center; column-gap: 12px; height: 44px; }
.c-name { font-size: 13px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ctl output { font: 12.5px var(--mono); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
/* the page's own control, in the card */
.ctl.lead .c-name, .ctl.lead output { color: var(--ink); font-weight: 650; }
.player > .tool { padding: 10px 0 12px; }
.tool .ctl { height: 52px; grid-template-columns: var(--name-w-big, 74px) 1fr 62px; }
/* Slider names run longer in other languages (Velocidade, Lautstärke), so their name column is wider. */
html:not([lang="en"]) { --name-w: 80px; --name-w-big: 92px; --name-w-sm: 76px; }
.tool .c-name { font-size: 15px; }
.tool output { font-size: 14px; }
.tool-hint { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
body.original-on .tool.dims, body.original-on .controls { opacity: .45; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 42px; margin: 0; background: none; cursor: pointer; touch-action: none; --f: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--c1), var(--c2) var(--f), rgba(255,255,255,.12) var(--f)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--c1), var(--c2)); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }

/* transport: a big white Play glowing in the sound's colour, centred (the spacer mirrors Repeat); Previous/Next only with 2+ songs */
.player > .transport { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 0 12px; }
body:not(.many) .transport .prev, body:not(.many) .transport .next { display: none; }
.t-spacer, .transport .icon-btn { width: 44px; height: 44px; flex: none; }
.play { width: 68px; height: 68px; flex: none; border-radius: 50%; border: 0; background: #fff; color: var(--dark); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 34px color-mix(in srgb, var(--c1) 55%, transparent); transition: transform .12s ease-out, box-shadow .6s; }
.play:active { transform: scale(.94); }
.play .i-pause, body.playing .play .i-play { display: none; }
body.playing .play .i-pause { display: block; }
.repeat[data-mode="off"] { color: var(--ink-3); }
.repeat[data-mode="all"], .repeat[data-mode="one"] { color: var(--accent); }
.rep-one { display: none; position: absolute; top: 7px; right: 5px; font-style: normal; font-size: 10px; font-weight: 700; background: #fff; color: var(--dark); border-radius: 99px; width: 14px; height: 14px; line-height: 14px; text-align: center; }
.repeat[data-mode="one"] .rep-one { display: block; }

/* download: the file type, then one white pill */
.player > .save { border-top: 0; padding: 2px 0 16px; }
.export { display: flex; gap: 8px; height: 54px; }
.fmt { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); border-radius: 99px; background-color: var(--glass); color: var(--ink); font: 650 13px var(--mono); padding: 0 32px 0 18px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 24px, calc(100% - 13px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.dl { flex: 1; border: 0; border-radius: 99px; background: #fff; color: var(--dark); font-weight: 700; font-size: 16px; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 8px 28px color-mix(in srgb, var(--c1) 35%, transparent); transition: transform .12s ease-out; }
.dl:active { transform: scale(.98); }
.dl.ready { box-shadow: 0 0 0 3px var(--c2), 0 8px 28px color-mix(in srgb, var(--c1) 45%, transparent); }

/* ---------- All Sounds: a grid of orbs; the music keeps playing while you try them ---------- */
.sheet { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: 84dvh; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; transform: translateY(102%); transition: transform .24s cubic-bezier(.2,.8,.2,1); max-width: 600px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 22px; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.sheet-head .text-btn { color: var(--ink); font-size: 15px; }
.sheet-body { overflow-y: auto; padding: 0 14px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sec-name { font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 18px 8px 6px; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.snd { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 120px; padding: 10px 4px; border: 0; border-radius: 18px; background: none; text-align: center; cursor: pointer; }
.snd i { width: 58px; height: 58px; margin-bottom: 6px; transition: transform .14s ease-out; }
.snd:active i { transform: scale(.94); }
.snd b { font-size: 13.5px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.snd small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.snd[aria-pressed="true"] { background: var(--glass); }
.snd[aria-pressed="true"] i { box-shadow: inset 0 -6px 14px rgba(0,0,0,.28), inset 0 4px 8px rgba(255,255,255,.22), 0 0 0 3px var(--surface), 0 0 0 5px #fff; }

/* ---------- All Tools menu: tiles with their sound's orb ---------- */
.drawer { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #100E18; border-left: 1px solid var(--line); padding: calc(14px + env(safe-area-inset-top)) 14px 20px; overflow-y: auto; transform: translateX(102%); transition: transform .2s cubic-bezier(.2,.8,.2,1); display: block; }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); }
.dr-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; color: var(--ink); }
.dr-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dr-tools .dr-title { grid-column: 1 / -1; font-size: 20px; font-weight: 750; letter-spacing: -.02em; margin: 0; padding: 4px 48px 0 4px; }
.dr-tools .dr-group { grid-column: 1 / -1; margin: 10px 4px -2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.dr-tools a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 16px; background: var(--glass); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; }
.dr-tools a i { width: 28px; height: 28px; }
.dr-tools a:active { background: var(--glass-2); }
.dr-tools a[aria-current=page] { background: var(--glass-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dr-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
.dr-head .dr-title { font-size: 17px; font-weight: 700; margin: 0; }
.dr-count { color: var(--ink-3); font: 12px var(--mono); }
.songs { list-style: none; margin: 8px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.songs li { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.songs .row { display: flex; align-items: center; gap: 2px; background: #100E18; position: relative; z-index: 1; transition: transform .18s ease; }
.songs .del-under { opacity: 0; position: absolute; inset: 0; background: #B42D45; color: #fff; display: flex; align-items: center; justify-content: flex-end; padding-right: 18px; font-size: 14px; font-weight: 600; }
.songs li.swiping .del-under { opacity: 1; }
.songs li[aria-current="true"] .row { background: var(--raised); }
.song-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 10px 4px; cursor: pointer; }
.song-btn .n { width: 18px; flex: none; text-align: center; font: 12px var(--mono); color: var(--ink-3); }
.song-btn .txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.song-btn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: 14.5px; }
.song-btn .sn { font: 11.5px var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.songs li[aria-current="true"] .n { color: var(--accent); }
.x-btn { width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--ink-3); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.dr-note { font-size: 12.5px; color: var(--ink-3); margin: 6px 4px 12px; line-height: 1.4; }
.dr-storage { font-family: var(--mono); font-size: 11.5px; }
.add-btn { width: 100%; }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 10px; clear: both; }
.dr-link { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 4px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 32px); background: #fff; color: var(--dark); padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 550; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* ---------- shorter phones: the whole tool stays on one screen ---------- */
@media (max-height: 740px) {
  .wave { height: 54px; }
  .ctl, input[type=range] { height: 38px; }
  .tool .ctl { height: 44px; }
  .player > .tool { padding: 4px 0 6px; }
  .player > .transport { padding: 8px 0; }
  .play { width: 60px; height: 60px; }
}
@media (max-height: 680px) {
  .wave { height: 42px; }
  .ctl, input[type=range] { height: 34px; }
  .tool .ctl { height: 36px; }
  .tool-hint { display: none; }
  .play { width: 54px; height: 54px; }
  .export { height: 48px; }
  .player > .save { padding-bottom: 10px; }
  .song-orb { width: 40px; height: 40px; }
}
@media (max-width: 400px) { .player > .transport { gap: 12px; } .card { padding: 14px 14px 0; border-radius: 22px; } .chip i { width: 44px; height: 44px; } .chip { min-height: 80px; } .ctl { grid-template-columns: var(--name-w-sm, 58px) 1fr 50px; } }
@media (max-width: 340px) { .player > .transport { gap: 6px; } .play { width: 54px; height: 54px; } }   /* 5 buttons fit 320 px */

/* ---------- languages: the offer bar under the header, and the language links in the menu and footer ---------- */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 640px; margin: 10px auto 0; padding: 0 4px 0 16px; min-height: 48px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 14px; }
.lang-hint a { flex: 1; color: var(--ink); font-weight: 600; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.lang-hint[hidden] { display: none !important; }
@media (max-width: 680px) { .lang-hint { margin: 10px 16px 0; } }
.dr-langs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dr-langs a { justify-content: flex-start; }
.dr-langs a[aria-current=page] { background: var(--glass-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* ---------- tool pages: the guide below the app, and the footer (built by build.mjs) ---------- */
.guide { max-width: 680px; margin: 40px auto 0; padding: 8px 20px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.guide.plain { margin-top: 4px; }   /* the plain pages: privacy, terms, extension, 404 */
.guide .updated { font: 12.5px var(--mono); color: var(--ink-3); margin: 0; }
.guide h2 { color: var(--ink); font-size: 24px; line-height: 30px; font-weight: 750; letter-spacing: -.02em; margin: 40px 0 12px; }
.guide p { margin: 0 0 14px; }
.guide ul { margin: 0 0 14px; padding-left: 22px; }
.guide ol { counter-reset: step; list-style: none; margin: 0 0 14px; padding: 0; }
.guide ol li { counter-increment: step; position: relative; padding-left: 42px; margin: 0 0 14px; }
.guide ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--glass-2); color: var(--ink); font: 650 13px/28px var(--sans); text-align: center; }
.guide li { margin: 0 0 6px; }
.guide li b { color: var(--ink); font-weight: 650; }
/* The In Short paragraph, links inside sentences (their tap area is 44 px tall without moving the text), and settings tables. */
.guide .lede { color: var(--ink); font-size: 17px; line-height: 1.6; margin: 16px 0 0; }
.guide :is(p, ol li, ul:not(.related) li, td, th) a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; padding: 13px 0; }
.guide .table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.guide table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
/* Three or more columns get room to breathe and scroll sideways inside their box on a phone, instead of one word per line. */
.guide table:has(th:nth-child(3)) { min-width: 520px; }
.guide table:has(th:nth-child(4)) { min-width: 640px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.guide thead th { border-top: 0; color: var(--ink); font-weight: 650; font-size: 13px; }
.guide tbody th { color: var(--ink); font-weight: 600; }
.guide details { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 8px; padding: 0 16px; }
.guide summary { list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 600; cursor: pointer; padding: 10px 0; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.guide details[open] summary::after { content: '−'; }
.guide details p { margin: 0 0 16px; }
.related, .guide ul.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 16px; background: var(--glass); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.related a i { width: 28px; height: 28px; }
.related a:active { background: var(--glass-2); }
.site-foot { max-width: 680px; margin: 0 auto; padding: 16px 20px calc(32px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.site-foot a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.site-foot a:active { color: var(--ink); }
.site-foot h2 { color: var(--ink-2); font-size: 13px; font-weight: 650; margin: 20px 0 4px; }
.site-foot .fine { margin-top: 20px; }

/* ---------- phone test panel (?test=1 only) ---------- */
.testbox { position: fixed; z-index: 60; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: min(92vw, 330px); background: rgba(12,10,22,.94); color: #EDEAF7; border-radius: 12px; font: 11.5px/1.35 var(--mono); padding: 6px; }
.testbox.closed { width: auto; }
.testbox.closed .tb-body { display: none; }
.tb-toggle, .tb-row button, .tb-copy { font: 600 12px var(--sans); color: #fff; background: #2B2545; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.tb-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.tb-row span { margin-right: auto; }
.tb-row button[aria-pressed="true"] { background: #9B85FF; color: #0E0B1A; }
.tb-info, .tb-log { margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.tb-log { color: #B7B0CF; max-height: 90px; overflow: auto; }
.tb-copy { width: 100%; margin-top: 4px; }

@supports not (color: color-mix(in srgb, red, red)) { .card { background: var(--surface); } .top { background: rgba(10,9,16,.92); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
