/* ScribbleSong Loop: the ScribbleSong look (navy, soft corner light, glass, hairlines, Bricolage Grotesque) with warmer light */
@font-face{font-family:"Bricolage Grotesque";src:url("../../fonts/bricolage-grotesque-v9-latin-regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("../../fonts/bricolage-grotesque-v9-latin-600.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("../../fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("../../fonts/bricolage-grotesque-v9-latin-800.woff2") format("woff2");font-weight:800;font-display:swap}
:root{
  color-scheme:dark;
  --bg:#0A0E1A; --panel:rgba(22,28,48,.78); --panelSolid:#151B2F; --raise:#222A47; --well:#0E1324;
  --line:rgba(255,255,255,.11); --line2:rgba(255,255,255,.2);
  --ink:#F2F5FF; --mute:#AEB7D2; --faint:#8C97B6;
  --solid:#F2F5FF; --solidInk:#0B1020; --rec:#FF5A4E; --danger:#FF7A6E;
  --font:"Bricolage Grotesque",ui-rounded,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --safeT:env(safe-area-inset-top,0px); --safeB:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:border-box}
*{touch-action:manipulation}
[hidden]{display:none !important}
html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-text-size-adjust:100%}
input,.legaldoc{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
input{font-size:16px !important}
html,body{height:100%;margin:0}
/* the page itself carries the theme's light at its top and bottom edges, so even where the glow layer doesn't reach
   (under the status bar and the home indicator on a Home Screen app) the color carries on instead of a flat band */
html{min-height:100%;background:var(--bg)}
/* the status bar is solid navy (like ScribbleSong), so the light fades in just below it instead of meeting it at a hard edge */
.orbs::after{content:'';position:absolute;left:0;right:0;top:0;height:380px;background:linear-gradient(to bottom,rgb(10,14,26) 0,rgb(10,14,26) 230px,rgba(10,14,26,.85) 260px,rgba(10,14,26,.55) 295px,rgba(10,14,26,.25) 335px,rgba(10,14,26,0) 380px);z-index:1}
.orbs::before{content:'';position:absolute;left:0;right:0;bottom:0;height:360px;background:linear-gradient(to top,rgb(10,14,26) 0,rgb(10,14,26) 210px,rgba(10,14,26,.85) 240px,rgba(10,14,26,.55) 275px,rgba(10,14,26,.25) 315px,rgba(10,14,26,0) 360px);z-index:1}
body{background:transparent;color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
a{color:inherit}
svg{display:block}
.icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:var(--ink);flex:none}
.icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icon.ghost{color:var(--mute)}
.icon:disabled{opacity:.32}
.icon[aria-pressed="true"]{background:var(--solid);color:var(--solidInk)}
.icon .q{font-weight:700;font-size:1rem;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--line2)}
:focus-visible{outline:2px solid var(--solid);outline-offset:2px}
.icon.ghost:active{background:rgba(255,255,255,.08)}
.icon svg circle[r="1.6"]{fill:currentColor;stroke:none}

/* background light: warm for Loop */
.orbs{position:fixed;top:-120px;bottom:-120px;left:-40px;right:-40px;pointer-events:none;overflow:hidden;z-index:0}   /* reaches past every edge, safe areas included */
.orbs i{position:absolute;width:75vmax;height:75vmax;border-radius:50%;filter:blur(80px)}
.orbs i:nth-child(1){left:-32vmax;top:-34vmax;background:radial-gradient(circle,hsl(var(--hA,14) 95% 62% / .5),transparent 65%);transition:background 1.2s}
.orbs i:nth-child(2){right:-38vmax;bottom:-30vmax;background:radial-gradient(circle,hsl(var(--hB,256) 90% 66% / .42),transparent 65%);transition:background 1.2s}
.orbs i:nth-child(3){left:-20vmax;bottom:-46vmax;background:radial-gradient(circle,hsl(44 95% 62% / .22),transparent 65%)}

/* screens */
.screen{position:fixed;inset:0;z-index:1;display:flex;flex-direction:column;padding:calc(var(--safeT) + 8px) 16px calc(var(--safeB) + 14px)}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px}
.brand{display:flex;align-items:center;gap:9px;font-size:1.2rem;letter-spacing:-.02em}
.brand img{border-radius:8px}
.brand .sub2{font-weight:700;color:#FFB59E}
h1,h2,h3{margin:0;letter-spacing:-.02em}
.sub{color:var(--mute);line-height:1.45;margin:8px 0 0}
.fine{color:var(--faint);font-size:.8rem;line-height:1.4;margin:10px 0 0}
.lead{color:var(--mute);font-size:.9rem;line-height:1.45;margin:0 0 14px}

/* buttons */
.big{width:100%;min-height:52px;border-radius:16px;font-weight:700;font-size:1rem;padding:0 20px;display:flex;align-items:center;justify-content:center;gap:9px}
.big svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.big.soft{background:var(--raise);color:var(--ink)}
.sheet .big{margin-top:14px}
.big.solid,.pill.solid{background:var(--solid);color:var(--solidInk)}
.big.outline,.pill.outline{border:1px solid var(--line2)}
.big.danger{background:var(--danger);color:#1A0B0B}
.big:disabled,.pill:disabled{opacity:.38;cursor:default}
.pill{min-height:40px;border-radius:99px;padding:0 16px;font-weight:700;font-size:.94rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none}
.pill svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.pill.busy{opacity:.5}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* gate and welcome */
.gate,.welcome{justify-content:center;align-items:center;overflow:auto}
.gatecard,.wcard{width:100%;max-width:420px;padding:26px 22px;border-radius:28px;background:var(--panel);border:1px solid var(--line);-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%)}
.appicon{display:block;border-radius:20px;box-shadow:0 12px 34px rgba(0,0,0,.4);margin-bottom:16px}
.gatecard h1{font-size:1.55rem;font-weight:800;line-height:1.15}
.steps{margin:18px 0 6px;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:12px}
.steps li{counter-increment:s;display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;line-height:1.4}
.steps li::before{content:counter(s);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--raise);font-weight:800;font-size:.9rem}
.steps b{font-weight:700}
.gate .big{margin-top:16px}
.wcard h1{font-size:2rem;font-weight:800;line-height:1.08}
.wcard h1 span{font-weight:400;color:#FFC4B2}
.consent{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;margin:22px 0 16px;color:var(--mute);line-height:1.45;font-size:.92rem}
.consent input{width:22px;height:22px;margin:1px 0 0;accent-color:#fff}
.consent a{color:var(--ink);text-underline-offset:3px}

/* your loops */
.projects{overflow:auto;-webkit-overflow-scrolling:touch}
.nudge{margin:10px 0 0;padding:14px;border-radius:20px;background:rgba(255,200,92,.1);border:1px solid rgba(255,200,92,.35)}
.nudge p{margin:0 0 10px;line-height:1.4}
.nudge b{display:block}
.nudge span{color:var(--mute);font-size:.9rem}
.nbtns{display:flex;gap:8px;justify-content:flex-end}
.newloop{display:flex;align-items:center;gap:14px;width:100%;margin:14px 0 0;padding:16px;border-radius:22px;text-align:left;background:linear-gradient(135deg,rgba(255,138,92,.28),rgba(143,107,255,.22));border:1px solid var(--line2)}
.newloop .plus{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:var(--solid);color:var(--solidInk);font-size:1.8rem;font-weight:400;line-height:1}
.newloop b{display:block;font-size:1.1rem}
.newloop small{color:var(--mute);font-size:.86rem}
.ptitle{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin:24px 4px 8px}
.plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.plist li{display:flex;align-items:center;gap:6px;border-radius:18px;background:var(--panel);border:1px solid var(--line)}
.plist .open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:12px 4px 12px 12px;text-align:left}
.swatch{flex:none;width:42px;height:42px;border-radius:13px;background:var(--raise);display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:7px}
.swatch i{border-radius:50%;background:rgba(255,255,255,.12)}
.ptext{min-width:0}
.ptext b{display:flex;align-items:center;gap:7px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptext small{color:var(--faint);font-size:.8rem}
.dot{flex:none;width:8px;height:8px;border-radius:50%;background:#FFC85C;box-shadow:0 0 0 3px rgba(255,200,92,.18)}
.plist .icon{flex:none;margin-right:4px}
.pfoot{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:22px 0 8px}

/* studio: the same rows as ScribbleSong (header, Feeling and Beat, part and tools, canvas, cards, dock) */
.studio{gap:10px;padding-top:calc(var(--safeT) + 10px);padding-bottom:calc(var(--safeB) + 12px)}
.studio .top{min-height:44px;gap:4px}
.studio .top .icon:first-child{margin-left:-10px}
.titlebtn{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.18rem;letter-spacing:-.035em;height:44px;text-align:left}
.titlebtn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topact{display:flex;gap:6px;align-items:center;flex:none}
.songbar{display:grid;grid-template-columns:1.4fr 1fr;gap:8px}
@media (max-width:360px){.card .bpm{display:none}.songbar{grid-template-columns:1.7fr 1fr}.card{padding-right:30px}.card::after{right:12px}}
.card,.chip-btn,.snd,.reccard{-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%)}
.card{text-align:left;padding:10px 34px 11px 14px;border-radius:16px;background:var(--panel);border:1px solid var(--line);display:flex;flex-direction:column;gap:2px;min-width:0;position:relative}
.card::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border-right:1.7px solid var(--faint);border-bottom:1.7px solid var(--faint);transform:translateY(-70%) rotate(45deg)}
.card .lbl{font-size:.66rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--faint)}
.card .val{font-size:1.06rem;font-weight:600;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.partbar{display:flex;justify-content:space-between;gap:8px}
.pbright{display:flex;gap:6px;min-width:0}
.chip-btn{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 10px 0 12px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:.86rem;min-width:0;white-space:nowrap}
.chip-btn b{font-weight:700}
.chip-btn::before{content:'';position:absolute;inset:-4px 0}   /* 44px to touch, 36px to see */
.chip-btn span:not(.rhy){color:var(--mute)}
.chip-btn em{font-style:normal;color:var(--faint);font-size:.78rem}
.chip-btn em:empty,.chip-btn span:empty{display:none}
.chip-btn svg{width:15px;height:15px;fill:none;stroke:var(--faint);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.chip-btn .pdot{width:7px;height:7px;border-radius:50%;background:hsl(var(--hA,14) 90% 70%);box-shadow:0 0 10px hsl(var(--hA,14) 90% 60%);flex:none}
.fxbtn{padding:0 12px 0 10px}
.fxbtn svg{stroke:currentColor;width:16px;height:16px}
.fxbtn[aria-pressed="true"]{background:var(--solid);color:var(--solidInk);border-color:var(--solid)}
.rhy{display:inline-flex;align-items:center;height:14px}
.rhy svg{width:30px !important;height:14px !important;stroke:none !important;fill:currentColor}
.fxmode .rhy svg{fill:none !important;stroke:currentColor !important;stroke-width:3 !important}
@media (max-width:400px){#partBars,#partCount{display:none}}
@media (max-width:350px){.fxbtn b{display:none}.fxbtn{padding:0 11px}}
.stage{position:relative;flex:1;min-height:200px}
.stagehint{position:absolute;left:0;right:0;bottom:10px;margin:0;padding:0 16px;text-align:center;color:var(--faint);font-size:.8rem;line-height:1.35;pointer-events:none}
/* under the canvas: hold-to-record first, then your sound cards (ScribbleSong's layer cards) */
.soundrow{display:flex;gap:7px;min-width:0}
.sndlist{flex:1;min-width:0;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;margin-right:-16px;padding-right:16px}
.sndlist::-webkit-scrollbar{display:none}
.snd,.reccard{position:relative;flex:0 0 max(84px,calc((100vw - 32px - 21px) / 4));max-width:162px;min-height:58px;padding:9px 8px 9px 12px;border-radius:15px;background:var(--panel);border:1px solid var(--line);text-align:left;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;overflow:hidden;scroll-snap-align:start;transition:transform .12s}
.snd::before{content:"";position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:0 3px 3px 0;background:var(--c)}
.snd .ic{position:absolute;top:8px;right:7px;width:15px;height:15px;color:var(--c);opacity:.85}
.snd .ic svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.snd .nm,.reccard .nm{font-size:.88rem;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.snd .sd,.reccard .sd{font-size:.72rem;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.snd .meter{position:absolute;left:12px;right:8px;bottom:6px;height:2px;border-radius:2px;background:var(--line)}
.snd .meter i{display:block;height:100%;border-radius:2px;background:var(--c);opacity:.6}
.snd.focus{background:color-mix(in oklab,var(--c) 16%,var(--panelSolid));border-color:color-mix(in oklab,var(--c) 60%,transparent)}
.snd.muted .nm,.snd.muted .sd{opacity:.45}
.snd.ping{transform:scale(.95)}
.snd.fresh{animation:pop .5s ease}
@keyframes pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.04);opacity:1}100%{transform:scale(1)}}
.snd.addsnd{background:transparent;border:1.5px dashed var(--line2);-webkit-backdrop-filter:none;backdrop-filter:none}
.snd.addsnd .nm{color:var(--mute)}
.snd.addsnd .sd{color:var(--faint)}
.reccard{flex:none;max-width:none;padding-left:34px;padding-right:12px;background:linear-gradient(160deg,#ff8a74,var(--rec));border-color:transparent;color:#fff;box-shadow:0 8px 24px rgba(255,90,78,.28),0 0 0 calc(var(--lvl,0) * 8px) rgba(255,90,78,.25);transition:box-shadow .06s linear,transform .15s,background .2s;touch-action:none}
.reccard .sd{color:rgba(255,255,255,.82)}
.recdot{position:absolute;left:12px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.28)}
.recbar{position:absolute;left:12px;right:10px;bottom:6px;height:3px;border-radius:3px;background:rgba(255,255,255,.25);overflow:hidden}
.recbar i{display:block;width:0;height:100%;background:#fff}
.reccard.opening{background:linear-gradient(160deg,#c9786a,#a8453c);transform:scale(.97)}
.reccard.live{transform:scale(1.03)}
.reccard.live .recdot{border-radius:4px;animation:recpulse 1s ease-in-out infinite}
@keyframes recpulse{50%{opacity:.55}}
.reccard.busy{opacity:.6}
.soundrow.first .reccard{flex:1;max-width:none}
.soundrow.first .sndlist{flex:0 0 auto;margin-right:0;padding-right:0;overflow:visible}
.soundrow.first .addsnd{flex-basis:max(84px,calc((100vw - 32px - 21px) / 4))}
.snd .ic{display:none}
@media (min-width:700px){.snd{flex-basis:132px}.soundrow.first .addsnd{flex-basis:132px}.sndlist{margin-right:0;padding-right:0}}
@media (prefers-reduced-motion:reduce){.snd,.reccard{transition:none}.snd.fresh,.reccard.live .recdot{animation:none}}
.dock{display:grid;grid-template-columns:1fr 1fr auto 1fr 1fr;align-items:center;justify-items:center;padding:2px 0}
.play{width:64px;height:64px;border-radius:50%;background:var(--solid);color:var(--solidInk);display:grid;place-items:center;transition:transform .1s,box-shadow .3s;box-shadow:0 0 0 6px rgba(255,255,255,.06),0 10px 30px rgba(0,0,0,.4)}
.play:active{transform:scale(.94)}
.play svg{width:26px;height:26px;fill:currentColor}
.play .i-stop,.play.on .i-play{display:none}
.play.on .i-stop{display:block}
.play.on{box-shadow:0 0 0 6px hsl(var(--hA,14) 90% 60% / .25),0 0 36px hsl(var(--hA,14) 90% 60% / .45)}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.empty{position:absolute;inset:38px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0 34px;text-align:center;pointer-events:none}
.empty b{font-size:1.2rem;font-weight:600;letter-spacing:-.02em}
.empty span{font-size:.88rem;color:var(--mute);line-height:1.45;max-width:300px}
.trimview{position:relative;height:190px;border-radius:16px;background:var(--well);border:1px solid var(--line);touch-action:none}
#startCv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#startFollow[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
#pickCv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.pickview{height:120px}
.importbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:2px 0 14px}
.importbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#trimCv{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
.nudges{display:flex;justify-content:space-between;gap:10px;margin:12px 0 4px}
.nudges div{display:flex;align-items:center;gap:6px}
.nudges span{color:var(--mute);font-size:.86rem;font-weight:600;margin-right:2px}
.nb{display:grid;place-items:center;width:44px;height:40px;border-radius:12px;background:var(--raise)}
.nb svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mini{font-size:.68rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);margin:22px 0 10px}
.seg.wide{display:grid;grid-template-columns:repeat(3,1fr);width:100%}
.row3{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin-top:16px}

/* sheets */
.scrim{position:fixed;inset:0;z-index:20;background:rgba(5,8,16,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-width:560px;margin:0 auto;max-height:86vh;overflow:auto;padding:12px 18px calc(var(--safeB) + 18px);border-radius:26px 26px 0 0;background:var(--panelSolid);border:1px solid var(--line);border-bottom:0;box-shadow:0 -20px 60px rgba(0,0,0,.45)}
.sheet header{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0 -6px 6px 0}
.sheet h2{font-size:1.32rem;font-weight:700;letter-spacing:-.035em}
.menu{display:flex;flex-direction:column;gap:6px}
.menu button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;border-radius:16px;background:var(--raise);text-align:left}
.menu small{color:var(--mute);font-size:.84rem}
.menu .danger b{color:var(--danger)}
.field{display:block;width:100%;min-height:52px;margin:0 0 12px;padding:0 16px;border-radius:16px;border:1px solid var(--line2);background:var(--well);color:var(--ink);font:inherit}
.about h3{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin:18px 0 6px}
.about h3:first-child{margin-top:0}
.about p{line-height:1.5;color:#DCE1F2;margin:0 0 8px}
.about a{text-underline-offset:3px}
.legallinks{display:flex;gap:18px}

/* legal pages (same as ScribbleSong) */
.legalview{position:fixed;inset:0;z-index:70;background:var(--bg);overflow:auto;padding:calc(14px + var(--safeT)) 18px calc(32px + var(--safeB))}
.legalwrap{max-width:680px;margin:0 auto}
.legalwrap header{display:flex;align-items:center;gap:12px}
.seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--well);border:1px solid var(--line);gap:2px;flex:none}
.seg button{min-height:36px;min-width:44px;padding:0 13px;border-radius:999px;font-size:.86rem;font-weight:700;color:var(--mute)}
.seg button[aria-pressed="true"]{background:var(--raise);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2)}
.legaldoc h1{font-size:clamp(1.8rem,8vw,2.3rem);font-weight:700;letter-spacing:-.035em;margin:24px 0 4px}
.legaldoc .eff{color:var(--mute);font-size:.9rem;margin:0 0 18px}
.legaldoc .summary{background:var(--panelSolid);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:0 0 8px;line-height:1.55}
.legaldoc .summary b{display:block;margin-bottom:4px}
.legaldoc h2{font-size:1.1rem;font-weight:700;letter-spacing:-.02em;margin:26px 0 8px}
.legaldoc p,.legaldoc li{line-height:1.65;color:#DCE1F2}
.legaldoc p{margin:0 0 12px}
.legaldoc ul{margin:0 0 12px;padding-left:1.2em}
.legaldoc li{margin:0 0 6px}
.legaldoc a{color:inherit;text-underline-offset:3px}
.legaldoc .caps{text-transform:uppercase;font-size:.84rem;letter-spacing:.02em}

/* update bar and toast */
.updatebar{position:fixed;left:12px;right:12px;top:calc(var(--safeT) + 8px);z-index:60;display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:520px;margin:0 auto;padding:10px 10px 10px 16px;border-radius:18px;background:var(--panelSolid);border:1px solid var(--line2);box-shadow:0 14px 40px rgba(0,0,0,.45);font-weight:600}
.toast{position:fixed;left:50%;top:calc(var(--safeT) + 58px);pointer-events:none;transform:translateX(-50%);z-index:80;max-width:min(92vw,420px);margin:0;padding:12px 16px;border-radius:16px;background:var(--solid);color:var(--solidInk);font-weight:600;font-size:.92rem;text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.45)}
@media (min-width:700px){ .screen{padding-left:max(16px,calc(50% - 300px));padding-right:max(16px,calc(50% - 300px))} }

.feelgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.feel{position:relative;display:flex;flex-direction:column;gap:3px;min-height:70px;padding:12px;border-radius:16px;text-align:left;overflow:hidden;border:1px solid var(--line);background:radial-gradient(circle at 10% 0%,hsl(var(--a) 85% 55% / .35),transparent 60%),radial-gradient(circle at 100% 100%,hsl(var(--b) 85% 55% / .3),transparent 60%),var(--raise)}
.feel b{font-size:.98rem}
.feel small{color:var(--mute);font-size:.74rem}
.feel[aria-pressed="true"]{border-color:#fff;box-shadow:inset 0 0 0 1px #fff}
.rgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rgrid button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border-radius:16px;background:var(--raise);border:1px solid transparent;text-align:left}
.rgrid svg{width:60px;height:16px;fill:currentColor;color:var(--ink)}
.rgrid small{color:var(--mute);font-size:.78rem}
.rgrid button[aria-pressed="true"]{border-color:#fff}

/* v0.4: names under the sounds, My sounds, types, the beat, holding a line */
.beatgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.beatgrid button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:48px;padding:10px;border-radius:14px;background:var(--raise);border:1px solid transparent;text-align:left;font-size:.86rem}
.beatgrid small{color:var(--mute);font-size:.72rem}
.beatgrid button[aria-pressed="true"]{border-color:#fff}
.typegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.typegrid button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:14px;background:var(--raise);border:1px solid transparent;font-size:.76rem;font-weight:700;color:var(--mute)}
.typegrid svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.typegrid button[aria-pressed="true"]{border-color:#fff;color:var(--ink)}
label.mini{display:block}
.liblist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:52vh;overflow:auto}
.liblist li{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:16px;background:var(--raise)}
.ltype{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08)}
.ltype svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ltext{flex:1;min-width:0;display:flex;flex-direction:column}
.ltext b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ltext small{color:var(--faint);font-size:.76rem}
.lplay{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1)}
.lplay svg{width:18px;height:18px;fill:currentColor}
.linebar{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;display:flex;align-items:center;gap:2px;padding:5px;border-radius:18px;background:rgba(20,26,46,.94);border:1px solid var(--line2);box-shadow:0 14px 40px rgba(0,0,0,.45)}
.linebar .rhythms{flex:1;display:flex;gap:2px;min-width:0}
.linebar .rhythms button{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:6px 0 5px;border-radius:12px;font-size:.62rem;font-weight:700;color:var(--mute)}
.linebar .rhythms svg{width:30px;height:9px;fill:currentColor}
.linebar .rhythms button[aria-pressed="true"]{background:color-mix(in srgb,var(--c) 30%,transparent);color:var(--ink)}
.linebar .icon{flex:none;width:38px;height:42px}
.linebar:has(#lineStart:not([hidden])) .icon{width:33px}   /* with the start point button there are three: a little narrower, so the rhythm names still fit */
.linebar .rhythms button{letter-spacing:-.01em}

/* My sounds: search and type filter once the list grows */
.libtools{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.libtools .field{margin:0;min-height:46px}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;min-height:34px;padding:0 12px;border-radius:99px;background:var(--raise);font-size:.82rem;font-weight:700;color:var(--mute);border:1px solid transparent}
.chips button[aria-pressed="true"]{background:var(--solid);color:var(--solidInk)}

.slider{width:100%;accent-color:#fff;margin:2px 0 10px}
label.mini b{color:var(--ink);font-weight:700;letter-spacing:0;text-transform:none;margin-left:6px}
.mixlist{display:flex;flex-direction:column;gap:6px}
.mixrow{display:grid;grid-template-columns:minmax(0,1fr) 1.35fr auto;align-items:center;gap:12px;padding:6px 0}
.mixrow .who{display:flex;flex-direction:column;min-width:0;padding-left:16px;position:relative}
.mixrow .who::before{content:'';position:absolute;left:0;top:7px;width:9px;height:9px;border-radius:50%;background:var(--c)}
.mixrow .who b{font-size:1.02rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mixrow .who small{color:var(--mute);font-size:.82rem}
.mixrow input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:linear-gradient(to right,var(--c) var(--fill,66%),rgba(255,255,255,.12) var(--fill,66%));outline:none}
.mixrow input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:22px;border-radius:99px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.mixrow input[type=range]::-moz-range-thumb{width:30px;height:22px;border:0;border-radius:99px;background:#fff}
.mutebtn{min-height:40px;padding:0 14px;border-radius:99px;border:1px solid var(--line2);font-weight:700;font-size:.9rem;color:var(--mute)}
.mutebtn[aria-pressed="true"]{background:var(--solid);color:var(--solidInk);border-color:var(--solid)}
.incllist{display:flex;flex-direction:column;gap:6px}
.incl{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:var(--raise)}
.incl input{width:22px;height:22px;accent-color:#fff;margin:0}
.incl b{font-weight:700}
.qseg button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 0}
.seg.two{display:grid;grid-template-columns:1fr 1fr;width:100%}
.qseg small{font-size:.72rem;font-weight:600;opacity:.75}
.mixicon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--c);color:#0B1020}
.mixicon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mixname{font-weight:700;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* song parts */
.dangertext{color:var(--danger)}
.stepper{display:inline-flex;align-items:center;border-radius:999px;background:var(--well);border:1px solid var(--line);flex:none}
.stepper button{width:42px;height:38px;font-size:1.2rem;color:var(--ink)}
.stepper button:disabled{opacity:.3}
.stepper output{min-width:34px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.timeline{display:flex;gap:3px;height:42px;border-radius:12px;overflow:hidden}
.timeline span{display:grid;place-items:center;min-width:0;font-size:.68rem;font-weight:700;color:var(--solidInk);background:hsl(var(--hA) 80% 72%);white-space:nowrap;overflow:hidden}
.timeline span[data-k="bridge"]{background:hsl(var(--hB) 80% 72%)}
.timeline span[data-k="intro"],.timeline span[data-k="outro"]{background:#C9D1EA}
.tlmeta{font-size:.76rem;color:var(--mute);margin:6px 0 0}
.set{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 4px;margin-top:10px;border-top:1px solid var(--line)}
.set > span{font-weight:700;font-size:.95rem}
.setname{font-style:normal}
.switch{width:52px;height:30px;border-radius:99px;background:var(--raise);position:relative;flex:none;box-shadow:inset 0 0 0 1px var(--line2)}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--mute);transition:transform .15s}
.switch[aria-pressed="true"]{background:var(--solid)}
.switch[aria-pressed="true"]::after{transform:translateX(22px);background:var(--solidInk)}
@media (prefers-reduced-motion:reduce){.switch::after{transition:none}}
.set small{display:block;color:var(--mute);font-weight:400;font-size:.78rem;margin-top:2px;line-height:1.35}
.partlist{display:flex;flex-direction:column;gap:7px}
.prow{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;border-radius:16px;background:var(--well);border:1px solid var(--line);text-align:left;width:100%}
.prow .pi{flex:1;min-width:0}
.prow b{display:block;font-size:.98rem}
.prow small{display:block;font-size:.76rem;color:var(--mute);margin-top:1px}
.prow .tag{font-size:.72rem;font-weight:700;color:var(--faint);white-space:nowrap}
.prow.cur{border-color:var(--solid);box-shadow:inset 0 0 0 1px var(--solid)}
.prow.cur .tag{color:var(--ink)}
.prow.missing{border-style:dashed;background:transparent}
.prow.missing b{color:var(--mute)}
.prow .adds button{min-height:36px;padding:0 14px;border-radius:999px;background:var(--solid);color:var(--solidInk);font-size:.8rem;font-weight:700}
.tips{margin:4px 0 0;padding:0;list-style:none;counter-reset:t;display:flex;flex-direction:column}
.tips li{counter-increment:t;display:grid;grid-template-columns:28px 1fr;column-gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:.9rem;line-height:1.45}
.tips li:first-child{border-top:0}
.tips li::before{content:counter(t);grid-row:span 2;width:24px;height:24px;border-radius:50%;background:var(--raise);display:grid;place-items:center;font-size:.75rem;font-weight:700;margin-top:1px}
.tips li span{color:var(--mute)}
.vfxchips{flex-wrap:wrap;overflow:visible}
.vfxchips button{min-height:40px;padding:0 12px}
.micic{display:none;position:absolute;left:10px;top:50%;width:18px;height:18px;margin-top:-9px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* the mic isn't on yet: not the red card, so nobody gets ready to record and meets a pop-up instead */
.reccard.off,.reccard.denied,.reccard.asking{background:var(--panel);border:1.5px solid rgba(255,110,96,.65);color:var(--ink);box-shadow:none}
.reccard.off .sd,.reccard.denied .sd,.reccard.asking .sd{color:var(--mute)}
.reccard.off .recdot,.reccard.denied .recdot,.reccard.asking .recdot,.reccard.off .recbar,.reccard.denied .recbar,.reccard.asking .recbar{display:none}
.reccard.off .micic,.reccard.denied .micic,.reccard.asking .micic{display:block;color:#FF8A74}
.reccard.denied{border-color:var(--line2)}
.reccard.denied .micic{color:var(--mute)}
.reccard.asking{animation:askpulse 1.2s ease-in-out infinite}
@keyframes askpulse{50%{border-color:rgba(255,110,96,.25)}}
@media (prefers-reduced-motion:reduce){.reccard.asking{animation:none}}
@media (max-width:380px){.vfxchips{gap:5px}.vfxchips button{padding:0 10px}}
.kitslots{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.kitrow{display:flex;flex-direction:column;gap:6px}
.kitname b{font-size:.92rem}
.kitname small{margin-left:8px;color:var(--mute);font-size:.78rem}
.kitchips button{display:inline-flex;align-items:center;gap:7px;min-height:40px}
.kitchips button i{width:8px;height:8px;border-radius:50%;background:var(--c,transparent);flex:none}
.kitchips button:last-child i{display:none}
#kitBits{margin-bottom:14px}
#kitBits .set{margin-top:4px}

/* sing along: the clap-along */
.singtips{margin:4px 0 16px}
.clapmsg{font-size:1.25rem;font-weight:700;text-align:center;margin:18px 0 16px}
.clapdots{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.clapdots i{width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.12)}
.clapdots i:nth-child(-n+2){background:rgba(255,255,255,.06);outline:1.5px dashed rgba(255,255,255,.18);outline-offset:-1.5px}
.clapdots i.on{background:var(--rec);box-shadow:0 0 14px rgba(255,90,78,.5);outline:0}

/* which workbench you're in: a back arrow to Home, its icon and name, and the song's name */
.backhome{margin-left:-10px;flex:none}
.wbtitle,.titlebtn{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.wbicon{width:30px;height:30px;border-radius:8px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.wbtext{display:flex;flex-direction:column;min-width:0;line-height:1.15;text-align:left}
.wbtext .where{font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#FFB59E}
.wbtext > span{font-size:1.05rem;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.titlebtn{font-size:inherit;height:auto;min-height:44px}
