/* Design tokens: a calm page with one green accent, soft rounded surfaces and a slowly drifting wash of colour behind it. */
:root {
  --bg: #fcfbfa; --surface: #ffffff; --sidebar: #f6f4f1; --soft: #f1eeea; --ink: #26232b; --muted: #716c7a; --faint: #a39eac;
  --line: #e8e4de; --hover: rgba(38, 35, 43, .05); --active: rgba(38, 35, 43, .09);
  --brand: #12996b; --brand-strong: #0d8159; --on-brand: #ffffff; --brand-soft: #e2f5ec;
  --accent: #f2b33d; --warm: #ff8a4c;
  --danger: #d4483f; --danger-soft: #fdeceb; --success: #2f8a5f; --success-soft: #e8f5ee; --callout: #f4f1ec;
  --tint-1: #e6f5ee; --tint-2: #fdf4d9; --tint-3: #e6f2fb; --tint-4: #fdeedf;
  --radius: 8px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(38, 35, 43, .06), 0 2px 8px rgba(38, 35, 43, .04);
  --shadow: 0 2px 6px rgba(38, 35, 43, .06), 0 14px 40px rgba(38, 35, 43, .14);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* piano roll and timeline */
  --row-dark: #f6f4f1; --bar: #cbc6bd; --beat: #efece7; --playhead: #f0468a; --gutter: #fbfaf8;
  --loop: rgba(18, 153, 107, .13); --loop-strong: rgba(18, 153, 107, .3); --timeline-music: #c5e8d7;
}
/* public/js/theme.js sets data-theme from the visitor's choice, or from the device until they choose. */
:root { color-scheme: light; }
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #141318; --surface: #1c1b22; --sidebar: #19181e; --soft: #24222b; --ink: #ebe9f1; --muted: #a09bac; --faint: #6f6a7b;
  --line: #2c2a34; --hover: rgba(255, 255, 255, .06); --active: rgba(255, 255, 255, .1);
  --brand: #3ecf8e; --brand-strong: #63dba6; --on-brand: #0b1f16; --brand-soft: #153126;
  --accent: #f5c563; --warm: #ffa56f;
  --danger: #ff7b72; --danger-soft: #3a1f1e; --success: #6fd3a0; --success-soft: #16301f; --callout: #211f27;
  --tint-1: #15291f; --tint-2: #2e2913; --tint-3: #182a3a; --tint-4: #33271c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 40px rgba(0, 0, 0, .5);
  --row-dark: #18171d; --bar: #4b4857; --beat: #24222b; --playhead: #ff6fa8; --gutter: #17161b;
  --loop: rgba(62, 207, 142, .16); --loop-strong: rgba(62, 207, 142, .34); --timeline-music: #21503c;
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse-ring { from { box-shadow: 0 0 0 0 rgba(18, 153, 107, .45); } to { box-shadow: 0 0 0 14px rgba(18, 153, 107, 0); } }
@keyframes beat { 50% { transform: scale(1.5); } }
@keyframes sweep { from { transform: translateX(-132px); } to { transform: translateX(128px); } }
@keyframes drift-a { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-7vw, -5vh) scale(1.1); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes slide { from { width: 12%; } to { width: 78%; } }
@keyframes level { 50% { width: 38%; } }
@keyframes glow { 50% { opacity: .55; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { position: relative; margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
/* Two soft patches of colour that wander very slowly behind every page. */
body::before, body::after { content: ""; position: fixed; z-index: -1; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; }
body::before { top: -18vw; left: 8vw; background: rgba(18, 153, 107, .16); animation: drift-a 26s ease-in-out infinite alternate; }
body::after { top: 10vh; right: -12vw; background: rgba(242, 179, 61, .13); animation: drift-b 32s ease-in-out infinite alternate; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 2.3rem; letter-spacing: -.03em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 .8em; }
a { color: var(--brand); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
.hint, .muted { color: var(--muted); font-size: .875rem; }
.center { text-align: center; justify-content: center; }
.kicker { font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .09em; margin-bottom: .7em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
main > * { animation: rise .4s var(--ease) both; }
main > :nth-child(2) { animation-delay: .04s; } main > :nth-child(3) { animation-delay: .08s; }
main > :nth-child(4) { animation-delay: .12s; } main > :nth-child(n+5) { animation-delay: .16s; }

/* Icons (Lucide) take their size from the text around them */
.icon { flex: none; width: 1.15em; height: 1.15em; }
.side-icon .icon, .tour-icon .icon, .extra-icon .icon, .callout-icon .icon { display: block; }
.tour-icon .icon, .extra-icon .icon { width: 20px; height: 20px; }
.tour-tab.active .tour-icon, .extra-icon { color: var(--brand); }
.callout-icon { color: var(--warm); }
.play-btn .icon { width: 22px; height: 22px; fill: currentColor; }
.play-btn .icon-play { margin-left: 3px; }
.icon-pause, .playing .icon-play { display: none; }
.playing .icon-pause { display: block; }
.track-play .icon { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }

/* Controls */
button, .button, select, input { font: inherit; color: var(--ink); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; font-size: .9rem;
  font-weight: 550; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-decoration: none;
  color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .12s var(--ease), box-shadow .15s; }
button:hover, .button:hover { background: var(--hover); border-color: var(--faint); text-decoration: none; }
button:active, .button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: default; }
.button.primary { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: var(--shadow-sm); }
.button.primary:hover { background: var(--brand-strong); box-shadow: 0 4px 14px rgba(18, 153, 107, .35); transform: translateY(-1px); }
.button.primary:active { transform: scale(.97); }
.button.danger { color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.button.large { height: 48px; padding: 0 24px; font-size: 1.02rem; border-radius: 12px; }
.button.small { height: 30px; padding: 0 12px; font-size: .85rem; }
input:not([type=checkbox]):not([type=range]), select { height: 36px; padding: 0 12px; font-size: .9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=range]):focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=range] { accent-color: var(--brand); }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
form label, .dialog label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
form label input, .dialog label input { width: 100%; height: 40px; font-size: .95rem; font-weight: 400; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Public pages */
.public { display: flex; flex-direction: column; --sticky-top: 53px; }
.public main { width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; flex: 1; }
.public main.wide { max-width: 1120px; }
.top-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); }
.top-bar { border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top-bar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(38, 35, 43, .05); }
.top-sections { display: flex; gap: 2px; margin: 0 auto; }
.top-sections a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius); text-decoration: none; font-size: .92rem; color: var(--muted); transition: background .15s, color .15s; }
.top-sections a:hover { background: var(--hover); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo-mark { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.logo-bg { fill: var(--ink); } .logo-bar { fill: var(--bg); }
.top-links { display: flex; align-items: center; gap: 2px 4px; flex-wrap: wrap; justify-content: flex-end; }
.top-links a:not(.button) { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius); text-decoration: none;
  font-size: .92rem; color: var(--ink); transition: background .15s; }
.top-links a:not(.button):hover { background: var(--hover); }
.top-links .button { margin-left: 6px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 24px;
  color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer .company { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.5; }
.site-footer .company strong { font-weight: 600; }
.theme-toggle { width: 32px; height: 32px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle .icon-sun, :root[data-theme=dark] .theme-toggle .icon-moon { display: none; }
:root[data-theme=dark] .theme-toggle .icon-sun { display: block; }
.foot-tools { display: flex; align-items: center; gap: 10px; }
.dark-end .theme-toggle { color: rgba(255, 255, 255, .6); } .dark-end .theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch { display: flex; gap: 12px; font-size: .85rem; }
.lang-switch span { font-weight: 650; color: var(--ink); }
.lang-switch a { color: var(--muted); }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -.045em; line-height: 1.04; max-width: 17ch; margin: 0 auto .4em; }
.hero h1 em { position: relative; font-style: normal; color: var(--brand); white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .22em; overflow: visible; }
.hero h1 em path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 420; animation: draw 1.1s var(--ease) .5s both; }
.hero .lead { max-width: 54ch; margin: 0 auto 1.6em; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.hero-facts li::before { content: "✓"; margin-right: 6px; color: var(--success); font-weight: 700; }
.button.light { background: #fff; border-color: transparent; color: #26232b; }
.button.light:hover { background: #f1eeea; transform: translateY(-1px); }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.button.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Hero picture: a page of score becomes one track per voice */
@keyframes travel { from { transform: translateX(-10px); opacity: 0; } 30%, 70% { opacity: 1; } to { transform: translateX(10px); opacity: 0; } }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.transform { display: grid; grid-template-columns: minmax(0, 300px) 110px minmax(0, 380px); align-items: center; justify-content: center; gap: 8px; margin: 64px auto 0; text-align: left;
  animation: pop .7s var(--ease) .15s both; }
.sheet { position: relative; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-3deg); transition: transform .4s var(--ease); }
.transform:hover .sheet { transform: rotate(-1deg) translateY(-4px); }
.sheet svg { display: block; width: 100%; height: auto; }
.staff-line { fill: #c9c5d1; } .staff-note { fill: #26232b; } .sheet-title { fill: #26232b; } .sheet-sub { fill: #c9c5d1; }
.sheet-tag { position: absolute; left: 14px; bottom: -14px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 650; }
.flow { display: flex; justify-content: center; gap: 9px; }
.flow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: travel 1.8s ease-in-out infinite; }
.flow i:nth-child(2) { animation-delay: .15s; } .flow i:nth-child(3) { animation-delay: .3s; } .flow i:nth-child(4) { animation-delay: .45s; } .flow i:nth-child(5) { animation-delay: .6s; }
.tracks { display: flex; flex-direction: column; gap: 10px; }
.track { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s; }
.track:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
.track.mine { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), var(--shadow); }
.track-play { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; font-size: .8rem; }
.track-name { flex: 1; display: flex; flex-direction: column; font-weight: 650; line-height: 1.2; }
.track-name small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.track-bars { display: flex; align-items: center; gap: 4px; height: 30px; }
.track-bars i { width: 4px; height: 100%; border-radius: 2px; background: var(--c); transform-origin: center; animation: eq 1.1s ease-in-out infinite; opacity: .85; }
.track-bars i:nth-child(2) { animation-delay: .15s; } .track-bars i:nth-child(3) { animation-delay: .4s; } .track-bars i:nth-child(4) { animation-delay: .1s; }
.track-bars i:nth-child(5) { animation-delay: .55s; } .track-bars i:nth-child(6) { animation-delay: .3s; } .track-bars i:nth-child(7) { animation-delay: .7s; }
.track:nth-child(2) .track-bars i { animation-duration: .9s; } .track:nth-child(3) .track-bars i { animation-duration: 1.3s; } .track:nth-child(4) .track-bars i { animation-duration: 1.5s; }
.art-lyrics .now { color: var(--brand); font-weight: 700; }
.mock-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.mock-strip i, .mock-file i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mock-loop { background: var(--brand-soft); color: var(--brand); }
.mock-voice-0 { --c: #d1495b; } .mock-voice-1 { --c: #e08a1e; } .mock-voice-2 { --c: #2a9d8f; } .mock-voice-3 { --c: #3d6fd6; }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 60px; }
.section-heading { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.04em; line-height: 1.08; text-align: center; max-width: 18ch; margin: 0 auto 40px; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .88rem; font-weight: 650; margin: -24px 0 28px; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loop-sweep { from { transform: translateX(0); } to { transform: translateX(112px); } }

/* A light that follows the pointer over a card */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.spot:hover::after { opacity: 1; }

/* Facts strip */

/* Before and after */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 920px; margin: 0 auto; }
.compare-side { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.compare-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.compare-side ul { list-style: none; padding: 0; margin: 0; }
.compare-side li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); }
.compare-side li:first-child { border-top: 0; }
.compare-side li::before { position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.before { background: var(--soft); }
.before li { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.before li::before { content: "✕"; background: var(--line); color: var(--muted); }
.after { border-color: var(--brand); box-shadow: 0 12px 44px rgba(18, 153, 107, .14); }
.after h3 { color: var(--brand); }
.after li { font-weight: 600; }
.after li::before { content: "✓"; background: var(--brand); color: var(--on-brand); }

/* Feature tour: tabs on the left, the matching picture on the right */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour.js .tour-tabs { height: 470px; }
.tour-tab { position: relative; display: flex; align-items: flex-start; justify-content: flex-start; gap: 14px; height: auto; padding: 16px 18px; text-align: left; white-space: normal; background: transparent;
  border: 1px solid transparent; border-radius: 16px; overflow: hidden; transition: background .2s, border-color .2s, box-shadow .2s; }
.tour-tab:hover { background: var(--hover); border-color: transparent; }
.tour-tab:active { transform: none; }
.tour-tab.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tour-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); font-size: 1.15rem; transition: background .2s, transform .3s var(--ease); }
.tour-tab.active .tour-icon { background: var(--brand-soft); transform: scale(1.06); }
.tour-copy { display: flex; flex-direction: column; gap: 2px; }
.tour-copy strong { font-size: 1.05rem; letter-spacing: -.015em; }
.tour-copy span { color: var(--muted); font-size: .92rem; font-weight: 400; }
.tour.js .tour-tab:not(.active) .tour-copy span { display: none; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.tour.auto .tour-tab.active .tour-progress { animation: fill 6.5s linear forwards; }
.tour-stage { position: relative; height: 470px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--tint-1); overflow: hidden; transition: background .4s; }
.tour-stage:has(.panel-loop.active) { background: var(--tint-3); } .tour-stage:has(.panel-lyrics.active) { background: var(--tint-4); } .tour-stage:has(.panel-share.active) { background: var(--tint-2); }
.tour-panel { height: 100%; display: flex; align-items: center; justify-content: center; }
.tour.js .tour-panel:not(.active) { display: none; }
.tour.js .tour-panel.active { animation: pop .45s var(--ease); }
.tour:not(.js) .tour-panel { margin-bottom: 16px; }
.mock-panel { width: min(100%, 440px); display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.mock-panel.center { align-items: center; gap: 22px; padding: 36px 20px; }
.mock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.mock-row.center { justify-content: center; }
.mock-label { margin: 0; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--soft); }
.mock-seg i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted); }
.mock-seg i.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.mock-seg i b { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mock-seg.outline { background: none; padding: 0; gap: 6px; }
.mock-seg.outline i { border: 1px solid var(--line); }
.mock-seg.outline i.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.mock-seg.serif i { font: italic .85rem Georgia, serif; } .mock-seg.serif i:nth-child(2) { font-size: 1rem; } .mock-seg.serif i:nth-child(3) { font-size: 1.2rem; } .mock-seg.serif i:nth-child(4) { font-size: 1.4rem; }
.mock-strip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 600; }
.mock-strip span { width: 72px; }
.mock-strip.mine { border-color: var(--c); }
.mock-strip.mine i { animation: beat .6s ease-in-out infinite; }
.mock-slider { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--c) var(--level, 70%), var(--line) 0); }
.slider-0, .slider-2, .slider-3 { --level: 30%; } .slider-1 { --level: 100%; }
.mock-roll { width: 100%; height: auto; border-radius: 12px; background: var(--gutter); border: 1px solid var(--line); }
.roll-barline { fill: var(--line); } .roll-loop { fill: var(--loop-strong); } .roll-playhead { fill: var(--playhead); }
.roll-voice-0 { fill: #d1495b; } .roll-voice-1 { fill: #e08a1e; } .roll-voice-2 { fill: #2a9d8f; } .roll-voice-3 { fill: #3d6fd6; }
.loop-head { animation: loop-sweep 2.4s linear infinite; }
.mock-lyric-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; font: italic clamp(1.4rem, 3vw, 2.1rem) Georgia, serif; color: var(--muted); }
.mock-lyric-line .now { color: var(--brand); font-weight: 700; transform: scale(1.12); }
.mock-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; color: var(--muted); }
.mock-link b { padding: 7px 12px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-size: .78rem; white-space: nowrap; }
.mock-person { display: flex; align-items: center; gap: 10px; height: 44px; font-size: .92rem; font-weight: 600; animation: rise .5s var(--ease) both; }
.mock-person:nth-of-type(2) { animation-delay: .08s; } .mock-person:nth-of-type(3) { animation-delay: .16s; } .mock-person:nth-of-type(4) { animation-delay: .24s; }
.mock-person > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: .8rem; font-weight: 700; }
.mock-person span { flex: 1; }
.mock-person em { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-style: normal; font-size: .78rem; }
.mock-person em b { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.extra, .audience { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.extra:hover, .audience:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.extra-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); font-size: 1.25rem; margin-bottom: 16px; }
.extra h3 { font-size: 1.1rem; } .extra p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Steps on a line */
.steps { position: relative; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 0; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 16px); }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 700; box-shadow: 0 0 0 8px var(--bg); }
.steps h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.audience { padding: 32px; }
.audience h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: .8em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 7px 0 7px 30px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 800; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 360px)); gap: 16px; justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.highlighted { border: 2px solid var(--brand); box-shadow: 0 12px 44px rgba(18, 153, 107, .16); }
.plan-flag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .74rem; font-weight: 700; }
.plan h3 { font-size: 1.2rem; margin-bottom: 2px; }
.plan .price { color: var(--muted); margin: 14px 0 18px; } .plan .price strong { font-size: 2.6rem; letter-spacing: -.04em; color: var(--ink); }
.plan .button { width: 100%; height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: .95rem; }
.plan li { padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Questions: a short note on the left, the answers on the right */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: 84px; }
.faq-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.04em; }
.faq-intro .hint { font-size: 1rem; margin-bottom: 1.2em; }

/* The bottom of the landing page: the closing call and the footer share one dark band. */
.dark-end { position: relative; overflow: hidden; margin-top: 40px; border-radius: 32px 32px 0 0; background: #101a15; color: #fff; }
.dark-end::before { content: ""; position: absolute; inset: -30% 15% auto; height: 90%; border-radius: 50%; background: rgba(18, 153, 107, .45); filter: blur(90px); animation: drift-b 18s ease-in-out infinite alternate; }
.dark-end > * { position: relative; }
.dark-end .site-footer .company { border-top-color: rgba(255, 255, 255, .12); }
.closing { text-align: center; padding: 88px 24px 72px; }
.dark-end .site-footer { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }
.dark-end .site-footer a { color: rgba(255, 255, 255, .6); }
.dark-end .site-footer a:hover, .dark-end .lang-switch span { color: #fff; }
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; color: #fff; max-width: 20ch; margin: 0 auto .4em; }
.closing p { color: rgba(255, 255, 255, .75); margin-bottom: 1.6em; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 650; font-size: 1.05rem; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--muted); font-weight: 500; transition: transform .25s var(--ease), background .2s, color .2s; }
.faq[open] summary::after { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.faq summary:hover { color: var(--brand); }
.faq p { margin: 0 0 16px; color: var(--muted); max-width: 60ch; animation: rise .25s var(--ease); }
/* Sign in and sign up: the form on one side, a picture of the product on the other. */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; min-height: 100vh; padding: 24px 32px; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 2rem; letter-spacing: -.03em; margin-bottom: .25em; }
.auth-card .notice { margin-top: 18px; }
.button.social { width: 100%; height: 46px; margin-top: 26px; gap: 10px; font-size: .97rem; border-radius: 10px; box-shadow: var(--shadow-sm); }
.button.social:disabled { opacity: .55; cursor: not-allowed; }
.google-mark { width: 18px; height: 18px; flex: none; }
.social-note { margin-top: 8px; text-align: center; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card form { margin-top: 22px; }
.auth-card form label input { height: 46px; border-radius: 10px; }
.field-note { font-weight: 400; font-size: .8rem; }
.auth-card button[type=submit] { width: 100%; height: 46px; margin-top: 4px; font-size: .97rem; border-radius: 10px; }
.auth-terms { margin-top: 14px; text-align: center; }
.auth-switch { margin-top: 22px; text-align: center; font-size: .92rem; color: var(--muted); }
.auth-switch a { font-weight: 600; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .85rem; }
.auth-foot nav:first-child { display: flex; gap: 16px; } .auth-foot a { color: var(--muted); }
.auth-art { position: relative; overflow: hidden; display: grid; place-items: center; margin: 12px; padding: 48px; border-radius: 28px; background: #101a15; color: #fff; }
.auth-art::before { content: ""; position: absolute; inset: -20% -20% auto 10%; height: 70%; border-radius: 50%; background: rgba(18, 153, 107, .5); filter: blur(90px); animation: drift-b 18s ease-in-out infinite alternate; }
.auth-art::after { content: ""; position: absolute; inset: auto 30% -25% -20%; height: 55%; border-radius: 50%; background: rgba(242, 179, 61, .16); filter: blur(90px); animation: drift-a 24s ease-in-out infinite alternate; }
.auth-art-inner { position: relative; width: 100%; max-width: 440px; }
.auth-art .kicker { color: #6fe0ae; }
.auth-art h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 32px; color: #fff; }
.auth-art .track { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); box-shadow: none; backdrop-filter: blur(6px); }
.auth-art .track.mine { background: rgba(255, 255, 255, .13); border-color: var(--c); }
.auth-art .track-name { color: #fff; } .auth-art .track-name small { color: rgba(255, 255, 255, .6); }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.auth-benefits li { display: inline-flex; align-items: center; gap: 6px; } .auth-benefits .icon { color: #6fe0ae; }
.prose h1 { margin-bottom: .6em; } .prose h2 { font-size: 1.2rem; margin-top: 1.8em; }

/* Workspace: sidebar plus page */
.workspace { display: grid; grid-template-columns: 252px minmax(0, 1fr); --sticky-top: 0px; }
.workspace main { width: 100%; max-width: 920px; margin: 0 auto; padding: 56px 56px 96px; }
.workspace main.wide { max-width: 1280px; padding-top: 40px; }
/* The library is mostly tables: on a big screen it takes the room it is given. */
.workspace main.roomy { max-width: 1280px; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); font-size: .9rem; overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 12px; }
.avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.side-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-toggle { display: none; border: 0; background: none; width: 36px; padding: 0; font-size: 1.1rem; }
.side-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.side-nav { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.side-link { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--radius); color: var(--muted); text-decoration: none; font-weight: 550;
  transition: background .15s, color .15s, padding-left .2s var(--ease); }
.side-link:hover { background: var(--hover); color: var(--ink); text-decoration: none; padding-left: 13px; }
.side-link.current { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.side-link.current::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
.side-link.current .side-icon { color: var(--brand); }
.side-icon { flex: none; display: grid; place-items: center; width: 20px; color: var(--faint); }
.side-heading { margin: 20px 10px 6px; font-size: .72rem; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.side-bottom { padding: 8px 8px 14px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background .15s; }
.side-user:hover { background: var(--hover); text-decoration: none; }
.side-user .side-text { display: flex; flex-direction: column; line-height: 1.25; }
.side-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.side-bottom .foot-tools { justify-content: space-between; padding: 6px 4px 0 10px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 4px; } .page-head p { margin: 0; }
.section-title { font-size: 1rem; font-weight: 650; margin: 32px 0 10px; }
.block { padding: 22px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.block h2 { font-size: 1.1rem; }
.block form { max-width: 360px; }
.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--callout); font-size: .95rem; }
.notice.error { background: var(--danger-soft); color: var(--danger); animation: pop .25s var(--ease); }
.notice.success { background: var(--success-soft); color: var(--success); }
.callout { display: flex; gap: 12px; padding: 18px; margin-top: 28px; border-radius: var(--radius-lg); background: var(--tint-4); }
.callout h2 { font-size: 1rem; } .callout p:last-child { margin: 0; }
.callout-icon { font-size: 1.2rem; line-height: 1.3; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.empty .actions, .empty > .button { margin-top: 20px; }

/* Song lists */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.song-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.song-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.song-table td { padding: 0 14px; height: 48px; border-bottom: 1px solid var(--line); white-space: nowrap; transition: background .15s; }
.song-table tbody tr:last-child td { border-bottom: 0; }
.song-table tbody tr:hover td { background: var(--hover); }
.song-table td:first-child { width: 40%; }
.song-table td:nth-child(2) { white-space: normal; min-width: 180px; line-height: 1.35; padding-block: 8px; }
.row-link { display: flex; align-items: center; gap: 10px; height: 48px; font-weight: 600; text-decoration: none; color: var(--ink); }
.row-link .side-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); transition: transform .2s var(--ease); }
.song-table tr:hover .row-link .side-icon { transform: scale(1.12) rotate(-6deg); }

/* Upload */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 52px 20px; margin: 20px 0; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); font-weight: 400; color: var(--ink); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.drag { transform: scale(1.01); }
.voice-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.voice-list li, .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-size: .82rem; font-weight: 550; animation: pop .3s var(--ease) both; }
.voice-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }

/* Dialogs and toasts */
.dialog { width: min(520px, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog[open] { animation: pop .22s var(--ease); }
.dialog::backdrop { background: rgba(20, 18, 28, .5); backdrop-filter: blur(3px); animation: fade .2s; }
.dialog h2 { font-size: 1.2rem; } .dialog h3 { margin-top: 24px; font-size: .92rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.member-list, .export-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.member-list li, .export-list li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.member-list li span, .export-list .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.export-list li { padding-left: 12px; border-left: 4px solid var(--c, var(--line)); }
.export-list small, .export-list .status { color: var(--muted); font-size: .8rem; }
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; transform: translateX(-50%); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 550; box-shadow: var(--shadow); animation: toast-in .3s var(--ease);
  transition: opacity .35s, transform .35s; }
.toast.leaving { opacity: 0; transform: translateY(8px); }

/* Player */
.player { display: flex; flex-direction: column; gap: 12px; }
.deck { position: sticky; top: var(--sticky-top); z-index: 4; padding: 12px 14px 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.deck-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.play-btn { flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.15rem; box-shadow: 0 4px 14px rgba(18, 153, 107, .3); }
.play-btn:hover { background: var(--brand); transform: scale(1.06); box-shadow: 0 8px 24px rgba(18, 153, 107, .45); }
.play-btn:active { transform: scale(.95); }
.playing .play-btn { animation: pulse-ring 1.6s ease-out infinite; }
.button-group { display: inline-flex; }
.zoom-group button { width: 32px; height: 32px; }
.zoom-group button:disabled { opacity: .4; cursor: default; }
.zoom-axis { display: grid; place-items: center; width: 30px; margin-left: -1px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); }
.button-group button { border-radius: 0; margin-left: -1px; width: 40px; padding: 0; }
.button-group button:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.button-group button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.position { font-variant-numeric: tabular-nums; font-size: .95rem; font-weight: 650; min-width: 140px; }
.timeline { display: block; width: 100%; height: 30px; margin-top: 4px; cursor: pointer; touch-action: none; border-radius: 8px; }
.loop-chip { background: var(--brand-soft); color: var(--brand); }
.chip-close { height: auto; padding: 0 2px; border: 0; background: none; color: inherit; }
#loopBtn.on, #loopBtn[aria-pressed=true] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.panels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel-label { font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.panel input[type=number] { width: 68px; } .panel input[type=range] { width: 120px; }
.unit { color: var(--muted); font-size: .85rem; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--soft); }
.segmented button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: .85rem; }
.segmented button:hover { color: var(--ink); background: var(--hover); }
.segmented button[aria-checked=true], .segmented button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented button[data-value]:not([data-value=""])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, transparent); }
.text-sizes button { width: 34px; padding: 0; font-family: Georgia, serif; font-style: italic; }
.text-size-0 { font-size: .8rem; } .text-size-1 { font-size: .95rem; } .text-size-2 { font-size: 1.15rem; } .text-size-3 { font-size: 1.35rem; }
.segmented.subtle { background: none; padding: 0; animation: pop .25s var(--ease); }
.segmented.subtle button { border: 1px solid var(--line); }
.segmented.subtle button[aria-checked=true] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.field, .check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.field input[type=number] { width: 68px; } .field input[type=range] { width: 120px; }
.more-settings summary { cursor: pointer; color: var(--muted); font-size: .88rem; height: 36px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--radius); transition: background .15s; }
.more-settings summary:hover { background: var(--hover); color: var(--ink); }
.more-settings[open] { flex-basis: 100%; }
.more-settings-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 6px 10px 0; animation: rise .25s var(--ease); }

.mixer { display: flex; flex-wrap: wrap; gap: 8px; }
/* Tempo, text, zoom and the voices: always in view on a wide screen, folded behind one line on a phone. */
.fold { display: flex; flex-direction: column; gap: 12px; }
.fold > summary { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .92rem; font-weight: 600; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.fold > .panels, .fold > .mixer { margin-top: 12px; }
.fold > .panels:first-of-type { margin-top: 0; }
/* A strip is never narrower than what it holds (min-width wins over max-width), so a long voice name moves the next strip on. */
.strip { flex: 1 1 200px; min-width: min-content; max-width: 320px; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: opacity .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.strip:hover { box-shadow: var(--shadow-sm); }
.strip.off { opacity: .5; }
.strip.singing { border-color: var(--c); }
.strip-toggle { min-width: 0; height: 34px; padding: 0 8px; border: 0; background: none; gap: 8px; font-weight: 650; }
.strip-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.strip-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); transition: background .2s, box-shadow .2s; }
.strip-toggle[aria-checked=false] .strip-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--faint); }
.strip.singing .strip-dot { animation: beat .5s ease-in-out infinite; }
.strip-solo { flex: none; height: 24px; padding: 0 8px; font-size: .72rem; border-radius: 999px; }
.strip-solo[aria-pressed=true] { background: var(--c); border-color: var(--c); color: #fff; }
.strip input[type=range] { flex: 1; min-width: 48px; width: 76px; accent-color: var(--c); }

.edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand-soft); animation: rise .25s var(--ease); }
.edit-bar select { height: 32px; } .edit-bar button { height: 32px; }
.edit-voice-form { display: inline-flex; gap: 6px; } .edit-voice-form input { height: 32px !important; width: 180px; }
.edit-help { flex-basis: 100%; margin: 0; }
.player.editing .roll { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: var(--tint-2); border: 1px solid var(--accent); animation: rise .25s var(--ease); }
.draft-text { display: flex; flex-direction: column; } .draft-text span { color: var(--muted); font-size: .9rem; }
.draft-bar .notice { flex-basis: 100%; margin: 0; }
#editBtn[aria-pressed=true] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.stage { position: relative; }
/* The score view (public/js/score-view.js): the song on one line sliding past a soft band of light.
   Verovio's own <style> blocks are dropped (this site allows no inline styles), so the rules it needs are here.
   Nothing is pure white: notes are the page's ink, softened; staff lines barely there; what has been sung fades.
   Three looks for choosing between, set with data-look: ink (default), lanes, spotlight. */
.score-view { --score-ink: color-mix(in srgb, var(--ink) 78%, transparent); --score-staff: color-mix(in srgb, var(--ink) 22%, transparent);
  --score-past: .32; position: relative; display: flex; align-items: safe center; height: min(62vh, 580px); min-height: 380px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
/* The music fades in from the right edge and out at the left one. */
.score-view::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, var(--surface), transparent 5%, transparent 94%, var(--surface)); }
.score-line { position: relative; z-index: 1; flex: none; will-change: transform; }
.score-line svg { display: block; color: var(--score-ink); fill: currentColor; overflow: visible; }
.score-line :is(ellipse, path, polygon, polyline, rect) { stroke: currentColor; }
.score-line g.staff > path, .score-line g.ledgerLines path { color: var(--score-staff); }
.score-line g.barLine { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.score-line g.tempo, .score-line g.placeholder, .score-line g.label, .score-line g.mNum { display: none; }
.score-line g.dir, .score-line g.dynam { font-style: italic; }
.score-line g.verse text { font-family: var(--font); font-size-adjust: .5; }
.score-line g.measure { cursor: pointer; }
.score-line g.note { transition: fill .12s, color .12s, opacity .4s; }
.score-line g.note.past { opacity: var(--score-past); }
.score-line g.note.mine { fill: color-mix(in srgb, var(--c) 60%, var(--ink)); color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.score-line g.note.sounding { opacity: 1; fill: var(--c, var(--brand)); color: var(--c, var(--brand)); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c, var(--brand)) 70%, transparent)); }
/* The play line: a soft band of light rather than a hard rule. */
.score-playline { position: absolute; z-index: 2; top: 0; bottom: 0; left: 33.333%; width: 56px; margin-left: -28px; pointer-events: none;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--brand) 16%, transparent) 50%, transparent);
  border-left: 0; }
.score-playline::after { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px;
  background: linear-gradient(to bottom, transparent, var(--brand) 20%, var(--brand) 80%, transparent); opacity: .75; }
/* Voice names stay at the left edge while the music moves. */
.score-lanes { position: absolute; inset: 0; pointer-events: none; }
.score-lane { position: absolute; z-index: 0; left: 0; right: 0; }
.score-lane-name { position: absolute; z-index: 3; left: 18px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 650; color: var(--muted); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.score-lane-name::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--c, var(--faint)); vertical-align: 1px; }
.score-view.has-mine .score-lane.mine-staff .score-lane-name { color: var(--ink); }

/* Look 2, lanes: each voice on its own faint band of its colour; choosing "my voice" puts the others in the shade. */
.score-view[data-look=lanes] .score-lane { background: color-mix(in srgb, var(--c, var(--faint)) 7%, transparent); border-block: 1px solid color-mix(in srgb, var(--c, var(--faint)) 14%, transparent); }
.score-view[data-look=lanes].has-mine .score-lane.mine-staff { background: color-mix(in srgb, var(--c, var(--faint)) 14%, transparent); }
.score-view[data-look=lanes].has-mine .score-line g.staff:not(.mine-staff) { opacity: .38; }

/* Look 3, spotlight: the whole line in the dark, the stretch around the play line lit. */
.score-view[data-look=spotlight] { --score-ink: color-mix(in srgb, var(--ink) 90%, transparent); }
.score-view[data-look=spotlight]::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, color-mix(in srgb, var(--surface) 78%, transparent) 8%, transparent 26%, transparent 46%,
    color-mix(in srgb, var(--surface) 70%, transparent) 72%); }
.score-view[data-look=spotlight] .score-playline { background: none; }

.score-status { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); }
.roll { position: relative; height: min(62vh, 580px); min-height: 380px; overflow-x: auto; overflow-y: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.roll canvas { position: sticky; left: 0; display: block; cursor: pointer; touch-action: pan-x; }
#sizer { height: 1px; }
.stage-status { position: absolute; top: 10px; right: 12px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .8rem; }
.stage-status:empty { display: none; }
.count-num { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: clamp(5rem, 22vh, 11rem); font-weight: 750; letter-spacing: -.04em; color: var(--brand); opacity: .85; text-shadow: 0 4px 30px var(--bg); }
.player-help { margin: 0; }
.icon-button { width: 36px; padding: 0; }
/* In the workspace the player takes the whole page: full width, and the notes fill the height that is left. */
.workspace main.wide { display: flex; flex-direction: column; max-width: none; min-height: 100vh; padding: 28px 32px 24px; }
.workspace .player, .player.is-full { flex: 1; }
.workspace .stage, .player.is-full .stage { flex: 1 1 0; display: flex; min-height: 380px; }
.workspace .roll, .player.is-full .roll, .workspace .score-view, .player.is-full .score-view { flex: 1; min-width: 0; height: auto; min-height: 0; }
/* Full screen: the player covers everything. "Only the notes" also puts the controls away until the pointer moves. */
html.player-full { overflow: hidden; }
.player.is-full { position: fixed; inset: 0; z-index: 50; width: auto; height: auto; padding: 12px; gap: 10px; background: var(--bg); animation: none; }
.player.is-full .deck { position: static; }
.player.is-full .stage { min-height: 0; }
.player.is-full .hint { display: none; }
#focusBtn, .icon-min, .icon-show { display: none; }
.player.is-full #focusBtn { display: inline-flex; }
.player.is-full .icon-max, .player.is-focus .icon-hide { display: none; }
.player.is-full .icon-min, .player.is-focus .icon-show { display: block; }
.player.is-focus { padding: 0; }
.player.is-focus .panels, .player.is-focus .mixer, .player.is-focus .fold { display: none; }
.player.is-focus .roll, .player.is-focus .score-view { border: 0; border-radius: 0; }
.player.is-focus .deck { position: absolute; z-index: 5; bottom: 12px; left: 12px; right: 12px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); transition: opacity .3s, transform .3s var(--ease); }
.player.is-focus.idle .deck { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.is-focus.idle, .player.is-focus.idle canvas { cursor: none; }

/* The rehearsal layout: the music in the middle, each voice's controls beside its own staff, transport at the bottom. */
.player-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.view-switch button { gap: 6px; }
.stage-card { display: flex; height: min(64vh, 620px); min-height: 420px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.workspace .stage-card, .player.is-full .stage-card { flex: 1 1 0; height: auto; }
.stage-card .stage { flex: 1; display: flex; min-width: 0; min-height: 0; }
.stage-card .roll, .stage-card .score-view { flex: 1; min-width: 0; height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.player.editing .stage-card { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.player.editing .stage-card .roll { box-shadow: none; }
.rail { position: relative; flex: 0 0 136px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.rail .strip { flex: none; min-width: 0; max-width: none; height: auto; display: grid; grid-template-columns: 40px 40px; justify-content: start; align-items: center; gap: 8px 6px; padding: 12px 14px;
  background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: 0; opacity: 1; }
.rail .strip:first-child { border-top: 0; }
.rail .strip:hover { box-shadow: none; }
.rail.aligned .strip { position: absolute; left: 0; right: 0; transform: translateY(-50%); border-top: 0; }
.rail .strip.mine { background: color-mix(in srgb, var(--c) 11%, transparent); }
.rail .strip-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; max-width: none; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.rail .strip-name::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rail .strip.off .strip-name { color: var(--faint); }
.rail .strip.singing .strip-name::before { animation: beat .5s ease-in-out infinite; }
.rail .strip input[type=range] { grid-column: 1 / -1; width: 100%; min-width: 0; height: 14px; margin: 0; }
.strip-mine, .rail .strip-toggle { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--muted); }
.strip-mine[aria-pressed=true] { color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.strip-mine[aria-pressed=true] .icon { fill: currentColor; }
.strip-toggle .icon-off, .strip-toggle[aria-checked=false] .icon-on { display: none; }
.strip-toggle[aria-checked=false] .icon-off { display: block; }
.strip-toggle[aria-checked=false] { color: var(--danger); }
/* The voices are named in the rail, so the score needs no second set of names. */
.stage-card .score-lane-name { display: none; }
#myVoice { display: none; }
.player .deck { position: static; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.deck .timeline { margin: 0; }
.deck .play-btn { width: 60px; height: 60px; color: var(--on-brand); }
.deck .icon-button { width: 40px; }
.mine-mode { display: flex; align-items: center; gap: 10px; margin-left: 8px; color: var(--muted); font-size: .88rem; }
.mine-mode:has(#myVoiceMode[hidden]) { display: none; }
.deck-tempo { display: inline-flex; align-items: center; gap: 6px; }
.deck-tempo input { width: 64px; }
.settings { position: relative; }
.settings > summary { display: grid; place-items: center; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; list-style: none; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary:hover, .settings[open] > summary { background: var(--hover); border-color: var(--faint); }
.settings-body { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 6; width: min(340px, 86vw); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.player.is-focus .player-top, .player.is-focus .rail { display: none; }

@media (max-width: 860px) {
  h1 { font-size: 1.8rem; }
  .public main { padding: 28px 16px 48px; }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-side { padding: 20px 16px; }
  .workspace { display: block; }
  .workspace main, .workspace main.wide { padding: 24px 14px 40px; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { padding: 10px 14px; }
  .side-toggle { display: inline-flex; }
  .side-body { display: none; }
  .sidebar.open .side-body { display: flex; animation: rise .25s var(--ease); }
  .panel input[type=range], .field input[type=range] { width: 96px; }
  .section { padding: 52px 0; }
  .top-sections { display: none; }
  .compare, .tour, .extras, .audiences, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .tour-stage { height: 430px; padding: 16px; order: -1; }
  .tour.js .tour-tabs { height: auto; align-items: stretch; }
  .tour.js .tour-tab:not(.active) .tour-copy span { display: block; }
  .tour.js .tour-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tour.js .tour-tab { flex: none; width: 78%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px); }
  .faq-intro { position: static; }
  .faq-section { gap: 20px; }
  .transform { grid-template-columns: minmax(0, 320px); gap: 34px; margin-top: 48px; }
  .sheet { width: 62%; margin: 0 auto; }
  .flow { transform: rotate(90deg); }
  .dark-end { border-radius: 24px 24px 0 0; }
  .roll { height: 54vh; }
  .workspace main.wide { min-height: 0; }
  .workspace .stage { min-height: 54vh; }
  .stage-card, .workspace .stage-card { flex: none; flex-direction: column; height: auto; min-height: 0; }
  .stage-card .stage { order: 0; flex: none; height: 54vh; }
  /* Every voice stays in view: the chips wrap onto a second row rather than scroll. */
  .rail, .rail.aligned { order: 1; flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 6px; padding: 10px; border-right: 0; border-top: 1px solid var(--line); }
  .rail .strip, .rail.aligned .strip { position: static; transform: none; min-width: 0; display: flex; justify-content: space-between; gap: 0; height: 44px; padding: 0 0 0 8px; border: 1px solid var(--line); border-radius: 12px; }
  .rail .strip-name { gap: 5px; min-width: 0; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
  .rail .strip:first-child { border-top: 1px solid var(--line); }
  .rail .strip.mine { border-color: var(--c); }
  .rail .strip input[type=range], .rail .strip-toggle { display: none; }
  .rail .strip-mine { flex: none; width: 30px; border: 0; }
  .score-lane-name { display: none; }
  .mine-mode { flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .mine-mode .segmented { flex-wrap: nowrap; }
  /* The transport as three tidy rows: moving and play, where you are and how fast, then the tools. */
  .player .deck-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 12px 8px; }
  .player .deck-row > * { grid-column: span 12; min-width: 0; }
  .player .deck-row > .button-group { grid-column: span 4; justify-self: start; }
  .player .deck-row > .play-btn { grid-column: span 4; justify-self: center; }
  .player .deck-row > .play-btn + .button-group { justify-self: end; }
  .player .deck-row > .button-group button { width: 44px; height: 44px; }
  .player .deck-row > .position { grid-column: span 7; }
  .player .deck-row > .deck-tempo { grid-column: span 5; justify-self: end; }
  .player .deck-row > .deck-tempo input { height: 44px; }
  .player .deck-row > #loopBtn, .player .deck-row > #exportBtn, .player .deck-row > .settings, .player .deck-row > #fullBtn, .player .deck-row > #focusBtn { grid-column: span 3; width: 100%; height: 44px; }
  .player .deck-row > .settings > summary { width: 100%; height: 44px; }
  /* Settings come up from the bottom of the screen, where they always fit. */
  .settings-body { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 72vh; overflow-y: auto; }
  .settings[open]::before { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .45); }
  .deck .button-text { display: none; }
  .deck #loopBtn, .deck #exportBtn { width: 40px; padding: 0; }
  .position { flex: 1 1 110px; min-width: 110px; font-size: .9rem; }
  .deck-row { gap: 8px; }
  .deck .spacer { display: none; }
  .position { min-width: 0; }
  .player-help { display: none; }
  .deck { position: static; padding: 10px 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
