/* JamScore AI - Morphic-style dark cinema canvas
   Surface stack #000 → #212121 → #292929 → #333333, single accent #0075ff. */

/* alphaTab loads Bravura for its own canvas but never registers it with CSS, so any
   toolbar glyph styled with font-family:Bravura rendered as tofu until this existed. */
@font-face{
  font-family:Bravura;
  src:url('assets/alphatab/font/Bravura.woff2') format('woff2'),
      url('assets/alphatab/font/Bravura.woff') format('woff');
  font-display:block;
}

:root{
  --bg:#000000; --card:#212121; --raised:#292929; --floating:#333333;
  --line:rgba(229,231,235,.14);
  --txt:#ffffff; --sub:#999999; --dim:#666666;
  --blue:#0075ff;
}
*{box-sizing:border-box;margin:0}
html{color-scheme:dark}
body{
  font-family:Inter,"IBM Plex Sans",Geist,system-ui,sans-serif;
  font-feature-settings:"cv11","ss01";
  background:var(--bg);color:var(--txt);line-height:1.5;
  font-size:14px;letter-spacing:-.01em;
  min-height:100dvh;
}
h1{font-size:clamp(2.2rem,5vw,52px);line-height:1.15;letter-spacing:-.062em;font-weight:700}
h2{font-size:clamp(1.5rem,3vw,40px);line-height:1.15;letter-spacing:-.048em;font-weight:700}
h3{font-weight:600}
.sub{color:var(--sub);font-size:.95rem;font-weight:400}
.center{text-align:center}
/* two-tone headline: signature device ??second line muted */
.grad{color:var(--sub)}
a{color:inherit;text-decoration:none}

/* topbar ??floats on the void, no fill, no border */
.topbar{
  position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1.2rem;
  padding:.9rem clamp(1rem,4vw,2.5rem);
  background:rgba(0,0,0,.75);backdrop-filter:blur(14px);
}
.brand{font-weight:600;display:flex;align-items:center;gap:.5rem;font-size:1.05rem;letter-spacing:-.022em}
.brand em{font-style:normal;color:var(--txt)}
.logo-dot{width:10px;height:10px;border-radius:100px;background:var(--blue)}
.topbar nav{display:flex;gap:1.1rem;margin-left:auto;font-size:14px;font-weight:500}
.topbar nav a{color:var(--sub);padding:.3rem 0}
.topbar nav a.active,.topbar nav a:hover{color:var(--txt)}

/* buttons — pro tactile 3D hardware buttons */
.btn {
  border: 1px solid #3c3c3c;
  background: linear-gradient(180deg, #2c2c2c 0%, #1e1e1e 100%);
  color: var(--txt);
  padding: 8px 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 550;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 5px rgba(0, 0, 0, 0.28);
  transition: all .14s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}
.btn:hover {
  background: linear-gradient(180deg, #363636 0%, #242424 100%);
  border-color: #4c4c4c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.35);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-primary {
  background: linear-gradient(180deg, #1d6ed8 0%, #0c4da3 100%);
  border: 1px solid #0a3d82;
  color: #fff;
  font-weight: 650;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #247be9 0%, #0e56b8 100%);
  border-color: #0d4694;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.4);
}
.btn-primary:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #0d4799 0%, #083778 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.btn-ghost {
  background: linear-gradient(180deg, #38383c 0%, #29292c 100%);
  border: 1px solid #4a4a50;
  color: #ffffff;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover {
  background: linear-gradient(180deg, #44444a 0%, #323238 100%);
  border-color: #5c5c66;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn-ghost:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #252528 0%, #1e1e20 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 9px; }

/* pages */
.page{max-width:1170px;margin:0 auto;padding:clamp(1rem,4vw,2.5rem)}
.page-head{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;margin-bottom:1.5rem}
.page-head-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px}

/* hero */
.hero{position:relative;text-align:center;padding:clamp(2.5rem,10vh,6rem) 0 2rem}
.hero-glow{display:none}
.eyebrow{color:var(--sub);font-weight:500;font-size:12px;margin-bottom:1.2rem;display:inline-flex;align-items:center;gap:.5rem}
.eyebrow::before{content:"New";background:var(--blue);color:#fff;font-weight:500;padding:4px 8px;border-radius:7px;text-transform:none;letter-spacing:0}
.hero .sub{max-width:34rem;margin:1.4rem auto 0;font-size:16px;letter-spacing:-.015em;line-height:1.5}
.hero-cta{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:2.2rem}
.hero-mock{max-width:640px;margin:4rem auto 0;display:grid;gap:8px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px}
.mock-track{display:flex;align-items:center;gap:1rem;font-size:12px;color:var(--sub)}
.mock-track span{width:6.5rem;text-align:left;flex-shrink:0}
.mock-wave{flex:1;height:52px;position:relative;opacity:.92;overflow:hidden}
.mock-wave::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(148,163,184,.13);translate:0 -50%;pointer-events:none}
.mock-wave canvas {
  display: block; width: 100%; height: 100%;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.mock-wave.v { color: #d8dde5; }
.mock-wave.i { color: #59616c; opacity: .68; }
.hero-mock:has(.mock-track:hover) .mock-wave { opacity: .38; }
.hero-mock .mock-track:hover .mock-wave { opacity: 1; }
.hero-mock .mock-track:hover .mock-wave.i { color: #d8dde5; }

/* features & pricing */
.tools-launcher{margin:112px 0 0;scroll-margin-top:88px}
.tools-heading{max-width:720px;margin:0 0 28px}
.tools-kicker{display:block;color:#6aaeff;font-size:11px;font-weight:800;letter-spacing:.16em;margin-bottom:12px}
.tools-heading h2{font-size:clamp(32px,4vw,52px);line-height:1;letter-spacing:-.05em;margin:0}
.tools-heading p{color:var(--sub);font-size:15px;line-height:1.6;margin:15px 0 0}
/* full width so the tab bar shares both edges with .tool-grid below ??at max-content it orphaned itself against the 1280px grid */
.source-tabs{position:relative;width:100%;display:flex;gap:5px;padding:5px;margin:0 0 20px;border:1px solid var(--line);border-radius:18px;background:#111}
.source-tabs{--card-bg:#111;--glow-padding:20px}   /* rb-glow tuned for the thin frame: match its solid bg, smaller bloom */
.source-tabs>.border-glow-inner{flex-direction:row;gap:5px;flex:1}
.source-tab{flex:1;min-width:0;min-height:58px;padding:9px 16px;display:flex;align-items:center;justify-content:center;gap:11px;border:0;border-radius:13px;background:transparent;color:var(--sub);font:inherit;text-align:left;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.source-tab svg{flex:none;width:26px;height:26px}
.source-tab span{font-size:13px;font-weight:750;line-height:1.1}
.source-tab small{display:block;margin-bottom:3px;color:inherit;font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
.source-tab:hover{color:#fff;background:#1d1d1d}
.source-tab.on{color:#fff;background:#1c1c1e;box-shadow:0 6px 18px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08)}   /* matches the tool cards' surface grey */
.source-tab.on:first-child{color:#69b5ff}
.source-tab.on:nth-child(2){color:#58ded8}
.source-tab.on:nth-child(3){color:#b69cff}
.tool-panel{animation:tool-panel-in .24s ease}
@keyframes tool-panel-in{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:none}}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-tool-card,.converter-card{--accent:#0075ff;position:relative;isolation:isolate;border:1px solid rgba(255,255,255,.08);color:#fff;background:linear-gradient(162deg,#1c1c1e,#111112);box-shadow:0 18px 46px rgba(0,0,0,.45)}
/* accent corner glow lives in the card background (::before is used by BorderGlow) */
.converter-card{background:radial-gradient(70% 60% at 88% -4%,color-mix(in srgb,var(--accent) 28%,transparent),transparent 55%),linear-gradient(162deg,#1c1c1e,#111112)}
.tool-blue{--accent:#0075ff}.tool-purple{--accent:#a855f7}.tool-transcribe{--accent:#c98749}.tool-teal{--accent:#22c55e}.tool-pink{--accent:#f59e0b}
.home-tool-card{min-height:292px;padding:28px 30px 26px;display:flex;flex-direction:column;border-radius:23px;transition:transform .22s ease,box-shadow .22s ease;background:radial-gradient(85% 75% at 88% -6%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 58%),linear-gradient(162deg,#1c1c1e,#111112)}
.home-tool-card:hover{transform:translateY(-4px);box-shadow:0 24px 58px rgba(0,0,0,.5)}
.tool-card-top{height:0;position:relative}
.tool-card-icon{width:48px;height:48px;display:grid;place-items:center;color:color-mix(in srgb,var(--accent),#fff 30%);border:1px solid color-mix(in srgb,var(--accent) 38%,transparent);border-radius:15px;background:color-mix(in srgb,var(--accent) 15%,transparent);box-shadow:0 0 22px -8px var(--accent),inset 0 1px 0 rgba(255,255,255,.1)}
.tool-card-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tool-card-art{--art-image:none;position:absolute;right:-4px;bottom:10px;width:43%;height:43%;display:block;background:color-mix(in srgb,var(--accent),#fff 20%);-webkit-mask-image:var(--art-image);mask-image:var(--art-image);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transform-origin:right center;transform:perspective(380px) rotateY(-27deg) skewY(3.6deg) rotateZ(1.8deg);filter:drop-shadow(0 0 7px var(--accent)) drop-shadow(0 0 18px color-mix(in srgb,var(--accent) 72%,transparent));opacity:.72;pointer-events:none}
.art-separate{--art-image:url('assets/icons/waveform-microphone.svg')}
.art-transcribe{--art-image:url('assets/icons/music-to-sheet.svg?v=3')}
.art-clean{--art-image:url('assets/icons/headphones-waveform.svg')}
.art-guitar{--art-image:url('assets/icons/pick-waveform.svg')}
.border-glow-inner>:not(.tool-card-art){position:relative;z-index:1}
@media(max-width:640px){.tool-card-art{right:-16px;bottom:14px;width:45%;height:38%;opacity:.42;transform:perspective(320px) rotateY(-25deg) skewY(3.6deg) rotateZ(1.8deg)}}
.tool-card-tag{position:absolute;top:0;right:0;padding:7px 10px;border:1px solid color-mix(in srgb,var(--accent) 42%,transparent);border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:color-mix(in srgb,var(--accent),#fff 40%);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.home-tool-card h3{margin:0 0 12px;padding-right:130px;color:#fff;font-size:clamp(25px,2.5vw,34px);line-height:1;letter-spacing:-.045em}
.home-tool-card>p{max-width:510px;margin:0;color:rgba(255,255,255,.72);font-size:13px;line-height:1.55}
.tool-flow,.converter-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tool-flow{margin:20px 0 0}
.tool-flow span,.converter-flow span{padding:6px 8px;border:1px solid rgba(255,255,255,.14);border-radius:7px;background:rgba(255,255,255,.05);font-size:9px;font-weight:800;letter-spacing:.06em}
.tool-flow i,.converter-flow i{width:24px;height:16px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;background:none;color:rgba(255,255,255,.58);font:400 16px/1 Arial,sans-serif;font-style:normal}
.tool-flow i::before,.converter-flow i::before{content:"→"}
.tool-flow i::after,.converter-flow i::after{content:none}
.tool-card-actions{display:flex;align-items:center;gap:9px;margin-top:auto;padding-top:20px}
.tool-primary,.tool-secondary{min-height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font:inherit;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;transition:transform .18s ease,background .18s ease}
.tool-primary{border:1px solid #fff;background:#fff;color:#101828}
.tool-secondary{border:1px solid rgba(255,255,255,.7);background:rgba(255,255,255,.05);color:#fff}
.tool-primary:hover,.tool-secondary:hover{transform:translateY(-2px)}
.tool-secondary:hover{background:rgba(255,255,255,.16)}
.tool-output-note{color:rgba(255,255,255,.72);font-size:10px;font-weight:650}
.converter-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:16px}
.converter-card{min-height:390px;padding:42px;border-radius:24px;display:flex;flex-direction:column;align-items:flex-start}
.converter-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;opacity:.78}
.converter-card h3{max-width:610px;margin:24px 0 13px;color:#fff;font-size:clamp(30px,4vw,48px);line-height:.98;letter-spacing:-.05em}
.converter-card>p{max-width:610px;margin:0;color:rgba(255,255,255,.86);font-size:14px;line-height:1.6}
.converter-flow{margin:29px 0}.converter-flow b{font-size:14px}
.converter-card>.border-glow-inner>.tool-primary{margin-top:auto}
.notation-drop-hint{margin-top:10px;color:var(--sub);font-size:11px;line-height:1.45}
.notation-import-error{margin-top:10px;color:#ff9d9d;font-size:12px;line-height:1.45}
.converter-card[data-notation-dropzone].over{border-color:#4b94ec;background:#202d3b}
.tool-guide{min-height:390px;padding:32px 28px;display:grid;grid-template-columns:38px 1fr;align-content:center;gap:25px 12px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#202020,#171717)}
.tool-guide-number{width:34px;height:34px;display:grid;place-items:center;border:1px solid #3b3b3b;border-radius:10px;color:#8abfff;font-size:10px;font-weight:800}
.tool-guide strong{display:block;font-size:13px;margin-bottom:5px}.tool-guide p{margin:0;color:var(--sub);font-size:11px;line-height:1.5}
@media(max-width:900px){.tool-grid{grid-template-columns:1fr}.converter-layout{grid-template-columns:1fr}.converter-card,.tool-guide{min-height:auto}.tool-guide{padding:27px}.source-tab{min-width:0;flex:1}.source-tabs{width:100%}}
@media(max-width:640px){.tools-launcher{margin-top:80px}.tools-heading{text-align:center;margin-bottom:23px}.tools-heading h2{font-size:36px}.source-tabs{padding:4px;gap:3px;border-radius:15px}.source-tab{min-height:55px;padding:8px;justify-content:center;text-align:center}.source-tab svg{display:none}.source-tab span{font-size:11px}.source-tab small{font-size:8px}.home-tool-card{min-height:340px;padding:24px 22px}.home-tool-card h3{font-size:28px}.tool-card-actions{align-items:flex-start;flex-wrap:wrap}.tool-output-note{width:100%}.converter-card{padding:30px 24px;min-height:390px}.converter-card h3{font-size:34px}.converter-flow{gap:6px}.tool-guide{grid-template-columns:36px 1fr}}
.pricing{margin:96px 0 2rem;text-align:center}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin-top:2rem;text-align:left}
.plan{display:flex;flex-direction:column;gap:.8rem;position:relative;transition:transform .2s ease,box-shadow .2s ease}
.plan:hover{transform:translateY(-6px);border-color:rgba(255,255,255,.28);box-shadow:0 20px 45px rgba(0,0,0,.38)}
/* .featured is the selected plan ??JS moves it on click so only one card is ever blue. Defaults to Pro in the markup. */
.plan.featured{border-color:var(--blue)}
.plan.featured:hover{border-color:var(--blue);box-shadow:0 20px 48px rgba(0,117,255,.18)}
.plan .badge{position:absolute;top:-12px;left:50%;translate:-50%;background:var(--blue);color:#fff;font-size:12px;font-weight:500;padding:4px 8px;border-radius:7px}
.plan:not(.featured) .badge{background:var(--raised);color:var(--sub)}
.plan.featured .plan-cta {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.plan.featured .plan-cta:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-color: #60a5fa;
  transform: translateY(-1px);
}
.plan.featured .plan-cta:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
}
.plan:not(.featured) .plan-cta {
  background: linear-gradient(180deg, #38383c 0%, #29292c 100%);
  border: 1px solid #4a4a50;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.plan:not(.featured) .plan-cta:hover {
  background: linear-gradient(180deg, #44444a 0%, #323238 100%);
  border-color: #5c5c66;
  transform: translateY(-1px);
}
.plan:not(.featured) .plan-cta:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #252528 0%, #1e1e20 100%);
}
.price{font-size:2.2rem;font-weight:700;letter-spacing:-.03em}
.price span{font-size:.9rem;color:var(--sub);font-weight:400}
.plan ul{list-style:none;color:var(--sub);font-size:13px;display:grid;gap:.45rem;flex:1}
.plan ul li::before{content:"✓";color:var(--txt)}

/* reactbits BorderGlow ??colors + logic ported verbatim (glowColor 40 80 80; mesh #c084fc/#f472b6/#38bdf8). edge-proximity & cursor-angle set by JS in index.html. JS tags each card with .rb-glow (.plan, .home-tool-card, .converter-card). */
.rb-glow{
  --edge-proximity:0;--cursor-angle:45deg;--edge-sensitivity:30;
  --color-sensitivity:calc(var(--edge-sensitivity) + 20);
  --glow-padding:40px;--cone-spread:25;--fill-opacity:.5;--card-bg:var(--card);
  --gradient-one:radial-gradient(at 80% 55%, #c084fc 0px, transparent 50%);
  --gradient-two:radial-gradient(at 69% 34%, #f472b6 0px, transparent 50%);
  --gradient-three:radial-gradient(at 8% 6%, #38bdf8 0px, transparent 50%);
  --gradient-four:radial-gradient(at 41% 38%, #c084fc 0px, transparent 50%);
  --gradient-five:radial-gradient(at 86% 85%, #f472b6 0px, transparent 50%);
  --gradient-six:radial-gradient(at 82% 18%, #38bdf8 0px, transparent 50%);
  --gradient-seven:radial-gradient(at 51% 4%, #f472b6 0px, transparent 50%);
  --gradient-base:linear-gradient(#c084fc 0 100%);
  isolation:isolate;transform:translate3d(0,0,.01px)
}
.rb-glow::before,.rb-glow::after,.rb-glow>.edge-light{content:"";position:absolute;inset:0;border-radius:inherit;transition:opacity .25s ease-out;z-index:-1}
.rb-glow:not(:hover)::before,.rb-glow:not(:hover)::after,.rb-glow:not(:hover)>.edge-light{opacity:0;transition:opacity .75s ease-in-out}
.rb-glow::before{
  border:1px solid transparent;
  background:linear-gradient(var(--card-bg) 0 100%) padding-box,linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,var(--gradient-one) border-box,var(--gradient-two) border-box,var(--gradient-three) border-box,var(--gradient-four) border-box,var(--gradient-five) border-box,var(--gradient-six) border-box,var(--gradient-seven) border-box,var(--gradient-base) border-box;
  opacity:calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image:conic-gradient(from var(--cursor-angle) at center,black calc(var(--cone-spread) * 1%),transparent calc((var(--cone-spread) + 15) * 1%),transparent calc((100 - var(--cone-spread) - 15) * 1%),black calc((100 - var(--cone-spread)) * 1%))
}
.rb-glow::after{
  border:1px solid transparent;
  background:var(--gradient-one) padding-box,var(--gradient-two) padding-box,var(--gradient-three) padding-box,var(--gradient-four) padding-box,var(--gradient-five) padding-box,var(--gradient-six) padding-box,var(--gradient-seven) padding-box,var(--gradient-base) padding-box;
  mask-image:linear-gradient(to bottom, black, black),radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite:subtract, add, add, add, add, add;
  opacity:calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode:soft-light
}
.rb-glow>.edge-light{
  inset:calc(var(--glow-padding) * -1);pointer-events:none;z-index:1;
  mask-image:conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity:calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode:plus-lighter
}
.rb-glow>.edge-light::before{
  content:"";position:absolute;inset:var(--glow-padding);border-radius:inherit;
  box-shadow:inset 0 0 0 1px hsl(40deg 80% 80% / 100%),inset 0 0 1px 0 hsl(40deg 80% 80% / 60%),inset 0 0 3px 0 hsl(40deg 80% 80% / 50%),inset 0 0 6px 0 hsl(40deg 80% 80% / 40%),inset 0 0 15px 0 hsl(40deg 80% 80% / 30%),inset 0 0 25px 2px hsl(40deg 80% 80% / 20%),inset 0 0 50px 2px hsl(40deg 80% 80% / 10%),0 0 1px 0 hsl(40deg 80% 80% / 60%),0 0 3px 0 hsl(40deg 80% 80% / 50%),0 0 6px 0 hsl(40deg 80% 80% / 40%),0 0 15px 0 hsl(40deg 80% 80% / 30%),0 0 25px 2px hsl(40deg 80% 80% / 20%),0 0 50px 2px hsl(40deg 80% 80% / 10%)
}
.border-glow-inner{display:flex;flex-direction:column;flex:1;position:relative;z-index:1}
.plan>.border-glow-inner{gap:.8rem}   /* plans spaced by gap; tool/converter cards use their own margins */
.converter-card>.border-glow-inner{align-items:flex-start;width:100%}
/* tool + converter cards have a gradient bg (not a solid), so the ::before interior cover must match it */
.home-tool-card::before,.converter-card::before{background:linear-gradient(162deg,#1c1c1e,#111112) padding-box,linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,var(--gradient-one) border-box,var(--gradient-two) border-box,var(--gradient-three) border-box,var(--gradient-four) border-box,var(--gradient-five) border-box,var(--gradient-six) border-box,var(--gradient-seven) border-box,var(--gradient-base) border-box}
.site-footer{margin:96px clamp(1rem,4vw,2.5rem) 0;padding:54px 0 24px;border-top:1px solid var(--line);color:var(--sub)}
.site-footer-shell{max-width:1200px;margin:0 auto}
.site-footer-grid{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,2.5fr);gap:clamp(36px,5vw,72px);align-items:start}
.site-footer-brand{max-width:250px;padding-top:27px}
.site-footer-kicker,.site-footer-group h3,.site-footer-tools>h3{color:var(--dim);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.site-footer-brand h2{margin:12px 0 10px;font-size:clamp(24px,3vw,34px);line-height:1.05;letter-spacing:-.04em;color:var(--txt)}
.site-footer-brand p:last-child{color:var(--sub);font-size:13px;line-height:1.6}
.site-footer-group{display:grid;align-content:start;gap:11px}
.site-footer-group h3{margin-bottom:4px}
.site-footer-group a,.site-footer-action,.site-footer-note{color:var(--sub);font:inherit;font-size:13px;line-height:1.35;text-align:left}
.site-footer-group a,.site-footer-action{transition:color .16s ease}
.site-footer-group a:hover,.site-footer-group a:focus-visible,.site-footer-action:hover,.site-footer-action:focus-visible{color:var(--txt)}
.site-footer-action{padding:0;border:0;background:none;cursor:pointer}
.site-footer-tools{display:grid;gap:24px;min-width:0}
.site-footer-tools-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.site-footer-tools-head h3{margin:0}
.site-footer-tools-groups{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(150px,.9fr) minmax(340px,2fr) minmax(160px,1fr);gap:clamp(22px,2.4vw,38px)}
.site-footer-tools .site-footer-group h4{margin:0 0 3px;color:var(--txt);font-size:13px;font-weight:700;letter-spacing:0;text-transform:none}
.site-footer-link-columns{display:grid;grid-template-columns:repeat(2,minmax(155px,1fr));gap:11px 30px}
.site-footer-group--notation{min-width:0}
.site-footer-group--notation a{white-space:normal;text-wrap:balance}
.site-footer-note{color:var(--dim)}
.site-footer a:focus-visible,.site-footer-action:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
.site-footer-meta{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:44px;padding-top:18px;border-top:1px solid var(--line);color:var(--dim);font-size:11px}
.site-footer-utility{display:flex;align-items:center;gap:18px}
.site-footer-utility a,.site-footer-utility .site-footer-action{color:var(--sub);font-size:11px}
.site-footer-meta span:last-child{margin-left:auto}
.site-footer-meta #app-version{font-variant-numeric:tabular-nums}
.tool-entry-back{display:inline-flex;margin-top:14px;color:var(--sub);font-size:13px;font-weight:650}
.tool-entry-back:hover,.tool-entry-back:focus-visible{color:var(--txt)}
body.tool-entry-mode .hero,body.tool-entry-mode .pricing,body.tool-entry-mode .site-footer{display:none}
body.tool-entry-mode [data-page="/"]{max-width:1080px;padding-top:clamp(34px,7vw,86px)}
body.tool-entry-mode .tools-launcher{margin-top:0}
body.tool-entry-mode .tools-heading{max-width:700px;margin-bottom:30px}
body.tool-entry-mode .tools-heading .tools-kicker{color:var(--blue)}
body.tool-entry-mode .source-tabs{display:none}
body.tool-entry-mode .tool-entry-back[hidden]{display:inline-flex}
body.tool-entry-mode .converter-layout{min-height:430px}
@media(max-width:1400px){
  .site-footer-tools-groups{grid-template-columns:repeat(2,minmax(190px,1fr));gap:34px 40px}
  .site-footer-group--notation{grid-column:1/-1}
  .site-footer-link-columns{grid-template-columns:repeat(2,minmax(190px,1fr))}
}
@media(max-width:900px){
  .site-footer{margin-top:72px}
  .site-footer-grid{grid-template-columns:1fr;gap:40px}
  .site-footer-brand{max-width:520px;padding-top:0}
  .site-footer-tools-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 36px}
  .site-footer-group--notation{grid-column:1/-1}
  .site-footer-link-columns{grid-template-columns:repeat(2,minmax(190px,1fr))}
}
@media(max-width:560px){
  .site-footer{margin-top:56px;padding-top:34px}
  .site-footer-grid{gap:32px}
  .site-footer-tools-head{align-items:flex-end}
  .site-footer-tools-groups{grid-template-columns:1fr;gap:26px}
  .site-footer-link-columns{grid-template-columns:1fr}
  .site-footer-group--notation{grid-column:auto}
  .site-footer-meta{display:grid;gap:8px;margin-top:34px}
  .site-footer-utility{flex-wrap:wrap;margin:4px 0}
  .site-footer-meta span:last-child{margin-left:0}
}

/* dashboard */
.song-list{display:grid;gap:8px}
.song{display:flex;align-items:center;gap:1rem;padding:12px 16px;cursor:pointer}
.song:hover{background:var(--raised)}
.song .art{width:44px;height:44px;border-radius:7px;background:var(--raised);display:grid;place-items:center;font-size:1.2rem;flex-shrink:0}
.song .info{flex:1;min-width:0}
.song .info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.song .pill{font-size:12px;font-weight:500;padding:4px 12px;border-radius:100px;border:1px solid var(--line);color:var(--sub);white-space:nowrap}
.song .pill.ok{color:var(--txt)}
.song .del{background:none;border:none;color:var(--dim);font-size:1rem;cursor:pointer;padding:.4rem}
.song .del:hover{color:var(--txt)}
.empty{text-align:center;padding:3rem 1.5rem;display:grid;gap:.5rem;justify-items:center}

/* ============ studio: DAW-lite editor ============ */
.page-full{max-width:none;padding:0}
.daw{display:flex;flex-direction:column;height:calc(100dvh - 57px)} /* under topbar */

/* top bar */
.daw-top{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line)}
.back{color:var(--sub);font-weight:500;font-size:13px;white-space:nowrap}
.back:hover{color:var(--txt)}
.daw-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;overflow:hidden}
.daw-title h2{font-size:15px;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daw-title .sub{font-size:12px;white-space:nowrap}

/* transport bar */
.daw-transport{display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid var(--line);background:#0a0a0a;flex-wrap:wrap}
.tbtn{width:30px;height:30px;border-radius:7px;border:1px solid var(--line);background:transparent;color:var(--txt);font-size:11px;font-weight:500;cursor:pointer}
.tbtn:hover{background:var(--raised)}
.tbtn-play{width:38px;height:30px;background:var(--blue);border:none;color:#fff;font-size:13px}
.tbtn-play:hover{background:#1f84ff}
.tbtn-record{width:30px;height:30px;border-color:rgba(239,68,68,.55);color:#fff;background:#7f1d1d;font-size:13px}
.tbtn-record:hover{background:#991b1b}
.tbtn-record.recording{background:#ef4444;border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.18)}
.rec-status{font-size:12px;font-weight:600;color:#fca5a5;min-width:72px;font-variant-numeric:tabular-nums}
.t-time{font-variant-numeric:tabular-nums;font-size:13px;margin-left:6px}
.t-sep{color:var(--dim);margin:0 4px}
.t-time #t-dur{color:var(--sub)}
.t-spacer{flex:1}
.t-item{display:flex;align-items:center;gap:4px}
.t-val{font-size:12px;font-weight:500}
.dim{color:var(--dim)}
.tool-label{font-size:11px;color:var(--dim);font-weight:500;text-transform:uppercase;letter-spacing:.02em}
.tool-select{background:var(--raised);color:var(--txt);border:1px solid var(--line);border-radius:7px;font:inherit;font-size:12px;font-weight:500;padding:3px 6px}
.tool-select:disabled{color:var(--dim)}
.chip{border:1px solid var(--line);background:transparent;color:var(--sub);border-radius:7px;padding:4px 10px;font-size:12px;font-weight:500;cursor:pointer}
.chip:hover:not(:disabled){background:var(--raised);color:var(--txt)}
.chip.on{background:var(--blue);color:#fff;border-color:transparent}
.chip:disabled{opacity:.4;cursor:default}
.chip.tiny{padding:2px 7px;font-size:11px}

/* edit toolbar */
.daw-toolbar{display:flex;align-items:center;gap:4px;padding:6px 16px;border-bottom:1px solid var(--line);background:#0a0a0a;flex-wrap:wrap}
.daw-toolbar .chip:disabled{opacity:.35}
.ibtn{width:28px;height:28px;border-radius:7px;border:1px solid transparent;background:transparent;color:var(--sub);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.ibtn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.ibtn:hover:not(:disabled){background:var(--raised);color:var(--txt)}
.ibtn.on{background:var(--blue);color:#fff}
.ibtn:disabled{opacity:.35;cursor:default}
.t-div{width:1px;height:18px;background:var(--line);margin:0 4px}
.tool-hint{font-size:11px;margin-left:8px;white-space:nowrap}
.tool-hint.flash{color:var(--blue);font-weight:600}

/* clip trim handles */
.clip-handle{
  position:absolute;top:6px;bottom:6px;width:8px;z-index:3;cursor:ew-resize;
  background:#fff;border-radius:3px;opacity:.9;
}
.clip-handle:hover{opacity:1;box-shadow:0 0 6px rgba(255,255,255,.7)}

/* track area: fixed header column + horizontally scrollable lane column */
.daw-tracks{flex:1;overflow:auto;display:flex;background:#0a0a0a;align-items:flex-start;user-select:none;-webkit-user-select:none}
.daw-heads{width:230px;flex-shrink:0;border-right:1px solid var(--line);background:#0a0a0a;position:sticky;left:0;z-index:4}
.daw-corner{height:28px;font-size:9px;line-height:1.3;display:flex;align-items:center;padding:0 10px;color:var(--dim);border-bottom:1px solid var(--line)}
.lanescol{flex:1;overflow-x:auto;min-width:0}
.lanes-inner{position:relative;width:100%;min-width:100%}
#ruler{display:block;width:100%;height:28px;border-bottom:1px solid var(--line);cursor:col-resize;touch-action:none}
/* chord strip floats under the ruler as an overlay ??takes no layout space,
   so track heads and lanes never shift when it toggles */
#chord-strip{position:absolute;top:34px;left:0;width:100%;height:22px;z-index:6;pointer-events:none}
#chord-strip[hidden]{display:none}
.live-chord{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border:1px solid var(--line);border-radius:7px;font-variant-numeric:tabular-nums}
.live-chord b{color:#66aaff;font-size:14px;min-width:2.5em}
.live-chord .sub{font-size:11px}
.lc-next{color:var(--dim);font-size:11px}
.track-lane{height:64px;border-bottom:1px solid var(--line);position:relative}
.track-lane canvas{display:block;width:100%;height:100%;touch-action:none}
.live-recording-clip{position:absolute;top:4px;bottom:4px;min-width:3px;border:1px solid #ef4444;background:rgba(127,29,29,.72);color:#fecaca;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.live-recording-wave{position:absolute;inset:0;width:100%;height:100%;opacity:.92}
.live-recording-clip span{position:absolute;top:6px;left:8px;font-size:10px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.live-recording-clip i{position:absolute;right:0;top:0;bottom:0;width:2px;background:#f87171;box-shadow:0 0 8px #ef4444;animation:recPulse .8s ease-in-out infinite alternate}
@keyframes recPulse{to{opacity:.35}}
#lane-stack{cursor:text}
.lane-err{display:flex;align-items:center;height:100%;padding:0 12px;font-size:11px}

.t-head{position:relative;height:64px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:5px;padding:6px 10px 6px 14px;cursor:pointer}
.t-head::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tc,#64748B)} /* color strip */
.t-head:hover{background:rgba(255,255,255,.03)}
.t-head.sel{background:color-mix(in srgb,var(--tc,#64748B) 9%,transparent)}
.t-head.sel::before{width:4px;box-shadow:0 0 8px var(--tc)}
.t-head.err{opacity:.5}
.t-head.silent .t-name{color:var(--dim)}
.t-head.silent::before{opacity:.35}
.t-head-top{display:flex;align-items:center;gap:6px}
.track-delete{color:#737373}.track-delete:hover{color:#f87171;border-color:#7f1d1d;background:rgba(127,29,29,.28)}
.t-ic{color:var(--sub);display:flex;flex-shrink:0}
.t-head.sel .t-ic{color:var(--tc,var(--blue))}
.t-name{font-size:12px;font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-head-bot{display:flex;align-items:center;gap:8px}
.vol,.pan{accent-color:var(--blue);min-width:0;height:14px}
.vol{flex:1.6}
.pan{flex:1;accent-color:#737373}

/* selected track lane: colored outline glow */
.track-lane.sel{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc,#64748B) 60%,transparent)}

/* overlays (inside .lanes-inner) ??must stay visible above colored clips */
#playhead,#loop-region,#sel-region,.loop-marker{position:absolute;top:0;bottom:0;pointer-events:none;z-index:2}
#playhead{width:1px;background:#fff;box-shadow:0 0 4px rgba(255,255,255,.6)}
#playhead::before{content:"";position:absolute;top:0;left:-4px;border:5px solid transparent;border-top:6px solid #fff}
#loop-region{background:rgba(0,117,255,.12);border-left:1px solid rgba(0,117,255,.85);border-right:1px solid rgba(0,117,255,.85)}
.loop-marker{top:34px;width:2px;background:#2f8fff;box-shadow:0 0 8px rgba(47,143,255,.7);z-index:10}
.loop-marker::before{content:attr(data-label);position:absolute;top:-27px;left:var(--loop-label-left,-8px);display:grid;place-items:center;width:18px;height:18px;border:1px solid #62aaff;border-radius:5px;background:#0869d8;color:#fff;font:800 10px/1 var(--font-sans,Arial,sans-serif);box-shadow:0 2px 8px #0009}
.loop-marker.is-disabled{background:#60738a;box-shadow:none}
.loop-marker.is-disabled::before{border-color:#718399;background:#263546;color:#b9c8d8}
#sel-region{background:rgba(255,255,255,.08);border-left:1px dashed rgba(255,255,255,.5);border-right:1px dashed rgba(255,255,255,.5)}

/* bottom panel */
.daw-bottom{display:flex;align-items:center;gap:16px;padding:8px 16px;border-top:1px solid var(--line);font-size:12px;flex-wrap:wrap}
.daw-info{white-space:nowrap}
.daw-insp{flex:1;display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden}
.daw-insp svg{color:var(--sub);flex-shrink:0}
.daw-actions{display:flex;gap:6px}

/* sticky bottom for guitar panel + status bar */
.daw-sticky-bottom{position:sticky;bottom:0;z-index:20;background:#0a0a0a}

/* guitar cleanup panel (Stage 1.5) */
.guitar-panel{display:flex;align-items:center;gap:14px;padding:8px 16px;border-top:1px solid var(--line);background:#0a0a0a;flex-wrap:wrap;font-size:12px}
.gp-title{font-weight:600;color:var(--txt)}
.gp-seg{width:auto}
.gp-seg .seg-btn{flex:none;padding:5px 14px;font-size:12px}
.gp-seg .seg-btn:disabled{opacity:.4;cursor:default}
.gp-ctl{display:flex;align-items:center;gap:6px;color:var(--sub)}
.gp-ctl input[type=range]{accent-color:#EC4899;width:130px}
.gp-ctl span{font-variant-numeric:tabular-nums;width:3em}
.gp-status{color:var(--sub);flex:1;min-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exp-tag{font-size:9px;font-weight:700;background:#A21CAF;color:#fff;border-radius:4px;padding:1px 4px;margin-left:4px;vertical-align:middle}
.guitar-analysis{display:flex;align-items:center;gap:12px;padding:6px 16px 10px;background:#0a0a0a;flex-wrap:wrap;font-size:11px}
.ga-label{color:var(--sub);white-space:nowrap}
.ga-ribbon{flex:1;min-width:200px;height:16px;border-radius:4px;display:block}
.ga-legend{display:flex;align-items:center;gap:6px;color:var(--sub);white-space:nowrap}
.ga-legend i{width:10px;height:10px;border-radius:2px;display:inline-block;margin-left:8px}
.ga-legend .ga-lead{background:#F472B6}
.ga-legend .ga-rhythm{background:#A21CAF}
.ga-legend .ga-mixed{background:#525252}
.ga-legend .ga-unc{background:#2a2a2a;border:1px solid var(--line)}

/* settings */
/* ---------- plan / account ---------- */
.settings-group{margin:26px 0 8px;color:var(--sub);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.account{position:relative;margin-left:auto}
/* Site language switcher - a native <select> laid transparently over a pill that
   matches .account-btn, so the browser's own picker does all the interaction. */
.lang-switch{position:relative;display:inline-flex;align-items:center;gap:7px;margin-left:auto;min-height:38px;padding:0 9px 0 11px;border:1px solid #2e3947;border-radius:9999px;background:linear-gradient(180deg,#1e2634 0%,#111721 100%);color:#edf3f8;font-size:13px;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.28);transition:all .15s ease}
.lang-switch:hover{border-color:#485f7a;background:linear-gradient(180deg,#263344 0%,#161f2c 100%);color:#fff;transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 5px 14px rgba(0,0,0,.35)}
.lang-switch:has(.lang-switch-select:focus-visible){outline:2px solid #4d9bea;outline-offset:2px}
.lang-switch + .account{margin-left:0}
.lang-switch-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;color:#bfd4e8}
.lang-switch-label{letter-spacing:.02em}
.lang-switch-caret{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--sub)}
/* The real control sits invisibly on top so clicks/keyboard hit it directly. */
.lang-switch-select{position:absolute;inset:-1px;opacity:0;border:0;cursor:pointer;font:inherit;-webkit-appearance:none;appearance:none}
.lang-switch-select option{background:#1a222e;color:#edf3f8}
@media(max-width:640px){.lang-switch-label{display:none}.lang-switch{padding:0 7px}}
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px 0 7px;
  border: 1px solid #2e3947;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1e2634 0%, #111721 100%);
  color: #edf3f8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.28);
  transition: all .15s ease;
}
.account-btn:hover,
.account-btn[aria-expanded="true"] {
  border-color: #485f7a;
  background: linear-gradient(180deg, #263344 0%, #161f2c 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.35);
}
.account-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}
.account-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #3d4f65;
  border-radius: 50%;
  background: linear-gradient(180deg, #28374a 0%, #1a2533 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #bfd4e8;
}
.account-avatar svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.account-caret{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--sub)}
.account-pop{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:300px;display:grid;gap:2px;padding:16px;border:1px solid #4b4f55;border-radius:16px;background:#303030;box-shadow:0 22px 54px rgba(0,0,0,.58);animation:account-pop-in .16s ease-out}
.account-pop.account-pop--sidebar{position:fixed;top:0;right:auto;animation:account-pop-in-up .16s ease-out}
.account-pop[hidden]{display:none}
.account-pop-head{display:grid;gap:4px;margin:-2px 0 11px;padding:2px 2px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.account-pop-head strong{color:#f5f6f7;font-size:16px;line-height:1.2}
.account-pop-head span{color:#a9adb2;font-size:12px;line-height:1.25}
.account-pop-head span:first-of-type{color:#bfc2c6}
.account-pop-head span:last-of-type{color:#94989d}
.dev-account-badge{display:inline-flex!important;align-items:center;justify-self:start;width:max-content;margin-top:5px;padding:3px 7px;border:1px solid rgba(111,182,255,.4);border-radius:999px;background:rgba(0,117,255,.12);color:#91c6ff!important;font-size:9px!important;font-weight:800;letter-spacing:.1em;line-height:1.1;text-transform:uppercase}
.dev-account-badge[hidden]{display:none!important}
.account-pop a{padding:10px 7px;border-radius:9px;color:#c7c9cc;font-size:13px;text-decoration:none}
.account-pop a:hover{background:#3b3b3b;color:#fff}
.account-pop a[hidden]{display:none}
.account-pop-action{display:flex;align-items:center;gap:11px;width:100%;min-height:39px;padding:8px 7px;border:0;border-radius:9px;background:transparent;color:#c7c9cc;font:inherit;font-size:13px;text-align:left;text-decoration:none;cursor:pointer}
.account-pop-action:hover{background:#3b3b3b;color:#fff}
.account-pop-action-icon-svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;color:#aab0b6}
.account-pop-action:hover .account-pop-action-icon-svg{color:#d9e8f6}
.account-pop-action[data-auth-signout]{margin-top:5px;border-top:1px solid rgba(255,255,255,.08);border-radius:0;color:#b6b8bb}
.account-pop-action[data-auth-signout] .account-pop-action-icon-svg{color:#9da2a8}
.account-pop-action[data-auth-signout]:hover{background:transparent;color:#fff}
.account-pop-action[data-auth-signout]:hover .account-pop-action-icon-svg{color:#fff}
.account-meter{height:4px;margin-bottom:10px;border-radius:999px;background:#3a3a3a;overflow:hidden}
.account-meter.wide{width:180px;margin:0}
.account-meter>i{display:block;height:100%;border-radius:999px;background:var(--blue);transition:width .3s ease}
.account-meter.full>i{background:var(--prim-amber-500,#f59e0b)}
.plan-seg{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#151515}
.plan-seg button{min-height:30px;padding:0 14px;border:0;border-radius:7px;background:transparent;color:var(--sub);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.plan-seg button:hover{color:var(--txt)}
.plan-seg button.on{background:#2e2e2e;color:var(--txt)}
.stem-choice-card.locked{opacity:.55;cursor:pointer}
.stem-lock{padding:3px 6px;border:1px solid #5a5a5a;border-radius:999px;color:#b5b5b5;font-size:8px;font-weight:800;letter-spacing:.06em}

.settings{display:grid;gap:.2rem;margin-bottom:8px;padding:4px 16px}
.membership-lock{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid var(--line);border-radius:999px;color:var(--sub);font-size:11px;font-weight:650;white-space:nowrap}
.setting{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:14px 0;border-bottom:1px solid var(--line)}
.setting:last-child{border-bottom:none}
.setting select,.setting input[type=range]{accent-color:var(--blue)}
.setting select{background:var(--raised);color:var(--txt);border:1px solid var(--line);border-radius:7px;padding:6px 10px;font:inherit;font-size:13px}
.setting input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue)}

/* modals */
.modal{border:none;border-radius:24px;background:var(--card);color:var(--txt);padding:0;max-width:520px;width:calc(100% - 2rem)}
.modal::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(4px)}
.unsaved-changes-modal{max-width:520px;margin:auto}
.unsaved-changes-body{display:grid;gap:12px;padding:26px}
.unsaved-changes-body h2{font-size:22px;letter-spacing:-.02em}
.unsaved-changes-body p{margin:0;line-height:1.5}
.unsaved-changes-status{min-height:18px;color:#ff929d;font-size:12px}
.unsaved-changes-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:4px}
.unsaved-changes-actions .btn{min-height:38px}
.studio-save-status{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub);font-size:11px}
.studio-save-status[data-state="dirty"]{color:#f6c878}
.studio-save-status[data-state="saving"]{color:#9fc8ff}
.studio-save-status[data-state="saved"]{color:#83d3a0}
.studio-save-status[data-state="error"]{color:#ff929d}
#btn-studio-save[aria-disabled="true"]{opacity:.55}
#sheet-midi-modal{margin:auto}
#sheet-midi-modal:has(#sheet-result-step:not([hidden])){max-width:700px}
#upload-modal,#export-modal,#score-modal,#midi-editor-modal{margin:10px auto auto}
.modal-body{padding:24px;display:grid;gap:12px;justify-items:center;text-align:center}
.modal-body h2{font-size:20px;letter-spacing:-.022em}
.auth-modal{position:fixed;inset:0;max-width:440px;margin:auto}
.auth-form{position:relative;justify-items:stretch;padding:30px;text-align:left}
.auth-form h2{margin-bottom:-5px;font-size:25px}
.auth-form>.sub{margin:0 0 5px;line-height:1.5}
.auth-close{position:absolute;top:12px;right:13px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--sub);font:inherit;font-size:24px;cursor:pointer}
.auth-close:hover{background:#303030;color:var(--txt)}
.auth-kicker{color:#78b8f4;font-size:10px;font-weight:750;letter-spacing:.13em}
.auth-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#151515}
.auth-modes button{min-height:34px;border:0;border-radius:7px;background:transparent;color:var(--sub);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.auth-modes button.on{background:#303030;color:var(--txt)}
.social-auth{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.social-auth button{min-height:42px;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#202020;color:var(--txt);font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}
.social-auth button:hover{border-color:#535353;background:#292929}
.social-mark{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;border-radius:50%;background:#fff;color:#101010;font-size:11px;font-weight:800}
.social-google{color:#4285f4}.social-apple{font-size:10px}.social-x{background:#111;color:#fff;border:1px solid #555}.social-github{background:#eee;font-size:9px}
.auth-divider{display:flex;align-items:center;gap:10px;color:#707070;font-size:9.5px;text-transform:uppercase;letter-spacing:.08em}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--line)}
.auth-field{display:grid;gap:6px;color:var(--sub);font-size:11px;font-weight:650}
.auth-field .txt-input{box-sizing:border-box;width:100%;min-height:42px;padding:0 12px;color:var(--txt)}
.auth-status{min-height:18px;margin:0;color:var(--sub);font-size:11px;line-height:1.45}
.auth-status[data-kind="error"]{color:#ff929d}
.auth-status[data-kind="success"]{color:#83d3a0}
.auth-submit{width:100%}
.auth-privacy{color:#777;font-size:9.5px;line-height:1.45;text-align:center}
@media(max-width:560px){.auth-form{padding:26px 20px}.setting{align-items:flex-start}.membership-lock{white-space:normal}}
.onboarding-page{max-width:none!important;padding:0!important}
.onboarding-shell{min-height:calc(100dvh - 74px);display:grid;grid-template-columns:minmax(280px,.78fr) minmax(430px,1fr);gap:clamp(36px,7vw,110px);align-items:center;max-width:1120px;margin:auto;padding:54px 28px}
.onboarding-intro{display:grid;gap:16px;align-content:center}
.onboarding-intro h1{max-width:620px;font-size:clamp(36px,5vw,62px);line-height:.98;letter-spacing:-.055em}
.onboarding-intro>p{max-width:540px;color:var(--sub);font-size:15px;line-height:1.65}
.onboarding-benefits{display:grid;gap:12px;margin-top:8px;color:#aab2bd;font-size:12px}
.onboarding-benefits span{display:flex;align-items:center;gap:10px}
.onboarding-benefits b{width:25px;height:25px;display:grid;place-items:center;border:1px solid #315d8d;border-radius:50%;color:#7dbdff;font-size:10px}
.onboarding-form{display:grid;gap:18px;padding:28px;border-color:#303b48;background:linear-gradient(145deg,#1e232a,#171a1e);box-shadow:0 28px 80px #0007}
.onboarding-form header{display:grid;gap:4px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.onboarding-form header span{color:#7dbdff;font-size:9px;font-weight:750;letter-spacing:.13em}
.onboarding-form header strong{font-size:22px}.onboarding-form header small{color:var(--sub);font-size:10px}
.onboarding-field{display:grid;gap:8px;color:#afb7c1;font-size:11px;font-weight:650}
.onboarding-field .txt-input{box-sizing:border-box;width:100%;min-height:43px;padding:0 12px;color:var(--txt)}
.onboarding-instruments{display:grid;gap:8px;margin:0;padding:0;border:0}
.onboarding-instruments legend{padding:0;margin:0;color:#afb7c1;font-size:11px;font-weight:650}
.onboarding-instruments-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.onboarding-instruments label{position:relative;cursor:pointer}
.onboarding-instruments input{position:absolute;opacity:0;pointer-events:none}
.onboarding-instrument-card{min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:#181b1f;color:#9ba4af;font-size:11px;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}
.onboarding-instruments label:hover .onboarding-instrument-card{border-color:#485463;background:#20252b;color:#d7dde5}
.onboarding-instruments input:focus-visible+.onboarding-instrument-card{outline:2px solid #78b8f4;outline-offset:2px}
.onboarding-instrument-card img{width:23px;height:23px;flex:0 0 23px;object-fit:contain;filter:invert(1);opacity:.68;transition:opacity .16s}
.onboarding-instrument-card>span{line-height:1}
.onboarding-instruments input:checked+.onboarding-instrument-card{border-color:#2d83df;background:#153456;color:#e8f4ff;box-shadow:inset 0 0 0 1px #2d83df55}
.onboarding-instruments input:checked+.onboarding-instrument-card img{opacity:1}
.onboarding-submit{min-height:44px;width:100%}
@media(max-width:820px){.onboarding-shell{grid-template-columns:1fr;gap:30px;padding:38px 20px}.onboarding-intro h1{font-size:40px}.onboarding-benefits{display:none}}
@media(max-width:520px){.social-auth{grid-template-columns:1fr}.onboarding-instruments-grid{grid-template-columns:repeat(2,1fr)}}
.dropzone{
  width:100%;border:1px dashed var(--line);border-radius:10px;
  padding:2rem 1rem;display:grid;gap:.3rem;justify-items:center;cursor:pointer;
}
.dropzone:hover,.dropzone.over{border-color:var(--blue);background:var(--raised)}
.progress{width:100%;height:6px;border-radius:100px;background:var(--raised);overflow:hidden}
.progress-fill{height:100%;width:0;background:var(--blue);border-radius:100px;transition:width .3s}
.progress-fill.is-indeterminate{width:34%!important;animation:sheet-progress-indeterminate 1.35s ease-in-out infinite}
@keyframes sheet-progress-indeterminate{0%{transform:translateX(-115%)}50%{transform:translateX(105%)}100%{transform:translateX(285%)}}
.proc-stage{color:var(--sub);font-size:13px;min-height:1.4em}
.proc-hint{color:var(--sub);font-size:12px;min-height:1.4em;margin:0}
.error-msg{color:var(--txt);font-size:13px}
.sheet-result-step{gap:24px;padding:30px;text-align:left;justify-items:stretch}
.sheet-result-head{display:flex;align-items:center;gap:16px}
.sheet-result-head>span:last-child{display:grid;gap:4px;min-width:0}
.sheet-result-head h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.03em}
.sheet-result-head p{margin:0;color:var(--sub);font-size:14px;line-height:1.45}
.sheet-result-success{display:grid;width:52px;height:52px;place-items:center;flex:0 0 52px;border:1px solid rgba(92,194,115,.62);border-radius:50%;background:rgba(63,155,82,.12);color:#63c77b;box-shadow:0 0 0 5px rgba(63,155,82,.04)}
.sheet-result-success svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sheet-result-list{display:grid;gap:10px;width:100%;max-height:min(50vh,420px);overflow:auto}
.sheet-result-row{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:18px 20px;background:#242424;border:1px solid #414141;border-radius:13px;text-align:left;box-shadow:0 1px 0 rgba(255,255,255,.025) inset}
.sheet-result-row:hover{border-color:#515151;background:#272727}
.sheet-result-file{display:flex;align-items:center;gap:13px;min-width:0}
.sheet-result-file-icon{display:grid;width:44px;height:48px;place-items:center;flex:0 0 44px;border:1px solid #414141;border-radius:9px;background:#303030;color:#4f9dff}
.sheet-result-file-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.sheet-result-file-copy{display:grid;gap:3px;min-width:0}
.sheet-result-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:720}
.sheet-result-row small{color:var(--sub);font-size:12px}
.sheet-result-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.sheet-result-actions .btn{display:inline-flex;min-height:42px;align-items:center;justify-content:center;padding:0 17px;border-radius:9px;font-size:13px;font-weight:720;text-decoration:none}
.sheet-result-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid var(--line)}
.sheet-result-footer>span{color:#7f8b96;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.sheet-result-footer .btn{min-width:82px;min-height:38px}
.audio-export-modal{width:min(920px,calc(100vw - 28px));max-width:none;gap:22px;padding:28px}
.audio-export-head{display:flex;align-items:center;gap:13px}.audio-export-head h2{margin:0;font-size:25px}.audio-export-head p{margin:4px 0 0;color:var(--sub)}
.audio-export-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #7040ca;border-radius:12px;background:#25113c;color:#b874ff;font-size:22px}
.audio-export-section{display:grid;gap:10px}.audio-export-label{color:#aeb8c4;font-size:11px;font-weight:750;letter-spacing:.11em}
.export-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.export-opt{
  display:grid;gap:4px;text-align:left;cursor:pointer;padding:13px 15px;
  border:1px solid #383838;border-radius:10px;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);
  font:inherit;color:var(--txt);font-size:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 5px rgba(0,0,0,.3);
  transition:all .16s cubic-bezier(0.16,1,0.3,1);
}
.export-opt:hover{
  background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);
  border-color:#4e4e4e;transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.35);
}
.export-opt:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.export-opt.on{
  border-color:#8b4cff;
  background:linear-gradient(180deg,#2c1642 0%,#1a0b29 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.35);
}
.export-opt strong{font-weight:700}.export-opt .sub{font-size:11px}
.audio-format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.audio-format-grid button{
  display:grid;min-height:88px;align-content:center;gap:7px;padding:12px;
  border:1px solid #383838;border-radius:10px;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);
  color:var(--txt);text-align:left;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 5px rgba(0,0,0,.3);
  transition:all .16s cubic-bezier(0.16,1,0.3,1);
}
.audio-format-grid button:hover{
  background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);
  border-color:#4e4e4e;transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.35);
}
.audio-format-grid button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.audio-format-grid button.on{
  border-color:#8b4cff;
  background:linear-gradient(180deg,#2c1642 0%,#1a0b29 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.35);
}
.audio-format-grid strong{font-size:15px}.audio-format-grid small{color:#9fb0c4;line-height:1.35}
.audio-export-advanced{border-top:1px solid var(--line);padding-top:2px}
.audio-export-advanced summary{padding:16px 0;color:#bd72ff;font-weight:700;cursor:pointer}
.audio-export-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:2px 0 8px}
.audio-export-fields label{display:grid;gap:7px;color:#d9e1eb;font-size:13px}
.audio-export-fields select{
  width:100%;min-height:44px;padding:0 13px;border:1px solid #383838;border-radius:9px;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);color:#fff;font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 4px rgba(0,0,0,.25);
  cursor:pointer;transition:all .14s ease;
}
.audio-export-fields select:hover{background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);border-color:#4e4e4e}
.audio-export-note{margin:2px 0 0;color:#8290a0;font-size:11px}
.audio-export-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:17px}
.audio-export-footer .btn-primary{min-width:130px}
@media(max-width:820px){.audio-format-grid{grid-template-columns:repeat(4,1fr)}.export-opts{grid-template-columns:1fr}.audio-export-fields{grid-template-columns:1fr}}
@media(max-width:520px){.audio-format-grid{grid-template-columns:repeat(2,1fr)}.audio-export-modal{padding:20px}.audio-export-footer{position:sticky;bottom:0;background:var(--panel);padding-bottom:4px}}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* beui.dev Loader ??"bars" variant, ported verbatim (no motion/react).
   4 bars; width size*.16, gap size*.1, height size, originY 1;
   scaleY .3????3 over `speed`, delay i*speed*.12, EASE_IN_OUT [.77,0,.175,1] */
.loader-bars{--loader-size:32px;--loader-speed:1s;
  display:inline-flex;align-items:center;gap:calc(var(--loader-size)*.1);height:var(--loader-size)}
.loader-bars>i{display:block;width:calc(var(--loader-size)*.16);height:var(--loader-size);
  border-radius:9999px;background:currentColor;transform-origin:center bottom;
  animation:loader-bars var(--loader-speed) cubic-bezier(.77,0,.175,1) infinite}
.loader-bars>i:nth-child(2){animation-delay:calc(var(--loader-speed)*.12)}
.loader-bars>i:nth-child(3){animation-delay:calc(var(--loader-speed)*.24)}
.loader-bars>i:nth-child(4){animation-delay:calc(var(--loader-speed)*.36)}
@keyframes loader-bars{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
/* reduced motion: calm opacity pulse, no transform (matches the component's REDUCED) */
@media(prefers-reduced-motion:reduce){
  .loader-bars>i{transform:none;animation:loader-bars-calm 1.4s cubic-bezier(.77,0,.175,1) infinite}
}
@keyframes loader-bars-calm{0%,100%{opacity:.4}50%{opacity:1}}

/* song upload wizard */
body:has(#upload-modal[open]){overflow:hidden}
#upload-modal{box-sizing:border-box;max-width:560px;max-height:calc(100vh - 20px);overflow:auto;background:#1c1c1d;border:1px solid #343437;border-radius:24px}
.upload-wizard{padding:26px 28px;gap:20px;justify-items:stretch;text-align:left}
.wizard-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:min(340px,100%);margin:0 auto}
.wizard-progress>i{height:1px;background:#3b3b3e}
.wizard-progress-item{display:flex;align-items:center;gap:7px;color:#77777d}
.wizard-progress-item b{width:22px;height:22px;display:grid;place-items:center;border:1px solid #48484d;border-radius:50%;font-size:9px}
.wizard-progress-item em{font-style:normal;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.wizard-progress-item.on{color:#8cbcff}.wizard-progress-item.on b{border-color:#3b8ef6;background:#176bcf;color:#fff}
.wizard-progress-item.done{color:#8d969f}.wizard-progress-item.done b{border-color:#52606e;background:#303942}
.upload-wizard-page{display:grid;gap:18px}
.upload-chooser-head{display:grid;gap:8px;text-align:center;padding:2px 16px}
.upload-chooser-head h2{font-size:27px;line-height:1.1;letter-spacing:-.04em}
.upload-chooser-head .sub{margin:0;color:#9999a0;font-size:12px;line-height:1.45}
.upload-kicker{color:#70a9fa;font-size:9px;font-weight:800;letter-spacing:.15em}
.stem-choice-section{display:grid;gap:7px;padding:11px;border:1px solid #39434e;border-radius:19px;background:#222930}
.vocal-karaoke-choice,.stem-choice-card{width:100%;border:1px solid #3b4651;background:#28313a;color:var(--txt);font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.vocal-karaoke-choice:hover,.stem-choice-card:hover{border-color:#566574;background:#2d3741}
.vocal-karaoke-choice{display:grid;grid-template-columns:43px minmax(0,1fr) 21px;align-items:center;gap:12px;padding:11px 12px;border-radius:14px;text-align:left}
.vocal-karaoke-choice.on{border-color:#3b8ff5;background:#2c3d50;box-shadow:inset 0 0 0 1px rgba(59,143,245,.12)}
.vocal-choice-copy{display:grid;gap:3px;min-width:0}.vocal-choice-copy strong{font-size:14px}.vocal-choice-copy>span{color:#b1bac4;font-size:10px;line-height:1.4}
.stem-choice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--stem-color,#3b82f6) 16%,#35414d);color:var(--stem-color,#78b2ff)}
.stem-choice-icon svg{width:20px;height:20px}
.stem-choice-check{width:19px;height:19px;border:1px solid #667481;border-radius:50%;display:grid;place-items:center}
.on .stem-choice-check{border-color:#398df3;background:#237eea}.on .stem-choice-check::after{content:"";width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.stem-picker-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 0}.stem-picker-heading strong{font-size:11px}.stem-picker-heading span{color:#7e8993;font-size:8px;text-transform:uppercase;letter-spacing:.11em}
.stem-choice-grid{display:grid;grid-template-columns:1fr;gap:6px}
.stem-choice-card{min-height:48px;padding:5px 10px;border-radius:12px;display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:10px;text-align:left}
.stem-choice-card .stem-choice-icon{width:33px;height:33px}.stem-choice-card .stem-choice-icon svg{width:18px;height:18px}.stem-choice-card strong{font-size:12px}
.stem-choice-card.on{border-color:color-mix(in srgb,var(--stem-color) 62%,#718096);background:color-mix(in srgb,var(--stem-color) 9%,#2a343e)}
.stem-choice-card.on .stem-choice-check{border-color:var(--stem-color);background:var(--stem-color)}
.upload-result{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:8px 9px;border:0;border-top:1px solid #3b4651;background:transparent}
.upload-result-label{color:#84919d;font-size:8px;font-weight:800;letter-spacing:.12em}
.upload-result-tracks{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.upload-result-tracks>i{color:#77838e;font-style:normal;font-size:9px}
.result-track{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid color-mix(in srgb,var(--track-color) 36%,#45525e);border-radius:999px;background:color-mix(in srgb,var(--track-color) 8%,#273038)}
.result-track svg{width:11px;height:11px}.result-track b{color:#eef0f2;font-size:9px}
.wizard-actions{display:flex;align-items:center;justify-content:center;gap:12px}
.wizard-back,.wizard-next{min-height:39px;padding:0 20px;border-radius:999px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.wizard-back{border:1px solid transparent;background:transparent;color:#b7b7bd}.wizard-back:hover{background:#272729}
.wizard-next{border:0;background:#197df0;color:#fff;box-shadow:0 8px 20px rgba(25,125,240,.2)}.wizard-next:hover{background:#288bfa}.wizard-next:disabled{background:#45454a;color:#85858a;box-shadow:none;cursor:not-allowed}
.wizard-dropzone{width:100%;min-height:245px;padding:28px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:1px dashed #4a5968;border-radius:18px;background:#222930;text-align:center}
.wizard-dropzone:hover,.wizard-dropzone.over{border-color:#4b94ec;background:#26313c}.wizard-dropzone.has-file{display:none}
.wizard-upload-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:17px;background:#344454;color:#9bc8ff}
.wizard-upload-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.wizard-dropzone strong{font-size:15px}.wizard-dropzone>span:not(.wizard-upload-icon){color:#a9b1ba;font-size:12px}.wizard-dropzone small{color:#737e88;font-size:10px}
.queued-file{display:grid;grid-template-columns:46px minmax(0,1fr) 30px;align-items:center;gap:12px;padding:14px;border:1px solid #405064;border-radius:15px;background:#26313c}
.queued-file-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#34475a;color:#94c5ff;font-size:20px}
.queued-file>span:nth-child(2){display:grid;gap:4px;min-width:0}.queued-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.queued-file small{color:#8c98a4;font-size:10px}
.queued-file button{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#a8b0b8;font-size:20px;cursor:pointer}.queued-file button:hover{background:#394652;color:#fff}
.youtube-import-block{display:grid;gap:10px}.upload-or{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;color:#777;font-size:10px;font-weight:800;letter-spacing:.13em}.upload-or::before,.upload-or::after{content:"";height:1px;background:#363636}.youtube-import-form{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding:7px 8px 7px 13px;border:1px solid #3d3d3d;border-radius:11px;background:#202020}.youtube-import-form:focus-within{border-color:#717171;box-shadow:0 0 0 3px rgba(255,255,255,.05)}.youtube-import-icon{width:26px;height:26px;display:grid;place-items:center;color:#ef4444}.youtube-import-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.youtube-import-icon svg path:last-child{fill:currentColor;stroke:none}.youtube-import-form input{min-width:0;height:38px;padding:0;border:0;outline:0;background:transparent;color:#f4f4f5;font:inherit}.youtube-import-form input::placeholder{color:#888}.youtube-import-form button{
  height:38px;padding:0 18px;border:1px solid #3c3c3c;border-radius:8px;
  background:linear-gradient(180deg,#f5f5f7 0%,#d8d8dc 100%);
  color:#111;font-weight:750;font-size:13px;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9),inset 0 -1px 0 rgba(0,0,0,0.25),0 2px 5px rgba(0,0,0,0.35);
  transition:all .16s cubic-bezier(0.16,1,0.3,1);
}
.youtube-import-form button:hover{
  background:linear-gradient(180deg,#ffffff 0%,#e2e2e6 100%);
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(0,0,0,0.25),0 4px 10px rgba(0,0,0,0.4);
}
.youtube-import-form button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,0.4)}
.youtube-import-form button:disabled{cursor:wait;opacity:.55}
.youtube-import-meta{min-height:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;color:#777}
.youtube-import-meta small{font-size:10px}.youtube-import-status{color:#ef9a9a;font-size:10px;text-align:right}
.youtube-trim{display:grid;gap:15px;padding:18px;border:1px solid #3b3b3b;border-radius:14px;background:#1d1d1d}
.youtube-trim[hidden]{display:none}.youtube-trim-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.youtube-trim-head>div{display:grid;gap:4px}.youtube-trim-head span{color:#858585;font-size:9px;font-weight:800;letter-spacing:.14em}
.youtube-trim-head strong{font-size:15px}.youtube-trim-head button{border:0;background:none;color:#aaa;cursor:pointer;font:inherit;font-size:11px}
.youtube-trim-head button:hover{color:#fff}
.youtube-waveform{position:relative;height:92px;overflow:hidden;border:1px solid #424242;border-radius:10px;background:#151515}
.youtube-waveform canvas{position:absolute;inset:0;width:100%;height:100%}
.youtube-range-selection{position:absolute;top:0;bottom:0;border-inline:2px solid #2f8cff;background:rgba(47,140,255,.13);pointer-events:none}
.youtube-preview-playhead{position:absolute;z-index:3;top:0;bottom:0;width:2px;transform:translateX(-1px);background:#fff;box-shadow:0 0 0 1px #1682f8,0 0 9px rgba(22,130,248,.9);pointer-events:none}
.youtube-preview-playhead::before{content:"";position:absolute;top:0;left:50%;width:8px;height:8px;transform:translate(-50%,-1px) rotate(45deg);border-radius:1px;background:#fff}
.youtube-waveform input[type=range]{position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;appearance:none;background:transparent;pointer-events:none}
.youtube-waveform input[type=range]::-webkit-slider-thumb{width:18px;height:92px;appearance:none;border:0;border-radius:4px;background:transparent;cursor:ew-resize;pointer-events:auto}
.youtube-waveform input[type=range]::-moz-range-thumb{width:18px;height:92px;border:0;background:transparent;cursor:ew-resize;pointer-events:auto}
.youtube-trim-times{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.youtube-trim-times>span{display:grid;gap:3px}.youtube-trim-times>span:last-child{text-align:right}
.youtube-trim-times small{color:#777;font-size:9px;letter-spacing:.12em}.youtube-trim-times strong{font-size:15px;font-variant-numeric:tabular-nums}
.youtube-preview-control{display:grid!important;justify-items:center;gap:4px!important}
.youtube-preview-control small{font-variant-numeric:tabular-nums;letter-spacing:0;color:#9aa3ad}
.youtube-range-play{
  width:44px;height:44px;display:grid;place-items:center;border:1px solid #48484a;border-radius:50%;
  background:linear-gradient(180deg,#f5f5f7 0%,#d8d8dc 100%);color:#171717;cursor:pointer;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(0,0,0,.25),0 2px 5px rgba(0,0,0,.35);
  transition:all .14s ease;
}
.youtube-range-play:hover{background:linear-gradient(180deg,#fff 0%,#e8e8eb 100%);transform:scale(1.04)}
.youtube-range-play:active{transform:scale(0.96)}
.youtube-range-play svg{width:22px;height:22px;fill:currentColor}
.youtube-trim-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:3px}
.youtube-trim-foot span{color:#999;font-size:11px}
.youtube-trim-foot button{
  min-height:40px;padding:0 18px;border:1px solid #0a3d82;border-radius:8px;
  background:linear-gradient(180deg,#1d6ed8 0%,#0c4da3 100%);color:white;font-weight:700;font-size:13px;cursor:pointer;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.45),0 2px 5px rgba(0,0,0,.35);
  transition:all .16s ease;
}
.youtube-trim-foot button:hover{
  background:linear-gradient(180deg,#247be9 0%,#0e56b8 100%);border-color:#0d4694;transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(0,0,0,.45),0 4px 10px rgba(0,0,0,.4);
}
.youtube-trim-foot button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.youtube-trim-foot button:disabled{opacity:.5;cursor:wait}
@media(max-width:560px){.youtube-import-form{grid-template-columns:28px minmax(0,1fr)}.youtube-import-form button{grid-column:1/-1;width:100%}.youtube-import-meta{display:grid}}
.fixed-upload-note{display:grid;gap:5px;padding:14px;border:1px solid #383838;border-radius:14px;background:linear-gradient(180deg,#232323 0%,#1a1a1a 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 5px rgba(0,0,0,.3)}
.fixed-upload-note strong{font-size:13px}.fixed-upload-note span{color:#a7a7af;font-size:10px;line-height:1.45}
@media(max-width:640px){
  #upload-modal{width:calc(100% - 14px);max-height:calc(100vh - 12px);margin:6px auto auto;border-radius:20px}
  .upload-wizard{padding:20px 15px;gap:15px}.wizard-progress-item em{display:none}.wizard-progress{width:150px}
  .upload-wizard-page{gap:14px}.upload-chooser-head{padding:0 7px}.upload-chooser-head h2{font-size:25px}
  .stem-choice-section{padding:9px}.vocal-karaoke-choice{padding:10px}
  .wizard-dropzone{min-height:230px}.upload-result{grid-template-columns:1fr;gap:7px}.upload-result-tracks{justify-content:flex-start}
}

/* model selector & modes */
.seg{display:flex;background:#181818;border:1px solid #333;box-shadow:inset 0 2px 4px rgba(0,0,0,.4);border-radius:8px;padding:3px;gap:3px;width:100%}
.seg-btn{flex:1;border:1px solid transparent;background:transparent;color:var(--sub);font:inherit;font-weight:550;font-size:13px;padding:7px 10px;border-radius:6px;cursor:pointer;transition:all .14s ease}
.seg-btn.on{background:linear-gradient(180deg,#2b2b2b 0%,#202020 100%);border-color:#404040;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 2px 4px rgba(0,0,0,.25)}
.model-section{width:100%;display:grid;gap:8px;text-align:left}
.model-title{font-size:14px;font-weight:600}
.model-list{display:grid;gap:8px;max-height:min(38vh,340px);overflow-y:auto}
.model-card{
  display:grid;gap:.3rem;text-align:left;font:inherit;color:var(--txt);cursor:pointer;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);border:1px solid #383838;border-radius:10px;padding:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 5px rgba(0,0,0,.3);
  transition:all .16s cubic-bezier(0.16,1,0.3,1);
}
.model-card:hover{background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);border-color:#4e4e4e;transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.35)}
.model-card:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.model-card.on{border-color:#1a6ed8;background:linear-gradient(180deg,#1b2e44 0%,#121e2d 100%);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.35)}
.model-card .mc-head{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.model-card .mc-head strong{font-size:14px;font-weight:600}
.model-card .mc-desc{color:var(--sub);font-size:12px}
.model-card .mc-stems{color:var(--dim);font-size:12px}
.badge-sm{font-size:12px;font-weight:500;padding:4px 12px;border-radius:100px;border:1px solid var(--line);color:var(--txt)}
.badge-sm.cyan{color:var(--sub)}
.badge-sm.warn{color:var(--sub)}
.warn{font-size:12px}
.txt-input{background:var(--raised);color:var(--txt);border:1px solid var(--line);border-radius:7px;padding:6px 10px;font:inherit;font-size:13px;width:min(230px,50vw)}

/* Jianpu score modal paper style */
.score-modal{max-width:min(1240px,96vw);width:96vw}
.score-head{display:flex;flex-direction:column;gap:9px;padding:14px 20px 10px}
.score-command-row,.score-settings-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.score-command-row{min-height:38px}
.score-command-row>strong{flex:0 1 190px;min-width:120px;font-size:15px;line-height:1.25}
.score-command-row>.btn{flex:0 0 auto;white-space:nowrap}
.score-command-row>.t-spacer{min-width:0}
.score-settings-row{flex-wrap:wrap;gap:8px}
#score-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.score-ctl{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--sub);white-space:nowrap}
#note-edit{display:inline-flex;align-items:center;flex:0 0 230px;min-width:230px;gap:4px}
#note-edit[hidden]{display:none}
#ne-label{display:block;flex:0 0 142px;width:142px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#note-edit .chip.tiny{width:24px;height:24px;min-width:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;color:var(--txt)}
.score-bpm{width:60px;padding:3px 6px}
.score-audio{flex:1 1 300px;min-width:260px;max-width:430px}
.score-audio .abcjs-inline-audio{display:flex;align-items:center;gap:7px;width:100%;min-height:36px;box-sizing:border-box;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--raised);color:var(--txt)}
.score-audio .abcjs-btn{flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer}
.score-audio .abcjs-btn:hover{background:var(--floating)}
.score-audio .abcjs-btn svg{width:100%;height:100%;fill:currentColor;stroke:currentColor}
.score-audio .abcjs-midi-progress-background{flex:1 1 auto;min-width:80px;height:6px;border-radius:3px;background:var(--line);cursor:pointer}
.score-audio .abcjs-midi-progress-indicator{width:10px;height:4px;top:50%;margin-left:0;transform:translate(-50%,-50%);border-radius:2px;background:var(--blue)}
.score-audio .abcjs-midi-clock{flex:0 0 auto;min-width:72px;font-size:11px;white-space:nowrap;color:var(--sub)}
.score-audio .abcjs-tempo-wrapper,.score-audio .abcjs-midi-loop{display:none}
/* The deterministic local MIDI/MusicXML fallback uses the same normal-flow
   transport shape as ABCJS so saved scores never regress to a lone Play label. */
.score-audio .score-local-transport{display:flex;align-items:center;gap:7px;width:100%;min-height:36px;box-sizing:border-box;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:var(--raised);color:var(--txt)}
.score-audio .score-local-transport .score-local-beginning,.score-audio .score-local-transport .score-local-play{position:relative;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer}
.score-audio .score-local-transport .score-local-beginning:hover,.score-audio .score-local-transport .score-local-play:hover{background:var(--floating)}
.score-audio .score-local-transport .score-local-beginning svg,.score-audio .score-local-transport .score-local-play svg{width:100%;height:100%;fill:currentColor;stroke:currentColor}
.score-audio .score-local-transport .score-local-play .icon-pause{display:none}
.score-audio .score-local-transport .score-local-play.is-playing .icon-play{display:none}
.score-audio .score-local-transport .score-local-play.is-playing .icon-pause{display:block}
.score-audio .score-local-progress{flex:1 1 auto;min-width:80px;height:6px;margin:0;accent-color:var(--blue);cursor:pointer}
.score-audio .score-local-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.score-hint{padding:0 20px 10px;font-size:11px}

/* Score editor header: title/transport, grouped settings, then a stable edit strip. */
.score-head{
  padding:0 20px 14px;
  gap:0;
  background:linear-gradient(180deg,#191a1b,#151617);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.score-command-row{
  display:grid;
  grid-template-columns:minmax(170px,.75fr) minmax(260px,1fr) minmax(0,1.35fr);
  align-items:center;
  gap:16px;
  min-height:92px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.score-title-block{display:grid;gap:4px;min-width:0}
.score-command-row> .score-title-block strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:1.2;letter-spacing:-.01em}
.score-title-sub{color:var(--sub);font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.score-view-name{display:inline-flex;min-height:38px;align-items:center;padding:0 4px;color:#f3f6fa;font-size:14px;font-weight:700;white-space:nowrap}
.score-command-row> .score-audio{width:100%;max-width:none;min-width:0}
.score-command-row> .t-spacer{display:none}
.score-actions{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.score-actions>.btn,.score-actions>.score-export-menu{flex:0 0 auto}
.score-actions>.btn{white-space:nowrap}
.score-actions>.score-close{order:20}
.score-dirty{flex:0 0 auto}
.score-export-menu{position:relative;z-index:40}
.score-export-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer;white-space:nowrap}
.score-export-trigger::-webkit-details-marker{display:none}
.score-export-trigger::marker{display:none}
.score-export-trigger span{font-size:14px;line-height:1;transform:translateY(-1px)}
.score-export-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:50;display:grid;min-width:160px;padding:5px;border:1px solid var(--line-strong,#464646);border-radius:10px;background:var(--floating,#292929);box-shadow:0 16px 32px rgba(0,0,0,.45)}
.score-export-item{display:flex;align-items:center;width:100%;min-height:32px;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--txt);font:inherit;font-size:12px;text-align:left;text-decoration:none;cursor:pointer;white-space:nowrap}
.score-export-item:hover,.score-export-item:focus-visible{background:var(--raised,#353535);color:var(--txt)}
.score-export-item[hidden]{display:none}
.score-settings-row{display:block;padding:14px 0 4px;overflow-x:auto;scrollbar-width:thin}
#score-controls{display:flex;align-items:stretch;gap:0;width:100%;min-width:max-content}
.score-setting-group{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border-right:1px solid rgba(255,255,255,.12)}
.score-setting-group:first-child{padding-left:0}
.score-setting-group:last-child{border-right:0}
.score-setting-label{color:var(--sub);font-size:12px;white-space:nowrap}
.score-setting-group .score-ctl{gap:7px;color:var(--txt)}
.score-setting-group .tool-select,.score-setting-group .txt-input{min-height:34px;border:1px solid var(--line-strong,#444);border-radius:8px;background:var(--raised,#292929);color:var(--txt);font-size:13px}
.score-setting-group .tool-select{padding:4px 24px 4px 10px}
.score-setting-group .txt-input{padding:4px 8px}
.score-profile-chip{min-height:34px;display:inline-flex;align-items:center;padding:0 10px;border-radius:8px}
#score-lang-group:has(#score-lang-wrap[hidden]){display:none}
.score-edit-strip{display:grid;grid-template-columns:max-content minmax(220px,1fr) minmax(220px,1.25fr);align-items:center;gap:16px;min-height:68px;margin-top:14px;padding:12px 14px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.025)}
.score-edit-strip[hidden]{display:none}
.score-edit-prompt{color:#d4d7dc;font-size:12px;white-space:nowrap}
#note-edit.score-edit-controls{display:flex;align-items:center;gap:8px;min-width:0}
#note-edit.score-edit-controls[hidden]{display:none}
#ne-label{flex:0 0 210px;min-width:0;width:210px;max-width:210px;height:38px;display:flex;align-items:center;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(0,0,0,.12);color:#e5e7eb;font:500 13px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#note-edit .chip.tiny{width:auto;min-width:86px;height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.045);font-size:12px;line-height:1;color:var(--txt);white-space:nowrap}
#note-edit .chip.tiny:hover:not(:disabled){background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28)}
#note-edit .chip.tiny:disabled{opacity:.45;cursor:not-allowed}
.score-edit-helper{color:var(--sub);font-size:11px;line-height:1.35;text-align:right}
@media(max-width:1100px){
  .score-command-row{grid-template-columns:minmax(170px,.8fr) minmax(240px,1fr);}
  .score-actions{grid-column:1 / -1;justify-content:flex-end}
  .score-edit-strip{grid-template-columns:max-content minmax(450px,1fr);}
  #ne-label{flex-basis:190px;width:190px;max-width:190px}
  #note-edit .chip.tiny{min-width:76px;padding-inline:8px}
  .score-edit-helper{text-align:left}
}
@media(max-width:700px){
  .score-head{padding:0 12px 12px}
  .score-command-row{grid-template-columns:1fr;gap:10px;min-height:0;padding:14px 0}
  .score-command-row>.score-audio{grid-row:2}
  .score-actions{grid-column:auto;justify-content:flex-start;flex-wrap:wrap}
  .score-settings-row{padding-top:10px}
  #score-controls{flex-wrap:wrap;min-width:0}
  .score-setting-group{padding:5px 10px 5px 0;border-right:0}
  .score-setting-group:first-child{padding-left:0}
  .score-edit-strip{grid-template-columns:1fr;gap:10px;margin-top:10px;padding:11px}
  .score-edit-helper{text-align:left}
}
@media(max-width:430px){
  .score-actions>.btn,.score-export-trigger{min-height:34px;padding:0 10px}
  #note-edit.score-edit-controls{flex-wrap:wrap}
  #ne-label{flex-basis:100%;width:100%;max-width:none;height:34px}
  #note-edit .chip.tiny{min-width:0;flex:1 1 0;height:34px;padding:0 8px}
}
.score-chooser{display:flex;flex-direction:column;gap:14px;padding:10px 20px 24px;max-width:520px}
.score-chooser h3{margin:0;font-size:15px}
.chooser-engines{display:flex;flex-direction:column;gap:8px}
.chooser-card{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line,#2a2a2a);border-radius:8px;cursor:pointer}
.chooser-card:has(input:checked){border-color:var(--accent,#3B82F6);background:rgba(59,130,246,.08)}
.chooser-card input{margin-top:3px}
.chooser-card div{display:flex;flex-direction:column;gap:2px}
.chooser-card .sub{font-size:11px}
.score-profile-card{cursor:default;background:rgba(59,130,246,.08);border-color:rgba(59,130,246,.55)}
.score-profile-chip{white-space:nowrap;color:#dbeafe;border-color:rgba(59,130,246,.45);background:rgba(59,130,246,.1)}
.chooser-lang{display:flex;flex-direction:column;gap:6px}
.chooser-lang .seg{flex-wrap:wrap}
#score-generate{align-self:flex-start}
.midi-editor-modal{width:96vw;height:92vh;max-width:none;max-height:none;padding:0;flex-direction:column}
.midi-editor-modal[open]{display:flex}   /* display only when open ??an unconditional display:flex here leaks the dialog onto the page */
.midi-editor-head{
  display:flex;align-items:center;gap:10px;padding:8px 14px;
  border-bottom:1px solid var(--line,#2a2a2a);overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin
}
.midi-editor-head>strong,
.midi-editor-head>.btn,
.midi-editor-head>#midi-key-chip{flex:0 0 auto;white-space:nowrap}
.midi-editor-head #audio-mode-seg{flex:1 1 360px;min-width:220px}
.midi-editor-head #audio-mode-seg .seg-btn{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.midi-editor-head .live-chord{flex:0 1 250px;min-width:0;max-width:250px;overflow:hidden;white-space:nowrap}
.midi-editor-head .live-chord>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.midi-editor-head #midi-editor-status{min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.midi-editor-head .t-spacer{min-width:0}
@media(max-width:1100px){
  .midi-editor-head .lc-next{display:none}
  .midi-editor-head .live-chord{flex-basis:150px;max-width:150px}
  .midi-editor-head #midi-editor-status:empty{display:none}
}
@media(max-width:760px){
  .midi-editor-head{flex-wrap:wrap;align-content:center}
  .midi-editor-head #audio-mode-seg{order:5;flex-basis:100%;min-width:100%}
  .midi-editor-head .live-chord{margin-left:auto}
  .midi-editor-head .t-spacer{display:none}
}
.midi-editor-frame{flex:1;width:100%;border:0;background:#111}
.score-print-title{display:none;margin:0 0 20px;text-align:center;font:700 24px/1.25 Arial,sans-serif;color:#151515}
.score-print-title.is-visible{display:block}
.score-print-title small{display:block;margin-top:6px;font:400 14px/1.35 Arial,sans-serif;color:#555}
.score-body{
  position:relative;margin:0 20px 20px;padding:28px 34px;border-radius:8px;
  background:#fdfdfa;color:#1a1a1a;
  max-height:62vh;overflow-y:auto;
  font-size:18px;font-variant-numeric:tabular-nums;user-select:none;
}
.score-body>.score-error-msg{margin:0;color:#152033;background:#fff;border:1px solid #d7dee8;border-radius:10px;padding:16px 18px;font-size:14px;font-weight:700;line-height:1.45;box-shadow:0 1px 0 rgba(0,0,0,.04)}

.score-body.score-loading-body{
  display:grid;place-items:center;min-height:112px;max-height:none;margin:14px 20px 20px;padding:18px 24px;
  border:1px solid #263547;border-radius:10px;background:#121a24;color:#fff;text-align:center;user-select:none;
}
.score-loading{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:130px}
.score-loading .loader-bars{--loader-size:26px;color:#fff}
.score-loading-copy{color:#d7e2ee;font-size:12px;font-weight:600}
.transcription-asset-loading{width:min(420px,calc(100% - 28px));max-width:420px;padding:0;border:1px solid #33485e;border-radius:16px;background:#111b26;color:#eef6ff;box-shadow:0 24px 80px rgba(0,0,0,.58)}
.transcription-asset-loading::backdrop{background:rgba(3,8,14,.76);backdrop-filter:blur(3px)}
.transcription-asset-loading-body{display:grid;justify-items:center;gap:12px;padding:30px 28px 26px;text-align:center}
.transcription-asset-loading-body .loader-bars{--loader-size:30px;color:#fff}
.transcription-asset-loading-body h2{margin:0;font-size:20px;letter-spacing:-.02em}
.transcription-asset-loading-body .sub{min-height:18px;margin:0;color:#b9cde0;font-size:12px}
.transcription-asset-loading-body .progress{width:100%;margin:3px 0 0;background:#263746}
.transcription-asset-loading-body .proc-hint{margin:0;color:#8499ad;font-size:10px;line-height:1.4}
.transcription-asset-loading[data-error="true"] .progress,.transcription-asset-loading[data-error="true"] .proc-hint{display:none}
.transcription-asset-loading-error{max-width:330px;margin:0;color:#ffabb4;font-size:12px;line-height:1.45}
.transcription-asset-loading-actions{display:flex;justify-content:center;gap:8px}
@media(max-width:560px){.transcription-asset-loading{width:calc(100% - 20px)}.transcription-asset-loading-body{padding:25px 19px 22px}}
.staff-out svg{max-width:100%;height:auto}
.jn-meta{font-size:14px;font-weight:600;margin-bottom:20px}
.jn-ts{letter-spacing:.05em;margin:0 6px}
.jn-line{position:relative;display:flex;align-items:stretch;width:100%;margin-bottom:26px}
.jn-bar{
  flex:1;display:flex;align-items:center;gap:2px;min-width:0;
  border-right:1.5px solid #1a1a1a;padding:0 8px;column-gap:5px;
}
.jn-line .jn-bar:first-child{border-left:1.5px solid #1a1a1a}
.jn{
  display:inline-grid;grid-template-rows:9px 24px 9px;justify-items:center;align-content:center;
  flex-basis:0;line-height:1.05;padding:2px 2px;border-radius:4px;cursor:pointer;min-width:19px;
}
.jn:hover{background:rgba(0,117,255,.1)}
.jn.sel{background:var(--blue);color:#fff}
.jn.playing{background:#ffcc33;color:#111}
.jn.rest[data-rest-slot="true"],.jn.dash[data-note-id]{cursor:pointer}
.jn.rest.sel,.jn.dash.sel{background:#0b7cff;color:#fff;border-radius:5px}
.jn.rest,.jn.dash{color:#777;cursor:default}
.jn.dash:hover{background:none}
.jn b{grid-row:2;display:block;box-sizing:border-box;height:24px;line-height:18px;font-weight:500;padding:0 2px 3px;border-bottom:4.5px double transparent;font-family:Georgia,'Times New Roman',serif}
.jn.u1 b{border-bottom:1.5px solid currentColor}
.jn.u2 b{border-bottom:4.5px double currentColor}
.jn .up,.jn .dn{font-style:normal;font-size:10px;height:9px;line-height:9px;color:inherit;font-weight:700}
.jn .up{grid-row:1}.jn .dn{grid-row:3}
.jn-piano{display:grid;gap:28px}
.jn-piano-system{display:grid;gap:8px;padding-bottom:18px;border-bottom:1px solid #ddd;break-inside:avoid;page-break-inside:avoid}
.jn-piano-system:last-child{padding-bottom:0;border-bottom:0}
.jn-hand{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start}
.jn-hand-label{font-size:11px;line-height:1;padding-top:17px;color:#555}
.jn-hand-score{min-width:0}
.jn-hand .jn-line{margin-bottom:0}
.jn:has(.jn-chord-stack){min-height:58px;grid-template-rows:minmax(52px,auto);align-self:center}
.jn-chord-stack{grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px}
.jn-chord-tone{display:grid;grid-template-columns:8px minmax(12px,auto) 8px;align-items:center;justify-items:center;min-height:16px;font:500 15px/1 Georgia,'Times New Roman',serif}
.jn-chord-tone.is-selected{border-radius:4px;background:var(--blue);color:#fff}
.jn-chord-tone i{font:700 8px/1 Inter,sans-serif}
.jn.u1 .jn-chord-stack{border-bottom:1.5px solid currentColor}
.jn.u2 .jn-chord-stack{border-bottom:4.5px double currentColor}
.jn-ties{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.jn-ties path{fill:none;stroke:#1a1a1a;stroke-width:1.2}
.jn.sel .up,.jn.sel .dn{color:#fff}
.jn.playing .up,.jn.playing .dn{color:#111}
.jn .lyr{grid-row:4;font-style:normal;font-size:12px;height:16px;line-height:16px;color:#333;font-family:inherit}
.staff-out .score-playing path,.staff-out .score-playing ellipse,.staff-out .score-playing polygon{fill:#e6a700!important;stroke:#e6a700!important}
.score-playback-paper{position:absolute;left:-10000px;top:0;width:900px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.score-lyrics{
  margin:0 20px 10px;width:calc(100% - 40px);resize:vertical;
  background:var(--raised);color:var(--txt);border:1px solid var(--line);border-radius:7px;
  padding:8px 10px;font:inherit;font-size:12px;
}

/* mobile */
@media (max-width:640px){
  .topbar{gap:.7rem;flex-wrap:wrap}
  .topbar nav{gap:.8rem;font-size:13px}
  #nav-upload{display:none}
  .daw-corner,.t-head{width:150px}
  .t-head .pan{display:none}
  .daw-title .sub{display:none}
  .daw-info{display:none}
  .setting{flex-wrap:wrap}
}

@media (max-width:900px){
  .score-command-row{flex-wrap:wrap}
  .score-command-row>.score-audio{order:initial;flex-basis:auto;max-width:none}
}
@media (max-width:560px){
  .score-head{padding:12px}
  .score-command-row>strong{flex:1 1 auto}
  .score-command-row>.t-spacer{display:none}
  .score-command-row>.btn{flex:1 1 auto;text-align:center}
  #score-controls{gap:6px}
}

@media print{
  @page{size:A4 portrait;margin:12mm 11mm 14mm}
  html,body{background:#fff!important;color:#111!important;height:auto!important;overflow:visible!important}
  body>*{display:none!important}
  #score-modal[open]{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#111!important;box-shadow:none!important;overflow:visible!important}
  #score-modal::backdrop{display:none!important}
  #score-modal .score-head,#score-modal .score-hint,#score-modal .score-lyrics{display:none!important}
  #score-modal .score-body{display:block!important;position:static!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#111!important;max-height:none!important;overflow:visible!important;font-size:13pt!important;user-select:text!important}
  #score-modal .score-print-title{display:block!important;font:700 18pt/1.25 Arial,sans-serif;margin:0 0 5mm;color:#111}
  #score-modal .jn-meta{font-size:10.5pt!important;margin-bottom:7mm}
  #score-modal .jn-line{display:flex!important;width:100%!important;break-inside:avoid;page-break-inside:avoid;margin-bottom:8mm}
  #score-modal .jn-bar{flex:1 1 0!important}
  #score-modal .jn{cursor:default!important}
  #score-modal .jn:hover,#score-modal .jn.sel{background:transparent!important;color:inherit!important}
  #score-modal .jn-ties{inset:0!important;width:100%!important;height:100%!important;overflow:visible!important}
  #score-modal .staff-out svg{break-inside:avoid;page-break-inside:avoid;margin-bottom:2mm}
}

/* 2026 studio redesign */
body:has([data-page="/studio"]:not([hidden])){overflow:hidden;background:#05080d}
.topbar{height:74px;padding:0 18px 0 28px;background:linear-gradient(180deg,#070a0f,#04070b);border-bottom:1px solid #1c2633;box-shadow:0 8px 28px #0005}
.brand{gap:13px;font-size:18px;font-weight:700;letter-spacing:-.035em}.brand-wave{width:30px;height:34px;flex:none;object-fit:contain}
.topbar nav{position:absolute;left:50%;translate:-50%;margin:0;gap:42px;height:100%;align-items:stretch}.topbar nav a{display:flex;align-items:center;position:relative;padding:0 5px;font-size:15px;color:#9299a5}.topbar nav a.active{color:#f6f8fb}.topbar nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:10px;height:3px;border-radius:3px;background:#1677ff;box-shadow:0 0 10px #1677ff88}
.cloud-upload{width:44px;height:42px;margin-left:auto;border:1px solid #202b39;border-radius:10px;background:#0e141d;color:#dce6f4;display:grid;place-items:center;cursor:pointer}.cloud-upload:hover{background:#172231}.cloud-upload svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#nav-upload{height:42px;padding:0 24px;border-radius:9px;font-weight:650;background:linear-gradient(#1479ff,#0661df);box-shadow:0 8px 24px #0066ff33}
.daw{height:calc(100dvh - 74px);background:#05080d;padding:8px 14px 10px;gap:8px}.daw-top{display:flex;gap:10px;padding:0 4px 2px;border-bottom:0;min-height:0}.daw-top #btn-download-all,.daw-top #btn-export{display:none}.daw-transport,.daw-toolbar{border:1px solid #1d2836;background:linear-gradient(#0c121a,#090e15);border-radius:12px;padding:9px 13px;min-height:72px;box-shadow:inset 0 1px #ffffff08,0 10px 25px #0003}.daw-transport{gap:8px;flex-wrap:nowrap}.daw-toolbar{min-height:48px;padding:7px 12px}.tbtn{width:46px;height:48px;border-radius:9px;background:linear-gradient(#141c27,#0d141d);border-color:#202c3b}.tbtn-play{width:56px;background:linear-gradient(#197dfb,#075ccd);font-size:17px}.tbtn-record{background:linear-gradient(#24191c,#171216);border-color:#4c292f;color:#ff6046}.t-time{font-size:16px;font-weight:600;margin:0 12px;min-width:104px}.t-time #t-dur{font-weight:400;color:#788393}.t-item{min-height:48px;padding:4px 15px;border-left:1px solid #202a37;gap:9px}.t-item .tool-label{font-size:10px}.t-val,.tool-select{font-size:14px}.tool-select{background:transparent;border:0;padding:2px 8px}.chip{border-color:#263343;background:#0e151e;color:#d4dbe5;border-radius:8px;padding:7px 12px}.chip.on{background:#12386a;border-color:#226dc8}.ibtn{width:32px;height:32px}.ibtn.on{background:#126cec}.tool-label{color:#8590a0}
.daw-tracks{border:1px solid #1d2938;border-radius:12px;background:#071019;overflow:auto;box-shadow:0 12px 30px #0006}.daw-heads{width:310px;background:#071019;border-right:1px solid #435164;padding:0 8px 8px 0}.daw-corner{height:34px;color:#8693a3;background:#0b1119;border-bottom-color:#233142;padding:0 16px;font-size:10px;line-height:1}.lanescol{background-color:#071019;background-image:linear-gradient(#29445e1f 1px,transparent 1px),linear-gradient(90deg,#29445e1f 1px,transparent 1px);background-size:22px 22px}#ruler{height:34px;background:#0b1119;border-bottom-color:#263446}.t-head,.track-lane{height:88px}.t-head{margin:5px 8px 0;padding:10px 12px 10px 76px;border:1px solid color-mix(in srgb,var(--tc,#64748b) 34%,#223044);border-radius:9px;background:linear-gradient(90deg,color-mix(in srgb,var(--tc,#64748b) 10%,#0b131d),#0b131d);gap:10px;overflow:hidden}.t-head::before{width:4px;border-radius:9px 0 0 9px}.t-head.sel{background:linear-gradient(90deg,color-mix(in srgb,var(--tc,#64748b) 18%,#0b131d),#0b131d)}
.t-ic{position:absolute;left:12px;top:12px;width:50px;height:50px;border-radius:9px;background:#101b28 center/cover;box-shadow:0 6px 16px #0007}.t-ic svg{display:none}.t-head[data-ch="bass"] .t-ic{background-image:url('assets/stem-bass.png')}.t-head[data-ch="drums"] .t-ic{background-image:url('assets/stem-drums.png')}.t-head[data-ch="vocals"] .t-ic,.t-head[data-ch^="recording"] .t-ic{background-image:url('assets/stem-vocals.png')}.t-head[data-ch="guitar"] .t-ic,.t-head[data-ch^="guitar_"] .t-ic{background-image:url('assets/stem-guitar.png')}.t-head[data-ch^="guitar_lead"] .t-ic,.t-head[data-ch^="guitar_rhythm"] .t-ic{background-image:url('assets/stem-guitar.png')} .t-head[data-ch^="guitar_lead"] .t-ic::after,.t-head[data-ch^="guitar_rhythm"] .t-ic::after{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:19px;height:19px;border:2px solid #101820;border-radius:50%;background:var(--tc,#ec4899);color:#fff;font:800 10px/1 var(--font-sans,Arial,sans-serif);box-shadow:0 2px 7px #0009} .t-head[data-ch^="guitar_lead"] .t-ic::after{content:'L'} .t-head[data-ch^="guitar_rhythm"] .t-ic::after{content:'R'}.t-head[data-ch="piano"] .t-ic{background-image:url('assets/stem-piano.png')}.t-name{font-size:14px;color:#f4f7fb}.t-head-top{gap:7px}.t-head-top .chip{padding:3px 7px;background:#16212d}.t-head-top .dl,.t-head-top .score-btn,.track-delete{opacity:0;width:0;padding:0;border:0;overflow:hidden}.t-head:hover .dl,.t-head:hover .track-delete{opacity:1;width:auto;padding:3px 6px}.t-head-top .score-btn,.t-head:hover .score-btn{opacity:1;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #263343;display:grid;place-items:center;overflow:visible;font-size:16px;line-height:1}.t-head-bot{gap:8px}.vol{flex:1.9;accent-color:var(--tc,var(--blue))}.pan{display:none}.track-lane{border-bottom-color:#1d2a39;background:linear-gradient(#0a141e6b,#050c13aa)}.track-lane.sel{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tc,#64748B) 45%,transparent)}#playhead{background:#e9f3ff;box-shadow:0 0 7px #fff}.daw-sticky-bottom{background:#070b11;border-radius:10px}.daw-bottom{padding:7px 14px;border:1px solid #1c2735;border-radius:10px;background:#0a1018}.guitar-panel,.guitar-analysis{background:#0a1018}
@media(max-width:900px){.topbar nav{position:static;translate:0;margin-left:auto;gap:15px}.cloud-upload{display:none}.daw{padding:6px}.daw-transport{overflow-x:auto}.daw-toolbar{display:none}.daw-heads{width:220px}.t-head{padding-left:58px}.t-ic{width:40px;height:40px}.t-head-top .dl,.t-head-top .score-btn,.track-delete{display:none}}
@media(max-width:1400px){.topbar .account{margin-left:0}}
[hidden]{display:none!important}

/* Studio command bar + exact row alignment + GarageBand 3D Tactile Styling */
.daw-transport{
  display:grid;grid-template-columns:max-content minmax(320px,.9fr) minmax(460px,1.22fr) minmax(250px,.78fr);
  align-items:stretch;gap:12px;padding:0;border:0;background:transparent;border-radius:0;min-height:74px;box-shadow:none;overflow-x:auto;
}
.transport-cluster{
  min-width:0;height:74px;display:flex;align-items:center;
  border:1px solid #1a2432;border-radius:12px;background:linear-gradient(180deg,#0a0f16,#0d141e);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.45),0 4px 12px rgba(0,0,0,.18);overflow:hidden;
}
.transport-main{gap:8px;padding:10px 14px}
.transport-main .t-time{
  margin-left:8px;padding:6px 12px;border-radius:8px;white-space:nowrap;
  background:linear-gradient(180deg,#060a0f,#080d14);border:1px solid #141c27;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.6),inset 0 -1px 0 rgba(255,255,255,.03);
}
.transport-params{padding:0 10px}
.transport-params .t-item{
  height:52px;min-height:52px;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;
  gap:1px;padding:0 14px;border-left:1px solid #182230;
}
.transport-params .t-item:first-child{border-left:0}
.transport-params .tool-label{font-size:10px}
.transport-params .t-val,.transport-params .tool-select{font-size:15px;font-weight:600}
.transport-practice{padding:0 8px;gap:8px}
.practice-cell{
  flex:0 0 auto;min-height:56px;display:flex;align-items:center;padding:4px 6px;
  border:1px solid #1a2a3a;border-radius:10px;
  background:linear-gradient(180deg,#0d1722 0%,#0a111a 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.04),0 2px 6px rgba(0,0,0,.2);
}
.practice-loop-cell{padding-inline:4px}
.practice-action-cell{padding-inline:5px}
@media (max-width:640px){
  .transport-practice{gap:7px;padding-inline:6px}
  .practice-cell{min-height:54px;padding:3px 5px;border-radius:9px}
  .practice-loop-cell{padding-inline:3px}
  .practice-action-cell{padding-inline:4px}
}
.loop-set{height:52px;display:flex;align-items:center;padding:0 4px;gap:5px}
.loop-set .chip{
  height:36px;padding:0 11px;font-size:13px;font-weight:600;color:#c6d2df;
  border:1px solid #141c26;border-radius:7px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  transition:all .12s ease;cursor:pointer;
}
.loop-set .chip:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.loop-set .chip.on,.loop-set .chip:active{
  background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);
  border-color:#0b3469;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.loop-set .loop-toggle{
  border:1px solid #141c26;border-radius:7px;height:36px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  margin-left:2px;padding:0 13px;color:#c6d2df;font-size:13px;font-weight:600;transition:all .12s ease;
}
.loop-set .loop-toggle:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.loop-set .loop-toggle.on{
  background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);
  border-color:#0b3469;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.practice-button{
  height:38px;border:1px solid #141c26;border-radius:7px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  padding:0 14px;color:#c6d2df;font-size:13px;font-weight:600;white-space:nowrap;
  display:inline-flex;align-items:center;transition:all .12s ease;cursor:pointer;
}
.practice-button:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.practice-button:active,.practice-button.on{
  background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);
  border-color:#0b3469;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.practice-button:disabled{opacity:.5;pointer-events:none}
.practice-icon{width:16px;height:16px;margin-right:6px;fill:none;stroke:#c8d3df;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.transport-zoom{gap:8px;padding:0 12px}
.zoom-label{font-size:13px;font-weight:600;color:#d8e0ea;margin-right:3px}
.transport-zoom .chip{
  flex:0 0 auto;width:30px;height:30px;padding:0;display:grid;place-items:center;
  border:1px solid #141c26;border-radius:7px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color:#c6d2df;font-size:15px;font-weight:600;transition:all .12s ease;
}
.transport-zoom .chip:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.transport-zoom .chip:active{
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);transform:translateY(1px);
}
.zoom-meter{appearance:none;-webkit-appearance:none;width:82px;height:18px;margin:0;cursor:pointer;background:transparent;accent-color:#1677ff}
.zoom-meter::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,#1677ff var(--zoom-fill,0%),#3a4655 var(--zoom-fill,0%))}
.zoom-meter::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;background:#2d8cff;border:2px solid #9dc9ff;box-shadow:0 0 0 2px rgba(22,119,255,.18)}
.zoom-meter::-moz-range-track{height:4px;border-radius:999px;background:#3a4655}
.zoom-meter::-moz-range-progress{height:4px;border-radius:999px;background:#1677ff}
.zoom-meter::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#2d8cff;border:2px solid #9dc9ff;box-shadow:0 0 0 2px rgba(22,119,255,.18)}
.transport-zoom #zoom-val{display:none}
.fullscreen-control{
  margin-left:auto;width:38px;height:38px;padding:0;font-size:18px;
  border:1px solid #141c26;border-radius:7px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color:#c6d2df;display:grid;place-items:center;transition:all .12s ease;
}
.fullscreen-control:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.fullscreen-control:active{
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);transform:translateY(1px);
}
.daw-toolbar{display:none}
.daw-heads{padding-bottom:0}
.daw-corner,#ruler{height:34px;min-height:34px}
#track-heads{display:flex;flex-direction:column}
.t-head{box-sizing:border-box;height:78px;min-height:78px;flex:0 0 78px;margin:5px 8px}
.track-lane{box-sizing:border-box;height:88px;min-height:88px;margin:0}
@media(max-width:1450px){.daw-transport{grid-template-columns:286px 320px 400px 210px}.transport-cluster{height:70px}.daw-transport{min-height:70px}}

/* Reference transport buttons with Tactile 3D GarageBand Look */
.transport-main .tbtn{
  width:52px;height:52px;border-radius:9px;border:1px solid #121923;
  background:linear-gradient(180deg,#222c39 0%,#131b25 100%);
  display:grid;place-items:center;padding:0;color:#f0f5fa;flex:0 0 52px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 4px rgba(0,0,0,.3);
  transition:all .12s ease;cursor:pointer;
}
.transport-main .tbtn:hover{
  background:linear-gradient(180deg,#273342 0%,#17202c 100%);
  color:#fff;
}
.transport-main .tbtn:active{
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.transport-main .tbtn svg{width:24px;height:24px;fill:currentColor;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}

/* Play Button - 3D Blue Power Knob */
.transport-main .tbtn-play{
  width:58px;flex-basis:58px;
  background:linear-gradient(180deg,#1e80f8 0%,#0056cb 100%);
  border-color:#004193;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.3),0 2px 5px rgba(0,86,203,.35);
}
.transport-main .tbtn-play:hover{
  background:linear-gradient(180deg,#2e8bff 0%,#0660d8 100%);
}
.transport-main .tbtn-play:active,.transport-main .tbtn-play.playing{
  background:linear-gradient(180deg,#0a448e 0%,#0051ba 100%);
  box-shadow:inset 0 1px 4px rgba(0,0,0,.55);
  transform:translateY(1px);
}

/* Record Button - 3D Hardware Red Indicator */
.transport-main .tbtn-record{
  position:relative;width:54px;flex-basis:54px;
  background:linear-gradient(180deg,#26191d 0%,#140f13 100%);
  border-color:#381a20;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 4px rgba(0,0,0,.3);
}
.transport-main .tbtn-record:hover{
  background:linear-gradient(180deg,#2e1e23 0%,#1a1318 100%);
}
.record-dot{
  width:20px;height:20px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#ff7d58 0%,#f04626 60%,#c62205 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 4px rgba(240,70,38,.35);
}
.record-stop{display:none;width:17px;height:17px;border-radius:3px;background:#ff5438}
.tbtn-record.recording .record-dot{display:none}
.tbtn-record.recording .record-stop{display:block}
.tbtn-record.recording{
  background:linear-gradient(180deg,#3e1414 0%,#240a0a 100%);
  border-color:#e63e26;
  box-shadow:inset 0 1px 4px rgba(0,0,0,.5);
}

/* Keep every interactive transport control comfortable on touch screens. The
   visual controls can stay compact on desktop, while the minimum hit area is
   large enough for a finger and remains compatible with the horizontal mobile
   transport scroller. */
.daw-transport button.tbtn,
.daw-transport button.chip,
.daw-transport button.loop-toggle,
.daw-transport button.practice-button,
.daw-transport button.fullscreen-control{min-width:44px;min-height:44px}
.daw-transport .zoom-meter{height:44px}

#btn-play .icon-pause{display:none}#btn-play.playing .icon-play{display:none}#btn-play.playing .icon-pause{display:block}
.bpm-control{min-width:112px;align-items:flex-start}.bpm-value-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.bpm-input{width:58px;border:0;background:transparent;color:#fff;font:inherit;font-size:15px;font-weight:650;padding:0;outline:0;font-variant-numeric:tabular-nums}.bpm-input::-webkit-inner-spin-button{opacity:.75}.bpm-status{display:block;max-width:112px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8d9bad;font-size:8px;font-weight:500;line-height:1.15}.bpm-status[data-status="auto"]{color:#6ed6b2}.bpm-status[data-status="manual"]{color:#a9c6ea}.bpm-status[data-status="detecting"]{color:#f0c674}.bpm-status[data-status="detection-unavailable"]{color:#8d9bad}
.metronome-icon{filter:invert(88%) sepia(8%) saturate(371%) hue-rotate(172deg) brightness(98%);object-fit:contain}
#btn-metronome.on{color:#fff;background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);border-color:#0b3469;box-shadow:inset 0 1px 3px rgba(0,0,0,.5)}
#btn-metronome.on .metronome-icon{filter:brightness(200%)}

/* Restored DAW edit toolbar with 3D Tactile Buttons */
.daw-toolbar{
  display:flex!important;align-items:center;gap:6px;min-height:48px;padding:6px 10px;
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
  border:1px solid #1a2432;border-radius:12px;background:linear-gradient(180deg,#0a0f16,#0d141e);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.45),0 4px 12px rgba(0,0,0,.18);
}
.daw-toolbar .ibtn{
  width:auto;min-width:max-content;height:34px;padding:0 11px;gap:6px;
  border:1px solid #141c26;border-radius:7px;
  background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color:#c6d2df;transition:all .12s ease;cursor:pointer;
}
.daw-toolbar .ibtn:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.daw-toolbar .ibtn:active,.daw-toolbar .ibtn.on{
  background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);
  border-color:#0b3469;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.daw-toolbar .ibtn svg{flex:0 0 15px}
.daw-toolbar .ibtn::after{font-size:11px;font-weight:600;white-space:nowrap}
#tool-pointer::after{content:"Select"}#tool-split::after{content:"Split"}#tool-trimL::after{content:"Trim Left"}#tool-trimR::after{content:"Trim Right"}#tool-del::after{content:"Delete"}#tool-rdel::after{content:"Ripple"}#tool-undo::after{content:"Undo"}#tool-redo::after{content:"Redo"}
.daw-toolbar #tool-exportrange{
  height:34px;padding:0 11px;white-space:nowrap;border-radius:7px;
  border:1px solid #141c26;background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color:#c6d2df;font-size:11px;font-weight:600;transition:all .12s ease;
}
.daw-toolbar #tool-exportrange:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.daw-toolbar #tool-exportrange:active{
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);transform:translateY(1px);
}
.daw-toolbar #tool-exportrange::before{content:"Export "}
.daw-toolbar #btn-score-toggle{
  height:34px;padding:0 11px;white-space:nowrap;border-radius:7px;
  border:1px solid #141c26;background:linear-gradient(180deg,#202a37 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color:#c6d2df;font-size:11px;font-weight:600;transition:all .12s ease;
}
.daw-toolbar #btn-score-toggle:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.daw-toolbar #btn-score-toggle.on,.daw-toolbar #btn-score-toggle:active{
  background:linear-gradient(180deg,#0a448e 0%,#005ecc 100%);
  border-color:#0b3469;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
  transform:translateY(1px);
}
.daw-toolbar .tool-hint{min-width:180px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.daw-toolbar{display:flex!important}.daw-toolbar .tool-hint{display:none}}

/* Track header buttons (Mute / Solo / EQ / Score / Delete) with matching 3D styling */
.t-head-top .chip{
  border:1px solid #131b25;border-radius:6px;
  background:linear-gradient(180deg,#202936 0%,#131a24 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.25);
  color:#b0bccb;transition:all .12s ease;cursor:pointer;
}
.t-head-top .chip:hover{
  background:linear-gradient(180deg,#263242 0%,#17202c 100%);
  color:#fff;
}
.t-head-top .m-mute[aria-pressed="true"]{
  background:linear-gradient(180deg,#872323 0%,#b52a2a 100%);
  border-color:#631515;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
}
.t-head-top .m-solo[aria-pressed="true"]{
  background:linear-gradient(180deg,#876c1a 0%,#b89423 100%);
  border-color:#634f12;color:#fff;
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);
}

@media(max-width:720px){
  .topbar .sheet-midi-trigger{order:3;margin-left:auto}
  .sheet-result-row{align-items:flex-start;flex-direction:column}
  .sheet-result-actions{width:100%}
  .sheet-result-actions .btn{flex:1;text-align:center}
}
@media(max-width:640px){
  .topbar{height:112px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:64px 48px;gap:0 8px;padding:0 12px}
  .topbar .brand{grid-column:1;grid-row:1;min-width:0;font-size:16px;white-space:nowrap;overflow:hidden}
  .topbar .brand-wave{flex:0 0 30px}
  .topbar .account{grid-column:2;grid-row:1;margin-left:0;justify-self:end}
  .topbar .sheet-midi-trigger{grid-column:2;grid-row:1;order:initial;margin:0;white-space:nowrap}
  .topbar .cloud-upload,.topbar #nav-upload{display:none}
  .topbar nav{grid-column:1 / -1;grid-row:2;position:static;translate:none;width:100%;height:48px;margin:0;gap:0;justify-content:space-around}
  .topbar nav a{flex:1;justify-content:center;padding:0;font-size:13px}
  .topbar nav a.active::after{bottom:0}
  .daw{height:calc(100dvh - 112px)}
}
@media(prefers-reduced-motion:reduce){.plan{transition:border-color .2s ease,box-shadow .2s ease}.plan:hover{transform:none}}

/* Upload wizard ??restrained pro-audio treatment */
#upload-modal{
  max-width:640px;max-height:calc(100vh - 20px);overflow:auto;background:#191919;border:1px solid #353535;border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.55)
}
#upload-modal::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(2px)}
.upload-wizard{padding:30px 32px 28px;gap:25px}
/* -- reactbits Stepper, ported verbatim from Stepper.css + Stepper.jsx (no motion/react needed) --
   accent #5227FF; indicator 2rem circle, no border; active dot .75rem; connector .125rem #52525b */
.upload-wizard>.wizard-progress{width:100%;margin:0;grid-template-columns:auto minmax(32px,1fr) auto minmax(32px,1fr) auto;gap:0}
.upload-wizard>.wizard-progress:has([data-wizard-indicator="3"][hidden]){grid-template-columns:auto minmax(32px,1fr) auto}
.upload-wizard>.wizard-progress>i{position:relative;overflow:hidden;height:.125rem;margin:0 .5rem;border-radius:.25rem;background:#52525b}
.upload-wizard>.wizard-progress>i::after{content:"";position:absolute;left:0;top:0;height:100%;width:0;background:#5227ff;transition:width .4s ease}
.upload-wizard>.wizard-progress:has(.wizard-progress-item.done)>i::after{width:100%}
.upload-wizard>.wizard-progress .wizard-progress-item{color:#a3a3a3;gap:8px;min-width:0;white-space:nowrap}
.wizard-progress-item b{position:relative;width:2rem;height:2rem;border:0;border-radius:9999px;background:#222;color:#a3a3a3;font-size:.875rem;font-weight:600;transition:background-color .3s ease,color .3s ease}
/* the number is still a grid item even at font-size:0, so centre the dot/check absolutely instead */
.wizard-progress-item.on b::after,.wizard-progress-item.done b::after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.wizard-progress-item em{font-size:9px;letter-spacing:.1em}
.wizard-progress-item.on b{background:#5227ff;font-size:0}
.wizard-progress-item.on b::after{content:"";height:.75rem;width:.75rem;border-radius:9999px;background:#fff}
.wizard-progress-item.done{cursor:pointer}
.wizard-progress-item.done b{background:#5227ff;font-size:0}
.wizard-progress-item.done b::after{content:"";height:1rem;width:1rem;background:#fff;
  -webkit-mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")}

/* .step-content-default + stepVariants: enter -100%/100%, exit 50%/-50%, 0.4s; height spring 0.4s */
.wizard-content{position:relative;overflow:hidden;transition:height .4s cubic-bezier(.4,0,.2,1)}
.wizard-content.animating>.upload-wizard-page{position:absolute;left:0;right:0;top:0}
@keyframes step-enter-fwd{from{transform:translateX(-100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes step-enter-back{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes step-exit-fwd{from{transform:translateX(0);opacity:1}to{transform:translateX(50%);opacity:0}}
@keyframes step-exit-back{from{transform:translateX(0);opacity:1}to{transform:translateX(-50%);opacity:0}}
.upload-wizard-page.enter-fwd{animation:step-enter-fwd .4s both}
.upload-wizard-page.enter-back{animation:step-enter-back .4s both}
.upload-wizard-page.exit-fwd{animation:step-exit-fwd .4s both}
.upload-wizard-page.exit-back{animation:step-exit-back .4s both}
@media(prefers-reduced-motion:reduce){.upload-wizard-page[class*="enter-"],.upload-wizard-page[class*="exit-"]{animation:none}.wizard-content{transition:none}}
.upload-wizard-page{gap:22px}
.upload-chooser-head{padding:0;text-align:left;gap:6px}
.upload-chooser-head h2{font-size:26px;line-height:1.13;letter-spacing:-.035em}
.upload-chooser-head .sub{font-size:12px;color:#969696}
.upload-kicker{display:none}
.stem-choice-section{padding:0;gap:10px;border:0;border-radius:0;background:transparent}
.vocal-karaoke-choice,.stem-choice-card{
  border:1px solid #383838;
  background:linear-gradient(180deg, #252525 0%, #1c1c1c 100%);
  color:#f1f1f1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 5px rgba(0,0,0,0.3);
  transition:all .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.vocal-karaoke-choice:hover,.stem-choice-card:hover{
  border-color:#4e4e4e;
  background:linear-gradient(180deg, #2c2c2c 0%, #212121 100%);
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.12),inset 0 -1px 0 rgba(0,0,0,0.4),0 4px 10px rgba(0,0,0,0.35);
}
.vocal-karaoke-choice:active,.stem-choice-card:active{
  transform:translateY(1px);
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.6);
}
.vocal-karaoke-choice{grid-template-columns:34px minmax(0,1fr) 20px;gap:13px;padding:15px 16px;border-radius:10px}
.vocal-karaoke-choice.on{
  border-color:#1a6ed8;
  background:linear-gradient(180deg, #1b2e44 0%, #121e2d 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 6px rgba(0,0,0,0.35);
}
.vocal-karaoke-choice.on .vocal-choice-copy>span{color:#a9c6ea}
.vocal-choice-copy{gap:4px}.vocal-choice-copy strong{font-size:14px}.vocal-choice-copy>span{font-size:10px;color:#999}
.stem-choice-icon,.stem-choice-card .stem-choice-icon{
  width:28px;height:28px;border-radius:0;background:transparent!important;color:#bdbdbd!important
}
.vocal-karaoke-choice.on .stem-choice-icon,.stem-choice-card.on .stem-choice-icon{color:#6ab0ff!important}
.stem-choice-icon svg,.stem-choice-card .stem-choice-icon svg{width:21px;height:21px}
.stem-icon-art{display:inline-block;width:1.25em;height:1.25em;flex:0 0 auto;background:currentColor;-webkit-mask:var(--stem-icon) center/contain no-repeat;mask:var(--stem-icon) center/contain no-repeat}
.stem-choice-icon .stem-icon-art,.stem-choice-card .stem-icon-art{width:30px;height:30px}
.result-track .stem-icon-art{width:14px;height:14px;color:#6ab0ff}
.stem-choice-check{
  width:18px;height:18px;border:1px solid #4a4a4a;border-radius:50%;
  background:linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow:inset 0 1px 2px rgba(0,0,0,0.6),0 1px 0 rgba(255,255,255,0.08);
  display:grid;place-items:center;transition:all .14s ease;
}
.on .stem-choice-check,.stem-choice-card.on .stem-choice-check,.vocal-karaoke-choice.on .stem-choice-check{
  border-color:#0b4a94;background:linear-gradient(180deg, #1d6ed8 0%, #0c4da3 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.3),inset 0 -1px 0 rgba(0,0,0,0.4),0 1px 3px rgba(0,0,0,0.3);
}
.stem-picker-heading{padding:7px 1px 0}.stem-picker-heading strong{font-size:11px}.stem-picker-heading span{color:#737373}
.stem-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stem-choice-card{min-height:56px;padding:8px 13px;border-radius:10px;grid-template-columns:28px minmax(0,1fr) 19px;gap:10px}
.stem-choice-card strong{font-size:12px}
.stem-choice-card.on{
  border-color:#1a6ed8;
  background:linear-gradient(180deg, #1b2e44 0%, #121e2d 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 6px rgba(0,0,0,0.35);
}
.upload-result{margin-top:4px;padding:14px 1px 0;border-top-color:#343434}
.upload-result-label{color:#747474}
.result-track{padding:5px 8px;border-color:rgba(0,117,255,.42)!important;background:rgba(0,117,255,.1)!important;color:#bdbdbd!important}
.result-track b{color:#e8f0fb}.result-track svg{color:#6ab0ff}
.wizard-actions{justify-content:flex-end;gap:9px}
.wizard-back,.wizard-next{min-height:40px;padding:0 18px;border-radius:9px;font-size:12px}
/* reactbits .back-button / .next-button */
.wizard-back{border:0;border-radius:.25rem;padding:.25rem .5rem;background:transparent;color:#a3a3a3;transition:all 350ms}
.wizard-back:hover{color:#e4e4e4;background:transparent}
.wizard-next{border:0;border-radius:9999px;padding:.375rem .875rem;background:#5227ff;color:#fff;font-weight:500;letter-spacing:-.025em;box-shadow:none;transition:all 350ms}
.wizard-next:hover{background:#5227ff}
.wizard-next:disabled{background:#303030;color:#6f6f6f}
.wizard-dropzone{min-height:230px;border-color:#444;border-radius:11px;background:#202020}
.wizard-dropzone:hover,.wizard-dropzone.over{border-color:#777;background:#242424}
.wizard-upload-icon{width:54px;height:54px;border-radius:0;background:transparent;color:#bbb}
.queued-file,.fixed-upload-note{border-color:#3d3d3d;border-radius:10px;background:#202020}
.queued-file-icon{border-radius:8px;background:#2d2d2d;color:#ccc}
@media(max-width:640px){
  #upload-modal{border-radius:13px}.upload-wizard{padding:22px 18px 20px;gap:19px}
  .wizard-progress{width:100%}.wizard-progress-item em{display:block}
  .upload-chooser-head h2{font-size:24px}.stem-choice-grid{grid-template-columns:1fr}
  .vocal-karaoke-choice{padding:13px}.wizard-actions{justify-content:stretch}
  .wizard-actions>*{flex:1}.wizard-dropzone{min-height:220px}
}
.upload-result-empty{color:#858585;font-size:10px;font-weight:600;letter-spacing:.02em}

/* transcription intent: one target, shared editable-note pipeline */
.transcription-input{display:grid;gap:9px}.transcription-input-head{display:grid;gap:3px}.transcription-input-head span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.transcription-input-head strong{font-size:13px}
.transcription-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.transcription-input-grid button{min-height:70px;padding:12px 14px;border:1px solid #3d3d3d;border-radius:11px;background:#1c1c1c;color:#a6a6a6;text-align:left;font:inherit;cursor:pointer}.transcription-input-grid button:hover{border-color:#606060;background:#222}.transcription-input-grid button.on{border-color:#c98749;background:#2a211a;color:#fff}.transcription-input-grid strong,.transcription-input-grid span,.transcription-input-grid small{display:block}.transcription-input-grid strong{font-size:13px}.transcription-input-grid span{margin-top:4px;font-size:10px}.transcription-input-grid small{margin-top:3px;color:#7f7f7f;font-size:8px}.transcription-input-grid button.on small{color:#bd9a7a}
.transcription-output{display:grid;gap:10px;padding-top:2px}
.transcription-output-head{display:flex;align-items:end;justify-content:space-between;gap:18px}
.transcription-output-head>div{display:grid;gap:3px}.transcription-output-head span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.transcription-output-head strong{font-size:13px}.transcription-output-head small{color:#787878;font-size:9px}
.transcription-output-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.transcription-output-grid button{min-height:78px;padding:12px;border:1px solid #3d3d3d;border-radius:11px;background:#1c1c1c;color:#a6a6a6;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease}
.transcription-output-grid button:hover{border-color:#606060;background:#222}.transcription-output-grid button.on{border-color:#c98749;background:#2a211a;color:#fff}
.transcription-output-grid span,.transcription-output-grid strong,.transcription-output-grid small{display:block}.transcription-output-grid span{margin-bottom:7px;font-size:11px;font-weight:700}.transcription-output-grid strong{font-size:13px}.transcription-output-grid small{margin-top:3px;color:#767676;font-size:8px}.transcription-output-grid button.on small{color:#bd9a7a}
.transcription-result{border-color:#514132!important;background:#231d18!important;color:#e0b386!important}.transcription-output:not([hidden])+.wizard-actions .wizard-next{background:#f3f1ed;color:#171717;box-shadow:none}.transcription-output:not([hidden])+.wizard-actions .wizard-next:hover{background:#fff}
@media(max-width:640px){.transcription-input-grid{grid-template-columns:1fr}.transcription-output-head{align-items:start;flex-direction:column;gap:4px}.transcription-output-grid{grid-template-columns:1fr}.transcription-output-grid button{min-height:62px}}

/* Notation import setup: shares the upload wizard language, with score-specific choices. */
.notation-import-modal{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100vh - 20px);margin:10px auto auto;overflow:auto;border:1px solid #343437;border-radius:24px;background:#1c1c1d;color:#f4f4f4}
.notation-import-modal::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(2px)}
.notation-import-wizard{display:grid;gap:20px;padding:30px}
.notation-wizard-progress{grid-template-columns:auto 1fr auto 1fr auto;width:100%}.notation-wizard-progress>i::after{width:0!important}.notation-wizard-progress>i.done::after{width:100%!important}.notation-wizard-progress .wizard-progress-item.done{cursor:pointer}.notation-wizard-progress .wizard-progress-item:not(.on):not(.done) b{font-size:.875rem}
.notation-import-file{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;border:1px solid #3b3b3d;border-radius:12px;background:#242425}
.notation-import-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#313134;color:#f1f1f1;font-size:20px}
.notation-import-file>span:nth-child(2){display:grid;gap:3px;min-width:0}.notation-import-file strong{overflow:hidden;color:#f5f5f5;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.notation-import-file small{color:#858585;font-size:9px}
.notation-import-file button{padding:7px 9px;border:1px solid #454548;border-radius:8px;background:#29292b;color:#c7c7c9;font:700 9px/1 Inter,sans-serif;cursor:pointer}.notation-import-file button:hover{border-color:#68686c;color:#fff}
.sheet-details-step{gap:20px}.sheet-details-step .notation-import-file-icon{font-size:9px;font-weight:800;letter-spacing:.05em}.sheet-details-step .upload-metadata{border-top:0;padding-top:0}
.notation-wizard-content{position:relative;overflow:hidden;min-height:164px;transition:height .4s cubic-bezier(.4,0,.2,1)}.notation-wizard-content.animating>.notation-wizard-page{position:absolute;inset:0 0 auto}.notation-wizard-page{box-sizing:border-box;width:100%}
.notation-wizard-page.enter-fwd{animation:step-enter-fwd .4s both}.notation-wizard-page.enter-back{animation:step-enter-back .4s both}.notation-wizard-page.exit-fwd{animation:step-exit-fwd .4s both}.notation-wizard-page.exit-back{animation:step-exit-back .4s both}
.notation-instrument{display:grid;gap:10px;padding-top:2px}.notation-step-heading{display:grid;gap:3px}.notation-step-heading span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.notation-step-heading strong{font-size:13px}
.upload-wizard>.wizard-progress>i::after{content:"";position:absolute;left:0;top:0;height:100%;width:0;background:#5227ff;transition:width .4s ease}
.upload-wizard>.wizard-progress:has(.wizard-progress-item.done)>i::after{width:100%}
.upload-wizard>.wizard-progress .wizard-progress-item{color:#a3a3a3;gap:8px;min-width:0;white-space:nowrap}
.wizard-progress-item b{position:relative;width:2rem;height:2rem;border:0;border-radius:9999px;background:#222;color:#a3a3a3;font-size:.875rem;font-weight:600;transition:background-color .3s ease,color .3s ease}
/* the number is still a grid item even at font-size:0, so centre the dot/check absolutely instead */
.wizard-progress-item.on b::after,.wizard-progress-item.done b::after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
.wizard-progress-item em{font-size:9px;letter-spacing:.1em}
.wizard-progress-item.on b{background:#5227ff;font-size:0}
.wizard-progress-item.on b::after{content:"";height:.75rem;width:.75rem;border-radius:9999px;background:#fff}
.wizard-progress-item.done{cursor:pointer}
.wizard-progress-item.done b{background:#5227ff;font-size:0}
.wizard-progress-item.done b::after{content:"";height:1rem;width:1rem;background:#fff;
  -webkit-mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  mask:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")}

/* .step-content-default + stepVariants: enter -100%/100%, exit 50%/-50%, 0.4s; height spring 0.4s */
.wizard-content{position:relative;overflow:hidden;transition:height .4s cubic-bezier(.4,0,.2,1)}
.wizard-content.animating>.upload-wizard-page{position:absolute;left:0;right:0;top:0}
@keyframes step-enter-fwd{from{transform:translateX(-100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes step-enter-back{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes step-exit-fwd{from{transform:translateX(0);opacity:1}to{transform:translateX(50%);opacity:0}}
@keyframes step-exit-back{from{transform:translateX(0);opacity:1}to{transform:translateX(-50%);opacity:0}}
.upload-wizard-page.enter-fwd{animation:step-enter-fwd .4s both}
.upload-wizard-page.enter-back{animation:step-enter-back .4s both}
.upload-wizard-page.exit-fwd{animation:step-exit-fwd .4s both}
.upload-wizard-page.exit-back{animation:step-exit-back .4s both}
@media(prefers-reduced-motion:reduce){.upload-wizard-page[class*="enter-"],.upload-wizard-page[class*="exit-"]{animation:none}.wizard-content{transition:none}}
.upload-wizard-page{gap:22px}
.upload-chooser-head{padding:0;text-align:left;gap:6px}
.upload-chooser-head h2{font-size:26px;line-height:1.13;letter-spacing:-.035em}
.upload-chooser-head .sub{font-size:12px;color:#969696}
.upload-kicker{display:none}
.stem-choice-section{padding:0;gap:10px;border:0;border-radius:0;background:transparent}
.vocal-karaoke-choice,.stem-choice-card{
  border:1px solid #383838;
  background:linear-gradient(180deg, #252525 0%, #1c1c1c 100%);
  color:#f1f1f1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 5px rgba(0,0,0,0.3);
  transition:all .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.vocal-karaoke-choice:hover,.stem-choice-card:hover{
  border-color:#4e4e4e;
  background:linear-gradient(180deg, #2c2c2c 0%, #212121 100%);
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.12),inset 0 -1px 0 rgba(0,0,0,0.4),0 4px 10px rgba(0,0,0,0.35);
}
.vocal-karaoke-choice:active,.stem-choice-card:active{
  transform:translateY(1px);
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.6);
}
.vocal-karaoke-choice{grid-template-columns:34px minmax(0,1fr) 20px;gap:13px;padding:15px 16px;border-radius:10px}
.vocal-karaoke-choice.on{
  border-color:#1a6ed8;
  background:linear-gradient(180deg, #1b2e44 0%, #121e2d 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 6px rgba(0,0,0,0.35);
}
.vocal-karaoke-choice.on .vocal-choice-copy>span{color:#a9c6ea}
.vocal-choice-copy{gap:4px}.vocal-choice-copy strong{font-size:14px}.vocal-choice-copy>span{font-size:10px;color:#999}
.stem-choice-icon,.stem-choice-card .stem-choice-icon{
  width:28px;height:28px;border-radius:0;background:transparent!important;color:#bdbdbd!important
}
.vocal-karaoke-choice.on .stem-choice-icon,.stem-choice-card.on .stem-choice-icon{color:#6ab0ff!important}
.stem-choice-icon svg,.stem-choice-card .stem-choice-icon svg{width:21px;height:21px}
.stem-icon-art{display:inline-block;width:1.25em;height:1.25em;flex:0 0 auto;background:currentColor;-webkit-mask:var(--stem-icon) center/contain no-repeat;mask:var(--stem-icon) center/contain no-repeat}
.stem-choice-icon .stem-icon-art,.stem-choice-card .stem-icon-art{width:30px;height:30px}
.result-track .stem-icon-art{width:14px;height:14px;color:#6ab0ff}
.stem-choice-check{
  width:18px;height:18px;border:1px solid #4a4a4a;border-radius:50%;
  background:linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow:inset 0 1px 2px rgba(0,0,0,0.6),0 1px 0 rgba(255,255,255,0.08);
  display:grid;place-items:center;transition:all .14s ease;
}
.on .stem-choice-check,.stem-choice-card.on .stem-choice-check,.vocal-karaoke-choice.on .stem-choice-check{
  border-color:#0b4a94;background:linear-gradient(180deg, #1d6ed8 0%, #0c4da3 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.3),inset 0 -1px 0 rgba(0,0,0,0.4),0 1px 3px rgba(0,0,0,0.3);
}
.stem-picker-heading{padding:7px 1px 0}.stem-picker-heading strong{font-size:11px}.stem-picker-heading span{color:#737373}
.stem-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stem-choice-card{min-height:56px;padding:8px 13px;border-radius:10px;grid-template-columns:28px minmax(0,1fr) 19px;gap:10px}
.stem-choice-card strong{font-size:12px}
.stem-choice-card.on{
  border-color:#1a6ed8;
  background:linear-gradient(180deg, #1b2e44 0%, #121e2d 100%);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 6px rgba(0,0,0,0.35);
}
.upload-result{margin-top:4px;padding:14px 1px 0;border-top-color:#343434}
.upload-result-label{color:#747474}
.result-track{padding:5px 8px;border-color:rgba(0,117,255,.42)!important;background:rgba(0,117,255,.1)!important;color:#bdbdbd!important}
.result-track b{color:#e8f0fb}.result-track svg{color:#6ab0ff}
.wizard-actions{justify-content:flex-end;gap:9px}
.wizard-back,.wizard-next{min-height:40px;padding:0 18px;border-radius:9px;font-size:12px}
/* reactbits .back-button / .next-button */
.wizard-back{border:0;border-radius:.25rem;padding:.25rem .5rem;background:transparent;color:#a3a3a3;transition:all 350ms}
.wizard-back:hover{color:#e4e4e4;background:transparent}
.wizard-next{border:0;border-radius:9999px;padding:.375rem .875rem;background:#5227ff;color:#fff;font-weight:500;letter-spacing:-.025em;box-shadow:none;transition:all 350ms}
.wizard-next:hover{background:#5227ff}
.wizard-next:disabled{background:#303030;color:#6f6f6f}
.wizard-dropzone{min-height:230px;border-color:#444;border-radius:11px;background:#202020}
.wizard-dropzone:hover,.wizard-dropzone.over{border-color:#777;background:#242424}
.wizard-upload-icon{width:54px;height:54px;border-radius:0;background:transparent;color:#bbb}
.queued-file,.fixed-upload-note{border-color:#3d3d3d;border-radius:10px;background:#202020}
.queued-file-icon{border-radius:8px;background:#2d2d2d;color:#ccc}
@media(max-width:640px){
  #upload-modal{border-radius:13px}.upload-wizard{padding:22px 18px 20px;gap:19px}
  .wizard-progress{width:100%}.wizard-progress-item em{display:block}
  .upload-chooser-head h2{font-size:24px}.stem-choice-grid{grid-template-columns:1fr}
  .vocal-karaoke-choice{padding:13px}.wizard-actions{justify-content:stretch}
  .wizard-actions>*{flex:1}.wizard-dropzone{min-height:220px}
}
.upload-result-empty{color:#858585;font-size:10px;font-weight:600;letter-spacing:.02em}

/* transcription intent: one target, shared editable-note pipeline */
.transcription-input{display:grid;gap:9px}.transcription-input-head{display:grid;gap:3px}.transcription-input-head span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.transcription-input-head strong{font-size:13px}
.transcription-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.transcription-input-grid button{min-height:70px;padding:12px 14px;border:1px solid #3d3d3d;border-radius:11px;background:#1c1c1c;color:#a6a6a6;text-align:left;font:inherit;cursor:pointer}.transcription-input-grid button:hover{border-color:#606060;background:#222}.transcription-input-grid button.on{border-color:#c98749;background:#2a211a;color:#fff}.transcription-input-grid strong,.transcription-input-grid span,.transcription-input-grid small{display:block}.transcription-input-grid strong{font-size:13px}.transcription-input-grid span{margin-top:4px;font-size:10px}.transcription-input-grid small{margin-top:3px;color:#7f7f7f;font-size:8px}.transcription-input-grid button.on small{color:#bd9a7a}
.transcription-output{display:grid;gap:10px;padding-top:2px}
.transcription-output-head{display:flex;align-items:end;justify-content:space-between;gap:18px}
.transcription-output-head>div{display:grid;gap:3px}.transcription-output-head span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.transcription-output-head strong{font-size:13px}.transcription-output-head small{color:#787878;font-size:9px}
.transcription-output-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.transcription-output-grid button{min-height:78px;padding:12px;border:1px solid #3d3d3d;border-radius:11px;background:#1c1c1c;color:#a6a6a6;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease}
.transcription-output-grid button:hover{border-color:#606060;background:#222}.transcription-output-grid button.on{border-color:#c98749;background:#2a211a;color:#fff}
.transcription-output-grid span,.transcription-output-grid strong,.transcription-output-grid small{display:block}.transcription-output-grid span{margin-bottom:7px;font-size:11px;font-weight:700}.transcription-output-grid strong{font-size:13px}.transcription-output-grid small{margin-top:3px;color:#767676;font-size:8px}.transcription-output-grid button.on small{color:#bd9a7a}
.transcription-result{border-color:#514132!important;background:#231d18!important;color:#e0b386!important}.transcription-output:not([hidden])+.wizard-actions .wizard-next{background:#f3f1ed;color:#171717;box-shadow:none}.transcription-output:not([hidden])+.wizard-actions .wizard-next:hover{background:#fff}
@media(max-width:640px){.transcription-input-grid{grid-template-columns:1fr}.transcription-output-head{align-items:start;flex-direction:column;gap:4px}.transcription-output-grid{grid-template-columns:1fr}.transcription-output-grid button{min-height:62px}}

/* Notation import setup: shares the upload wizard language, with score-specific choices. */
.notation-import-modal{box-sizing:border-box;width:min(620px,calc(100% - 24px));max-height:calc(100vh - 20px);margin:10px auto auto;overflow:auto;border:1px solid #343437;border-radius:24px;background:#1c1c1d;color:#f4f4f4}
.notation-import-modal::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(2px)}
.notation-import-wizard{display:grid;gap:20px;padding:30px}
.notation-wizard-progress{grid-template-columns:auto 1fr auto 1fr auto;width:100%}.notation-wizard-progress>i::after{width:0!important}.notation-wizard-progress>i.done::after{width:100%!important}.notation-wizard-progress .wizard-progress-item.done{cursor:pointer}.notation-wizard-progress .wizard-progress-item:not(.on):not(.done) b{font-size:.875rem}
.notation-import-file{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;border:1px solid #3b3b3d;border-radius:12px;background:#242425}
.notation-import-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#313134;color:#f1f1f1;font-size:20px}
.notation-import-file>span:nth-child(2){display:grid;gap:3px;min-width:0}.notation-import-file strong{overflow:hidden;color:#f5f5f5;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.notation-import-file small{color:#858585;font-size:9px}
.notation-import-file button{padding:7px 9px;border:1px solid #454548;border-radius:8px;background:#29292b;color:#c7c7c9;font:700 9px/1 Inter,sans-serif;cursor:pointer}.notation-import-file button:hover{border-color:#68686c;color:#fff}
.sheet-details-step{gap:20px}.sheet-details-step .notation-import-file-icon{font-size:9px;font-weight:800;letter-spacing:.05em}.sheet-details-step .upload-metadata{border-top:0;padding-top:0}
.notation-wizard-content{position:relative;overflow:hidden;min-height:164px;transition:height .4s cubic-bezier(.4,0,.2,1)}.notation-wizard-content.animating>.notation-wizard-page{position:absolute;inset:0 0 auto}.notation-wizard-page{box-sizing:border-box;width:100%}
.notation-wizard-page.enter-fwd{animation:step-enter-fwd .4s both}.notation-wizard-page.enter-back{animation:step-enter-back .4s both}.notation-wizard-page.exit-fwd{animation:step-exit-fwd .4s both}.notation-wizard-page.exit-back{animation:step-exit-back .4s both}
.notation-instrument{display:grid;gap:10px;padding-top:2px}.notation-step-heading{display:grid;gap:3px}.notation-step-heading span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}.notation-step-heading strong{font-size:13px}
.notation-instrument-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.notation-instrument-grid button{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:48px;padding:9px 11px;border:1px solid #3d3d3f;border-radius:10px;background:#202021;color:#aaa;text-align:left;font:inherit;cursor:pointer}.notation-instrument-grid button:hover{border-color:#606064;background:#252526}.notation-instrument-grid button.on{border-color:#c98749;background:#2a211a;color:#fff}.notation-instrument-grid button>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#2d2d2f;color:#d0d0d2}.notation-instrument-grid button>span .stem-icon-art{width:20px;height:20px}.notation-instrument-grid button>span svg{width:19px;height:19px}.notation-instrument-grid button.on>span{background:#3a2b20;color:#e7b17e}.notation-instrument-grid button>strong{font-size:11px}
.notation-output{display:grid;gap:10px}.notation-output-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.notation-output-grid>button{display:grid;grid-template-rows:46px auto auto;align-items:center;min-height:118px;padding:12px;border:1px solid #3d3d3f;border-radius:12px;background:#202021;color:#a8a8aa;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}
.notation-output-grid>button[hidden]{display:none}
.notation-output-grid>button:hover{border-color:#606064;background:#252526;transform:translateY(-1px)}.notation-output-grid>button.on{border-color:#c98749;background:#2a211a;color:#fff;box-shadow:inset 0 0 0 1px rgba(201,135,73,.18)}
.notation-output-grid>button>strong{font-size:13px}.notation-output-grid>button>small{margin-top:3px;color:#7f7f82;font-size:8px}.notation-output-grid>button.on>small{color:#bd9a7a}
.notation-output-preview{position:relative;display:block;width:100%;height:38px;overflow:hidden;border-radius:6px;background:#f4f2eb;color:#111}
.notation-output-preview i{position:relative;z-index:0;display:block;height:1px;margin-top:5px;background:#737373}.notation-output-preview i:first-child{margin-top:7px}.notation-output-preview b{position:absolute;z-index:1;color:#111;font:700 18px/1 Georgia,serif}
.notation-output-staff b{left:45%;top:9px}.notation-output-tab{background:linear-gradient(to bottom,#f4f2eb 0 47%,#ddd9ce 47% 49%,#f4f2eb 49%)}.notation-output-tab i{margin-top:4px}.notation-output-tab i:first-child{margin-top:5px}.notation-output-tab b{left:52%;top:14px;padding:0 2px;background:#f4f2eb;font-size:11px}
.notation-output-jianpu{display:grid;place-items:center}.notation-output-jianpu b{position:static;font:700 15px/1.2 Inter,sans-serif;letter-spacing:.08em}
.notation-output-osmd-jianpu b{font-family:Georgia,"Times New Roman",serif;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.notation-import-dialog-error{margin:0;padding:9px 11px;border:1px solid #713d42;border-radius:9px;background:#321f22;color:#efb0b7;font-size:10px}
.notation-billing-review{display:grid;gap:4px;padding:11px 13px;border:1px solid #2e77b7;border-radius:10px;background:#13283a;color:#d8eaff;font-size:11px;line-height:1.45}
.notation-billing-review strong{color:#fff;font-size:12px}.notation-billing-review span{color:#a9c8e8}
.notation-billing-modal{box-sizing:border-box;width:min(500px,calc(100% - 24px));border:1px solid #343437;border-radius:20px;background:#1c1c1d;color:#f4f4f4}.notation-billing-modal::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(2px)}
.notation-billing-confirm-balance{padding:10px 12px;border-radius:9px;background:#242425;color:#b9cbe0;font-size:12px}
@media(max-width:640px){.notation-import-modal{width:calc(100% - 14px);max-height:calc(100vh - 12px);margin:6px auto auto;border-radius:20px}.notation-import-wizard{padding:22px 18px}.notation-wizard-progress .wizard-progress-item em{display:none}.notation-wizard-progress{grid-template-columns:32px 1fr 32px 1fr 32px}.notation-instrument-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notation-output-grid{grid-template-columns:1fr}.notation-output-grid>button{grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;min-height:75px;column-gap:12px}.notation-output-preview{grid-row:1/3}.notation-output-grid>button>small{margin:0}}

/* Studio product tour */
/* anchored coach-mark: the spotlight dims everything EXCEPT the control the tip is
   about (giant box-shadow = cutout), so the user can see what's being described */
.studio-tour{position:fixed;inset:0;z-index:120}
.studio-tour[hidden]{display:none}
.studio-tour-spot{position:fixed;top:50%;left:50%;width:0;height:0;border-radius:10px;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(0,0,0,.72),inset 0 0 0 2px #f2f1ed;
  transition:top .3s ease,left .3s ease,width .3s ease,height .3s ease}
.studio-tour-spot[hidden]{display:block}   /* keeps dimming the page; just no cutout */
.studio-tour-card{position:fixed;width:min(420px,calc(100vw - 24px));display:grid;gap:0;
  padding:26px 28px 22px;border-radius:16px;background:#f2f1ed;color:#171717;text-align:left;
  box-shadow:0 28px 80px rgba(0,0,0,.58);transition:top .3s ease,left .3s ease}
.studio-tour-card.centred{top:50%;left:50%;transform:translate(-50%,-50%)}
.studio-tour-close{position:absolute;top:12px;right:14px;width:32px;height:32px;border:0;background:transparent;color:#777;font:300 28px/1 Arial,sans-serif;cursor:pointer}
.studio-tour-close:hover{color:#111}
.studio-tour-eyebrow{margin:0 0 12px;color:#9a592b;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.studio-tour h2{margin:0;font-size:21px;line-height:1.2;letter-spacing:-.03em;color:#171717}
.studio-tour-copy{margin:11px 0 20px;color:#4f4f4c;font-size:13.5px;line-height:1.65}
.tour-badge{
  display:inline-flex;align-items:center;justify-content:center;
  vertical-align:middle;height:22px;padding:0 7px;margin:0 3px;
  border-radius:6px;background:#242424;border:1px solid #3d3d3d;
  color:#fff;font-size:11.5px;font-weight:700;line-height:1;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
}
.tour-badge svg{
  width:13px;height:13px;stroke:currentColor;stroke-width:1.6;
  fill:none;stroke-linecap:round;stroke-linejoin:round;display:inline-block;
}
.tour-badge.tour-solo{color:#4da3ff;border-color:#1c3554;background:#132236}
.tour-badge.tour-mute{color:#ff7575;border-color:#4a2020;background:#2b1515}
.tour-badge.tour-loop{color:#e6a15c;border-color:#4d351d;background:#261d14}
.tour-badge.tour-action{color:#fff;border-color:#111;background:#171717}
.studio-tour-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
#studio-tour-progress{color:#8b8a85;font-size:11px;font-weight:700;letter-spacing:.08em}
.studio-tour-next{min-height:38px;padding:0 18px;border:1px solid #171717;border-radius:9px;background:#171717;color:#fff;font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}
.studio-tour-next:hover{background:#333;border-color:#333}
#btn-tour{color:#c7d0da;border-color:#2c3948;background:#0e151e}
#btn-tour:hover{color:#fff;border-color:#526174;background:#17212d}
@media(max-width:640px){
  .studio-tour-card{padding:24px 20px 18px;border-radius:13px}
  .studio-tour h2{font-size:19px}
  .studio-tour-copy{font-size:13px}.studio-tour-footer{align-items:flex-end}
}

/* Upload metadata */
.upload-metadata{display:grid;gap:13px;padding:15px 0 2px;border-top:1px solid #343434}
.upload-metadata-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.upload-metadata-heading strong{font-size:12px;color:#ededed}
.upload-metadata-heading span{font-size:9px;color:#777;text-transform:uppercase;letter-spacing:.08em}
.upload-metadata-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.upload-metadata-grid label{display:grid;gap:6px}
.upload-metadata-grid label>span{color:#aaa;font-size:10px;font-weight:650}
.upload-metadata-grid label>span b{color:#d2a171}
.upload-metadata-grid input{
  box-sizing:border-box;width:100%;height:42px;border:1px solid #383838;border-radius:9px;
  background:#181818;color:#f1f1f1;padding:0 12px;font:inherit;font-size:12px;outline:0;
  box-shadow:inset 0 2px 4px rgba(0,0,0,0.5),0 1px 0 rgba(255,255,255,0.06);
  transition:all .16s ease;
}
.upload-metadata-grid input::placeholder{color:#686868}
.upload-metadata-grid input:focus{border-color:#1a6ed8;background:#1c1c1c;box-shadow:inset 0 2px 4px rgba(0,0,0,0.5),0 0 0 2px rgba(26,110,216,0.25)}
.upload-rights{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;color:#a8a8a8;font-size:10px;line-height:1.45;cursor:pointer}
.upload-rights input{width:16px;height:16px;margin:0;accent-color:#1a6ed8}
.upload-rights-text{display:grid;gap:4px}
.upload-rights-terms{display:block;color:#71717a;font-size:9.5px;line-height:1.4}
.upload-rights-terms a{color:#93c5fd;text-decoration:underline;text-underline-offset:2px}
.upload-rights-terms a:hover{color:#bfdbfe}
@media(max-width:640px){.upload-metadata-grid{grid-template-columns:1fr}.upload-metadata-heading span{display:none}}

/* Per-song audio export defaults. These are preferences only: separation still uploads
   the original file and conversion waits until the user explicitly exports. */
.upload-starting-price{grid-column:1/-1;color:#9ba6b2;font-size:10px;text-align:right}
.separation-cost-review{display:grid;gap:12px;margin-top:16px;padding:16px;border:1px solid #315d83;border-radius:14px;background:linear-gradient(145deg,#122434,#101a23);text-align:left}
.separation-cost-review[hidden]{display:none}
.separation-cost-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.separation-cost-head>div{display:grid;gap:4px}.separation-cost-head span{color:#80bff3;font-size:8px;font-weight:800;letter-spacing:.13em}.separation-cost-head strong{font-size:15px;color:#f4f7fa}
.separation-cost-status{padding:5px 8px;border:1px solid #36566f;border-radius:999px;white-space:nowrap}
.separation-cost-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #294050}.separation-cost-summary strong{font-size:13px}.separation-cost-summary span{color:#a6b1bb;font-size:11px;text-align:right}
.separation-cost-breakdown{display:grid;grid-template-columns:1fr auto;gap:8px 18px;color:#aab4bd;font-size:11px}.separation-cost-breakdown strong{color:#f4f7fa;text-align:right}.separation-cost-breakdown .insufficient{color:#ff8c98}
.separation-cost-note{margin:0;color:#8996a1;font-size:10px;line-height:1.45}
.upload-export-settings{display:grid;gap:12px;padding:15px 0 2px;border-top:1px solid #343434;text-align:left}
.upload-export-settings-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.upload-export-settings-head>div{display:grid;gap:4px}
.upload-export-settings-head span{color:#848484;font-size:8px;font-weight:800;letter-spacing:.13em}
.upload-export-settings-head strong{font-size:12px;color:#ededed}
.upload-export-settings-head small{color:#777;font-size:9px;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.upload-audio-format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.upload-audio-format-grid button{
  display:grid;gap:4px;min-height:68px;padding:11px 12px;
  border:1px solid #383838;border-radius:10px;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);
  color:#a8a8aa;text-align:left;font:inherit;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 5px rgba(0,0,0,0.3);
  transition:all .16s cubic-bezier(0.16,1,0.3,1);
}
.upload-audio-format-grid button:hover{
  border-color:#4e4e4e;background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);
  transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,0.12),inset 0 -1px 0 rgba(0,0,0,0.4),0 4px 10px rgba(0,0,0,0.35);
}
.upload-audio-format-grid button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(0,0,0,0.6)}
.upload-audio-format-grid button.on{
  border-color:#8b4cff;background:linear-gradient(180deg,#2c1642 0%,#1a0b29 100%);
  color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,0.18),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 6px rgba(0,0,0,0.35);
}
.upload-audio-format-grid button strong{font-size:13px}.upload-audio-format-grid button small{color:#7f7f82;font-size:9px}.upload-audio-format-grid button.on small{color:#c3a8e8}
.upload-audio-format-grid button[aria-checked="true"]{outline:0}
.upload-audio-export-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.upload-audio-export-fields label{display:grid;gap:6px;color:#aaa;font-size:10px;font-weight:650}
.upload-audio-export-fields select{
  box-sizing:border-box;width:100%;height:42px;padding:0 12px;
  border:1px solid #383838;border-radius:9px;
  background:linear-gradient(180deg,#252525 0%,#1c1c1c 100%);
  color:#f1f1f1;font:inherit;font-size:11.5px;outline:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08),inset 0 -1px 0 rgba(0,0,0,0.4),0 2px 4px rgba(0,0,0,0.25);
  cursor:pointer;transition:all .14s ease;
}
.upload-audio-export-fields select:hover{background:linear-gradient(180deg,#2c2c2c 0%,#212121 100%);border-color:#4e4e4e}
.upload-audio-export-fields select:focus{border-color:#1a6ed8;box-shadow:inset 0 1px 0 rgba(255,255,255,0.15),0 0 0 2px rgba(26,110,216,0.25)}
.upload-export-note{margin:0;color:#777;font-size:9px;line-height:1.4}
@media(max-width:640px){
  .upload-export-settings-head{align-items:flex-start;flex-direction:column;gap:4px}
  .upload-export-settings-head small{display:none}
  .upload-audio-export-fields{grid-template-columns:1fr}
}

/* Pricing layout ??keeps the existing rb-glow and hover effects */
.pricing{max-width:1160px;margin:112px auto 2rem;text-align:center}
.pricing-heading{max-width:650px;margin:0 auto}
.pricing-heading>span{display:block;margin-bottom:12px;color:#8abfff;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.pricing-heading h2{margin:0;font-size:clamp(31px,4vw,46px);line-height:1.05;letter-spacing:-.045em}
.pricing-heading p{margin:15px 0 0;color:var(--sub);font-size:14px;line-height:1.55}
.billing-switch{width:max-content;display:flex;align-items:center;gap:4px;margin:28px auto 0;padding:4px;border:1px solid #303030;border-radius:999px;background:#111}
.billing-switch button{min-height:38px;padding:0 17px;border:0;border-radius:999px;background:transparent;color:#8e8e94;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.billing-switch button.on{background:#ededed;color:#171717}
.billing-switch small{margin-left:5px;color:#ae7847;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.billing-switch button.on small{color:#87522e}
.plans{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:34px auto 0;text-align:left}
.plan{min-height:625px;padding:30px;border-radius:16px;gap:0;overflow:visible}
.price{display:flex;align-items:baseline;gap:5px;font-size:inherit;line-height:1}
.price-currency{font-size:22px;font-weight:650;transform:translateY(-12px)}
.price-value{font-size:54px;font-weight:720;letter-spacing:-.055em;color:var(--txt)}
.price-period{font-size:12px;color:var(--sub);font-weight:500}
.price-note{min-height:18px;margin:9px 0 0;color:#8c8c92;font-size:11px}
.plan hr{width:100%;height:1px;margin:27px 0;border:0;background:#393939}
.plan ul{margin:0 0 28px;padding:0;gap:17px;color:#d5d5d8;font-size:12px}
.plan ul li{display:grid;grid-template-columns:17px minmax(0,1fr);align-items:start;gap:9px;line-height:1.45}
.plan ul li::before{content:"✓";width:15px;height:15px;display:grid;place-items:center;border:1px solid #777;border-radius:50%;color:#dedede;font-size:8px;line-height:1}
.plan-cta{width:100%;min-height:44px;margin-top:auto;display:flex;align-items:center;justify-content:center;gap:11px;border-radius:9px;font-weight:650}
.plan-billing-status{margin:10px 2px 0;color:#9eb7d5;font-size:12px;font-weight:650;line-height:1.4;text-align:center}
.plan-billing-status[data-error="true"]{color:#ff8d8d}
 .plan-cta span{font-size:17px;line-height:1;transition:transform .16s ease}.plan-cta:hover span{transform:translateX(3px)}
 .plan .badge{top:-13px;left:50%;translate:-50%;padding:5px 10px;border-radius:999px;font-size:9px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
 .pricing-credit-note{max-width:720px;margin:22px auto 0;color:#85858c;font-size:11px;line-height:1.6}
 .billing-switch button[data-billing="packs"]{white-space:nowrap}
 .packs-plans{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .packs-plans[hidden],.subscription-plans[hidden]{display:none}
 .pack-plan{min-height:625px}
 .pack-plan header{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
 .pack-plan header h3{margin:0;font-size:27px;letter-spacing:-.04em}
 .pack-plan header p{margin:0;color:var(--sub);font-size:12px;line-height:1.45}
 .pack-kicker{color:#8abfff;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
 .pack-plan .price-note{min-height:18px}
 .pack-plan ul{gap:17px}
 .pack-cta{cursor:not-allowed;opacity:.9}
 .packs-access-note{max-width:720px;margin:20px auto 0;padding:14px 18px;border:1px solid #29384a;border-radius:11px;background:#101923;color:#aab6c5;font-size:11px;line-height:1.55}
 .packs-access-note[hidden]{display:none}
 .packs-access-link{margin-left:8px;padding:0;border:0;background:transparent;color:#8abfff;font:inherit;font-weight:750;cursor:pointer;white-space:nowrap}
 .packs-access-link:hover{text-decoration:underline}
 @media(max-width:920px){.plans{grid-template-columns:minmax(0,420px);justify-content:center}.packs-plans{grid-template-columns:minmax(0,420px)}.plan{min-height:0}}
 @media(max-width:520px){.pricing{margin-top:88px}.pricing-heading h2{font-size:32px}.billing-switch{max-width:100%;overflow-x:auto}.billing-switch button{padding:0 13px}.plans{grid-template-columns:minmax(0,1fr)}.plan{padding:26px 23px;min-height:0}.packs-access-link{display:block;margin:8px 0 0}}
/* Keep decorative glow from widening the page */
body{overflow-x:hidden}

/* Library file-table layout */
.library-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  place-items: center;
  color: #61a8ff;
  border: 1px solid rgba(54, 146, 255, 0.32);
  border-radius: 12px;
  background: rgba(28, 113, 216, 0.12);
}

.library-empty-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.library-page{max-width:1440px;padding:34px clamp(20px,4vw,54px) 64px}
.library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:28px}
.library-kicker{display:block;margin-bottom:7px;color:#6aaeff;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.library-head h1{margin:0;font-size:34px;letter-spacing:-.04em}.library-head p{margin:7px 0 0;color:var(--sub);font-size:12px}
.library-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.library-search{width:min(320px,38vw);height:43px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #30343b;border-radius:10px;background:#111319;color:#778398}
.library-search:focus-within{border-color:#397ecb;box-shadow:0 0 0 3px rgba(29,117,221,.1)}
.library-search svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.library-search input{min-width:0;flex:1;border:0;background:transparent;color:#edf3fb;font:inherit;font-size:12px;outline:0}.library-search input::placeholder{color:#707986}
.library-filters{min-height:58px;display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #282d34;border-radius:11px 11px 0 0;background:#0e1116}
.library-filters>span{margin-right:4px;color:#7d8795;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.library-filters select{height:35px;padding:0 31px 0 12px;border:1px solid #343a43;border-radius:999px;background:#171a20;color:#c6cdd7;font:inherit;font-size:10px;outline:0;cursor:pointer}
.library-table{border:1px solid #282d34;border-top:0;border-radius:0 0 11px 11px;overflow:visible;background:#090b0f}
.library-table-head,.library-row{display:grid;grid-template-columns:minmax(280px,1fr) 150px 125px 42px;align-items:center;column-gap:18px}
.library-table-head{min-height:42px;padding:0 16px;border-bottom:1px solid #272c33;background:#121821;color:#778394;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.song-list{display:block}.library-row{min-height:78px;padding:10px 16px;border-bottom:1px solid #22262c;background:#0d0f13;cursor:pointer;transition:background .15s ease}
.library-row:last-child{border-bottom:0}.library-row:hover,.library-row:focus-within{background:#121b28}
.library-name{min-width:0;display:flex;align-items:center;gap:13px}.library-art{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border:1px solid #245c9d;border-radius:9px;background:#102b4c;color:#58a6ff}
.library-art svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.library-title{min-width:0;display:grid;gap:4px}.library-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0f3f7;font-size:13px;font-weight:650}.library-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#858f9d;font-size:10px}
.library-updated{color:#aab3bf;font-size:11px}.library-status{display:inline-flex;align-items:center;gap:7px;color:#abb4c0;font-size:10px}.library-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#69717b}.library-status.ready::before{background:#2d8cff;box-shadow:0 0 0 3px rgba(45,140,255,.12)}
.library-outputs{display:grid;gap:4px;align-content:center}.library-status.processing::before{background:#f0b34d;box-shadow:0 0 0 3px rgba(240,179,77,.12);animation:library-status-pulse 1.4s ease-in-out infinite}.library-status.checking::before{background:#8ea6bf;box-shadow:0 0 0 3px rgba(142,166,191,.12)}.library-status.error{color:#f1a1a1}.library-status.error::before{background:#e66a78;box-shadow:0 0 0 3px rgba(230,106,120,.12)}.library-retry-status{height:32px;border:0;border-radius:6px;background:transparent;color:#8fc6ff;text-align:left;padding:0 9px;font:inherit;font-size:10px;cursor:pointer}.library-retry-status:hover{background:#222b37;color:#fff}
@keyframes library-status-pulse{50%{opacity:.35}}
.library-actions{position:relative;justify-self:end}.library-actions summary{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#aeb7c4;font-size:18px;line-height:1;list-style:none;cursor:pointer}.library-actions summary::-webkit-details-marker{display:none}.library-actions summary:hover,.library-actions[open] summary{background:#1d2633;color:#fff}
.library-action-menu{position:absolute;right:0;top:39px;z-index:20;width:132px;display:grid;padding:5px;border:1px solid #303844;border-radius:9px;background:#151a21;box-shadow:0 14px 32px rgba(0,0,0,.5)}
.library-action-menu button{height:34px;border:0;border-radius:6px;background:transparent;color:#d4dbe4;text-align:left;padding:0 9px;font:inherit;font-size:10px;cursor:pointer}.library-action-menu button:hover{background:#222b37}.library-action-menu .danger{color:#ef8d8d}
.library-no-results{padding:50px 20px;text-align:center;color:#777f8b;font-size:12px}.library-empty{margin-top:0;padding:70px 24px;border:1px solid #282d34;border-radius:0 0 11px 11px;background:#0d0f13;text-align:center;display:grid;gap:8px;justify-items:center}
.library-empty .feat-ic{background:#102b4c;color:#58a6ff}.song-author{display:block;margin-top:2px}
@media(max-width:900px){
  .library-head{align-items:stretch;flex-direction:column}.library-head-actions{justify-content:flex-start}.library-search{width:min(100%,420px)}
  .library-table-head{display:none}.library-table{border-top:1px solid #282d34;border-radius:11px}
  .library-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name actions" "updated status";row-gap:9px;min-height:98px}
  .library-name{grid-area:name}.library-updated{grid-area:updated;padding-left:58px}.library-status{grid-area:status}.library-actions{grid-area:actions}
}
@media(max-width:600px){
  .library-page{padding:24px 12px 48px}.library-head h1{font-size:30px}.library-head-actions{display:grid;grid-template-columns:1fr 1fr}.library-search{width:100%;grid-column:1/-1}.library-head-actions .btn{width:100%}
  .library-filters{overflow-x:auto;border-radius:10px;margin-bottom:10px}.library-filters>span{display:none}.library-filters label{flex:0 0 auto}
  .library-row{padding:11px 12px}.library-updated{padding-left:58px}
}
/* Library grey surface correction */
.library-page {
  min-height: calc(100dvh - 70px);
  background: #1c1c1c;
  box-shadow: 0 0 0 100vmax #1c1c1c;
  clip-path: inset(0 -100vmax);
}
.library-search { background: #292929; border-color: #3a3a3a; }
.library-filters { background: #242424; border-color: #3a3a3a; }
.library-filters select { background: #303030; border-color: #454545; }
.library-table { background: #212121; border-color: #3a3a3a; }
.library-table-head { background: #292929; border-bottom-color: #3b3b3b; }
.library-row { background: #242424; border-bottom-color: #393939; }
.library-row:hover,
.library-row:focus-within { background: #2d2d2d; }
.library-empty { background: #242424; border-color: #3a3a3a; }
.library-action-menu { background: #292929; border-color: #444; }
.library-action-menu button:hover { background: #373737; }
/* Library design-system typography correction */
.library-page,
.library-page button,
.library-page input,
.library-page select { font-family: inherit; letter-spacing: inherit; }
.library-kicker { font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.library-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.library-head p { font-size: 13px; }
.library-search input { font-size: 13px; }
.library-filters > span { font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.library-filters select { font-size: 13px; font-weight: 500; }
.library-table-head { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.library-title strong { font-size: 14px; font-weight: 600; }
.library-title span,
.library-updated,
.library-status { font-size: 12px; }
.library-action-menu button { font-size: 13px; font-weight: 500; }
/* Guitar editorial modes */
.guitar-editorial {
  width: min(64%, 370px);
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.guitar-editorial-label {
  display: block;
  padding: 8px 0 6px;
  color: color-mix(in srgb,var(--accent),#fff 38%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.guitar-editorial-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  column-gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.guitar-editorial-row em {
  grid-row: 1 / span 2;
  color: color-mix(in srgb,var(--accent),#fff 24%);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.guitar-editorial-row strong {
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}
.guitar-editorial-row small {
  color: rgba(255,255,255,.55);
  font-size: 9px;
}
@media(max-width:640px){
  .guitar-editorial{width:72%}
}
/* Project library and output centre */
.library-page,
.project-page {
  min-height: calc(100dvh - 70px);
  background: #1c1c1c;
  box-shadow: 0 0 0 100vmax #1c1c1c;
  clip-path: inset(0 -100vmax);
}
.library-page { max-width: 1480px; padding: 42px clamp(22px,4vw,58px) 72px; }
.library-head { padding-bottom: 34px; }
.library-head h1 { font-size: clamp(36px,4vw,48px); line-height: 1; }
.library-head p { margin-top: 11px; color: #9b9b9b; }
.library-kicker { color: #71adf5; }
.library-search { width: min(360px,40vw); background: #252525; border-color: #3b3b3b; }
.library-filters { min-height: 64px; padding-inline: 18px; background: #222; border-color: #3b3b3b; }
.library-filters select { height: 38px; background: #2d2d2d; border-color: #474747; }
.library-table { background: #202020; border-color: #3b3b3b; }
.library-table-head,
.library-row { grid-template-columns: minmax(300px,1.35fr) minmax(220px,.8fr) 140px 44px; }
.library-table-head { min-height: 46px; padding-inline: 20px; background: #292929; color: #8e8e8e; }
.library-row { min-height: 92px; padding: 14px 20px; background: #242424; border-bottom-color: #393939; }
.library-row:hover,
.library-row:focus-visible { background: #2b2b2b; outline: 0; }
.library-art { width: 48px; height: 48px; flex-basis: 48px; border-color: #3a6695; border-radius: 10px; background: #20354a; color: #72b5f5; }
.library-title { gap: 5px; }
.library-title strong { font-size: 15px; }
.library-title span { color: #949494; }
.library-outputs { color: #d0d0d0; font-size: 12px; }
.library-updated { color: #aaa; }
.library-actions summary { color: #bbb; }
.library-action-menu { width: 148px; background: #292929; border-color: #484848; }
.library-action-menu button:hover { background: #383838; }

.project-page { max-width: 1320px; padding: 36px clamp(22px,4vw,58px) 80px; }
.project-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: #a5a5a5; font-size: 13px; text-decoration: none; }
.project-back::before { content: "\2190"; }
.project-back:hover { color: #fff; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid #383838; }
.project-identity { min-width: 0; display: flex; align-items: center; gap: 18px; }
.project-source-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid #426b96; border-radius: 11px; background: #20354a; color: #7bbcff; }
.project-source-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.project-head h1 { margin: 4px 0 7px; color: #f5f5f5; font-size: 26px; line-height: 1.15; letter-spacing: -.022em; }
.project-head p { margin: 0; color: #999; font-size: 13px; }
.project-head-actions { display: flex; align-items: center; gap: 10px; }
.project-source-warning { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 17px 18px; border: 1px solid #705b36; border-radius: 11px; background: #2d281f; }
.project-source-warning[hidden] { display: none; }
.project-source-warning strong { color: #f0d59b; font-size: 13px; }
.project-source-warning p { margin: 4px 0 0; color: #b4a98f; font-size: 12px; }
.project-groups { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 28px; }
.project-group { min-width: 0; }
.project-group > header { display: flex; align-items: center; gap: 12px; }
.project-group h2 { margin: 20px 0 2px; color: #6b6b6b; font-size: 10.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.project-asset-list { display: grid; }
.project-asset { height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 8px; border-bottom: 1px solid rgba(229,231,235,.09); }
.project-asset:hover { border-radius: 7px; background: #151515; }
.project-asset-icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1px solid rgba(119,166,201,.28); border-radius: 6px; background: rgba(119,166,201,.12); color: #77a6c9; border-color: color-mix(in srgb,var(--asset-accent,#77a6c9) 28%,transparent); background: color-mix(in srgb,var(--asset-accent,#77a6c9) 12%,transparent); color: var(--asset-accent,#77a6c9); }
.project-asset-icon svg { width: 11px; height: 11px; }
.project-asset-copy { min-width: 0; flex: 1 1 auto; display: flex; align-items: baseline; gap: 8px; }
.project-asset-copy strong { overflow: hidden; color: #ececec; font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; text-overflow: ellipsis; white-space: nowrap; }
.project-asset-copy span { overflow: hidden; color: #6b6b6b; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.project-asset-actions { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 2px; opacity: .55; transition: opacity .12s ease; }
.project-asset:hover .project-asset-actions,.project-asset-actions:focus-within { opacity: 1; }
.project-asset-actions .btn { min-height: 26px; height: 26px; padding-inline: 9px; border: 0; background: transparent; color: #9a9a9a; font-size: 12.5px; font-weight: 500; }
.project-asset-actions .btn:hover { background: #282828; color: #fff; }
.project-transcription-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 4px;padding:11px 12px;border:1px solid #385878;border-radius:9px;background:#1c3043}.project-transcription-summary strong{display:block;color:#eaf4ff;font-size:12px}.project-transcription-summary small{display:block;margin-top:3px;color:#a8bacb;font-size:11px}.project-transcription-summary .btn{flex:none}
.multi-result-processing{border-color:#385878;background:#1c3043}.multi-result-processing .btn{flex:none}.multi-result-failed{border-color:#75464b;background:#321e25}.multi-result-failed .multi-result-copy small{color:#e2a9ad}
.project-local-note { max-width: 100px; color: #888; font-size: 10px; text-align: right; }
.project-output-empty { grid-column: 1/-1; padding: 64px 24px; border: 1px solid #3b3b3b; border-radius: 13px; background: #232323; text-align: center; }
.project-output-empty strong { color: #eee; }
.project-output-empty p { margin: 7px 0 0; color: #999; font-size: 12px; }
.project-danger-zone { display: flex; justify-content: flex-end; margin-top: 34px; padding-top: 20px; border-top: 1px solid #363636; }
.project-delete { border: 0; background: transparent; color: #c98585; font: inherit; font-size: 12px; cursor: pointer; }
.project-delete:hover { color: #ffaaaa; }

@media(max-width:900px) {
  .library-table-head { display: none; }
  .library-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name actions" "outputs updated"; row-gap: 10px; }
  .library-name { grid-area: name; }
  .library-outputs { grid-area: outputs; padding-left: 61px; }
  .library-updated { grid-area: updated; padding: 0; text-align: right; }
  .library-actions { grid-area: actions; }
}
@media(max-width:640px) {
  .library-page,.project-page { padding: 24px 14px 52px; }
  .library-head-actions { grid-template-columns: 1fr; }
  .library-search { width: 100%; }
  .library-filters { margin-bottom: 10px; border-radius: 10px; overflow-x: auto; }
  .library-row { padding: 13px; }
  .library-outputs { padding-left: 61px; }
  .project-head { align-items: flex-start; flex-direction: column; }
  .project-head-actions { width: 100%; }
  .project-head-actions .btn { flex: 1; }
  .project-source-warning { align-items: stretch; flex-direction: column; }
}
/* Editorial project workspace v2 */
.dev-qa-button { border-color: #5f563d; background: #28251d; color: #e6c777; }
.dev-qa-button span { margin-right: 5px; color: #ad9861; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.project-page { max-width: 1520px; padding-top: 30px; }
.project-back { margin-bottom: 34px; }
.project-head { padding: 0 0 26px; }
.project-identity { gap: 20px; }
.project-head-actions .btn { min-width: 112px; }
.project-source-warning { margin-top: 14px; }
.project-groups { margin-top: 12px; }
.project-danger-zone { margin-top: 48px; }
@media(max-width:700px) {
  .project-asset-copy span { display: none; }
}
.library-empty .feat-ic{background:#102b4c;color:#58a6ff}.song-author{display:block;margin-top:2px}
@media(max-width:900px){
  .library-head{align-items:stretch;flex-direction:column}.library-head-actions{justify-content:flex-start}.library-search{width:min(100%,420px)}
  .library-table-head{display:none}.library-table{border-top:1px solid #282d34;border-radius:11px}
  .library-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name actions" "updated status";row-gap:9px;min-height:98px}
  .library-name{grid-area:name}.library-updated{grid-area:updated;padding-left:58px}.library-status{grid-area:status}.library-actions{grid-area:actions}
}
@media(max-width:600px){
  .library-page{padding:24px 12px 48px}.library-head h1{font-size:30px}.library-head-actions{display:grid;grid-template-columns:1fr 1fr}.library-search{width:100%;grid-column:1/-1}.library-head-actions .btn{width:100%}
  .library-filters{overflow-x:auto;border-radius:10px;margin-bottom:10px}.library-filters>span{display:none}.library-filters label{flex:0 0 auto}
  .library-row{padding:11px 12px}.library-updated{padding-left:58px}
}
/* Library grey surface correction */
.library-page {
  min-height: calc(100dvh - 70px);
  background: #1c1c1c;
  box-shadow: 0 0 0 100vmax #1c1c1c;
  clip-path: inset(0 -100vmax);
}
.library-search { background: #292929; border-color: #3a3a3a; }
.library-filters { background: #242424; border-color: #3a3a3a; }
.library-filters select { background: #303030; border-color: #454545; }
.library-table { background: #212121; border-color: #3a3a3a; }
.library-table-head { background: #292929; border-bottom-color: #3b3b3b; }
.library-row { background: #242424; border-bottom-color: #393939; }
.library-row:hover,
.library-row:focus-within { background: #2d2d2d; }
.library-empty { background: #242424; border-color: #3a3a3a; }
.library-action-menu { background: #292929; border-color: #444; }
.library-action-menu button:hover { background: #373737; }
/* Library design-system typography correction */
.library-page,
.library-page button,
.library-page input,
.library-page select { font-family: inherit; letter-spacing: inherit; }
.library-kicker { font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.library-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.library-head p { font-size: 13px; }
.library-search input { font-size: 13px; }
.library-filters > span { font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.library-filters select { font-size: 13px; font-weight: 500; }
.library-table-head { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.library-title strong { font-size: 14px; font-weight: 600; }
.library-title span,
.library-updated,
.library-status { font-size: 12px; }
.library-action-menu button { font-size: 13px; font-weight: 500; }
/* Guitar editorial modes */
.guitar-editorial {
  width: min(64%, 370px);
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.guitar-editorial-label {
  display: block;
  padding: 8px 0 6px;
  color: color-mix(in srgb,var(--accent),#fff 38%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.guitar-editorial-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  column-gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.guitar-editorial-row em {
  grid-row: 1 / span 2;
  color: color-mix(in srgb,var(--accent),#fff 24%);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.guitar-editorial-row strong {
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}
.guitar-editorial-row small {
  color: rgba(255,255,255,.55);
  font-size: 9px;
}
@media(max-width:640px){
  .guitar-editorial{width:72%}
}
/* Project library and output centre */
.library-page,
.project-page {
  min-height: calc(100dvh - 70px);
  background: #1c1c1c;
  box-shadow: 0 0 0 100vmax #1c1c1c;
  clip-path: inset(0 -100vmax);
}
.library-page { max-width: 1480px; padding: 42px clamp(22px,4vw,58px) 72px; }
.library-head { padding-bottom: 34px; }
.library-head h1 { font-size: clamp(36px,4vw,48px); line-height: 1; }
.library-head p { margin-top: 11px; color: #9b9b9b; }
.library-kicker { color: #71adf5; }
.library-search {
  width: min(360px,40vw); height: 40px; padding: 0 16px;
  background: linear-gradient(180deg,#2b2b2b 0%,#202020 100%);
  border: 1px solid #404040; border-radius: 9999px; color: #e0e0e0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),inset 0 2px 4px rgba(0,0,0,.45),0 1px 0 rgba(255,255,255,.05);
  transition: all .15s ease;
}
.library-search:focus {
  border-color: #0075ff; background: #262626;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35),0 0 0 3px rgba(0,117,255,.25);
}
.library-filters {
  min-height: 60px; padding-inline: 18px;
  background: #222222;
  border: 1px solid #3b3b3b; border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35),0 3px 10px rgba(0,0,0,.2);
}
.library-filters select {
  height: 38px; padding: 0 12px; font-weight: 550; color: #e0e0e0;
  background: linear-gradient(180deg,#323232 0%,#262626 100%);
  border: 1px solid #444444; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),inset 0 -1px 0 rgba(0,0,0,.4),0 1px 3px rgba(0,0,0,.25);
  transition: all .12s ease; cursor: pointer;
}
.library-filters select:hover {
  background: linear-gradient(180deg,#3a3a3a 0%,#2e2e2e 100%);
  color: #fff;
}
.library-table {
  background: #202020; border: 1px solid #3b3b3b; border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35),0 4px 14px rgba(0,0,0,.22);
  overflow: hidden;
}
.library-table-head,
.library-row { grid-template-columns: minmax(300px,1.35fr) minmax(220px,.8fr) 140px 44px; }
.library-table-head {
  min-height: 46px; padding-inline: 20px;
  background: linear-gradient(180deg,#2b2b2b 0%,#242424 100%);
  border-bottom: 1px solid #383838; color: #8e8e8e; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .06em;
}
.library-row {
  min-height: 92px; padding: 14px 20px; background: #242424;
  border-bottom: 1px solid #333333;
  transition: all .14s ease;
}
.library-row:hover,
.library-row:focus-visible {
  background: linear-gradient(180deg,#2e2e2e 0%,#262626 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 2px 6px rgba(0,0,0,.25);
  outline: 0;
}
.library-row.is-selected {
  background: #283747;
  border-bottom-color: #384c60;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.library-art { width: 48px; height: 48px; flex-basis: 48px; border-color: #3a6695; border-radius: 10px; background: #20354a; color: #72b5f5; }
.library-title { gap: 5px; }
.library-title strong { font-size: 15px; }
.library-title span { color: #949494; }
.library-outputs { color: #d0d0d0; font-size: 12px; }
.library-updated { color: #aaa; }
.library-actions summary {
  width: 32px; height: 32px; border-radius: 7px; color: #bbb;
  display: grid; place-items: center; transition: all .12s ease; cursor: pointer;
}
.library-actions summary:hover {
  background: linear-gradient(180deg,#383838 0%,#2a2a2a 100%);
  border: 1px solid #484848;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  color: #fff;
}
.library-action-menu {
  width: 148px; background: #292929;
  border: 1px solid #484848; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06);
}
.library-action-menu button:hover { background: #383838; color: #fff; }

.project-page { max-width: 1320px; padding: 36px clamp(22px,4vw,58px) 80px; }
.project-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: #a5a5a5; font-size: 13px; text-decoration: none; }
.project-back::before { content: "\2190"; }
.project-back:hover { color: #fff; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid #383838; }
.project-identity { min-width: 0; display: flex; align-items: center; gap: 18px; }
.project-source-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid #426b96; border-radius: 11px; background: #20354a; color: #7bbcff; }
.project-source-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; }
.project-head h1 { margin: 4px 0 7px; color: #f5f5f5; font-size: 26px; line-height: 1.15; letter-spacing: -.022em; }
.project-head p { margin: 0; color: #999; font-size: 13px; }
.project-head-actions { display: flex; align-items: center; gap: 10px; }
.project-source-warning { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 17px 18px; border: 1px solid #705b36; border-radius: 11px; background: #2d281f; }
.project-source-warning[hidden] { display: none; }
.project-source-warning strong { color: #f0d59b; font-size: 13px; }
.project-source-warning p { margin: 4px 0 0; color: #b4a98f; font-size: 12px; }
.project-groups { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 28px; }
.project-group { min-width: 0; }
.project-group > header { display: flex; align-items: center; gap: 12px; }
.project-group h2 { margin: 20px 0 2px; color: #6b6b6b; font-size: 10.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.project-asset-list { display: grid; }
.project-asset { height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 8px; border-bottom: 1px solid rgba(229,231,235,.09); }
.project-asset:hover { border-radius: 7px; background: #151515; }
.project-asset-icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1px solid rgba(119,166,201,.28); border-radius: 6px; background: rgba(119,166,201,.12); color: #77a6c9; border-color: color-mix(in srgb,var(--asset-accent,#77a6c9) 28%,transparent); background: color-mix(in srgb,var(--asset-accent,#77a6c9) 12%,transparent); color: var(--asset-accent,#77a6c9); }
.project-asset-icon svg { width: 11px; height: 11px; }
.project-asset-copy { min-width: 0; flex: 1 1 auto; display: flex; align-items: baseline; gap: 8px; }
.project-asset-copy strong { overflow: hidden; color: #ececec; font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; text-overflow: ellipsis; white-space: nowrap; }
.project-asset-copy span { overflow: hidden; color: #6b6b6b; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.project-asset-actions { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 2px; opacity: .55; transition: opacity .12s ease; }
.project-asset:hover .project-asset-actions,.project-asset-actions:focus-within { opacity: 1; }
.project-asset-actions .btn { min-height: 26px; height: 26px; padding-inline: 9px; border: 0; background: transparent; color: #9a9a9a; font-size: 12.5px; font-weight: 500; }
.project-asset-actions .btn:hover { background: #282828; color: #fff; }
.project-local-note { max-width: 100px; color: #888; font-size: 10px; text-align: right; }
.project-output-empty { grid-column: 1/-1; padding: 64px 24px; border: 1px solid #3b3b3b; border-radius: 13px; background: #232323; text-align: center; }
.project-output-empty strong { color: #eee; }
.project-output-empty p { margin: 7px 0 0; color: #999; font-size: 12px; }
.project-danger-zone { display: flex; justify-content: flex-end; margin-top: 34px; padding-top: 20px; border-top: 1px solid #363636; }
.project-delete { border: 0; background: transparent; color: #c98585; font: inherit; font-size: 12px; cursor: pointer; }
.project-delete:hover { color: #ffaaaa; }

@media(max-width:900px) {
  .library-table-head { display: none; }
  .library-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name actions" "outputs updated"; row-gap: 10px; }
  .library-name { grid-area: name; }
  .library-outputs { grid-area: outputs; padding-left: 61px; }
  .library-updated { grid-area: updated; padding: 0; text-align: right; }
  .library-actions { grid-area: actions; }
}
@media(max-width:640px) {
  .library-page,.project-page { padding: 24px 14px 52px; }
  .library-head-actions { grid-template-columns: 1fr; }
  .library-search { width: 100%; }
  .library-filters { margin-bottom: 10px; border-radius: 10px; overflow-x: auto; }
  .library-row { padding: 13px; }
  .library-outputs { padding-left: 61px; }
  .project-head { align-items: flex-start; flex-direction: column; }
  .project-head-actions { width: 100%; }
  .project-head-actions .btn { flex: 1; }
  .project-source-warning { align-items: stretch; flex-direction: column; }
}
/* Editorial project workspace v2 */
.dev-qa-button { border-color: #5f563d; background: #28251d; color: #e6c777; }
.dev-qa-button span { margin-right: 5px; color: #ad9861; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.project-page { max-width: 1520px; padding-top: 30px; }
.project-back { margin-bottom: 34px; }
.project-head { padding: 0 0 26px; }
.project-identity { gap: 20px; }
.project-head-actions .btn { min-width: 112px; }
.project-source-warning { margin-top: 14px; }
.project-groups { margin-top: 12px; }
.project-danger-zone { margin-top: 48px; }
@media(max-width:700px) {
  .project-asset-copy span { display: none; }
}
/* Keep the expanded development command bar clear at laptop widths */
@media(max-width:1400px) and (min-width:901px) {
  .topbar nav { position: static; translate: 0; margin-left: auto; gap: 20px; }
  .cloud-upload { margin-left: 0; }
  .topbar { gap: 10px; }
  .topbar .btn-sm { padding-inline: 10px; }
}
/* Project library sidebar */
.library-page,.project-page { max-width: none; padding: 0; }
.project-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: calc(100dvh - 74px); }
.project-sidebar { position: sticky; top: 74px; height: calc(100dvh - 74px); box-sizing: border-box; display: flex; flex-direction: column; padding: 24px 14px 18px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; border-right: 1px solid #303030; background: #181818; }
.project-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 22px; color: #f0f0f0; }
.project-sidebar-head strong { font-size: 17px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.sidebar-head-icon { width: 16px; height: 16px; opacity: .9; flex: none; display: inline-block; vertical-align: middle; }
.sidebar-close { display: none; border: 0; background: transparent; color: #888; font: inherit; font-size: 11px; cursor: pointer; }
.sidebar-recents { display: grid; gap: 2px; margin: 14px 0 0; padding: 13px 0 10px; border-top: 1px solid #303030; }
.sidebar-recents > p { margin: 0 10px 7px !important; color: #707070; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-recent-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.project-sidebar .sidebar-recent-project,.project-sidebar .sidebar-view-all { width: 100%; min-width: 0; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #aaa; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.project-sidebar .sidebar-recent-project span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-sidebar .sidebar-recent-project:hover,.project-sidebar .sidebar-recent-project.active { background: #242424; color: #f0f0f0; }
.project-sidebar .sidebar-view-all { min-height: 28px; color: #777; font-size: 11px; }
.project-sidebar .sidebar-view-all:hover { color: #d7d7d7; }
.project-sidebar nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.project-sidebar nav p { margin: 19px 10px 7px; color: #707070; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.project-sidebar nav p:first-child { margin-top: 0; }
.project-sidebar nav button { position: relative; width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px 0 13px; border: 0; border-radius: 8px; background: transparent; color: #aaa; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.project-sidebar nav button span { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.project-sidebar nav .sidebar-icon { width: 14px; height: 14px; opacity: .8; flex: none; display: inline-block; vertical-align: middle; transition: opacity .15s ease; }
.project-sidebar nav button:hover .sidebar-icon, .project-sidebar nav button.active .sidebar-icon { opacity: 1; }
.project-sidebar nav button::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 4px; background: transparent; }
.project-sidebar nav button:hover,.project-sidebar nav button.active { background: #242424; color: #f0f0f0; }
.project-sidebar nav button.active::before { background: #4d9bea; }
.project-sidebar nav em { flex: none; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #282828; color: #858585; font-size: 9px; font-style: normal; }
.sidebar-bottom { position: relative; display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #303030; }
.sidebar-upgrade,.sidebar-profile { box-sizing: border-box; width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #bbb; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.sidebar-upgrade:hover,.sidebar-profile:hover,.sidebar-profile[aria-expanded="true"] { background: #242424; color: #f2f2f2; }
.sidebar-profile[aria-expanded="true"] { border-color: #3b4652; }
.sidebar-upgrade > span { width: 22px; color: #d4a94f; font-size: 18px; text-align: center; }
.sidebar-profile-wrap { position: relative; }
.sidebar-profile-avatar { position: relative; width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #3c4b5a; border-radius: 50%; background: #202b37; color: #c7dced; font-weight: 700; }
.sidebar-profile-avatar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sidebar-profile-initial { position: absolute; opacity: 0; pointer-events: none; }
.sidebar-profile-copy { min-width: 0; display: grid; gap: 1px; text-align: left; }
.sidebar-profile-copy strong { overflow: hidden; color: inherit; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy small { color: #777; font-size: 10px; }
.sidebar-profile-caret { margin-left: auto; color: #777; font-size: 15px; }
.project-content { min-width: 0; width: 100%; max-width: 1480px; box-sizing: border-box; padding: 38px clamp(28px,4vw,58px) 72px; }
.library-content { max-width: 1600px; }
.sidebar-toggle { display: none; margin-bottom: 18px; border: 1px solid #3b3b3b; border-radius: 8px; background: #242424; color: #ddd; padding: 8px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.project-detail-content .project-back { margin-top: 0; }
@media(max-width:900px) {
  .project-shell { display: block; }
  .project-sidebar { position: fixed; z-index: 50; left: 0; top: 74px; width: min(290px,86vw); height: calc(100dvh - 74px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 18px 0 45px #0009; }
  .project-shell.sidebar-open .project-sidebar { transform: translateX(0); }
  .sidebar-close,.sidebar-toggle { display: inline-flex; }
  .project-content { padding: 24px 18px 56px; }
}
/* Mobile sidebar header offset */
@media(max-width:640px){.project-sidebar{top:112px;height:calc(100dvh - 112px)}}
/* Icon-only stem mute and solo controls */
.t-head-top .stem-control{width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;border:1px solid #2b3745;border-radius:7px;background:#111923;color:#aeb8c5;line-height:1}
.t-head-top .stem-control:hover:not(:disabled){background:#182331;color:#f4f7fb;border-color:#405267}
.track-control-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.t-head-top .m-mute.on{background:#0c2948;border-color:#176bc0;color:#3a9cff;box-shadow:inset 0 0 0 1px #1377d733}
.t-head-top .m-solo.on{background:#173451;border-color:#4a87bd;color:#eaf5ff;box-shadow:inset 0 0 0 1px #7fc3ff22}
.t-head-top .stem-control:disabled{opacity:.34}
/* Frozen timeline header inside the scrolling stem panel */
.daw-tracks .daw-heads{z-index:9}
.daw-tracks .daw-corner{position:sticky;top:0;z-index:10;background:#0b1119}
.daw-tracks .lanescol{overflow:visible}
.daw-tracks #ruler{position:sticky;top:0;z-index:8;background:#0b1119}
/* Studio channel equalizer */
.daw{position:relative}.daw-tracks{transition:filter .2s ease}.daw.channel-panel-open .daw-tracks{margin-right:0}
.channel-panel{--channel-accent:#4d9bea;position:fixed;z-index:80;right:24px;top:92px;display:flex;flex-direction:column;width:min(var(--eq-panel-width,980px),calc(100vw - 48px));height:min(var(--eq-panel-height,calc(100dvh - 116px)),calc(100dvh - 116px));min-width:min(760px,calc(100vw - 48px));max-width:calc(100vw - 16px);min-height:560px;max-height:calc(100dvh - 16px);box-sizing:border-box;overflow-x:hidden;overflow-y:auto;padding:20px;border:1px solid #303b48;border-radius:14px;background:#11171ef2;color:#eef3f8;box-shadow:0 28px 90px #000d;backdrop-filter:blur(14px)}
.channel-panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid #28323d;cursor:move;user-select:none}.channel-panel-head span{display:block;color:#778493;font-size:9px;font-weight:750;letter-spacing:.13em}.channel-panel-head strong{display:block;margin-top:4px;font-size:22px;letter-spacing:-.035em}
.channel-panel-head-actions{display:flex;align-items:center;gap:10px}
.eq-bypass-btn{border:1px solid #35414e;border-radius:999px;background:#171f28;color:#8895a2;padding:6px 13px;font:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}
.eq-bypass-btn:hover{border-color:#4e5d6f;color:#dbe4ed;background:#202b36}
.eq-bypass-btn.on{border-color:var(--amber,#e58e38);color:#fff;background:color-mix(in srgb,var(--amber,#e58e38) 24%,#171f28)}
.channel-panel-close{width:30px;height:30px;border:1px solid #303b48;border-radius:8px;background:#171f28;color:#9ba8b5;font-size:20px;cursor:pointer}.channel-panel-close:hover{color:#fff;background:#202b36}
.eq-weq8-ui{display:grid!important;grid-template-columns:224px minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;flex:0 0 auto!important;width:100%;height:auto!important;min-width:0;min-height:0;max-width:100%;max-height:none;margin:14px 0 12px;border:1px solid #29333e;border-radius:10px;overflow-x:auto;overflow-y:hidden;background:#0b1016}
.eq-weq8-ui[hidden]{display:none}
.eq-weq8-ui:not([hidden])~.eq-graph{display:none}
.eq-graph.is-idle{display:none}
.eq-graph{margin-top:14px;height:128px;padding:9px 10px 4px;border:1px solid #29333e;border-radius:10px;background:#0b1016}.eq-graph svg{display:block;width:100%;height:100px;overflow:visible}.eq-grid{fill:none;stroke:#202a35;stroke-width:1}.eq-spectrum{fill:color-mix(in srgb,var(--channel-accent) 18%,transparent);stroke:color-mix(in srgb,var(--channel-accent) 48%,transparent);stroke-width:1;transition:fill .15s ease}.eq-zero{fill:none;stroke:#46525e;stroke-width:1;stroke-dasharray:4 4}.eq-curve{fill:none;stroke:var(--channel-accent);stroke-width:2.4;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--channel-accent) 55%,transparent))}.eq-graph circle{fill:#11171e;stroke:var(--channel-accent);stroke-width:2}.eq-graph>span{display:inline-block;width:33.333%;color:#596572;font-size:8px}.eq-graph>span:nth-of-type(2){text-align:center}.eq-graph>span:last-child{text-align:right}
.eq-preset-row{display:flex;align-items:center;justify-content:space-between;margin:13px 0 6px}.eq-preset-row label{color:#7f8c99;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.eq-preset-row select{border:1px solid #303b47;border-radius:7px;background:#171f27;color:#d7dee5;padding:6px 9px;font:inherit;font-size:10px}
.eq-controls{display:grid}.eq-controls label{display:grid;grid-template-columns:72px minmax(0,1fr) 54px;align-items:center;gap:9px;min-height:54px;border-bottom:1px solid #252f39}.eq-controls label>span{display:grid;gap:2px}.eq-controls b,.channel-pan-control b{font-size:10px;letter-spacing:.08em}.eq-controls small,.channel-pan-control small{color:#65727f;font-size:8px;font-weight:500}.eq-controls input,.channel-pan-control input{width:100%;accent-color:var(--channel-accent)}.eq-controls output{color:#b9c4ce;font-size:9px;text-align:right;font-variant-numeric:tabular-nums}
.channel-pan-control{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:9px;min-height:58px}.channel-pan-control>span{display:grid;gap:3px}.channel-panel footer{display:flex;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px solid #28323d}.channel-panel footer button{border:1px solid #35414d;border-radius:8px;background:transparent;color:#aab5bf;padding:8px 12px;font:inherit;font-size:10px;cursor:pointer}.channel-panel footer .eq-done{border-color:var(--channel-accent);background:var(--channel-accent);color:#071019;font-weight:700}
.eq-resize-zone{position:absolute;z-index:100;display:block;margin:0;padding:0;border:0;background:transparent;pointer-events:auto;touch-action:none}
.eq-resize-n{top:0;left:14px;right:14px;height:10px;cursor:ns-resize}
.eq-resize-e{top:14px;right:0;bottom:14px;width:12px;cursor:ew-resize}
.eq-resize-s{right:14px;bottom:0;left:14px;height:12px;cursor:ns-resize}
.eq-resize-w{top:14px;bottom:14px;left:0;width:12px;cursor:ew-resize}
.eq-resize-ne{top:0;right:0;width:16px;height:16px;cursor:nesw-resize}
.eq-resize-se{right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize}
.eq-resize-sw{bottom:0;left:0;width:16px;height:16px;cursor:nesw-resize}
.eq-resize-nw{top:0;left:0;width:16px;height:16px;cursor:nwse-resize}
.channel-panel-head{touch-action:none}
.t-head-top .eq-btn{width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;border:1px solid #2b3745;border-radius:7px;background:#111923;color:#aeb8c5}.t-head-top .eq-btn:hover,.t-head-top .eq-btn.on{border-color:var(--tc,var(--blue));color:var(--tc,var(--blue));background:color-mix(in srgb,var(--tc,var(--blue)) 12%,#111923)}.eq-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
@media(max-width:900px){.daw.channel-panel-open .daw-tracks{margin-right:0}.channel-panel{left:8px;right:8px;top:auto;bottom:8px;width:auto;height:min(var(--eq-panel-height,78dvh),78dvh);min-width:0;min-height:0;max-width:none;max-height:78dvh;padding:16px}.eq-weq8-ui{width:100%;height:auto;min-height:0;max-height:none;grid-template-columns:190px minmax(300px,1fr);grid-template-rows:minmax(220px,1fr)}.t-head-top .eq-btn{display:grid}}


/* Guitar output dropdown - drops directly below the Guitar stem card */
.guitar-output-choices{width:calc(50% - 4px);margin:-1px 0 0 calc(50% + 4px);overflow:hidden;border:1px solid #454545;border-top-color:#353535;border-radius:0 0 10px 10px;background:#292929;box-shadow:0 12px 28px rgba(0,0,0,.28)}
.guitar-output-choices.guitar-only{width:100%;margin:0;border-radius:10px}
.guitar-output-grid{display:grid}.guitar-output-grid button{position:relative;min-height:58px;padding:10px 12px;border:0;border-bottom:1px solid #3d3d3d;background:transparent;color:#aaa;text-align:left;font:inherit;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:9px;transition:background .14s ease,color .14s ease}.guitar-output-grid button:last-child{border-bottom:0}.guitar-output-grid button:hover{background:#313131}.guitar-output-grid button:disabled{opacity:.42;cursor:not-allowed}.guitar-output-grid button:disabled:hover{background:transparent}.guitar-output-grid button.on{background:#34302a;color:#fff}.guitar-output-copy{display:grid;gap:3px}.guitar-output-copy strong{font-size:11px;line-height:1.3}.guitar-output-copy small{color:#858585;font-size:8px}.guitar-output-grid button em{color:#858585;font-size:8px;font-style:normal;white-space:nowrap}.guitar-output-radio{width:17px;height:17px;border:1.5px solid #777;border-radius:50%;display:grid;place-items:center}.guitar-output-grid button.on .guitar-output-radio{border-color:#d79a45;background:#d79a45}.guitar-output-grid button.on .guitar-output-radio::after{content:'';width:6px;height:3px;border-left:2px solid #161616;border-bottom:2px solid #161616;transform:rotate(-45deg) translateY(-1px)}
@media(max-width:640px){.guitar-output-choices{width:100%;margin:-1px 0 0}.guitar-output-grid button{min-height:56px}}


/* Local alphaTab score surface */
#score-modal[open]:has(.alpha-score-body){
  height:min(94vh,1000px);
  max-height:94vh;
  display:flex;
  flex-direction:column;
}
#score-modal:has(.alpha-score-body) .score-head{flex:0 0 auto}
#score-modal:has(.alpha-score-body) .score-body.alpha-score-body{
  height:auto;
  min-height:420px;
  max-height:none;
  padding:0;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
}
.alpha-score-toolbar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:54px;
  padding:8px 12px;
  background:#1769e8;
  color:#fff;
  border-bottom:1px solid rgba(0,0,0,.14);
}
.alpha-score-transport,.alpha-score-options{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.alpha-score-options{justify-content:flex-end;flex-wrap:wrap}
.alpha-score-button,.alpha-score-control select{
  min-height:36px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:6px;
  background:rgba(0,0,0,.12);
  color:#fff;
  font:inherit;
}
.alpha-score-button{min-width:40px;padding:0 11px;cursor:pointer}
.alpha-score-button:hover:not(:disabled),.alpha-score-button.is-playing{background:rgba(0,0,0,.25)}
.alpha-score-button:disabled,.alpha-score-control select:disabled,.alpha-score-control input:disabled{cursor:progress;opacity:.55}
.alpha-score-control{display:flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap}
.alpha-score-control select{padding:0 26px 0 9px}
.alpha-score-volume-control input[type="range"]{width:90px;accent-color:#fff;cursor:pointer}
.alpha-score-volume-control output{min-width:3ch;text-align:right;font-variant-numeric:tabular-nums}
.alpha-score-status,.alpha-score-position{font-size:13px;white-space:nowrap}
.alpha-score-status{max-width:220px;overflow:hidden;text-overflow:ellipsis}
.alpha-score-viewport{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:auto;
  overscroll-behavior:contain;
  background:#f4f5f7;
  scrollbar-gutter:stable;
}
.alpha-score-main{width:100%;min-width:0;background:#fff}
.alpha-score-main>div,.alpha-score-main svg{max-width:100%}
.alpha-score-setup{
  height:100%;
  display:grid;
  place-content:center;
  gap:10px;
  padding:24px;
  text-align:center;
  color:#333;
}
.alpha-score-body .at-cursor-bar{background:rgba(255,193,7,.25)}
.alpha-score-body .at-selection div{background:rgba(23,105,232,.12)}
.alpha-score-body .at-cursor-beat{width:3px;background:#1769e8}
.alpha-score-body .at-highlight *{fill:#1769e8;stroke:#1769e8}
@media(max-width:900px){
  .alpha-score-toolbar{align-items:flex-start;flex-direction:column}
  .alpha-score-transport,.alpha-score-options{width:100%;overflow-x:auto;padding-bottom:2px}
  .alpha-score-options{justify-content:flex-start;flex-wrap:nowrap}
  .alpha-score-status{max-width:150px}
}
@media(max-width:600px){
  #score-modal:has(.alpha-score-body) .score-body.alpha-score-body{min-height:360px}
  .alpha-score-toolbar{padding:7px 8px}
  .alpha-score-position{margin-left:auto}
  .alpha-score-status{display:none}
}
@media print{
  .alpha-score-toolbar{display:none!important}
  .alpha-score-viewport{overflow:visible!important;background:#fff}
}
/* AlphaTab notation editor controls */
.alpha-score-editor{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;background:#0d141c;color:#eef4fa;overflow:hidden}
.alpha-score-tabs{display:flex;align-items:center;gap:4px;min-height:44px;padding:4px 10px;border-bottom:1px solid #263341;background:#101a25;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.alpha-score-tab{flex:0 0 auto;border:0;border-radius:6px;background:transparent;color:#91a1b2;padding:8px 12px;font:600 12px/1 inherit;cursor:pointer;white-space:nowrap}
.alpha-score-tab:hover{background:#1a2938;color:#eaf2fa}.alpha-score-tab.is-active{background:#2d9cff;color:#06121e;box-shadow:0 0 0 1px #64bdff inset}
.alpha-score-tab:disabled{opacity:.45;cursor:not-allowed}
/* Takes the spacer's place: grows to fill the row so it is always on screen, and
   truncates rather than pushing the undo/redo buttons out of view. */
.alpha-score-editor-status{flex:1 1 auto;min-width:0;padding:0 12px;color:#9fb3c6;font-size:11.5px;
  line-height:1.3;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alpha-score-inline-play{flex:0 0 auto;border:1px solid #2d9cff;border-radius:7px;background:#1887f2;color:#fff;padding:7px 13px;font:700 12px/1 inherit;cursor:pointer;white-space:nowrap}
.alpha-score-inline-play:hover{background:#2d9cff}.alpha-score-inline-play.is-playing{background:#d94646;border-color:#ff7070}
.alpha-score-editor.osmd-score-editor.is-readonly.is-playback-only .alpha-score-tabs{display:none}
.osmd-score-editor.is-playback-only .alpha-score-tab,
.osmd-score-editor.is-playback-only .alpha-score-history,
.osmd-score-editor.is-playback-only .alpha-score-editor-status{display:none}
.osmd-score-editor.is-playback-only .alpha-score-position{margin-left:0}
.alpha-score-editor-spacer{flex:1 1 auto;min-width:12px}.alpha-score-history{width:30px;height:30px;border:1px solid #324454;border-radius:7px;background:#152330;color:#b9c9d9;font-size:17px;line-height:1;cursor:pointer}.alpha-score-history:hover:not(:disabled){background:#22384b;color:#fff}.alpha-score-history:disabled{opacity:.36;cursor:not-allowed}
.alpha-score-palette{display:flex;flex:0 0 auto;align-items:stretch;gap:0;padding:7px 10px;border-bottom:1px solid #263341;background:#111b26;overflow:visible}
/* Read-only until Edit is pressed: the tools are hidden rather than merely disabled,
   so the default view is a score to read, not a workbench to be careful around. */
.alpha-score-editor.is-readonly .alpha-score-palette,
.alpha-score-editor.is-readonly .alpha-score-tabs{display:none}
.score-dirty{padding:4px 9px;border:1px solid #a4762a;border-radius:999px;background:#3a2c15;color:#f0c069;font-size:11px;font-weight:700;white-space:nowrap}
.score-dirty[hidden]{display:none}
/* Exports stay visible but refuse to run while there are unsaved edits */
.btn.is-blocked{opacity:.45;cursor:not-allowed}
.alpha-score-palette-panel{display:flex;align-items:center;gap:8px;min-width:0;width:100%;flex:1 1 100%;overflow:visible}
.alpha-score-palette-panel[hidden]{display:none}
.alpha-score-palette-section{display:flex;align-items:stretch;gap:5px;padding-right:9px;border-right:1px solid #2b3a48;flex:0 0 auto}
.alpha-score-palette-section:last-of-type{border-right:0}
.alpha-score-palette-label{align-self:center;margin:0 3px;color:#7f91a4;font-size:9px;font-weight:750;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.alpha-score-palette-panel[data-editor-panel="notes"]{display:grid;grid-template-columns:repeat(12,max-content);align-items:center;justify-content:start;gap:7px 8px;overflow:visible}
/* Measure symbols have much taller SMuFL visual bounds than ordinary text.
   Keep this panel compact and contain every glyph inside its own icon box. */
.alpha-score-palette:has([data-editor-panel="measure"]:not([hidden])){min-height:72px;padding-block:6px}
.alpha-score-palette-panel[data-editor-panel="measure"]{align-items:center;gap:6px}
.alpha-score-palette-panel[data-editor-panel="measure"] .alpha-score-palette-section{align-items:center;gap:4px;padding-right:7px}
.alpha-score-palette-panel[data-editor-panel="measure"] .alpha-score-tool{min-width:54px;min-height:54px;height:54px;gap:1px;padding:3px 6px;overflow:hidden}
.alpha-score-palette-panel[data-editor-panel="measure"] .bravura-glyph{display:grid;width:32px;height:28px;place-items:center;font-size:20px;line-height:28px;overflow:visible;transform:scale(.82);transform-origin:center}
.alpha-score-palette-panel[data-editor-panel="measure"] [data-editor-action="clef"] .bravura-glyph{font-size:24px;transform:scale(.72)}
.alpha-score-palette-panel[data-editor-panel="measure"] .alpha-score-tool>span:last-child{max-width:72px;overflow:hidden;text-overflow:ellipsis;line-height:1.1}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input{display:flex;grid-column:1/-1;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;width:100%;min-width:0;max-width:100%;padding:0 0 7px;border-right:0;border-bottom:1px solid #2b3a48;gap:5px}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .alpha-score-tool{width:auto;min-width:0;min-height:62px;height:62px;flex:0 0 auto;padding:7px 8px 6px;overflow:visible}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .alpha-score-tool:nth-of-type(1),
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .alpha-score-tool:nth-of-type(2){min-width:82px}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .bravura-glyph{display:flex;min-height:30px;align-items:center;justify-content:center;line-height:30px;transform:translateY(1px)}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .note-add-mark{min-height:30px}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input .note-add-mark b{top:-3px}
.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-input-voice{min-width:auto;padding:0 2px 0 4px}
.alpha-score-tool{display:flex;min-width:52px;min-height:58px;height:58px;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1px solid #2c3d4c;border-radius:7px;background:#162432;color:#d8e4ee;padding:6px 8px;font:600 10px/1.1 inherit;cursor:pointer;white-space:nowrap;flex:0 0 auto}.alpha-score-tool:hover{border-color:#55b6ff;background:#1d3446;color:#fff;transform:translateY(-1px)}.alpha-score-tool:focus-visible,.alpha-score-tab:focus-visible,.alpha-score-history:focus-visible{outline:2px solid #74c7ff;outline-offset:2px}.alpha-score-tool.is-selected{border-color:#55b6ff;background:#20425b;color:#fff;box-shadow:0 0 0 1px rgba(116,199,255,.34) inset}.alpha-score-tool.is-danger{color:#ffb5bb}.alpha-score-tool.is-danger:hover{border-color:#f0757d;background:#49262d;color:#fff}.bravura-glyph{font-family:Bravura,Academico,'Noto Music',serif;font-size:24px;line-height:1;font-weight:400}.dynamic-mark{font:italic 700 24px/1 Georgia,serif}.pitch-mark{font-size:17px;line-height:1}.alpha-score-editor-note{align-self:center;max-width:210px;color:#8394a5;font-size:10px;line-height:1.4}.alpha-score-palette-placeholder{justify-content:flex-start;flex-direction:column;align-items:flex-start;padding:6px 10px;gap:4px;color:#afbfcd}.alpha-score-palette-placeholder strong{font-size:13px}.alpha-score-palette-placeholder span{color:#73869a;font-size:11px}
/* Text tab: the icon carries the meaning, so these are square and label-free */
.alpha-score-tool-icon{min-width:46px;min-height:46px;padding:4px}
.alpha-score-tool-icon svg{max-width:38px;max-height:36px;overflow:visible}
.alpha-score-tool-sep{align-self:center;width:1px;height:28px;flex:0 0 1px;background:#2c3d4c}
.alpha-score-editor .alpha-score-toolbar{flex:0 0 auto}.alpha-score-main{position:relative;min-width:0;overflow-x:auto}
.osmd-score-body .alpha-score-toolbar{display:none}
.osmd-score-body .alpha-score-viewport{background:#eef1f4}
.osmd-score-body [data-osmd-main]{min-height:100%;background:#fff;color:#111}
.osmd-score-body [data-osmd-main] svg{display:block;width:100%;height:auto;margin:0 auto;max-width:100%;background:#fff}
.osmd-jianpu-sheet-header{position:relative;box-sizing:border-box;width:100%;min-height:88px;padding:24px 48px 10px;background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif}
.osmd-jianpu-sheet-header h2{max-width:70%;margin:0 auto;text-align:center;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:.01em}
.osmd-jianpu-sheet-author{position:absolute;right:48px;top:54px;max-width:24%;margin:0;text-align:right;font-size:13px;line-height:1.35;color:#333}
.osmd-jianpu-sheet-meta{margin:22px 0 0;font-size:17px;line-height:1.3;font-weight:650;white-space:pre-wrap}
.osmd-score-body .vpai-editor-hit-layer{pointer-events:none}
.osmd-score-body .vpai-note-hit{cursor:pointer;outline:none}
.osmd-score-body rect.vpai-note-hit{pointer-events:all;opacity:0}
.osmd-score-body rect.vpai-note-hit:focus-visible{opacity:.18;fill:#0075ff;stroke:#0075ff;stroke-width:1}
.osmd-score-body .vf-notehead.vpai-note-hit:focus-visible{outline:2px solid #0075ff;outline-offset:2px}
.osmd-score-body .vf-stavenote.vpai-note-selected .vf-notehead,
.osmd-score-body .vf-stavenote.vpai-note-selected .vf-notehead path,
.osmd-score-body .vf-stavenote.vpai-note-selected .vf-notehead ellipse,
.osmd-score-body .vf-notehead.vpai-note-selected,
.osmd-score-body .vf-notehead.vpai-note-selected path,
.osmd-score-body .vf-notehead.vpai-note-selected ellipse{fill:#0075ff!important;stroke:#0075ff!important}
.osmd-score-body .vpai-note-selected{filter:drop-shadow(0 0 2px rgba(0,117,255,.42))}
.osmd-score-editor.is-input-mode [data-osmd-main]{cursor:crosshair}
.alpha-score-input-voice{display:flex;align-items:center;gap:5px;align-self:center;color:#8ea2b6;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.alpha-score-input-voice select{min-width:48px;border:1px solid #365064;border-radius:6px;background:#152330;color:#e8f1f8;padding:6px 20px 6px 7px;font:700 12px/1 inherit;cursor:pointer}
.alpha-score-input-voice select:focus-visible{outline:2px solid #74c7ff;outline-offset:2px}
.osmd-score-body .vpai-input-overlay{pointer-events:none;overflow:visible}
.osmd-score-body .vpai-input-slot{stroke:#2499ff;stroke-width:1;opacity:.45}
.osmd-score-body .vpai-input-slot.is-strong{stroke-width:1.4;opacity:.72}
.osmd-score-body .vpai-input-slot.is-invalid{stroke:#d55766;opacity:.32}
.osmd-score-body .vpai-input-guide{stroke:#167cff;stroke-width:2.6;stroke-linecap:round;opacity:.9}
.osmd-score-body .vpai-input-guide.is-chord{stroke:#8b5cf6;stroke-dasharray:2 2}
.osmd-score-body .vpai-input-guide.is-invalid{stroke:#d55766;stroke-dasharray:3 3;opacity:.8}
.osmd-score-body .vpai-input-ghost{fill:#2499ff;stroke:#0b69bc;stroke-width:.45;opacity:.72}
.osmd-score-body .vpai-input-ghost.is-chord{fill:#8b5cf6;stroke:#6841c6}
.osmd-score-body .vpai-input-ledger{stroke:#2499ff;stroke-width:1.2;opacity:.9}
.osmd-score-body .vpai-input-ghost.is-invalid .vpai-input-ledger{stroke:#d55766}
.osmd-score-body .vpai-input-pointer{fill:#2499ff;stroke:#fff;stroke-width:.7;paint-order:stroke;opacity:.96;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.osmd-score-body .vpai-input-ghost.is-invalid{fill:#d55766;stroke:#a82c3a;opacity:.46}
.osmd-score-body .vpai-input-chord-plus{fill:#8b5cf6;stroke:#fff;stroke-width:.55;paint-order:stroke;font:700 15px/1 system-ui;opacity:.98}
.osmd-score-body .vpai-playback-cursor{pointer-events:none;overflow:visible}
.osmd-score-body .vpai-playback-line{stroke:#167cff;stroke-width:2.8;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.96;filter:drop-shadow(0 0 2px rgba(22,124,255,.55))}
.osmd-score-body .vpai-native-playback-cursor{z-index:5!important;pointer-events:none;filter:drop-shadow(0 0 2px rgba(22,124,255,.55))}
.osmd-score-editor.is-input-mode [data-osmd-main],.osmd-score-editor.is-input-mode .vpai-note-hit{cursor:none!important}
.alpha-score-input-toggle[aria-pressed="true"],.alpha-score-tool.is-selected{border-color:#2499ff;background:#176fbd;color:#fff;box-shadow:0 0 0 1px rgba(36,153,255,.22) inset}
.note-add-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:28px}.note-add-mark b{position:absolute;right:-1px;top:-5px;font:800 16px/1 system-ui;color:currentColor}
/* Beat click picker: alphaTab cannot hit-test notes on the lower staff of a multi-staff
   track (no note bounds recorded), so the reader chooses instead of us guessing. */
.alpha-note-picker{position:absolute;z-index:40;display:flex;flex-direction:column;gap:2px;
  padding:4px;border:1px solid #3b5064;border-radius:8px;background:#0e1720;
  box-shadow:0 10px 28px rgba(0,0,0,.55)}
.alpha-note-picker button{min-width:132px;padding:6px 10px;border:0;border-radius:5px;
  background:transparent;color:#dbe7f2;font:600 12px/1.2 inherit;text-align:left;cursor:pointer}
.alpha-note-picker button:hover{background:#1d3446;color:#fff}
/* Grouped tools. The panel is a native popover, so the browser gives us the top
   layer, light dismiss and Escape for free; only the anchoring is ours. */
.alpha-score-group{position:relative}
.alpha-score-group-trigger{position:relative;padding-right:14px}
.alpha-score-caret{position:absolute;right:2px;bottom:2px;width:10px;height:10px;fill:none;stroke:#7f91a4;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.alpha-score-group-trigger:hover .alpha-score-caret{stroke:#d8e4ee}
.alpha-score-popover{display:none;position:fixed;margin:0;max-width:min(92vw,22rem);padding:8px;border:1px solid #2c3d4c;border-radius:10px;background:#16222e;box-shadow:0 12px 30px rgba(0,0,0,.5);overflow:visible}
.alpha-score-popover:popover-open{display:flex;flex-wrap:wrap;gap:5px}
.alpha-score-popover::backdrop{background:transparent}
@media(max-width:900px){.alpha-score-palette{padding:5px 8px}.alpha-score-tool{min-width:44px;min-height:54px;height:54px;padding:5px 6px}.alpha-score-palette-section{gap:4px;padding-right:6px}.alpha-score-palette-label{display:none}.alpha-score-editor-note{display:none}.alpha-score-palette-panel{min-width:0;width:100%;flex-basis:100%;flex-wrap:wrap;overflow:visible}.alpha-score-palette-panel[data-editor-panel="notes"]{display:flex;flex-wrap:wrap;overflow:visible}.alpha-score-palette-panel[data-editor-panel="notes"] .alpha-score-note-input{width:100%;min-width:0}}
@media(max-width:600px){.alpha-score-tabs{padding:5px 6px}.alpha-score-tab{padding:8px 10px}.alpha-score-history{width:29px;height:29px}.alpha-score-palette{min-height:68px;padding:5px 6px}.alpha-score-tool{min-width:40px;min-height:50px;height:50px;font-size:9px;padding-inline:5px}.bravura-glyph{font-size:22px}.alpha-score-editor .alpha-score-toolbar{display:flex!important}}
@media print{.alpha-score-tabs,.alpha-score-palette,.alpha-score-toolbar{display:none!important}.alpha-score-editor{background:#fff}.alpha-score-viewport{overflow:visible!important;background:#fff}#score-modal .osmd-jianpu-sheet-header{display:block!important;padding:0 0 7mm;break-after:avoid;page-break-after:avoid}#score-modal .osmd-jianpu-sheet-header h2{font-size:20pt}#score-modal .osmd-jianpu-sheet-author{font-size:11pt}#score-modal .osmd-jianpu-sheet-meta{margin-top:5mm;font-size:11pt}}

/* Library batch selection */
.library-selection-bar{position:sticky;top:74px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:54px;margin:-14px 0 14px;padding:9px 14px;border:1px solid #466b91;border-radius:10px;background:#203448;color:#e7f1fb;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.library-selection-bar[hidden]{display:none}
.library-selection-count{font-size:13px;font-weight:650}
.library-selection-actions{display:flex;align-items:center;gap:7px}
.library-selection-actions .btn{min-height:32px;border-color:#58748f;background:#29445b;color:#edf6ff}
.library-selection-actions .btn:hover{background:#355673}
.library-selection-actions .library-selection-delete{border-color:#8a5860;background:#4b2d35;color:#ffdfe3}
.library-selection-actions .library-selection-delete:hover{background:#633943}
.library-select-all{min-width:0;display:flex;align-items:center;gap:10px;cursor:pointer;color:inherit}
.library-select-all input,.library-row-select-input{width:17px;height:17px;margin:0;flex:0 0 auto;accent-color:#4d9bea;cursor:pointer}
.library-row-select{width:18px;height:28px;display:grid;place-items:center;flex:0 0 18px;cursor:pointer}
.library-row .library-name{gap:10px}
.library-row.is-selected{background:#293b4d}
.library-row.is-selected:hover,.library-row.is-selected:focus-within{background:#30465a}
.library-undo-toast{position:fixed;right:24px;bottom:24px;z-index:30;display:flex;align-items:center;gap:12px;max-width:min(420px,calc(100vw - 28px));padding:11px 12px 11px 15px;border:1px solid #4b6681;border-radius:10px;background:#202f3e;color:#edf6ff;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.library-undo-toast[hidden]{display:none}
.library-undo-toast span{font-size:12px}
.library-undo-action,.library-undo-dismiss{border:0;background:transparent;color:#8fc6ff;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.library-undo-action{padding:4px 5px;border-radius:5px}
.library-undo-action:hover{background:#2f4b65;color:#fff}
.library-undo-dismiss{width:24px;height:24px;padding:0;border-radius:5px;color:#a8b6c5;font-size:18px;line-height:1}
.library-delete-modal{max-width:450px;position:fixed;inset:0;margin:auto}
.library-delete-modal .modal-body{justify-items:stretch;text-align:left;padding:26px}
.library-delete-kicker{color:#8ebef0;font-size:10px;font-weight:750;letter-spacing:.12em}
.library-delete-modal h2{font-size:24px}
.library-delete-modal .sub{font-size:13px;line-height:1.45}
.library-delete-list{display:grid;gap:4px;max-height:132px;margin:2px 0 0;padding:10px 13px 10px 29px;overflow:auto;border:1px solid #3c4853;border-radius:8px;background:#202a33;color:#e1e8ef;font-size:12px}
.library-delete-list li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-delete-list .library-delete-more{color:#97a6b5;list-style:none;margin-left:-16px}
.library-delete-warning{padding:10px 12px;border:1px solid #705b36;border-radius:8px;background:#2d281f;color:#f0d59b;font-size:11px;line-height:1.45}
.library-delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}
.library-delete-confirm{border:1px solid #a95c67;background:#7c3442;color:#fff}
.library-delete-confirm:hover{background:#974353}
.transcription-completion-toast{position:fixed;right:24px;bottom:24px;z-index:40;display:flex;align-items:center;gap:14px;max-width:min(470px,calc(100vw - 28px));padding:13px 13px 13px 16px;border:1px solid #397b62;border-radius:12px;background:#142d27;color:#effff7;box-shadow:0 16px 40px rgba(0,0,0,.52)}
.transcription-completion-toast[hidden]{display:none}
.transcription-completion-copy{display:grid;min-width:0;gap:4px;line-height:1.35}
.transcription-completion-copy strong{font-size:13px}
.transcription-completion-copy span{color:#b8d7c8;font-size:11px}
.transcription-completion-actions{display:flex;align-items:center;flex:0 0 auto;gap:6px}
.transcription-completion-actions .btn{white-space:nowrap}
.transcription-completion-dismiss{width:25px;height:25px;padding:0;border:0;border-radius:5px;background:transparent;color:#a9c0b4;font-size:19px;line-height:1;cursor:pointer}
.transcription-completion-dismiss:hover{background:#25503f;color:#fff}
@media(max-width:900px){
  .library-table-head{display:grid;grid-template-columns:minmax(0,1fr) auto;padding-inline:14px}
  .library-table-head>span{display:none}
  .library-select-all{grid-column:1/-1}
  .library-outputs{padding-left:88px}
}
@media(max-width:640px){
  .library-selection-bar{top:68px;align-items:stretch;flex-direction:column;gap:8px;margin:-4px 0 10px;padding:11px 12px}
  .library-selection-actions{justify-content:flex-end}
  .library-undo-toast{right:14px;bottom:14px}
  .transcription-completion-toast{right:14px;bottom:14px}
  .library-delete-modal .modal-body{padding:22px 18px}
}

/* ---------- membership auth surface: SignInPage component ---------- */
.auth-modal{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:#09090b;color:#f4f4f5;box-shadow:none}
.auth-modal::backdrop{background:#09090b}
.auth-frame{position:relative;display:flex;width:100%;height:100%;min-height:100dvh;margin:0;padding:0;background:#09090b;color:#f4f4f5;border:0}
.auth-form-panel{position:relative;display:flex;flex:1 1 50%;align-items:center;justify-content:center;min-width:0;overflow:auto;padding:clamp(24px,5.1vw,68px);background:#09090b}
.auth-form-inner{display:flex;width:min(100%,357px);flex-direction:column;gap:17px;margin-block:auto}
.auth-heading{display:grid;gap:12px;margin-bottom:3px}
.auth-heading h1{font-size:clamp(34px,4.25vw,49px);font-weight:600;line-height:1.05;letter-spacing:-.055em}
.auth-title-light{font-weight:300}
.auth-description{max-width:none;color:#a1a1aa;font-size:13px;line-height:1.42;white-space:nowrap}
.auth-close{position:absolute;top:22px;right:26px;z-index:2;width:34px;height:34px;border:0;border-radius:999px;background:transparent;color:#a1a1aa;font-size:25px;line-height:1;cursor:pointer}
.auth-close:hover{background:rgba(255,255,255,.08)}
.auth-fields{display:grid;gap:18px}
.auth-field{display:grid;gap:8px;color:#f4f4f5;font-size:14px;font-weight:500}
.auth-field label{color:#f4f4f5;font-size:14px;font-weight:500}
.auth-field label small{color:#a1a1aa;font-size:12px;font-weight:400}
.auth-referral-note{margin-top:-2px;color:#8aa4bd;font-size:11px;font-weight:400;line-height:1.35}
.auth-input-container{display:flex;align-items:center;gap:10px;padding:0 14px;min-height:48px;height:48px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.04);backdrop-filter:blur(12px);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.auth-input-container:focus-within{border-color:#0075ff;background:rgba(0,117,255,.06);box-shadow:0 0 0 2px rgba(0,117,255,.24)}
.auth-input-icon{color:#71717a;width:20px;height:20px;flex-shrink:0;display:block}
.auth-input-container:focus-within .auth-input-icon{color:#0075ff}
.auth-input-container input{flex:1;min-width:0;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:#f4f4f5;font:inherit;font-size:14px}
.auth-input-container input::placeholder{color:#71717a}
.password-input-wrapper{position:relative}
.auth-eye{display:grid;width:32px;height:32px;place-items:center;margin-left:auto;flex-shrink:0;border:0;border-radius:8px;background:transparent;color:#a1a1aa;cursor:pointer}
.auth-eye:hover{background:rgba(255,255,255,.08);color:#f4f4f5}
.auth-eye .eye-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.auth-eye .eye-closed{display:none}
.auth-eye[aria-pressed="true"] .eye-open{display:none}.auth-eye[aria-pressed="true"] .eye-closed{display:block}
.auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a1a1aa;font-size:14px}
.remember-control{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:400;color:#f4f4f5;cursor:pointer;user-select:none}
.remember-control input{width:16px;height:16px;margin:0;accent-color:#0075ff;cursor:pointer}
.auth-link{padding:0;border:0;background:transparent;color:#0075ff;font:inherit;cursor:pointer}
.auth-link:hover{text-decoration:underline;color:#3b9eff}
.auth-reset{font-size:14px;color:#0075ff}
.auth-status{min-height:15px;margin:-4px 0 -4px;color:#a1a1aa;font-size:12px;line-height:1.45}
.auth-status:empty{min-height:0}
.auth-status[data-kind="error"]{color:#fda4af}.auth-status[data-kind="success"]{color:#86efac}
.auth-resend-verification{justify-self:start;margin-top:-2px;font-size:12px}
.auth-resend-status{margin-top:-4px}
.auth-submit{width:100%;height:48px;min-height:48px;padding:0 16px;border:0;border-radius:12px;background:#0075ff;color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:all .18s cubic-bezier(0.16,1,0.3,1)}
.auth-submit:hover{background:#1f84ff;box-shadow:0 8px 24px rgba(0,117,255,.32);transform:translateY(-1px)}.auth-submit:disabled{cursor:wait;opacity:.6;transform:none}
.auth-social-list{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.auth-provider-note{margin:2px 0 0;color:#a1a1aa;font-size:12px;line-height:1.45;text-align:center}
.auth-status[data-kind="info"]{color:#a9d2ff}
.auth-social-btn{position:relative;display:flex;width:100%;height:48px;min-height:48px;align-items:center;justify-content:center;padding:0 20px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.04);color:#f4f4f5;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.auth-social-btn:hover{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08);transform:translateY(-1px)}
.auth-social-btn:disabled{cursor:not-allowed;opacity:.55;transform:none}
.auth-social-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);width:20px;height:20px;flex:none}
.auth-switch-line{margin:4px 0 0;text-align:center;color:#a1a1aa;font-size:14px}.auth-switch-line .auth-link{margin-left:4px;font-size:14px;font-weight:500}
.auth-privacy{color:#71717a;font-size:11px;line-height:1.45;text-align:center}
.auth-hero{position:relative;display:block;flex:1 1 50%;min-width:0;padding:16px}
.auth-hero-image{position:absolute;inset:16px;overflow:hidden;border-radius:24px;background-color:#05080c;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13),0 24px 60px rgba(0,0,0,.42);isolation:isolate}
.auth-hero-video{position:absolute;top:-5%;left:0;width:100%;height:115%;object-fit:cover;object-position:center 30%;transform:translateY(-8%);z-index:0;pointer-events:none}
.auth-hero-image::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(5,8,12,.85) 0%,rgba(5,8,12,.4) 36%,rgba(5,8,12,.15) 62%,rgba(5,8,12,.6) 100%),linear-gradient(180deg,rgba(5,8,12,.1) 0%,rgba(5,8,12,.2) 42%,rgba(5,8,12,.9) 100%)}
.auth-hero-image::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(circle at 52% 42%,rgba(0,117,255,.18),rgba(0,117,255,.06) 28%,transparent 50%);mix-blend-mode:screen;opacity:.78}
.auth-testimonials{position:absolute;right:34px;bottom:34px;left:34px;z-index:2;display:flex;align-items:flex-end;justify-content:center;gap:16px;padding:0 18px}
.auth-testimonial{display:flex;width:256px;align-items:flex-start;gap:12px;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(24,24,27,.48);backdrop-filter:blur(18px);box-shadow:0 14px 35px rgba(0,0,0,.2);color:#f4f4f5}
.auth-testimonial-avatar{width:40px;height:40px;flex:0 0 40px;object-fit:cover;border-radius:16px}.auth-testimonial-name{font-size:13px;font-weight:600;line-height:1.25}.auth-testimonial-handle{color:#a1a1aa;font-size:12px;line-height:1.35}.auth-testimonial-text{margin-top:4px;color:rgba(244,244,245,.82);font-size:12px;line-height:1.4}
.auth-form-panel button:focus-visible,.auth-hero button:focus-visible,.auth-more-providers summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:1040px){.auth-testimonial-secondary{display:none}.auth-testimonials{right:25px;left:25px}.auth-hero{flex-basis:46%}.auth-form-panel{flex-basis:54%;padding-inline:clamp(28px,5vw,58px)}}
@media(max-width:767px){.auth-modal{overflow:auto}.auth-frame{min-height:100dvh;height:auto}.auth-form-panel{min-height:100dvh;flex-basis:100%;padding:24px 19px 29px}.auth-form-inner{width:min(100%,357px);padding-top:12px}.auth-close{top:15px;right:16px}.auth-hero{display:none}.auth-heading h1{font-size:36px}.auth-description{white-space:normal}.auth-options{font-size:11px}.auth-provider-list{flex-wrap:wrap}}
@media(max-width:430px){.auth-form-panel{padding-inline:18px}.auth-form-inner{gap:17px}.auth-description{font-size:14px}.auth-fields{gap:17px}.auth-options{align-items:flex-start;flex-direction:column;gap:10px}.auth-reset{align-self:flex-end}.auth-submit,.auth-google{min-height:50px}.auth-provider-list{display:grid;grid-template-columns:repeat(3,1fr)}.auth-provider-list button{justify-content:center;padding-inline:7px}.auth-provider-list button span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.auth-submit,.auth-google{transition:none}}

/* Account settings: a focused, sidebar-free stack that keeps the live controls
   from the original page while making the account and subscription boundaries
   easier to scan. */
body:has(.settings-page:not([hidden])){overflow-x:hidden}
.settings-page{
  min-width:0;
  width:100%;
  max-width:1170px;
  padding:clamp(42px,6vw,78px) clamp(1rem,4vw,2.5rem) 88px;
}
.settings-intro{max-width:760px;min-width:0;margin:0 0 clamp(30px,4vw,46px)}
.settings-kicker,.settings-card-kicker,.settings-field-label{
  display:block;color:#77b8ff;font-size:10px;font-weight:800;letter-spacing:.14em;line-height:1.3;text-transform:uppercase
}
.settings-intro h1{margin:9px 0 8px;font-size:clamp(2.8rem,5.2vw,4.15rem);line-height:1.03;letter-spacing:-.065em}
.settings-intro>.sub{font-size:16px;line-height:1.55}
.settings-stack{display:grid;gap:26px}
.settings-card{padding:0;overflow:hidden;border-color:rgba(229,231,235,.17);border-radius:14px;background:#212121;box-shadow:0 14px 36px rgba(0,0,0,.16)}
.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:26px 28px 22px;border-bottom:1px solid var(--line)}
.settings-card-head h2{margin:7px 0 4px;font-size:21px;line-height:1.2;letter-spacing:-.035em}
.settings-card-head .sub{font-size:13px;line-height:1.45}
.settings-card-number{padding-top:2px;color:#626262;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.settings-account-body{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 28px 27px}
.settings-profile{display:flex;align-items:center;gap:14px;min-width:0}
.settings-profile-avatar{width:48px;height:48px;display:grid;flex:0 0 48px;place-items:center;border:1px solid rgba(116,184,255,.35);border-radius:50%;background:rgba(0,117,255,.13);color:#a8d3ff}
.settings-profile-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.55}
.settings-profile-copy{display:grid;gap:3px;min-width:0}
.settings-profile-copy strong{font-size:15px;line-height:1.25}
.settings-profile-copy .sub{overflow-wrap:anywhere;font-size:13px;line-height:1.4}
.settings-profile-copy .settings-membership-note{color:#747474;font-size:11px}
.settings-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.settings-readonly-note{margin:0;color:#777;font-size:11px;line-height:1.45}
.settings-account-actions .settings-readonly-note{text-align:right}
.settings-rows{padding:0 28px}
.settings-card .setting{min-height:80px;padding:18px 0;gap:24px}
.settings-card .setting>span:first-child{display:grid;gap:4px;min-width:0}
.settings-card .setting strong{font-size:14px;line-height:1.3}
.settings-card .setting small{color:var(--sub);font-size:12px;line-height:1.4}
.settings-card .setting select,.settings-card .setting input[type=range],.settings-card .setting .txt-input{flex:0 0 auto}
.settings-card .setting input[type=range]{width:min(260px,34vw)}
.settings-card .setting select{width:min(260px,38vw);min-height:36px;padding:0 30px 0 11px}
.settings-card .setting .txt-input{width:min(260px,38vw);min-height:36px}
.settings-subscription-body{padding:0 28px}
.settings-plan-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:23px 0;border-bottom:1px solid var(--line)}
.settings-plan-summary>div{display:grid;gap:5px;min-width:0}
.settings-plan-summary strong{font-size:17px;line-height:1.25}
.settings-plan-summary .sub{max-width:680px;font-size:12px;line-height:1.45}
.settings-field-label{color:#818181;font-size:9px;letter-spacing:.12em}
.settings-usage{padding:22px 0 24px}
.settings-usage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.settings-usage-head>div{display:grid;gap:5px}
.settings-usage-head strong{font-size:14px}
.settings-usage-head>p{max-width:50%;margin:0;color:#b5b5b5;font-size:12px;text-align:right}
.settings-meter{width:100%;height:8px;margin:18px 0 0;background:#383838}
.settings-meter>i{background:linear-gradient(90deg,#0075ff,#4d9cff);box-shadow:0 0 12px rgba(0,117,255,.25)}
.qa-credit-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.qa-credit-tools>div:first-child{display:grid;gap:5px;min-width:0}.qa-credit-tools strong{font-size:14px}.qa-credit-tools .sub{font-size:12px;line-height:1.4}
.qa-credit-tools-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}.qa-credit-tools-actions .settings-readonly-note{max-width:180px}
.settings-subscription-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0 23px;border-top:1px solid var(--line)}
.settings-subscription-footer .btn{flex:0 0 auto}
.settings-card :is(button,a,input,select):focus-visible{outline:2px solid #7dbdff;outline-offset:3px}
@media(max-width:720px){
  .settings-card-head{padding:23px 20px 19px}
  .settings-account-body{align-items:flex-start;flex-direction:column;padding:22px 20px 23px}
  .settings-account-actions{width:100%;justify-content:flex-start}
  .settings-account-actions .settings-readonly-note{text-align:left}
  .settings-rows,.settings-subscription-body{padding-inline:20px}
  .settings-card .setting{gap:15px}
  .settings-card .setting input[type=range]{width:min(220px,45vw)}
  .settings-card .setting select,.settings-card .setting .txt-input{width:min(230px,45vw)}
  .settings-usage-head{align-items:flex-start;flex-direction:column;gap:10px}
  .settings-usage-head>p{max-width:none;text-align:left}
  .qa-credit-tools{align-items:flex-start;flex-direction:column}
  .qa-credit-tools-actions{align-items:stretch;flex-direction:column;width:100%}
  .qa-credit-tools-actions .btn{width:100%}
  .qa-credit-tools-actions .settings-readonly-note{max-width:none}
  .settings-subscription-footer{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .settings-page{padding:34px 16px 64px}
  .settings-intro{margin-bottom:28px}
  .settings-intro h1{max-width:100%;font-size:clamp(2.2rem,10.5vw,3.2rem);overflow-wrap:anywhere}
  .settings-intro>.sub{font-size:14px}
  .settings-stack{gap:18px}
  .settings-card-head{padding:20px 17px 17px}
  .settings-card-head h2{font-size:19px}
  .settings-card-number{display:none}
  .settings-account-body{padding:19px 17px 20px}
  .settings-profile{align-items:flex-start}
  .settings-account-actions{align-items:stretch;flex-direction:column;gap:11px}
  .settings-account-actions .btn{width:100%}
  .settings-rows,.settings-subscription-body{padding-inline:17px}
  .settings-card .setting{align-items:flex-start;flex-wrap:wrap;min-height:0;padding:17px 0}
  .settings-card .setting>span:first-child{flex:1 1 100%}
  .settings-card .setting input[type=range],.settings-card .setting select,.settings-card .setting .txt-input{width:100%;max-width:none}
  .settings-card .setting input[type=range]{margin-top:3px}
  .settings-plan-summary{align-items:flex-start;flex-direction:column;gap:13px;padding:19px 0}
  .settings-usage{padding:19px 0 20px}
  .settings-subscription-footer{padding:16px 0 20px}
  .settings-subscription-footer .btn{width:100%}
}
@media(max-width:420px){
  .settings-intro h1{max-width:300px;font-size:clamp(1.9rem,8.2vw,2.15rem)}
}
@media(prefers-reduced-motion:reduce){.settings-meter>i{transition:none}}

/* Referral rewards are backed by an idempotent Supabase claim transaction. */
.account-pop-reward{display:flex;align-items:center;gap:11px;width:100%;text-align:left}
.account-pop-action-icon{display:grid;flex:0 0 22px;place-items:center;width:22px;height:22px;border:1px solid rgba(119,183,255,.35);border-radius:7px;color:#92c5ff;font-size:16px;line-height:1}
.account-pop-reward:hover .account-pop-action-icon{border-color:#4d9cff;background:rgba(0,117,255,.12);color:#c9e3ff}
@keyframes account-pop-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes account-pop-in-up{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.reward-modal{width:min(560px,calc(100% - 2rem));max-width:560px;padding:0;border:1px solid #354252;border-radius:22px;background:#121920;color:var(--txt);box-shadow:0 24px 80px rgba(0,0,0,.52)}
.reward-modal::backdrop{background:rgba(3,7,12,.78);backdrop-filter:blur(5px)}
.reward-dialog{position:relative;display:grid;gap:18px;padding:30px}
.reward-close{position:absolute;top:17px;right:18px;width:40px;height:40px;border:1px solid #405061;border-radius:50%;background:transparent;color:#9eb0c2;font-size:22px;line-height:1;cursor:pointer}
.reward-close:hover{border-color:#a9cfff;background:#1b2835;color:#fff}
.reward-heading{display:flex;align-items:flex-start;gap:15px;padding-right:34px}
.reward-heading-icon{display:grid;flex:0 0 44px;place-items:center;width:44px;height:44px;border:1px solid #387cc5;border-radius:13px;background:#172a3e;color:#8fc6ff;font-size:26px;font-weight:500;line-height:1}
.reward-heading-credits .reward-heading-icon{border-color:#b18b42;background:#2c2417;color:#edc878}
.reward-kicker{display:block;margin:2px 0 7px;color:#81baff;font-size:10px;font-weight:700;letter-spacing:.14em}
.reward-heading-credits .reward-kicker{color:#e6bb61}
.reward-heading h2{margin:0;color:#f5f8fb;font-size:25px;line-height:1.14;letter-spacing:-.035em}
.reward-heading p{max-width:440px;margin:8px 0 0;color:#aebdca;font-size:13px;line-height:1.5}
.reward-progress{display:grid;gap:10px;padding:17px;border:1px solid #304354;border-radius:14px;background:#17222d}
.reward-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#b8c8d6;font-size:13px}
.reward-progress-head strong{color:#f3f7fb;font-size:14px;font-variant-numeric:tabular-nums}
.reward-progress-track{height:8px;overflow:hidden;border-radius:8px;background:#263644}
.reward-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#3f96ef;transition:width .2s ease}
.reward-progress p{margin:0;color:#90a6b8;font-size:11px;line-height:1.4}
.reward-field{display:grid;gap:8px;color:#9db1c3;font-size:10px;font-weight:700;letter-spacing:.12em}
.reward-field small{font-size:10px;font-weight:500;letter-spacing:0;text-transform:none}
.reward-field .txt-input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #3b4a58;border-radius:10px;background:#0e151c;color:#eef5fb;font:inherit;font-size:13px;font-weight:500;letter-spacing:0}
.reward-field .txt-input:focus{border-color:#65aaff;outline:2px solid rgba(101,170,255,.2);outline-offset:1px}
.reward-copy-row{display:flex;align-items:center;gap:9px}
.reward-copy-row .txt-input{min-width:0}
.reward-copy-row .btn{flex:0 0 auto}
.reward-status{min-height:17px;margin:0;color:#93aabd;font-size:12px;line-height:1.4}
.reward-status[data-kind=success]{color:#9ed9b3}
.reward-status[data-kind=error]{color:#f0a1a1}
.reward-actions{display:flex;justify-content:flex-end;gap:10px}
.reward-actions .btn{min-width:145px}
.reward-disclosure{margin:0;color:#718698;font-size:10px;line-height:1.45}
.credit-schedule{display:grid;gap:0;border:1px solid #354453;border-radius:14px;background:#151f28}
.credit-schedule>div{display:flex;align-items:flex-start;gap:13px;padding:13px 15px;border-bottom:1px solid #293744}
.credit-schedule>div:last-child{border-bottom:0}
.credit-schedule b{color:#e6bb61;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.credit-schedule span{display:grid;gap:3px}
.credit-schedule strong{color:#eaf1f7;font-size:13px;line-height:1.25}
.credit-schedule small{color:#8ea5b7;font-size:11px;line-height:1.4}
.referral-card-heading{padding-right:47px}
.referral-steps{display:grid;gap:0;border:1px solid #354453;border-radius:14px;background:#151f28}
.referral-steps h3{margin:0;padding:14px 15px 9px;color:#eef4f8;font-size:15px;line-height:1.2}
.referral-step{display:flex;align-items:flex-start;gap:13px;padding:12px 15px;border-top:1px solid #293744}
.referral-step>b{flex:0 0 25px;color:#e6bb61;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.referral-step>span{display:grid;gap:3px;min-width:0}
.referral-step strong{color:#eaf1f7;font-size:13px;line-height:1.25}
.referral-step small{color:#8ea5b7;font-size:11px;line-height:1.4}
.referral-steps+.reward-field{margin-top:1px}
.referral-card-heading .reward-heading-icon{font-size:21px}
@media(max-width:560px){
  .reward-dialog{padding:24px 19px}
  .reward-heading h2{font-size:22px}
  .reward-actions{justify-content:stretch}
  .reward-actions .btn{width:100%}
  .reward-copy-row{align-items:stretch;flex-direction:column}
  .reward-copy-row .btn{width:100%}
}

/* Transcription delivery choices. Keep the cards compact so the choice feels
   like part of the workflow instead of a second settings screen. */
.transcription-output-grid,.score-output-choice-grid{align-items:stretch}
.transcription-output-grid button,.score-output-choice-grid button{
  display:grid;gap:5px;min-width:0;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease
}
.transcription-output-grid button:hover,.score-output-choice-grid button:hover{transform:translateY(-1px);border-color:#6d8ca8;box-shadow:0 7px 18px rgba(0,0,0,.16)}
.transcription-output-grid button:focus-visible,.score-output-choice-grid button:focus-visible{outline:2px solid #79b8ff;outline-offset:2px}
.transcription-output-grid button.on,.score-output-choice-grid button.on{border-color:#4b9af5;background:#17283b;color:#f4f8fc;box-shadow:0 0 0 1px rgba(75,154,245,.18)}
.transcription-output-grid button.on:hover,.score-output-choice-grid button.on:hover{border-color:#79b8ff}
.output-choice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.output-choice-top strong{min-width:0;color:inherit;font-size:13px;line-height:1.25}
.output-choice-top em{flex:0 0 auto;color:#8fc6ff;font-size:10px;font-style:normal;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.output-choice-title{color:#d5e0ea;font-size:11px;line-height:1.3}
.output-choice-title b{color:#8fc6ff;font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.transcription-output-grid button small,.score-output-choice-grid button small{color:#8fa2b3;font-size:10px;line-height:1.35}
.transcription-output-grid button.on small,.score-output-choice-grid button.on small{color:#b6cde1}
.score-chooser{max-width:700px}
.score-output-choice{display:grid;gap:9px;margin-top:2px;padding:12px;border:1px solid #334454;border-radius:12px;background:#101921}
.score-output-choice-head{display:grid;gap:3px}
.score-output-choice-head>span{color:#8fb2d0;font-size:9px;font-weight:700;letter-spacing:.14em}
.score-output-choice-head>strong{color:#f0f5f9;font-size:13px}
.score-output-choice-head>small{color:#8fa2b3;font-size:10px;line-height:1.35}
.score-output-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.score-output-choice-grid button{min-height:72px;padding:10px;border:1px solid #354554;border-radius:10px;background:#17212b;color:#c6d2dc}
.score-output-choice-grid button.on{background:#17283b}
.score-output-choice-grid button small{margin-top:auto}
@media(max-width:620px){
  .score-output-choice-grid{grid-template-columns:1fr}
  .score-output-choice-grid button{min-height:58px}
}

/* Multi-stem transcription review */
.studio-transcriptions-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding-inline:11px;color:#dbeafe;border-color:#315b83;background:#10243a;font-size:11px;font-weight:700}
.studio-transcriptions-button:hover:not(:disabled){border-color:#4d9ee9;background:#16385a}
.studio-transcriptions-button:disabled{opacity:.45;cursor:not-allowed}
.studio-transcriptions-button.is-processing{position:relative;animation:transcriptions-attention 1.45s ease-in-out infinite}
.studio-transcriptions-button.is-checking{border-color:#49617a;color:#bfd0e0}
.studio-transcriptions-button.is-processing::after{content:"";width:6px;height:6px;border-radius:50%;background:#72b8ff;box-shadow:0 0 0 4px #72b8ff22;animation:transcriptions-dot 1.2s ease-in-out infinite}
@keyframes transcriptions-attention{0%,100%{box-shadow:0 0 0 0 #3b91ed00}50%{box-shadow:0 0 0 4px #3b91ed2e}}
@keyframes transcriptions-dot{0%,100%{opacity:.45;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.studio-transcriptions-divider{height:24px;margin-inline:8px}
.multi-transcription-modal{box-sizing:border-box;width:min(760px,calc(100% - 24px));max-width:none;max-height:calc(100vh - 24px);margin:12px auto auto;overflow:auto;border:1px solid #334454;border-radius:20px;background:#111a22;color:#eff6fb;box-shadow:0 28px 90px #0009}
.multi-transcription-modal::backdrop{background:#03070ccc;backdrop-filter:blur(4px)}
.multi-transcription-dialog{display:grid;gap:20px;padding:26px}
.multi-transcription-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:17px;border-bottom:1px solid #2b3945}
.multi-transcription-head h2{margin:4px 0 5px;font-size:24px;letter-spacing:-.03em}
.multi-transcription-head p{margin:0;line-height:1.45}
.multi-transcription-kicker{color:#86bdf0;font-size:9px;font-weight:800;letter-spacing:.14em}
.multi-transcription-view{display:grid;gap:12px}
.multi-transcription-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.multi-transcription-list-head strong{font-size:14px}.multi-transcription-list-head span{color:#8493a0;font-size:10px}
.multi-stem-list,.multi-transcription-review-list{display:grid;gap:9px}
.multi-stem-row{display:grid;gap:10px;padding:13px;border:1px solid #2c3b48;border-radius:12px;background:#141e27;transition:border-color .16s,background .16s}
.multi-stem-row.is-enabled{border-color:#397db9;background:#152638}
.multi-stem-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.multi-stem-enable{display:flex;align-items:center;min-width:0;gap:9px;color:#e9f2f8;cursor:pointer}
.multi-stem-enable input{width:17px;height:17px;accent-color:#398fe1}
.multi-stem-icon{display:grid;place-items:center;width:27px;height:27px;color:#78b8ee}
.multi-stem-enable label span{min-width:0}.multi-stem-enable strong,.multi-stem-enable small{display:block}.multi-stem-enable strong{font-size:13px}.multi-stem-enable small{margin-top:3px;color:#8294a2;font-size:10px}
.multi-stem-duration{color:#9aa9b6;font-size:10px;white-space:nowrap}
.multi-stem-delivery,.multi-stem-notation{display:grid;gap:6px}.multi-stem-delivery>span,.multi-stem-notation>span{color:#7f95a7;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.multi-stem-output,.multi-stem-notation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.multi-stem-notation-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.multi-stem-output button,.multi-stem-notation-options button{
  display:grid;gap:3px;min-height:48px;padding:8px 9px;
  border:1px solid #283746;border-radius:8px;
  background:linear-gradient(180deg,#18232e 0%,#0f1720 100%);
  color:#aebdca;text-align:left;font:inherit;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.2);
  transition:all .14s ease;
}
.multi-stem-output button:hover,.multi-stem-notation-options button:hover{
  background:linear-gradient(180deg,#202d3b 0%,#131c26 100%);
  border-color:#384e62;color:#fff;
}
.multi-stem-output button.on,.multi-stem-notation-options button.on{
  border-color:#0b4a94;background:linear-gradient(180deg,#1d6ed8 0%,#0c4da3 100%);
  color:#f4f9fc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.35);
}
.multi-stem-output button strong{font-size:11px}.multi-stem-output button em{color:#8198aa;font-size:9px;font-style:normal}.multi-stem-output button.on em{color:#a6d1f3}
.multi-stem-notation-options button{display:block;min-height:36px;font-size:11px}
.multi-stem-language{display:grid;gap:6px}.multi-stem-language>span{color:#7f95a7;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.multi-stem-language-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.multi-stem-language-options button{
  min-height:36px;padding:7px 8px;border:1px solid #283746;border-radius:8px;
  background:linear-gradient(180deg,#18232e 0%,#0f1720 100%);
  color:#aebdca;text-align:center;font:inherit;font-size:8.8px;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.2);
  transition:all .14s ease;
}
.multi-stem-language-options button:hover{
  background:linear-gradient(180deg,#202d3b 0%,#131c26 100%);
  border-color:#384e62;color:#fff;
}
.multi-stem-language-options button.on{
  border-color:#0b4a94;background:linear-gradient(180deg,#1d6ed8 0%,#0c4da3 100%);
  color:#f4f9fc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.35);
}
.multi-transcription-note{margin:0;color:#8798a6;font-size:10px;line-height:1.5}
.multi-transcription-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:38px;padding-top:4px;border-top:1px solid #273642}
.multi-transcription-status{flex:1;min-width:0;color:#9fb1bf;font-size:10px;line-height:1.4}.multi-transcription-status[data-kind="error"]{color:#ff9da6}
.multi-transcription-empty{margin:0;padding:26px;border:1px dashed #3b4b58;border-radius:10px;color:#8fa1af;text-align:center;font-size:12px}
.multi-review-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.45fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #2f414e;border-radius:9px;background:#151f28}
.multi-review-stem{color:#eff5f9;font-size:12px;font-weight:700}.multi-review-output{color:#9fb2c0;font-size:10px}.multi-review-credits{color:#9ed0f5;font-size:11px;font-weight:700;white-space:nowrap}
.multi-transcription-total{display:flex;justify-content:space-between;align-items:center;padding:14px 12px;border:1px solid #41698a;border-radius:10px;background:#142b40}.multi-transcription-total span{color:#b8c7d2;font-size:12px}.multi-transcription-total strong{color:#f3f8fb;font-size:17px}
@media(max-width:620px){
  .multi-transcription-modal{width:calc(100% - 12px);max-height:calc(100vh - 12px);margin:6px auto auto;border-radius:15px}
  .multi-transcription-dialog{padding:19px 15px}.multi-transcription-head h2{font-size:21px}
  .multi-stem-output{grid-template-columns:1fr}.multi-stem-output button{min-height:40px}.multi-review-row{grid-template-columns:1fr auto;gap:5px}.multi-review-output{grid-column:1}.multi-review-credits{grid-column:2;grid-row:1/3;align-self:center}
  .multi-transcription-footer{align-items:stretch;flex-wrap:wrap}.multi-transcription-footer .multi-transcription-status{flex-basis:100%}.multi-transcription-footer button{flex:1}
}

/* Multi-stem selection cards: keep the project icons and let selected cards open their controls. */
.multi-transcription-modal{width:min(1120px,calc(100vw - 32px));max-height:min(860px,calc(100vh - 24px));margin:12px auto auto}
.multi-transcription-dialog{min-height:0;padding:30px;gap:18px}
.multi-transcription-feedback{padding:11px 13px;border:1px solid #7c3f4b;border-radius:10px;background:#351c27;color:#ffc5cc;font-size:12px;line-height:1.45}
.multi-transcription-feedback[data-kind="success"]{border-color:#397b62;background:#142d27;color:#b8f1d1}
.multi-transcription-results{display:grid;gap:10px;padding:12px 14px;border:1px solid #31556f;border-radius:12px;background:#102332}
.multi-transcription-results[hidden]{display:none}
.multi-transcription-results-list{display:grid;gap:7px}
.multi-result-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #2b4658;border-radius:9px;background:#142b3a}
.multi-result-copy{display:grid;gap:3px;min-width:0}.multi-result-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#edf6fc;font-size:11px}.multi-result-copy small{color:#8fa9ba;font-size:9px}
.multi-result-action{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.multi-result-action a,.multi-result-action button{min-height:29px}
.transcription-stem-result .multi-result-action{flex-wrap:nowrap}
.transcription-stem-result .multi-result-action .btn{white-space:nowrap}
.project-transcription-group-row{height:auto;min-height:52px;padding-block:8px}
.project-transcription-group-row .project-asset-copy{align-items:flex-start;flex-direction:column;gap:2px}
.project-transcription-group-row .project-asset-copy span{display:block}
.project-transcription-group-row .project-asset-actions{opacity:1;gap:6px}
.project-transcription-group-row .project-asset-actions .btn-primary{color:#fff;background:#1769e8;border-radius:6px}
.project-transcription-group-row .project-asset-actions .btn-primary:hover{background:#2d86ff}
.multi-transcription-list-head{padding-top:1px}
.multi-stem-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.multi-stem-card{min-width:0;min-height:215px;padding:16px;border-radius:16px;background:linear-gradient(145deg,#17232d,#111a22);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}
.multi-stem-card:hover{border-color:#4a667c;transform:translateY(-1px)}
.multi-stem-card.is-enabled{border-color:#4b9af5;background:linear-gradient(145deg,#192e43,#121d29);box-shadow:0 10px 24px #0003}
.multi-stem-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:25px}
.multi-stem-enable{display:flex;align-items:center;gap:8px}
.multi-stem-enable input{width:18px;height:18px;margin:0;accent-color:#4b9af5;cursor:pointer}
.multi-stem-enable input:disabled{cursor:wait}
.multi-stem-checkmark{display:none}
.multi-stem-duration{font-variant-numeric:tabular-nums;color:#9fb1bf;font-size:11px}
.multi-stem-card-center{display:grid;place-items:center;gap:5px;min-height:112px;padding:8px 0 14px;text-align:center}
.multi-stem-card-center .multi-stem-icon{display:grid;place-items:center;width:66px;height:66px;color:var(--stem-accent,#8fc6ff);border:1px solid #3a5266;border-radius:18px;background:#0e1821}
.multi-stem-card-center .multi-stem-icon .stem-icon-art{width:44px;height:44px}
.multi-stem-card-center .multi-stem-icon svg{width:38px;height:38px}
.multi-stem-name{color:#f1f6fa;font-size:15px;line-height:1.2}
.multi-stem-profile{color:#8fa5b6;font-size:10px;line-height:1.3}
.multi-stem-card-controls{display:grid;gap:12px;padding-top:13px;border-top:1px solid #2a3c4a}
.multi-stem-card-controls[hidden]{display:none}
.multi-stem-card-controls .multi-stem-delivery>span,.multi-stem-card-controls .multi-stem-notation>span{font-size:9px}
.multi-stem-output button,.multi-stem-notation-options button{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.multi-stem-output button:disabled,.multi-stem-notation-options button:disabled{cursor:wait;opacity:.6}
.multi-stem-language-options button:disabled{cursor:wait;opacity:.6}
.multi-transcription-footer{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:14px;margin:2px -30px -30px;padding:16px 30px;border-top:1px solid #304351;background:#111a22ee;backdrop-filter:blur(12px)}
.multi-transcription-summary{display:grid;gap:3px;min-width:140px}
.multi-transcription-summary span{color:#9fb1bf;font-size:11px}
.multi-transcription-summary strong{color:#f2f7fb;font-size:16px;line-height:1.2}
.multi-transcription-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.multi-transcription-actions button{white-space:nowrap}
.multi-transcription-footer .multi-transcription-status{font-size:11px}
.multi-transcription-review-list{max-height:430px;overflow:auto}
@media(max-width:900px){
  .multi-stem-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .multi-transcription-modal{width:calc(100% - 12px);max-height:calc(100vh - 12px);margin:6px auto auto}
  .multi-transcription-dialog{padding:19px 15px}
  .multi-stem-list{grid-template-columns:1fr}
  .multi-stem-language-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .multi-transcription-footer{grid-template-columns:1fr;gap:10px;margin:2px -15px -19px;padding:14px 15px}
  .multi-transcription-summary{display:flex;align-items:baseline;justify-content:space-between}
  .multi-transcription-footer .multi-transcription-status{min-height:0}
  .multi-transcription-actions{display:grid;grid-template-columns:1fr 1.4fr}
  .multi-transcription-actions button{width:100%}
  .transcription-stem-result{align-items:flex-start;flex-direction:column;gap:8px}
  .transcription-stem-result .multi-result-action{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .transcription-stem-result .multi-result-action .btn{width:100%}
  .project-transcription-group-row{align-items:flex-start;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
  .project-transcription-group-row .project-asset-actions{grid-column:1 / -1;width:100%;display:grid;grid-template-columns:1fr 1fr}
  .project-transcription-group-row .project-asset-actions .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .studio-transcriptions-button.is-processing,.studio-transcriptions-button.is-processing::after{animation:none}
  .multi-stem-card:hover{transform:none}
}


/* Stripe Embedded Checkout Modal */
.stripe-checkout-modal {
  width: min(720px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 20px);
  padding: 0;
  border: 1px solid #38383a;
  border-radius: 20px;
  background: #19191a;
  color: #f5f5f7;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}
.stripe-checkout-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.stripe-checkout-dialog {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: calc(100vh - 20px);
}
.stripe-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #2e2e30;
  background: #1e1e20;
}
.stripe-checkout-title-wrap {
  display: grid;
  gap: 3px;
}
.stripe-checkout-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8b4cff;
  text-transform: uppercase;
}
.stripe-checkout-header h2 {
  margin: 0;
  font-size: 17px;
  color: #fff;
}
.stripe-checkout-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #383838;
  border-radius: 50%;
  background: #252525;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  transition: all .14s ease;
}
.stripe-checkout-close:hover {
  background: #333;
  color: #fff;
}
.stripe-checkout-mount {
  min-height: 480px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 16px 20px;
}
.stripe-checkout-loading {
  display: grid;
  place-content: center;
  gap: 12px;
  min-height: 380px;
  text-align: center;
  color: #999;
  font-size: 13px;
}



/* ============ DEDICATED PAYMENT PAGE (Songscription full 2-column layout) ============ */
.payment-page {
  padding: 36px 20px 80px;
  max-width: 1320px;
  margin: 0 auto;
  min-height: calc(100vh - 160px);
}
.payment-shell {
  width: 100%;
}
.payment-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 0 4px;
}
.payment-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.payment-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa3b0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.payment-back:hover {
  color: #fff;
}
.payment-checkout-container {
  background: #212121;
  border: 1px solid #343437;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  min-height: 580px;
  padding: 16px 12px 24px;
}
.stripe-embedded-mount {
  width: 100%;
  min-height: 520px;
}
.stripe-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 480px;
  text-align: center;
  color: #71717a;
  font-size: 14px;
}
.stripe-loading-box .loader-bars {
  --loader-size: 32px;
  color: #3b8ef6;
  margin: 0 auto;
}

/* ============ PUBLIC LISTENING LINK MODAL ============ */
.share-modal{width:min(560px,calc(100vw - 32px));max-width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 24px);margin:auto;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--txt)}
.share-modal::backdrop{background:rgba(0,0,0,.78);backdrop-filter:none}
.share-dialog{display:grid;gap:0;justify-items:stretch;padding:26px;text-align:left}
.share-dialog-head{position:relative;display:block;padding:0 44px 20px 0;border-bottom:1px solid var(--line)}
.share-dialog-kicker{display:block;color:color-mix(in srgb,var(--blue),#fff 34%);font-size:10px;font-weight:800;letter-spacing:.14em}
.share-dialog-head h2{margin:6px 0 6px;font-size:22px;line-height:1.15;letter-spacing:-.035em}
.share-dialog-head p{max-width:none;margin:0;color:var(--sub);font-size:13px;line-height:1.5}
.share-dialog-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:var(--floating);color:var(--sub);font:inherit;font-size:18px;line-height:1;cursor:pointer}
.share-dialog-close:hover{background:#3f3f3f;color:var(--txt)}
.share-dialog .btn{box-shadow:none;text-shadow:none;transform:none}
.share-dialog .btn:hover,.share-dialog .btn:active{box-shadow:none;transform:none}
.share-dialog .btn-primary{background:var(--blue);border-color:var(--blue);color:#fff}
.share-dialog .btn-primary:hover{background:#0a67d8;border-color:#0a67d8;color:#fff}
.share-dialog .btn-ghost{background:var(--raised);border-color:var(--line);color:var(--txt)}
.share-dialog .btn-ghost:hover{background:var(--floating);border-color:#555;color:var(--txt)}
.share-project-summary{display:flex;align-items:center;gap:12px;margin:28px 0 18px;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--raised)}
.share-project-icon{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:var(--blue);color:#fff;font-size:19px}
.share-project-summary div{min-width:0;display:grid;gap:3px;text-align:left}.share-project-summary strong{overflow-wrap:anywhere}.share-project-summary small{color:var(--sub);font-size:11px}
.share-option{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer;text-align:left}
.share-option input{order:2;flex:0 0 auto;position:relative;appearance:none;-webkit-appearance:none;width:40px;height:22px;margin:0;border-radius:999px;background:var(--floating);cursor:pointer;transition:background .18s}
.share-option input::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .18s}
.share-option input:checked{background:var(--blue)}
.share-option input:checked::after{transform:translateX(18px)}
.share-option input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.share-option span{order:1;flex:1 1 auto;min-width:0;display:grid;gap:4px}.share-option strong{font-size:13px}.share-option small{color:var(--sub);font-size:11px;line-height:1.45}
.share-stem-picker{margin:0;padding:14px 0 4px;border:0;text-align:left}.share-stem-picker legend{padding:0;color:var(--sub);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.share-stem-picker>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.share-file-group{display:grid!important;gap:7px;width:100%;margin-top:10px}.share-file-group>strong{color:var(--dim);font:500 10px/14px "DM Mono",ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}.share-file-empty{margin:12px 0 0;color:var(--dim);font-size:12px}.share-stem{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--raised);color:var(--sub);font-size:12.5px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.share-stem::before{content:'✓';font-size:11px;line-height:1;opacity:.4}
.share-stem input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}.share-stem:has(input:checked){border-color:color-mix(in srgb,var(--blue),transparent 40%);background:color-mix(in srgb,var(--blue),transparent 84%);color:color-mix(in srgb,var(--blue),#fff 26%)}
.share-stem:has(input:checked)::before{opacity:1}
.share-stem:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:2px}
.share-expiry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 5px;color:#c9c9c9;font-size:12px;font-weight:600;text-align:left}.share-expiry-copy{display:grid;gap:4px;min-width:0}.share-expiry-copy small{color:color-mix(in srgb,var(--blue),#fff 30%);font-size:11px;font-weight:500;line-height:1.35}.share-expiry select{min-width:132px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--txt)}
.share-status{min-height:18px;margin:12px 0 0;color:var(--sub);font-size:12px;line-height:1.45}
.share-create-panel>.share-status:empty{min-height:0;margin:0}.share-status.is-error{color:#ff9da9}
.share-dialog-actions,.share-result-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.share-dialog-actions .btn,.share-result-actions .btn{width:100%;min-height:40px}
.project-rename-modal{width:min(500px,calc(100vw - 32px));max-width:min(500px,calc(100vw - 32px));margin:auto;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--txt)}
.project-rename-modal::backdrop{background:rgba(0,0,0,.78)}
.project-rename-field{display:grid;gap:8px;margin-top:20px;color:var(--sub);font-size:12px;font-weight:700}
.project-rename-field input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--txt);font:inherit;font-size:15px;padding:12px 13px;outline:none}
.project-rename-field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue),transparent 78%)}
.project-rename-modal .share-status{min-height:18px}.project-rename-modal .share-status:empty{min-height:0}
.share-result-panel{display:grid;gap:0}.share-result-success{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:28px 0 0;padding:15px 18px;border:1px solid #2a8d75;border-radius:11px;background:#1e302d;text-align:left}
.share-result-success>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#20b981;color:#062018;font-weight:900}.share-result-success div{display:grid;gap:3px;min-width:0;padding-left:14px;border-left:1px solid rgba(255,255,255,.12)}.share-result-success strong{font-size:15px}.share-result-success small{color:#9bcabd;font-size:11px;line-height:1.35}
.share-link-field{display:grid;gap:7px;margin-top:20px;color:var(--sub);font-size:11px;font-weight:650;text-align:left}.share-link-control{position:relative;display:block}.share-link-field input{width:100%;min-width:0;min-height:40px;padding:0 42px 0 12px;border:1px solid color-mix(in srgb,var(--blue) 42%,var(--line));border-radius:8px;background:var(--bg);color:var(--txt);font:12px ui-monospace,SFMono-Regular,Consolas,monospace}.share-link-copy{position:absolute;top:50%;right:5px;width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:var(--sub);cursor:pointer;transform:translateY(-50%)}.share-link-copy:hover{background:var(--raised);color:var(--txt)}.share-link-copy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.share-result-actions{margin-top:10px}.share-result-status{margin-top:12px;text-align:center}.share-revoke,.share-start-over{justify-self:start;display:block;margin-top:14px;padding:0;border:0;background:transparent;font:inherit;font-size:11px;cursor:pointer}.share-revoke{color:#ff929d}.share-revoke:disabled{color:var(--dim);cursor:default}.share-start-over{margin-top:8px;color:color-mix(in srgb,var(--blue),#fff 42%)}
.share-existing-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.share-existing-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;text-align:left}.share-existing-head strong{color:var(--sub);font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.share-existing-head small{color:var(--dim);font-size:11px;text-align:right}#share-existing-list{display:grid;gap:8px;margin-top:11px}.share-existing-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg);text-align:left}.share-existing-copy{min-width:0;display:grid;gap:4px}.share-existing-copy strong{overflow-wrap:anywhere;font-size:12px}.share-existing-copy small{color:var(--sub);font-size:10px}.share-existing-row .btn{flex:0 0 auto;min-height:32px;padding:5px 12px;border-color:color-mix(in srgb,var(--color-error,#ef4444),transparent 55%);background:color-mix(in srgb,var(--color-error,#ef4444),transparent 86%);color:color-mix(in srgb,var(--color-error,#ef4444),#fff 22%);font-size:11px}
.share-existing-row .btn:hover{border-color:color-mix(in srgb,var(--color-error,#ef4444),transparent 30%);background:color-mix(in srgb,var(--color-error,#ef4444),transparent 76%);color:#fff}
@media (max-width:640px){.share-modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.share-dialog{padding:22px 16px}.share-dialog-head{padding:0 20px}.share-dialog-head h2{font-size:22px}.share-dialog-head p{font-size:12px}.share-dialog-close{top:-3px;right:-2px}.share-existing-row{align-items:flex-start}}

/* ============ MOBILE / TABLET RESPONSIVE PASS ============
   Keep the desktop composition intact and make every product surface usable
   at touch widths. The studio timeline and command bars intentionally retain
   an inner horizontal scroll instead of shrinking controls into unusable
   targets. */
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
img,svg,video,canvas{max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
@supports (padding: max(0px)){
  .topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .payment-page{padding-bottom:max(48px,env(safe-area-inset-bottom))}
}

/* Tablet: 641-1024px */
@media (min-width:641px) and (max-width:1024px){
  .topbar{height:70px;padding-inline:18px;gap:12px}
  .topbar nav{position:static;translate:none;margin-left:auto;gap:clamp(18px,3vw,32px)}
  .topbar nav a{font-size:14px}
  .cloud-upload{display:grid}
  #nav-upload{padding-inline:16px}
  .account-btn{min-height:42px}
  .account-pop{max-width:calc(100vw - 24px)}
  .page:not(.page-full):not(.library-page):not(.project-page){padding-inline:clamp(20px,4vw,32px)}

  .hero{padding-top:clamp(42px,7vw,72px)}
  .hero h1{font-size:clamp(40px,6vw,56px)}
  .hero-mock{width:min(100%,680px);margin-top:3rem}
  .source-tabs{gap:4px}
  .source-tab{padding-inline:10px}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-tool-card{min-height:300px;padding:25px 24px}
  .home-tool-card h3{padding-right:104px}
  .tool-card-actions{align-items:flex-start;flex-wrap:wrap}
  .tool-output-note{flex-basis:100%}
  .converter-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.75fr)}
  .converter-card{padding:30px;min-height:360px}
  .tool-guide{padding:25px 20px;min-height:360px}

  .pricing{margin-top:76px;padding-inline:clamp(20px,4vw,32px)}
  .plans,.packs-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .plan{min-width:0}
  .price-value{font-size:48px}

  .payment-page{padding:28px 20px 64px}
  .payment-checkout-container{min-height:620px;padding:12px 10px 20px}
  .stripe-embedded-mount{min-height:580px}

  /* Library/project sidebar becomes a touch drawer at tablet widths. */
  .project-shell{display:block}
  .project-sidebar{position:fixed;z-index:50;top:70px;left:0;width:min(300px,82vw);height:calc(100dvh - 70px);transform:translateX(-102%);transition:transform .2s ease;box-shadow:18px 0 45px #0009}
  .project-shell.sidebar-open .project-sidebar{transform:translateX(0)}
  .sidebar-close,.sidebar-toggle{display:inline-flex}
  .project-content{padding:28px 24px 60px}
  .library-head{align-items:stretch;flex-direction:column;gap:18px}
  .library-head-actions{justify-content:flex-start}
  .library-search{width:min(100%,560px)}
  .library-table-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;padding-inline:14px}
  .library-table-head>span{display:none}
  .library-select-all{grid-column:1/-1}
  .library-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name actions" "outputs updated";row-gap:10px;min-height:98px;padding:14px}
  .library-name{grid-area:name}.library-outputs{grid-area:outputs;padding-left:61px}.library-updated{grid-area:updated;padding:0;text-align:right}.library-actions{grid-area:actions}
  .project-head{align-items:flex-start;flex-direction:column;gap:18px}
  .project-head-actions{width:100%}.project-head-actions .btn{flex:1}
  .project-source-warning{align-items:stretch;flex-direction:column}

  /* Preserve a usable minimum canvas while letting transport/toolbars scroll. */
  .daw{height:calc(100dvh - 70px);padding:6px;min-width:0}
  .daw-transport{grid-template-columns:max-content minmax(320px,.8fr) minmax(340px,1fr) minmax(220px,.7fr);overflow-x:auto}
  .daw-toolbar{display:flex!important;overflow-x:auto}
  .daw-heads{width:220px}.t-head{padding-left:58px}.t-ic{width:40px;height:40px}
  .channel-panel{left:8px;right:8px;top:auto;bottom:8px;width:auto;min-width:0;max-width:none;height:min(78dvh,760px)}

  .onboarding-shell{grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:32px;padding:40px 24px}
  .onboarding-intro h1{font-size:clamp(38px,5vw,52px)}
  .settings-page{padding-inline:clamp(24px,5vw,56px)}

  .modal{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 24px);overflow:auto}
  .score-modal{width:min(96vw,1100px);max-width:96vw}
  .midi-editor-modal{width:96vw;height:92dvh;max-width:96vw;max-height:92dvh}
}

/* Phone: <=640px */
@media (max-width:640px){
  .topbar{height:112px;display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;grid-template-rows:64px 48px;gap:0 8px;padding:0 12px}
  .topbar .brand{grid-column:1;grid-row:1;min-width:0;font-size:16px;white-space:nowrap;overflow:hidden}
  .topbar .brand-wave{width:30px;height:34px;flex:0 0 30px}
  .topbar .lang-switch{grid-column:2;grid-row:1;margin-left:0;justify-self:end}
  .topbar .account{grid-column:3;grid-row:1;margin-left:0;justify-self:end}
  .account-btn{min-height:40px;padding-inline:7px 10px;gap:6px;font-size:12px}
  .account-avatar{width:26px;height:26px}
  .account-pop{position:fixed;z-index:100;top:62px;right:12px;width:min(300px,calc(100vw - 24px));max-width:none}
  .topbar .cloud-upload,.topbar #nav-upload{display:none}
  .topbar nav{grid-column:1/-1;grid-row:2;position:static;translate:none;width:100%;height:48px;margin:0;gap:0;justify-content:space-around}
  .topbar nav a{flex:1;justify-content:center;padding:0;font-size:13px}
  .topbar nav a.active::after{bottom:0}

  .page:not(.page-full):not(.library-page):not(.project-page){padding-inline:14px}
  .hero{padding:42px 0 0}
  .hero h1{font-size:clamp(34px,10vw,42px);line-height:1.08}
  .hero .sub{font-size:14px}
  .hero-cta{display:grid;grid-template-columns:1fr;width:100%;margin-top:1.6rem}
  .hero-cta .btn{width:100%;min-height:48px}
  .hero-mock{margin-top:2.5rem;padding:9px}
  .mock-track{gap:8px;font-size:11px}.mock-track span{width:5rem}
  .tools-launcher{margin-top:72px}
  .tools-heading{text-align:center;margin-bottom:20px}.tools-heading h2{font-size:34px}.tools-heading p{font-size:13px}
  .source-tabs{padding:4px;gap:3px;border-radius:14px}
  .source-tab{min-height:54px;padding:7px 4px;gap:0;text-align:center}
  .source-tab svg{display:none}.source-tab span{font-size:10px;line-height:1.2}.source-tab small{font-size:8px}
  /* Keep the four core workflows visible as a 2 x 2 launcher on phones. */
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .converter-layout{grid-template-columns:1fr}
  .home-tool-card{min-width:0;min-height:285px;padding:15px 12px;border-radius:16px;overflow:hidden}
  .tool-card-top{height:auto;display:flex;justify-content:flex-start;margin-bottom:9px}
  .tool-card-tag{position:static;max-width:100%;padding:5px 7px;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-tool-card h3{padding-right:0;font-size:clamp(18px,5.3vw,22px);line-height:1.04}
  .home-tool-card>p{font-size:10px;line-height:1.42}
  .tool-flow{gap:3px;flex-wrap:wrap}.tool-flow span{padding:4px 5px;font-size:6px}.tool-flow i{width:9px;flex-basis:9px}
  .tool-card-art{right:-22px;bottom:54px;width:48%;height:30%;opacity:.25}
  .tool-card-actions{align-items:stretch;flex-direction:column;flex-wrap:nowrap;gap:6px;padding-top:13px}.tool-card-actions .tool-primary,.tool-card-actions .tool-secondary{flex:0 0 auto;width:100%;min-width:0;min-height:36px;padding:7px 5px;font-size:9px}
  .tool-output-note{width:100%;flex-basis:100%}
  .converter-card{min-height:0;padding:27px 20px;border-radius:18px}.converter-card h3{font-size:32px}.converter-flow{gap:5px}
  .tool-guide{min-height:0;padding:23px 19px;grid-template-columns:32px 1fr;gap:20px 10px}
  .pricing{margin-top:76px;padding-inline:0}.pricing-heading h2{font-size:32px}.pricing-heading p{font-size:13px}
  .billing-switch{max-width:100%;overflow-x:auto}.billing-switch button{padding-inline:12px;white-space:nowrap}
  .plans,.packs-plans{grid-template-columns:1fr;gap:12px}.plan{min-width:0;padding:24px 20px}.price-value{font-size:46px}

  .payment-page{padding:18px 8px 48px;min-height:calc(100dvh - 112px)}
  .payment-nav-header{margin-bottom:13px;padding-inline:3px}.payment-brand-logo{height:27px}.payment-back{font-size:12px}
  .payment-checkout-container{min-height:620px;padding:8px 5px 16px;border-radius:14px}
  .stripe-embedded-mount{min-height:600px}
  .stripe-checkout-modal{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);margin:6px auto;border-radius:15px}
  .stripe-checkout-header{padding:14px 15px}.stripe-checkout-header h2{font-size:15px}.stripe-checkout-mount{min-height:540px;padding:10px 8px}

  .project-content{padding:20px 14px 48px}
  .project-sidebar{top:112px;width:min(300px,88vw);height:calc(100dvh - 112px)}
  .sidebar-toggle{margin-bottom:14px;min-height:42px;padding-inline:13px}
  .library-head{gap:15px;padding-bottom:22px}.library-head h1{font-size:30px}.library-head-actions{display:grid;grid-template-columns:1fr}.library-search{width:100%}.library-head-actions .btn{width:100%}
  .library-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;margin-bottom:10px;padding:10px;border-radius:10px}.library-filters>span{display:none}.library-filters label{min-width:0}.library-filters label:last-child{grid-column:1/-1}.library-filters select{width:100%;min-width:0}
  .library-table{border-top:1px solid #282d34;border-radius:11px}.library-table-head{padding-inline:12px}
  .library-row{padding:12px;min-height:96px}.library-outputs{padding-left:58px}.library-updated{padding-left:0}
  .library-selection-bar{top:112px;align-items:stretch;flex-direction:column;gap:8px;margin:-4px 0 10px;padding:11px 12px}.library-selection-actions{justify-content:flex-end}.library-undo-toast{right:12px;bottom:12px}
  .library-action-menu{right:0;max-width:calc(100vw - 42px)}
  .project-head h1{font-size:24px}.project-head-actions{width:100%}.project-head-actions .btn{flex:1;min-width:0}.project-source-warning{margin-top:16px;padding:14px}
  .project-asset{height:auto;min-height:52px;padding:8px 4px;align-items:flex-start}.project-asset-copy{align-items:flex-start;flex-direction:column;gap:2px}.project-asset-copy span{display:none}.project-asset-actions .btn{padding-inline:6px}

   .daw{height:calc(100dvh - 112px);padding:4px;gap:6px;min-width:0}
   .daw-top .studio-save-status{display:none}.daw-top #btn-studio-save{display:inline-flex}
  .daw-transport{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:0}
  .transport-cluster{flex:0 0 auto;height:66px;min-height:66px}.transport-main{padding:7px 9px}.transport-params{flex-basis:auto;padding:0 6px}.transport-practice{padding-inline:6px}.transport-zoom{padding-inline:8px}
  .transport-main .tbtn{width:44px;height:48px;flex-basis:44px}.transport-main .tbtn-play{width:52px;flex-basis:52px}.transport-main .tbtn-record{width:46px;flex-basis:46px}.transport-main .t-time{margin-inline:5px;padding-inline:7px;font-size:13px;min-width:88px}
  .daw-toolbar{display:flex!important;overflow-x:auto;padding:5px 7px}.daw-toolbar .ibtn{height:34px;padding-inline:9px}.daw-toolbar .tool-hint{display:none}
  .daw-tracks{min-height:0}.daw-heads{width:168px;padding-right:4px}.daw-corner{padding-inline:8px}.t-head{height:74px;min-height:74px;margin:4px 4px 0;padding:8px 7px 8px 48px;gap:6px}.t-ic{left:8px;top:10px;width:32px;height:32px}.t-name{font-size:11px}.t-head-top{gap:3px}.t-head-top .stem-control,.t-head-top .eq-btn{width:26px;height:26px;min-width:26px}.track-lane{height:74px;min-height:74px}.lanescol{min-width:620px}
  .daw-bottom{display:grid;grid-template-columns:1fr auto;gap:7px;padding:7px 9px}.daw-insp{grid-column:1/-1}.daw-info{display:none}.daw-actions{justify-content:flex-end}
  .guitar-panel,.guitar-analysis{align-items:stretch;flex-direction:column;gap:8px;padding:9px}.gp-status{min-width:0}.ga-ribbon{min-width:0;width:100%}
  .channel-panel{left:6px;right:6px;bottom:6px;height:min(82dvh,700px);max-height:82dvh;padding:13px;border-radius:12px}.channel-panel-head strong{font-size:18px}.eq-weq8-ui{grid-template-columns:1fr;overflow:auto}.eq-controls label{grid-template-columns:62px minmax(0,1fr) 45px}

  .auth-modal{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}
  .auth-form-panel{min-height:100dvh;padding:24px 18px 30px}.auth-form-inner{width:min(100%,380px);padding-top:10px}.auth-close{top:14px;right:14px}.auth-heading h1{font-size:36px}.auth-description{white-space:normal;font-size:13px}.auth-options{align-items:flex-start;flex-direction:column;gap:10px}.auth-reset{align-self:flex-end}.auth-submit,.auth-google{min-height:50px}.auth-provider-list{display:grid;grid-template-columns:repeat(3,1fr)}.auth-provider-list button{justify-content:center;padding-inline:7px}.auth-provider-list button span:last-child{display:none}
  .onboarding-shell{grid-template-columns:1fr;gap:24px;padding:28px 16px 48px}.onboarding-intro h1{font-size:38px}.onboarding-intro>p{font-size:14px}.onboarding-benefits{display:none}.onboarding-form{padding:22px 17px}.onboarding-instruments-grid{grid-template-columns:repeat(2,1fr)}
  .settings-page{padding:30px 16px 58px}.settings-intro{margin-bottom:26px}.settings-intro h1{font-size:clamp(2.1rem,10vw,3rem)}.settings-card-head{padding:20px 17px 17px}.settings-card-number{display:none}.settings-account-body{padding:19px 17px 20px}.settings-rows,.settings-subscription-body{padding-inline:17px}.settings-card .setting{align-items:flex-start;flex-wrap:wrap;min-height:0;padding:17px 0}.settings-card .setting>span:first-child{flex:1 1 100%}.settings-card .setting input[type=range],.settings-card .setting select,.settings-card .setting .txt-input{width:100%;max-width:none}.settings-account-actions{align-items:stretch;flex-direction:column;width:100%}.settings-account-actions .btn,.settings-subscription-footer .btn{width:100%}.settings-plan-summary,.settings-usage-head,.settings-subscription-footer{align-items:flex-start;flex-direction:column}

  .modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:8px auto;border-radius:16px}
  .modal-body{padding:19px 16px}.modal-body h2{font-size:20px}
  #upload-modal,#export-modal,#score-modal,#midi-editor-modal,#sheet-midi-modal,#notation-import-modal{margin:8px auto}
  #upload-modal,.notation-import-modal{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px)}
  .upload-wizard,.notation-import-wizard,.audio-export-modal{padding:19px 15px}.wizard-actions,.library-delete-actions{align-items:stretch;flex-direction:column}.wizard-actions>* ,.library-delete-actions>*{width:100%}
  .wizard-progress-item em{display:none}.wizard-progress{gap:4px}.wizard-progress>i{margin-inline:2px}
  .notation-import-file{grid-template-columns:36px minmax(0,1fr) auto}.upload-metadata-grid{grid-template-columns:1fr}
  .audio-format-grid{grid-template-columns:1fr 1fr}.audio-export-footer{position:sticky;bottom:0;padding-bottom:4px;background:var(--panel,#1c1c1d)}
   .score-modal{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.score-command-row{align-items:flex-start;flex-direction:column}.score-actions{width:100%;display:flex;flex-wrap:wrap}.score-actions .btn{flex:1;min-width:0}.score-settings-row{overflow-x:auto}.score-output-choice-grid{grid-template-columns:1fr}.score-output-choice-grid button{min-height:58px}
   .unsaved-changes-body{padding:21px 16px}.unsaved-changes-actions{display:grid;grid-template-columns:1fr}.unsaved-changes-actions .btn{width:100%}
  .midi-editor-modal{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}.midi-editor-head{flex-wrap:wrap;padding:10px}.midi-editor-frame{min-height:0}
  .multi-transcription-modal{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);margin:6px auto;border-radius:15px}.multi-transcription-dialog{padding:19px 15px}.multi-stem-list{grid-template-columns:1fr}.multi-stem-output{grid-template-columns:1fr}.multi-stem-language-options{grid-template-columns:repeat(2,minmax(0,1fr))}.multi-transcription-footer{grid-template-columns:1fr;gap:10px;margin:2px -15px -19px;padding:14px 15px}.multi-transcription-actions{display:grid;grid-template-columns:1fr 1.4fr}.multi-transcription-actions button{width:100%}
}

@media (max-width:360px){
  .topbar .account-btn #account-plan-label{display:none}
  .topbar .account-btn{padding-inline:6px}
}

/* A fetched YouTube source owns the wizard until the user changes that link. */
.wizard-dropzone.youtube-loaded,
.wizard-dropzone.youtube-loaded:hover {
  border-style: solid;
  border-color: #35506a;
  background: #1e2730;
  opacity: .72;
  cursor: not-allowed;
  pointer-events: none;
}
.wizard-dropzone.youtube-loaded strong { color: #d9e8f8; }
.wizard-dropzone.youtube-loaded>span:not(.wizard-upload-icon) { color: #9eafbf; }

/* YouTube import failure keeps an escape hatch to the file dropzone. */
.youtube-import-fallback{display:block;margin-top:3px;color:var(--sub)}
.youtube-import-fallback .linkish{border:0;background:none;padding:0;color:var(--blue);font:inherit;font-weight:650;cursor:pointer;text-decoration:underline}
.dropzone.is-hinted{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,117,255,.22)}
