/* Flow Booth themes. Palette lives in CSS variables on <html data-theme="...">; the inline head script in every page sets it before first paint. */
:root,html[data-theme="studio"]{
  color-scheme:dark;
  --bg:#050505;--bg2:#0a0907;--bg3:#1a1408;--bg-rgb:5,5,5;
  --panel:#111;--panel2:#181818;--inset:#0b0b0b;--raise:#1a1a1a;--line:#262626;
  --text:#f4f4f4;--muted:#9a9a9a;--soft:#ddd;--soft2:#bbb;--hi:#fff;
  --glass:rgba(18,14,14,.72);--glass2:rgba(28,20,20,.66);--edge:rgba(255,255,255,.07);
  --gold:#f7b500;--gold2:#ffd24a;--gold3:#ffe27a;--gold4:#c98a00;--ink:#1a1000;
  --hot:#e01016;--red:#cc1d22;--neon:#ff1f2b;--ok:#22c55e;
  --gold-rgb:247,181,0;--hot-rgb:224,16,22;--neon-rgb:255,31,43;--ov:255,255,255;
  --themeface:#050505;
}
html[data-theme="midnight"]{
  color-scheme:dark;
  --bg:#000;--bg2:#050507;--bg3:#101014;--bg-rgb:0,0,0;
  --panel:#0c0c0e;--panel2:#141418;--inset:#060608;--raise:#1c1c22;--line:#26262c;
  --text:#f4f4f6;--muted:#9d9da8;--soft:#dcdce4;--soft2:#b4b4c0;--hi:#fff;
  --glass:rgba(12,12,14,.74);--glass2:rgba(22,22,26,.7);--edge:rgba(255,255,255,.09);
  --gold:#d6dbe8;--gold2:#ffffff;--gold3:#eef0f8;--gold4:#8d94a8;--ink:#0a0a0c;
  --gold-rgb:214,219,232;
  --themeface:#000;
}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f1ea;--bg2:#ece7dc;--bg3:#e4dccb;--bg-rgb:244,241,234;
  --panel:#ffffff;--panel2:#f9f6ef;--inset:#ffffff;--raise:#ebe5d8;--line:#d6cdb9;
  --text:#1a1710;--muted:#5b5646;--soft:#2c281c;--soft2:#47432f;--hi:#14110a;
  --glass:rgba(255,255,255,.86);--glass2:rgba(255,255,255,.78);--edge:rgba(40,30,0,.14);
  --gold:#8f5f00;--gold2:#7d5200;--gold3:#6a4600;--gold4:#6f4a00;--ink:#ffffff;
  --hot:#c40d12;--red:#b01418;--neon:#d01020;--ok:#138a3d;
  --gold-rgb:143,95,0;--hot-rgb:196,13,18;--neon-rgb:208,16,32;--ov:60,45,10;
  --themeface:#f4f1ea;
}
html[data-theme="neon"]{
  color-scheme:dark;
  --bg:#05020c;--bg2:#080414;--bg3:#1a0838;--bg-rgb:5,2,12;
  --panel:#0e0720;--panel2:#150a2e;--inset:#070312;--raise:#1e1040;--line:#2c1a55;
  --text:#f6f0ff;--muted:#aa9ccc;--soft:#e4d8ff;--soft2:#bfb0e0;--hi:#fff;
  --glass:rgba(16,8,36,.74);--glass2:rgba(26,12,56,.7);--edge:rgba(200,160,255,.14);
  --gold:#00e0ff;--gold2:#7af0ff;--gold3:#b8f8ff;--gold4:#0090b0;--ink:#00141a;
  --hot:#d0128f;--red:#b50f7c;--neon:#ff2bd6;
  --gold-rgb:0,224,255;--hot-rgb:208,18,143;--neon-rgb:255,43,214;
  --themeface:#05020c;
}
html[data-theme="ocean"]{
  color-scheme:dark;
  --bg:#020d18;--bg2:#04121f;--bg3:#0a2a48;--bg-rgb:2,13,24;
  --panel:#08192b;--panel2:#0d2238;--inset:#040f1c;--raise:#12304d;--line:#1b3a5c;
  --text:#eaf4ff;--muted:#92aec6;--soft:#d4e6f7;--soft2:#aac4dc;--hi:#fff;
  --glass:rgba(8,25,43,.74);--glass2:rgba(13,34,56,.7);--edge:rgba(150,200,255,.14);
  --gold:#3ba7ff;--gold2:#8cc9ff;--gold3:#b8dcff;--gold4:#1f6fc2;--ink:#02101f;
  --gold-rgb:59,167,255;
  --themeface:#020d18;
}
html[data-theme="forest"]{
  color-scheme:dark;
  --bg:#030b06;--bg2:#050f09;--bg3:#0d2a18;--bg-rgb:3,11,6;
  --panel:#0a1810;--panel2:#0f2218;--inset:#050e08;--raise:#153023;--line:#1d3d2b;
  --text:#eefaf2;--muted:#94b2a0;--soft:#d6eedd;--soft2:#adcbb8;--hi:#fff;
  --glass:rgba(10,24,16,.74);--glass2:rgba(15,34,24,.7);--edge:rgba(150,255,190,.13);
  --gold:#3ddc84;--gold2:#8af0b4;--gold3:#bff7d6;--gold4:#1f9d58;--ink:#03140a;
  --gold-rgb:61,220,132;
  --themeface:#030b06;
}
body{background-color:var(--bg)}
/* ---- picker UI ---- */
.thm-btn{appearance:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--edge);background:var(--glass2);color:var(--soft);cursor:pointer;margin-left:6px;padding:0;flex-shrink:0}
.thm-btn svg{width:20px;height:20px;display:block}
.thm-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (max-width:420px){.app-header .thm-btn{width:34px;height:34px;margin-left:4px}}
.thm-float{position:fixed;top:calc(env(safe-area-inset-top,0px) + 10px);right:12px;z-index:90}
.thm-sheet-bg{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center;font-family:var(--body,system-ui,sans-serif)}
.thm-sheet{width:100%;max-width:520px;max-height:86vh;overflow:auto;background:var(--panel,#111);color:var(--text);border:1px solid var(--line);border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 50px rgba(0,0,0,.5)}
@media (min-width:700px){.thm-sheet-bg{align-items:center}.thm-sheet{border-radius:22px}}
.thm-sheet h3{margin:0 0 4px;font-size:24px;font-family:var(--display,inherit);font-weight:800;text-transform:uppercase;letter-spacing:-.03em;color:var(--hi)}
.thm-sheet p{margin:0 0 12px;font-size:13px;color:var(--muted)}
.thm-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.thm-opt{appearance:none;text-align:left;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:16px;border:2px solid var(--line);background:rgba(var(--ov),.05);color:var(--text);cursor:pointer;font:inherit}
.thm-opt[aria-checked="true"]{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.thm-opt:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.thm-sw{display:flex;height:34px;border-radius:10px;overflow:hidden;border:1px solid rgba(128,128,128,.35)}
.thm-sw i{flex:1;display:block}
.thm-opt b{font-size:14px;font-weight:800;color:var(--text)}
.thm-opt span.thm-sub{font-size:11.5px;color:var(--muted);line-height:1.3}
.thm-close{margin-top:14px;width:100%}
.thm-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.thm-chip{appearance:none;display:inline-flex;align-items:center;gap:7px;padding:7px 11px 7px 8px;border-radius:999px;border:1.5px solid var(--line);background:rgba(var(--ov),.05);color:var(--text);font:600 12.5px var(--body,inherit);cursor:pointer}
.thm-chip[aria-checked="true"]{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold) inset}
.thm-chip i{width:16px;height:16px;border-radius:50%;display:block;border:1px solid rgba(128,128,128,.4)}
/* The header already overflowed on phones (Sign up / Log in was clipped); with the theme button it must wrap so nothing is cut off. */
@media (max-width:480px){.app-header{flex-wrap:wrap;row-gap:4px}.app-header .help-btn{margin-left:auto}.app-header .signin-btn,.app-header .acct-btn{margin-left:4px}}
/* ---- surfaces that were hard-coded dark: re-point to the palette for every theme except the default Studio (kept pixel-identical) ---- */
html:not([data-theme="studio"]) #stage,html:not([data-theme="studio"]) .fb-ad-slot{background:linear-gradient(180deg,var(--glass2),var(--glass))}
html:not([data-theme="studio"]) input[type=text],html:not([data-theme="studio"]) input[type=number],html:not([data-theme="studio"]) input[type=email],html:not([data-theme="studio"]) textarea,html:not([data-theme="studio"]) select{background:rgba(var(--ov),.06)}
html:not([data-theme="studio"]) .paywall,html:not([data-theme="studio"]) .sheet{background:linear-gradient(180deg,var(--panel2) 0%,var(--bg2) 100%)}
html:not([data-theme="studio"]) .hero-card{background:linear-gradient(160deg,rgba(var(--hot-rgb),.22),rgba(var(--ov),.04) 55%,rgba(var(--gold-rgb),.12))}
html:not([data-theme="studio"]) .bt-row,html:not([data-theme="studio"]) .gw-mode button,html:not([data-theme="studio"]) .gw-out,html:not([data-theme="studio"]) .fb-sup-log,html:not([data-theme="studio"]) .pw-tester-code input,html:not([data-theme="studio"]) .fb-sup-form input{background:rgba(var(--ov),.05)}
html:not([data-theme="studio"]) .pp-plan,html:not([data-theme="studio"]) .pp-addon,html:not([data-theme="studio"]) .pp-topup{background:linear-gradient(180deg,var(--panel2),var(--panel))}
html:not([data-theme="studio"]) .pp-crypto,html:not([data-theme="studio"]) .pp-btc{background:linear-gradient(180deg,rgba(var(--gold-rgb),.2),rgba(var(--gold-rgb),.06))}
html:not([data-theme="studio"]) .pp-cake-btn{background:linear-gradient(180deg,rgba(var(--neon-rgb),.18),rgba(var(--neon-rgb),.06))}
html:not([data-theme="studio"]) .pp-card{background:linear-gradient(180deg,rgba(var(--gold-rgb),.16),rgba(var(--gold-rgb),.05))}
html:not([data-theme="studio"]) .mpc-lock{background:var(--panel2)}
html:not([data-theme="studio"]) .mpc-loopbar,html:not([data-theme="studio"]) .tl-progress{background:var(--raise)}
html:not([data-theme="studio"]) .tl-card,html:not([data-theme="studio"]) .tl-artist{background:linear-gradient(180deg,var(--panel2),var(--inset))}
html:not([data-theme="studio"]) .tl-p-banner{background:linear-gradient(125deg,var(--bg3),var(--panel))}
html:not([data-theme="studio"]) .tl-cover{background:linear-gradient(135deg,rgba(var(--hot-rgb),.4),var(--panel))}
html:not([data-theme="studio"]) #tlViewSpotlight:not(.on){background:rgba(var(--hot-rgb),.14)}
html:not([data-theme="studio"]) .ch .mute.on{background:rgba(var(--hot-rgb),.25)}
html:not([data-theme="studio"]) .founding-box{background:linear-gradient(180deg,rgba(var(--gold-rgb),.08),rgba(var(--ov),.03))}

/* Light theme: media / video stages keep a dark palette inside them */
html[data-theme="light"] :is(.tl-reels,.tl-reel,.count-in,.capture-shield){--text:#f4f4f4;--muted:#b0b0b0;--soft:#ddd;--soft2:#bbb;--hi:#fff;--gold:#f7b500;--gold2:#ffd24a;--gold3:#ffe27a;--line:#262626;--ov:255,255,255;--panel:#111;--panel2:#181818;--raise:#1a1a1a;--inset:#0b0b0b;color:var(--text)}
html[data-theme="light"] .wr-corner-logo,html[data-theme="light"] .web-rail-label+a{}
html[data-theme="light"] .wr-corner-logo{background:#0a0a0a;border-radius:8px;padding:4px;opacity:1;box-sizing:content-box}
html[data-theme="light"] .btn{text-shadow:none}
@media (max-width:480px){.app-header h1{font-size:18px}}

/* Light theme: hard-coded pastel/neon text colours that only work on dark */
html[data-theme="light"] :is(.login-card #err,.quota.empty span,.ac-list .danger,.st-rejected,.st-removed,.st-hidden,.tl-count.over,.tl-status.err,.bm-status.is-error,.bm-row-user .bm-row-name,.pw-status.auth-error,#acStatus.auth-error,#gateMsg.auth-error){color:#b00020}
html[data-theme="light"] :is(.warn,.fb-ad-label,.fb-ad-remove,.fb-ad-remove:hover,.fb-ad-copy span,.lock-note,.pw-plan .pw-trial,.st-pending,.speed-ln-direct code,.speed-ln-badge,.speed-handle-suffix,.pp-btc b,.signin-btn,.tl-ghost-pill){color:var(--gold3)}
html[data-theme="light"] :is(.st-live,.speed-ln-status.is-paid,.bm-status.is-ok){color:#0c7a36}
html[data-theme="light"] .item-badge.track{color:#a0183f}
html[data-theme="light"] .pp-cake-btn b{color:#9c1d63}
html[data-theme="light"] .pp-card b{color:#0a5f86}
html[data-theme="light"] .plans-sheet .pw-hero h2 em{color:#006f8a}
html[data-theme="light"] .mpc-lock{color:#4b3a78}
html[data-theme="light"] .tl-act.on.like{color:#c4153a}
html[data-theme="light"] :is(.mpc-pad .mpc-num,.mpc-pad kbd,.pw-legal,.bt-report,.speed-ln-rec,.pp-table td.no,.pp-btn small,.pw-toggle,#line-prev,#line-next,#line-now .rest-mark,#line-prev .rest-mark,#line-next .rest-mark,#line-now .rest-label){color:var(--muted)}
html[data-theme="light"] .bm-deal-card p{color:var(--soft)}
html[data-theme="light"] .signin-btn{background:rgba(var(--gold-rgb),.12)}
.thm-sheet .thm-close{appearance:none;border:1px solid var(--line);background:rgba(var(--ov),.06);color:var(--text);border-radius:14px;padding:12px;font:700 15px var(--body,system-ui,sans-serif);cursor:pointer;box-shadow:none;text-transform:none}
@media (max-width:420px){.app-header .thm-btn{width:30px;height:30px}.app-header .pro-pill{margin-left:2px}.app-header{gap:4px}}

/* Light / Auto(light): keep the booth stage a dark "screen" so the lyric line stays readable, same idea as camera and video stages. */
html[data-theme="light"] #stage{
  --bg:#050505;--bg2:#0a0907;--bg-rgb:5,5,5;
  --text:#f4f4f4;--muted:#9a9a9a;--soft:#ddd;--soft2:#bbb;--hi:#fff;
  --gold:#f7b500;--gold2:#ffd24a;--gold3:#ffe27a;--gold4:#c98a00;--ink:#1a1000;
  --glass:rgba(18,14,14,.72);--glass2:rgba(28,20,20,.66);
  --ov:255,255,255;--hot:#e01016;--neon:#ff1f2b;--raise:#1a1a1a;--inset:#0b0b0b;--line:#262626;
  --hot-rgb:224,16,22;--neon-rgb:255,31,43;--gold-rgb:247,181,0;
  color:#fff;
  background:linear-gradient(180deg,rgba(18,14,8,.92),#0a0907 70%,#050505);
  border-color:rgba(247,181,0,.16);
  box-shadow:0 0 0 1px rgba(255,255,255,.03) inset,0 20px 50px rgba(0,0,0,.25),0 0 36px rgba(247,181,0,.08);
}
html[data-theme="light"] #stage #line-now{color:#fff}
html[data-theme="light"] #stage .bar-num{color:#fff}
html[data-theme="light"] #stage .meter,html[data-theme="light"] #stage .bpm-read{color:var(--gold)}
html[data-theme="light"] #stage .meter{color:#9a9a9a}
html[data-theme="light"] #stage .bpm-read{color:#f7b500}
html[data-theme="light"] #stage #line-prev,
html[data-theme="light"] #stage #line-next,
html[data-theme="light"] #stage #line-now .rest-mark,
html[data-theme="light"] #stage #line-prev .rest-mark,
html[data-theme="light"] #stage #line-next .rest-mark,
html[data-theme="light"] #stage #line-now .rest-label{color:#8a8a8a}
