/* MuteVocals — clean, Apple-style UI. Light by default, dark follows the device setting. */
/* Own palette (fresh teal / sky / indigo) + frosted-glass surfaces. Apple-inspired cleanliness, not Apple's colors or assets. */
:root {
  --bg: #eef6f8;
  --surface: rgba(255, 255, 255, .66);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .75);
  --blur: saturate(160%) blur(22px);
  --fill: rgba(15, 60, 80, .07);
  --line: rgba(15, 60, 80, .10);
  --ink: #102a36;
  --muted: #5a6f7a;
  --accent: #0b8fc4;
  --accent-hover: #0a9fd8;
  --accent-soft: rgba(11, 143, 196, .11);
  --music: #12b886;
  --chorus: #8b5cf6;
  --male: #3b82f6;
  --female: #ec4899;
  --ok: #0f9d6e;
  --err: #e03131;
  --gold: #c26a00;
  --shadow: 0 4px 24px rgba(16, 60, 80, .07);
  --shadow-lg: 0 18px 50px rgba(16, 60, 80, .12);
  --radius: 20px;
  --nav-bg: rgba(255, 255, 255, .6);
  --head-grad: linear-gradient(95deg, #10b4a8, #0b8fc4 50%, #6366f1);
  --mesh: radial-gradient(700px 520px at 8% -8%, #c8f1ea 0%, transparent 70%),
          radial-gradient(640px 520px at 100% 0%, #cfe6ff 0%, transparent 70%),
          radial-gradient(760px 620px at 70% 70%, #e6defd 0%, transparent 70%),
          radial-gradient(600px 500px at 0% 90%, #d6f5e9 0%, transparent 70%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071318;
    --surface: rgba(24, 36, 44, .58);
    --surface-solid: #142028;
    --surface-2: rgba(36, 52, 62, .5);
    --glass-border: rgba(255, 255, 255, .08);
    --fill: rgba(200, 230, 240, .09);
    --line: rgba(200, 230, 240, .10);
    --ink: #eef6f9;
    --muted: #a9bec7;
    --accent: #38bdf8;
    --accent-hover: #67cdfa;
    --accent-soft: rgba(56, 189, 248, .15);
    --music: #34d399;
    --chorus: #a78bfa;
    --male: #60a5fa;
    --female: #f472b6;
    --ok: #34d399;
    --err: #ff6b6b;
    --gold: #fbbf24;
    --shadow: 0 4px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
    --nav-bg: rgba(10, 22, 28, .55);
    --head-grad: linear-gradient(95deg, #2dd4bf, #38bdf8 50%, #a5b4fc);
    --mesh: radial-gradient(700px 520px at 8% -8%, #0b3b3a 0%, transparent 70%),
            radial-gradient(640px 520px at 100% 0%, #0c2a4a 0%, transparent 70%),
            radial-gradient(760px 620px at 70% 70%, #251a4a 0%, transparent 70%),
            radial-gradient(600px 500px at 0% 90%, #0a3326 0%, transparent 70%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mesh), var(--bg); background-attachment: fixed; color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.17em; flex: none; }

/* ---------- navigation (frosted glass) ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1000px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--head-grad); display: grid; place-items: center; }
.logo svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.nav nav a { color: var(--ink); opacity: .8; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 980px; background: var(--fill); border: none; cursor: pointer; color: var(--ink); }
.pill .i { color: var(--gold); }

main { max-width: 1000px; margin: 0 auto; padding: 0 22px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.kicker { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--muted); }
.kicker .dot { display: none; }
h1 { font-size: clamp(40px, 7.5vw, 76px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 14px; font-weight: 700; }
.grad { background: var(--head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.38; color: var(--muted); max-width: 640px; margin: 0 auto 36px; letter-spacing: -.015em; }
body.playing-mode #hero-copy { display: none; }
body.playing-mode .hero { padding-top: 24px; }

/* ---------- main card ---------- */
.card { max-width: 640px; margin: 0 auto; text-align: left; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 30px; }
.card.wide { max-width: 860px; }
.card:focus { outline: none; }

/* upload */
.drop { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; cursor: pointer; border-radius: 22px; padding: 40px 18px 34px; background: var(--surface-2); border: 1.5px dashed transparent; transition: border-color .2s, background .2s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.drop-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--head-grad); display: grid; place-items: center; }
.drop-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-sub { color: var(--muted); font-size: 14px; }
.trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.trust li::first-letter { color: var(--ok); font-weight: 700; }
.options { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle small { color: var(--muted); }
.switch { width: 51px; height: 31px; border-radius: 99px; background: var(--fill); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); }
.toggle input:checked + .switch { background: var(--music); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.daily { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.daily-label { font-weight: 600; color: var(--ink); }
.daily-dots { display: inline-flex; gap: 5px; }
.daily-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); }
.daily-dots i.on { background: var(--accent); }
.daily-text b { color: var(--ink); font-weight: 600; }
.daily-out { text-align: center; border-radius: 22px; padding: 30px 18px; background: var(--surface-2); border: 1px solid var(--glass-border); }
.daily-out h3 { margin: 0 0 8px; }
.daily-out p { margin: 6px 0 0; }
.pg-new { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.quota { margin: 0; font-size: 14px; color: var(--muted); }
.quota b { color: var(--ink); font-weight: 600; }
.recent { margin-top: 20px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
#recent-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#recent-list a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 980px; background: var(--fill); color: var(--ink); font-size: 14px; }
#recent-list a:hover { text-decoration: none; background: var(--accent-soft); }
#recent-list a .i { color: var(--accent); }
#recent-list small { color: var(--muted); margin-left: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 500; font-size: 17px; padding: 11px 22px; border-radius: 980px; border: none; transition: background .15s, transform .1s, opacity .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.sm { padding: 7px 15px; font-size: 14px; }
.btn.big { padding: 13px 30px; font-size: 17px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--fill) 100%, var(--ink) 6%); }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.error { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--err) 9%, transparent); color: var(--err); font-size: 15px; }

/* text */
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.eyebrow.ok { color: var(--ok); }
.eyebrow.err { color: var(--err); }
.song-title { margin: 0 0 18px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { margin: 20px 0 0; text-align: center; }

/* ---------- progress ---------- */
.bar { height: 6px; background: var(--fill); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 1s ease; }
#p-note { margin: 10px 0 20px; font-size: 15px; }
.preview { margin: 0 0 20px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.preview p { margin: 0 0 10px; font-size: 15px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.preview p .i { color: var(--music); align-self: center; }
.preview audio, #key-audio { width: 100%; height: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fill); flex: none; box-sizing: border-box; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { border: none; background: var(--music) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 3 3 5-6' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-tips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- playground ---------- */
.pg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.q { margin: 2px 0 12px; font-size: 17px; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.choices button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 13px 14px; border-radius: 16px; border: none; background: var(--surface-2); cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; }
.choices button:hover { background: color-mix(in srgb, var(--surface-2) 100%, var(--ink) 4%); }
.choices button:active { transform: scale(.98); }
.choices .ic { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--accent); }
.choices .ic .i { width: 21px; height: 21px; }
.choices .ic.female { color: var(--female); }
.choices .ic.male { color: var(--male); }
.choices b { font-size: 15px; font-weight: 600; }
.choices small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.choices button[aria-checked=true] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.choices button[aria-checked=true] .ic { background: var(--accent); color: #fff; }

.player { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: var(--surface-2); }
.play { width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--accent); cursor: pointer; display: grid; place-items: center; flex: none; transition: transform .1s, background .15s; }
.play:hover { background: var(--accent-hover); }
.play:active { transform: scale(.94); }
.play:disabled { opacity: .45; cursor: default; }
.play svg { width: 22px; height: 22px; fill: #fff; }
.seek-wrap { flex: 1; min-width: 0; }
.times { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 6px; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; cursor: pointer; --c: var(--accent); background: linear-gradient(90deg, var(--c) var(--p, 0%), var(--fill) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .06); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

.key-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 2px 4px; }
.key-label { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.key-label .i { color: var(--accent); }
.key-label small { color: var(--muted); font-weight: 400; }
.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 10px; padding: 2px; }
.stepper button { width: 36px; height: 30px; border: none; border-radius: 8px; background: transparent; font-size: 19px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--surface); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 92px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--surface); border-radius: 8px; padding: 5px 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.key-help { margin: 2px 2px 8px; font-size: 13px; color: var(--muted); }
#key-audio { margin: 6px 0 4px; }

.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; align-items: flex-start; }
.pg-actions #dl-mix { flex: 1 1 240px; padding: 14px 22px; }
.dl-ready { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 6px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--music) 12%, transparent); color: var(--ok); font-size: 15px; font-weight: 600; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.menu { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; min-width: 240px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.menu a:hover { background: var(--fill); text-decoration: none; }
.menu a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.rate { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 18px; font-size: 14px; color: var(--muted); }
.rate button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--fill); cursor: pointer; display: inline-grid; place-items: center; color: var(--ink); }
.rate button:hover { background: var(--accent-soft); color: var(--accent); }
.rate button .i { width: 17px; height: 17px; }

/* ---------- advanced mixer ---------- */
.advanced { border-radius: 20px; background: var(--surface-2); }
.advanced > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; border-radius: 20px; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary span { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.advanced > summary span .i { color: var(--accent); }
.advanced > summary span::after { content: "Show"; margin-left: auto; color: var(--accent); font-size: 14px; font-weight: 400; }
.advanced[open] > summary span::after { content: "Hide"; }
.advanced > summary small { color: var(--muted); font-size: 13px; }
.advanced[open] { padding-bottom: 16px; }
.advanced > *:not(summary) { margin-left: 16px; margin-right: 16px; }

.stems { display: grid; gap: 8px; }
.stem { display: grid; grid-template-columns: minmax(280px, 320px) 1fr; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); transition: opacity .2s; }
.stem.off { opacity: .5; }
.stem-top { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.stem-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; white-space: nowrap; }
.stem-name small { color: var(--muted); font-weight: 400; font-size: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.state { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--music) 15%, transparent); color: var(--ok); }
.stem.off .state { background: var(--fill); color: var(--muted); }
.tbtn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 8px; border: none; background: var(--fill); font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink); white-space: nowrap; }
.tbtn:hover { background: var(--accent-soft); color: var(--accent); }
.tbtn .i { width: 14px; height: 14px; }
.tbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.on.mute { background: var(--err); color: #fff; }
.tbtn.on.solo { background: #ff9f0a; color: #fff; }
.vol { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.vol output { width: 42px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.wave { width: 100%; height: 52px; display: block; cursor: pointer; touch-action: none; }
.hint { margin: 12px 2px 0; font-size: 14px; color: var(--muted); }
.hint b { color: var(--ink); font-weight: 600; }

.editor { margin-top: 12px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); display: grid; gap: 12px; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.ed-head b { font-weight: 600; }
.ed-tools { display: flex; align-items: center; gap: 12px; }
.ed-tools .btn { gap: 6px; }
.loop { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.loop input { accent-color: var(--accent); width: 16px; height: 16px; }
.x { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--fill); cursor: pointer; display: inline-grid; place-items: center; color: var(--muted); }
.ed-q { margin: 4px 0 0; font-weight: 600; font-size: 14px; }
.fix-chips, .vol-actions, .vol-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.fix-chips button, .vol-actions button, .vol-pick button { display: inline-flex; align-items: center; gap: 7px; border: none; background: var(--fill); padding: 8px 13px; border-radius: 980px; font-size: 14px; cursor: pointer; text-align: left; color: var(--ink); }
.fix-chips button:hover, .vol-actions button:hover, .vol-pick button:hover { background: var(--accent-soft); }
.fix-chips b { color: var(--accent); font-weight: 600; }
.vol-pick button[aria-checked=true] { background: var(--c); color: #fff; }
.vol-pick button[aria-checked=true] .dot, .vol-pick button[aria-checked=true] i { background: #fff; }
.vol-pick button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.edits { margin-top: 14px; }
.edits-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
#edit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#edit-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 980px; background: var(--surface); font-size: 13px; cursor: pointer; }
#edit-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
#edit-list .t { color: var(--muted); font-variant-numeric: tabular-nums; }
#edit-list button { width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--fill); cursor: pointer; font-size: 13px; line-height: 1; }
#edit-list button:hover { background: var(--err); color: #fff; }

/* studio export (VIP) */
.studio { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--surface); display: grid; gap: 12px; }
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.studio-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.studio-head b .i { color: var(--accent); }
.studio p { margin: 0; }
.vip-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.studio-row { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.fmt { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.fmt select { font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); background: var(--fill); border: none; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.studio .btn { justify-self: start; }
.lock { margin: 0; font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vip-title { display: inline-flex; align-items: center; gap: 8px; }
.vip-title .i, .vip-inline .i { color: var(--gold); }
.vip-inline { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- sections ---------- */
.section { padding: 96px 0 8px; }
.section h2 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; text-align: center; font-weight: 700; }
.sub { text-align: center; color: var(--muted); font-size: 19px; max-width: 600px; margin: 0 auto 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.compare-wrap { overflow-x: auto; max-width: 720px; margin: 0 auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-size: 13px; color: var(--muted); font-weight: 600; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare tr:last-child td { border-bottom: none; }
.compare .us { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; }
.plan { position: relative; background: var(--surface); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.pro { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.plan h3 { margin: 0; font-size: 19px; font-weight: 600; }
.price { font-size: 48px; font-weight: 700; letter-spacing: -.04em; margin: 6px 0 16px; }
.price small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tag { position: absolute; top: -11px; right: 22px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 99px; }
#pro-note { margin: 10px 0 0; text-align: center; }
.faq { max-width: 700px; margin: 0 auto; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.footer { max-width: 1000px; margin: 96px auto 0; padding: 22px 22px 90px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links .link { font-size: 12px; }

/* ---------- feedback, toasts, dialogs ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 980px; border: none; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; cursor: pointer; }
.fab .i { color: var(--accent); width: 17px; height: 17px; }
.toasts { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 16px; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: 15px; text-align: center; animation: pop .25s ease-out; }
.toast.err { color: var(--err); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dlg { border: none; border-radius: 22px; background: var(--surface); color: var(--ink); padding: 24px; width: min(92vw, 440px); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(0, 0, 0, .3); backdrop-filter: blur(4px); }
.dlg h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.dlg input, .dlg textarea { width: 100%; margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: none; background: var(--fill); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.dlg input:focus, .dlg textarea:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.faces { display: flex; gap: 6px; margin: 14px 0 6px; background: var(--fill); padding: 3px; border-radius: 12px; }
.faces button { flex: 1; height: 34px; font-size: 14px; font-weight: 500; border-radius: 9px; border: none; background: transparent; cursor: pointer; color: var(--ink); }
.faces button[aria-checked=true] { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav nav { gap: 14px; }
  .nav nav a.nav-wide { display: none; }
  .hero { padding-top: 34px; }
  .card { padding: 20px; border-radius: 24px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices small { display: none; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .stem { grid-template-columns: 1fr; gap: 8px; }
  .wave { height: 44px; }
  .section { padding-top: 72px; }
  .fab { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .fab span { display: none; }
  .fab .i { width: 21px; height: 21px; }
  .footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .steps li.active::before { border-color: var(--accent); background: var(--accent); }
}
.pg-actions .dl-ready { flex-basis: 100%; order: 3; }
.dl-ready:hover { text-decoration: none; filter: brightness(1.05); }

/* ---------- frosted glass surfaces ---------- */
.card, .step, .plan, .compare, .menu, .dlg, .toast, .fab {
  background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}
.drop, .player, .advanced, .preview, .choices button { background: var(--surface-2); border: 1px solid var(--glass-border); }
.drop { border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.stem, .editor, .studio, #edit-list li, .stepper output, .choices .ic { background: var(--surface-solid); }
.choices button[aria-checked=true] { background: var(--accent-soft); border-color: transparent; }
.dlg { background: var(--surface-solid); }
.compare .us { background: var(--accent-soft); }
.btn.primary, .play { background: var(--head-grad); }
.btn.primary:hover, .play:hover { background: var(--head-grad); filter: brightness(1.07); }
.toggle input:checked + .switch { background: var(--accent); }
.steps li.done::before { background-color: var(--ok); }
@media (max-width: 760px) {
  .stem { min-width: 0; }
  .stem > div { min-width: 0; }
  .stem-top { gap: 5px; }
  .tbtn { font-size: 0; gap: 0; padding: 0; width: 32px; justify-content: center; }
  .tbtn svg { width: 16px; height: 16px; }
  .advanced > *:not(summary) { margin-left: 10px; margin-right: 10px; }
}
.plans { grid-template-columns: repeat(3, minmax(0, 300px)); }
.per { margin: -10px 0 16px; color: var(--muted); font-size: 14px; }
.center { text-align: center; margin-top: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.price { white-space: nowrap; }
.plan ul { align-content: start; }
.plan { padding: 26px 24px; }

.acct-rows { display: grid; gap: 10px; margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--fill); }
.acct-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.acct-rows b { font-weight: 600; }

/* donations (Ko-fi) */
.pill.donate { background: color-mix(in srgb, #ff5e5b 14%, transparent); color: #e0413e; text-decoration: none; }
.pill.donate .i { color: #ff5e5b; fill: currentColor; }
.pill.donate:hover { background: color-mix(in srgb, #ff5e5b 22%, transparent); text-decoration: none; }
.donate-link .i { color: #ff5e5b; fill: currentColor; }
.btn.primary.donate-link .i { color: #fff; }
.support-card { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--glass-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.support-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, #ff5e5b 14%, transparent); }
.support-icon .i { width: 28px; height: 28px; color: #ff5e5b; fill: currentColor; }
.support-card h3 { margin: 0 0 8px; font-size: 21px; }
.support-card p { margin: 0 0 14px; color: var(--muted); }
.support-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.support-list li { padding-left: 24px; position: relative; font-size: 15px; }
.support-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.thanks { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.thanks a { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .support-card { grid-template-columns: 1fr; padding: 22px; } .pill.donate { padding: 5px 10px; } }

/* landing and legal pages */
.center { text-align: center; }
.landing .hero .btn.big { margin-top: 4px; }
.landing .hero .muted.small { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--glass-border); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.legal { max-width: 720px; margin: 0 auto; padding: 48px 0 0; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -.01em; }
.legal p { color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.legal b { color: var(--ink); }
.footer .foot-links { flex-wrap: wrap; }

/* file and privacy note under the uploader */
.file-note { margin: 12px auto 0; max-width: 520px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; }
.file-note a { white-space: nowrap; }
.drop:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* homepage before/after demo */
.demo-card { max-width: 720px; margin: 0 auto; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.demo-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.demo-choices button { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; border-radius: 14px; border: 1px solid transparent; background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.demo-choices button small { font-size: 12px; font-weight: 400; color: var(--muted); }
.demo-choices button[aria-checked=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.demo-choices button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-player { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.demo-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; cursor: pointer; }
#demo-fill { height: 100%; width: 0; background: var(--head-grad); }
.demo-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.demo-credit { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .demo-card { padding: 18px; }
  .demo-choices { grid-template-columns: 1fr 1fr; }
  .demo-choices button:first-child { grid-column: 1 / -1; }
}

/* ---------- what the site does, at a glance (hero) ---------- */
.explain { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 860px; margin: -12px auto 32px; text-align: left; }
.ex-step { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ex-cap .num { width: 22px; height: 22px; font-size: 12px; flex: none; }
.ex-box { min-height: 128px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--glass-border); }
.ex-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.ex-row span { white-space: nowrap; }
.wvb { width: 76px; height: 16px; flex: none; fill: currentColor; stroke: none; }
.s-mix { flex-direction: column; gap: 6px; color: var(--muted); }
.s-mix .wvb { width: 100%; max-width: 170px; height: 40px; color: var(--accent); }
.s-music .wvb { color: var(--music); }
.s-chorus .wvb { color: var(--chorus); }
.s-male .wvb { color: var(--male); }
.s-female .wvb { color: var(--female); }
.ex-row.off { color: var(--muted); text-decoration: line-through; }
.ex-row.off .wvb { opacity: .2; }
.ex-arrow { flex: none; width: 22px; margin-top: 92px; height: 2px; background: var(--muted); position: relative; opacity: .6; }
.ex-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); border-right: 0; }
.ex-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ex-note b { color: var(--ink); font-weight: 600; }
.explain .sm { display: none; }
@media (max-width: 760px) {
  .explain { gap: 4px; margin: -18px auto 24px; }
  .explain .lg { display: none; }
  .explain .sm { display: inline; }
  .ex-cap { font-size: 12px; gap: 5px; margin-bottom: 6px; justify-content: center; }
  .ex-cap .num { width: 18px; height: 18px; font-size: 11px; }
  .ex-box { padding: 8px; gap: 5px; border-radius: 12px; min-height: 0; height: 118px; }
  .ex-row { font-size: 11px; gap: 5px; }
  .wvb { width: 30px; height: 12px; }
  .s-mix { justify-content: center; }
  .s-mix .wvb { width: 100%; height: 40px; }
  .ex-arrow { width: 10px; margin-top: 82px; }
  .ex-note { display: none; }
}
