/* Stage Focus: the selected B composition, shared by every web workspace surface. */
:root{--radius:16px;--sheet-radius:28px;--font:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif}
:root[data-theme=dark]{--bg:#111512;--paper:#1c221d;--ink:#f4f3ea;--muted:#afb6a9;--line:#39423a;--soft:#242d26;--selected:#364625;--green:#d7ff3f;--purple:#c2a2df;--focus:#d7ff3f}
body{font-family:var(--font);color:var(--ink);background:var(--bg)}::selection{background:#d7ff3f;color:#171b18}input,select{caret-color:var(--ink)}
html:root .sidebar{position:sticky;inset:0 0 auto;width:100%;height:74px;display:flex;flex-direction:row;align-items:center;gap:30px;padding:0 32px;border-right:0;border-bottom:1px solid var(--line);background:var(--bg);z-index:15}
.sidebar .brand{order:0;--wordmark-width:86px}.sidebar nav{order:1;flex-direction:row;gap:8px}.sidebar .sidebar-add{order:2;margin:0 0 0 auto;width:36px;height:36px;padding:0;background:var(--soft)}.sidebar .sidebar-add-label{display:none}.sidebar .nav-label,.sidebar .sidebar-lower{display:none}
html .sidebar .nav-item{width:auto;min-height:40px;padding:7px 12px;border-radius:0;font-size:13px;gap:7px;box-shadow:none}.sidebar .nav-item>span[data-icon]{display:none}.sidebar .nav-item .nav-active-dot{display:none}.sidebar .nav-item .nav-count{font-size:10px;margin:0 0 0 4px}
html .sidebar .nav-item.active{background:none;color:var(--ink);border-bottom:1px solid var(--lime);font-weight:550;box-shadow:none}.sidebar .nav-item:hover{background:var(--soft)}.stage-actions{order:3;display:flex;align-items:center;gap:10px}.stage-actions .local-status,.stage-actions .language-control{display:none}.stage-actions .preferences-controls{gap:4px}.stage-actions .theme-control{background:var(--soft)}.stage-actions .top-avatar{background:var(--soft);border:0;color:var(--ink);width:34px;height:34px}.stage-actions #keyboard{width:32px;height:32px}
.app-shell{margin:0}.app-shell>.topbar{display:none}main{padding:18px 32px 120px;max-width:1440px;margin:auto}.mobile-collection-nav{display:none!important}.page-heading{margin:12px 0 24px}.page-heading h1{font-size:34px}.eyebrow,.page-footer{display:none}.stage-has-song .page-heading{display:none}.stage-has-song .project-header{padding:4px 0 18px;background:none;border:0;min-height:86px;gap:14px}.project-header .cover-art{width:56px;height:56px}.project-title .title-line{gap:10px}.project-title h2{font-size:21px;letter-spacing:-.03em;line-height:1.2}.project-title p{font-size:11px}.project-header .stage-export{margin-left:10px;background:var(--lime);color:#171b18;border:1px solid transparent;border-radius:9px;font-size:14px;font-weight:650;min-height:44px;height:44px;flex-shrink:0}.project-header #project-menu{margin-left:auto}.project-header .demo-badge{font-size:9px}
.stage-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:38px;align-items:start}.stage-focus{height:340px;border-radius:16px;background:var(--paper);padding:18px 22px;display:flex;flex-direction:column;min-width:0}.stage-focus-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;flex-shrink:0}.stage-switch{display:flex;gap:3px;border:1px solid var(--line);padding:3px;border-radius:9px;background:var(--bg)}.stage-switch button{display:flex;gap:7px;align-items:center;border:0;border-radius:6px;background:none;color:var(--muted);font-size:12px;min-height:36px;padding:7px 12px;white-space:nowrap}.stage-switch button svg{width:15px;height:15px}.stage-switch button[aria-selected=true]{background:var(--soft);color:var(--ink);font-weight:650}.stage-switch button:hover{background:var(--soft);color:var(--ink)}#stage-position{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#stage-beats,#stage-sections{display:flex;flex-direction:column;flex:1;min-height:0}.stage-current-label{font-size:11px;color:var(--muted)}.stage-current-label:before{content:"";display:inline-block;width:6px;height:6px;background:var(--lime);border-radius:50%;margin-right:8px}.stage-focus #stage-current{font-size:70px;font-weight:500;letter-spacing:-.04em;line-height:1.1;margin:5px 0 14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stage-focus #beat-counter{display:flex;gap:10px;flex-wrap:wrap;max-height:110px;overflow:auto}.stage-focus #beat-counter i{display:grid;place-items:center;flex:1;max-width:114px;min-width:37px;height:52px;border-radius:9px;background:none;border:1px solid var(--line);color:var(--ink);font-size:27px;font-weight:400;font-style:normal;box-shadow:none}.stage-focus #beat-counter i.on{background:var(--lime);color:#171b18;border-color:var(--lime)}.stage-next{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.stage-next>div{display:flex;align-items:baseline;gap:14px}.stage-next>div>span,.stage-next #stage-until{font-size:11px;color:var(--muted)}.stage-next #stage-next{font-size:22px;font-weight:500}.stage-next #stage-until{margin-left:auto;font-variant-numeric:tabular-nums}.stage-next>.icon-button{width:32px;height:32px}.stage-section-scroll{overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#5b6958 var(--paper);overscroll-behavior:contain}.stage-section-head{position:sticky;top:0;display:grid;grid-template-columns:minmax(0,1fr) 80px 105px 36px;background:var(--paper);border-bottom:1px solid var(--line);padding:7px 0 7px 38px;font-size:11px;color:var(--muted);z-index:1}.stage-section-row{display:flex;align-items:center;min-height:44px;border-bottom:1px solid var(--line)}.stage-seek{flex:1;min-width:0;display:grid;grid-template-columns:26px minmax(0,1fr) 80px 105px;text-align:left;align-items:center;gap:0;background:none;border:0;color:inherit;padding:0 8px;min-height:44px;border-radius:0}.stage-seek strong{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.stage-seek>span,.stage-seek>small{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.stage-seek .stage-section-number{font-size:10px}.stage-section-row>.icon-button{width:36px;height:36px;background:none;color:inherit}.stage-section-row.is-current{background:var(--lime);color:#171b18}.stage-section-row.is-current :is(.stage-seek>span,.stage-seek>small){color:#394510}.stage-section-row:hover:not(.is-current){background:var(--soft)}#stage-add-section{font-size:11px;align-self:flex-end;padding-top:8px;min-height:26px}.stage-no-sections{font-size:13px;color:var(--muted);padding:20px 0}
.stage-inspector{min-width:0}.stage-inspector .song-properties{display:flex;gap:23px;padding:0;margin:0 0 17px;border:0;background:none;align-items:start}.stage-inspector .song-properties .property{padding:0;border:0;min-width:0}.stage-inspector .property:nth-child(n+3),.stage-inspector .analysis-status{display:none}.stage-inspector .property>span{font-size:11px;text-transform:none;letter-spacing:0;margin-bottom:8px}.stage-inspector .property input{font-family:var(--font);font-size:32px;font-weight:650;width:76px}.stage-inspector .property select{font-size:13px;min-height:36px;min-width:80px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:6px}.stage-inspector .property .verified{display:none}.stage-inspector .property b{font-size:10px}.stage-inspector .sound-panel{padding:0;border:0;border-radius:0;background:none;box-shadow:none}.stage-inspector :is(.panel-heading,.settings-tabs,#sound-options,.voice-options,#click-settings>.setting-label,#cue-settings>.setting-label){display:none}.stage-field{display:block;margin-bottom:16px}.stage-field>span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.stage-field select{display:block;width:100%;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:6px 10px;font-size:13px}.stage-inspector .toggle-row{margin:12px 0}.stage-inspector .toggle-row strong{font-size:11px}.stage-inspector .toggle-row small{display:none}.stage-inspector .setting-row{font-size:11px;margin:13px 0}.stage-inspector .setting-row select{font-size:12px;min-height:32px;padding:5px 9px;background:var(--paper)}.stage-inspector .cue-preview{padding:4px 8px;margin:12px 0;background:var(--soft);color:var(--ink)}.stage-inspector .cue-preview strong{font-size:10px}.stage-inspector .cue-note{font-size:10px;margin:12px 0;line-height:1.5}.stage-inspector #cue-settings{padding-top:14px;border-top:1px solid var(--line)}
html:root .project-card{margin-top:22px;padding:14px 16px 8px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:none;overflow:hidden}.timeline-toolbar{padding:0 0 12px}.timeline-toolbar strong{font-size:12px}.timeline-sub,.timeline-footer{display:none}.timeline-actions{gap:9px}.timeline-actions .text-button{font-size:10px}.zoom-control{font-size:10px}.timeline-container{margin:0}.timeline-labels{display:none}.timeline-viewport{width:100%;margin:0}.ruler{height:23px}.section-markers{height:25px}.wave-track{height:60px}.click-track{height:22px}.cue-track{height:26px}.stage-secondary{margin-top:20px}.stage-secondary .arrangement{display:none}.stage-secondary .tracking-panel{margin-bottom:18px}.stage-secondary #drop-zone{padding:15px;min-height:80px}.stage-secondary #drop-zone strong{font-size:14px}.stage-secondary #drop-zone p{font-size:11px}.stage-mixer{margin:18px 0 8px;border-top:1px solid var(--line);padding-top:10px;max-width:650px}.stage-mixer summary{font-size:13px;padding:8px 0;cursor:pointer}.stage-mixer .mixer{padding:8px 0;border:0;margin:0}.stage-mixer .mixer-row{font-size:12px}.stage-mixer .mixer-label{width:60px}.stage-mixer .mix-button{width:32px;height:32px;font-size:10px}.studio-grid{display:none}
html:root .stage-has-song .transport{position:fixed;left:32px;right:32px;bottom:0;z-index:12;padding:13px 0;min-height:84px;border-top:1px solid var(--line);border-radius:0;background:var(--bg);box-shadow:none;justify-content:center}.stage-has-song .transport-left{width:100%;justify-content:center;position:relative;gap:14px}.stage-has-song .time-display{position:absolute;left:0;font-size:11px}.stage-has-song .time-display strong{font-size:23px;color:var(--ink)}.stage-has-song #play{height:56px;width:56px}.stage-has-song .shortcut{display:none}.stage-mobile-nav{display:none}.collection-heading h1{font-size:34px}.collection-heading .eyebrow{display:none}html:root :is(.library-row,.setlist-card,.profile-card,.collection-empty){box-shadow:none}.collection-toolbar{border-color:var(--line)}html:root :is(.modal-input,.collection-search input){background:var(--paper);color:var(--ink)}.language-control,#profile-language,#profile-language+label{pointer-events:none}#profile-language{opacity:.7}
@media(max-width:1000px) and (min-width:701px){html:root .sidebar{padding-inline:22px;gap:18px}.sidebar .brand{--wordmark-width:86px}.sidebar .brand .brand-wordmark{display:block}.stage-layout{grid-template-columns:minmax(0,1fr) 226px;gap:24px}main{padding-inline:22px}.stage-focus{padding:16px 18px}.stage-focus-top{gap:10px}.stage-focus #stage-current{font-size:60px}.stage-section-head{grid-template-columns:1fr 65px 36px}.stage-section-head>span:nth-child(3){display:none}.stage-seek{grid-template-columns:25px minmax(0,1fr) 65px}.stage-seek>small{display:none}.stage-actions .preferences-controls{display:none}}
@media(max-width:700px){html:root .sidebar{display:flex!important;height:60px;padding:0 18px;gap:10px;position:sticky}.sidebar .brand{--wordmark-width:86px}.sidebar .brand .brand-wordmark{display:block}.sidebar nav{display:none}.sidebar .sidebar-add{min-height:40px;width:40px;height:40px}.stage-actions{gap:2px}.stage-actions .preferences-controls,.stage-actions #keyboard{display:none}.stage-actions #profile-top{width:32px;height:32px}.app-shell{margin:0}main{padding:14px 18px 170px}.page-heading h1{font-size:30px}.stage-has-song .project-header{min-height:76px;padding:0 0 18px;gap:10px;flex-wrap:nowrap}.project-header .cover-art{width:40px;height:40px}.project-header .project-title{min-width:0;flex:1}.project-title h2{font-size:18px;line-height:1.15}.project-title .demo-badge{display:none}.project-title p{font-size:10px}.project-header #project-menu{width:28px;height:44px;padding:0}.project-header .stage-export{width:auto;min-height:44px;height:44px;padding:0 12px;margin:0}.stage-export span{display:inline}.stage-layout{display:flex;flex-direction:column;gap:23px}.stage-focus{height:384px;width:100%;padding:14px 16px 17px}.stage-focus-top{margin-bottom:14px}.stage-switch{display:grid;width:100%;grid-template-columns:1fr 1fr}.stage-switch button{min-height:44px;padding:7px 5px;justify-content:center;font-size:12px}.stage-switch button svg{width:14px}.stage-focus #stage-position{margin-left:auto}.stage-current-label{margin-top:-26px;min-height:14px;max-width:135px}.stage-focus #stage-current{font-size:62px;line-height:1.1;margin:12px 0 17px}.stage-focus #beat-counter{gap:7px}.stage-focus #beat-counter i{min-width:32px;height:48px;font-size:24px}.stage-next{padding-top:13px}.stage-next>div{display:block}.stage-next #stage-next{display:block;font-size:22px;margin-top:4px}.stage-next #stage-until{font-size:11px}.stage-next>.icon-button{width:38px;height:44px}.stage-list-context{font-size:11px;gap:8px}.stage-list-context strong{font-size:12px}.stage-section-head{grid-template-columns:minmax(0,1fr) 60px 36px;padding:7px 0 7px 32px}.stage-section-head>span:nth-child(3){display:none}.stage-seek{grid-template-columns:23px minmax(0,1fr) 60px;padding-inline:6px;min-height:48px}.stage-seek>small{display:none}.stage-seek strong{font-size:14px}.stage-section-row>.icon-button{width:36px;height:44px}.stage-section-row{min-height:48px}#stage-add-section{min-height:40px;padding-top:6px}.stage-inspector{width:100%}.stage-inspector .song-properties{gap:28px;margin-bottom:20px}.stage-inspector .property input{font-size:30px}.stage-field>span{font-size:12px}.stage-field select{height:44px;font-size:14px}.stage-inspector .toggle-row{min-height:44px}.stage-inspector .toggle-row strong,.stage-inspector .setting-row{font-size:13px}.stage-inspector .setting-row select{min-height:40px;font-size:13px}.stage-inspector .cue-preview{padding:8px}.stage-inspector .cue-preview .icon-button{min-height:44px;min-width:44px}.stage-inspector .cue-note{font-size:11px}html:root .project-card{padding:13px 10px 8px;margin-top:22px}.timeline-toolbar{align-items:flex-start;gap:8px;flex-wrap:wrap}.timeline-actions{flex-wrap:wrap}.timeline-actions .text-button{font-size:11px;min-height:44px}.timeline-actions .zoom-control{font-size:11px}.zoom-control select{min-height:36px}.stage-secondary #drop-zone{display:none}.stage-mixer{margin-top:18px}.stage-mixer summary{min-height:44px;font-size:14px}.stage-mixer .mixer-row{gap:8px;min-height:44px}.stage-mixer .mix-button{width:36px;height:44px}.stage-mixer .mixer-label{font-size:12px;min-width:49px}.stage-mixer .mixer-value{font-size:11px}html:root .stage-has-song .transport{bottom:66px;left:0;right:0;padding:10px 18px;min-height:80px}.stage-has-song .transport-left{justify-content:flex-end;gap:10px}.stage-has-song .time-display{left:0;gap:4px;font-size:11px}.stage-has-song .time-display strong{font-size:19px}.stage-has-song #play{width:52px;height:52px}.stage-has-song #rewind,.stage-has-song #loop{width:36px;height:44px}.stage-mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:15;display:flex;justify-content:space-around;height:66px;padding:5px 8px 8px;background:var(--bg);border-top:1px solid var(--line)}.stage-mobile-nav button{border-radius:8px;min-width:65px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:none;color:var(--muted);font-size:10px}.stage-mobile-nav button svg{width:22px;height:22px}.stage-mobile-nav button[aria-current=page]{color:var(--green);font-weight:600}.collection-heading h1{font-size:30px}.collection-heading{gap:14px}.collection-heading-actions{flex-wrap:wrap}#toast{bottom:157px;left:50%;max-width:calc(100% - 32px);width:max-content}.studio-empty{min-height:420px}.empty-studio-copy h2{font-size:25px}.collection-empty{min-height:160px}}
.stage-inspector .song-properties{flex-direction:row;flex-wrap:nowrap}
.stage-advanced{border-top:1px solid var(--line);padding-top:5px;margin-top:14px}
.stage-advanced summary{font-size:11px;color:var(--muted);min-height:32px;cursor:pointer}
.stage-mobile-nav{flex-direction:row;width:100%;max-width:none;margin:0}
.stage-focus .stage-section-row.is-current>.icon-button{color:#171b18}
/* Shared navigation, collection rhythm and pointer feedback. */
html:root .sidebar nav{margin:0;padding:0;align-items:center;align-self:stretch;flex:0 0 auto}
html:root .sidebar .nav-item{white-space:nowrap;flex-shrink:0;height:44px;line-height:1.2;align-self:center}
.sidebar .brand{flex-shrink:0}
.stage-actions{margin-left:auto;flex-shrink:0}
html:root .sidebar #upload-top{display:none}
html:root .sidebar .nav-count{display:none}
.stage-actions #profile-top{width:40px;height:40px}
.collection-heading{align-items:center;flex-wrap:nowrap}
.collection-heading>div:first-child{min-width:0;flex:1}
.collection-heading>.button,.collection-heading-actions{flex-shrink:0;white-space:nowrap}
:root .collection-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:240px;padding:40px 24px;text-align:center;background:transparent;border:0;box-shadow:none}
:root .collection-empty strong{font-family:var(--font);font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.02em}
:root .collection-empty p{margin:0;font-size:14px;line-height:1.6;max-width:45ch}
.collection-empty-icon svg{width:36px;height:36px;color:var(--muted)}
button,a,summary{transition:background-color .16s ease,color .16s ease,border-color .16s ease,filter .16s ease}
:root :is(button,a,summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
:root button:disabled{cursor:default}
/* Custom Cuebie tooltips keep icon hints inside the product UI. */
#cuebie-tooltip{position:fixed;z-index:10000;pointer-events:none;max-width:min(240px,calc(100vw - 24px));padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:0 8px 24px rgb(0 0 0/.3);font:500 12px/1.3 var(--font);white-space:nowrap;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}
#cuebie-tooltip[hidden]{display:none!important}
#cuebie-tooltip.is-visible{opacity:1;transform:translateY(0)}
#cuebie-tooltip::after{content:"";position:absolute;left:var(--cuebie-tooltip-arrow-x);width:7px;height:7px;background:var(--paper);border:1px solid var(--line);transform:translateX(-50%) rotate(45deg)}
#cuebie-tooltip[data-side=top]::after{bottom:-4px;border-top:0;border-left:0}
#cuebie-tooltip[data-side=bottom]::after{top:-4px;border-bottom:0;border-right:0}
@media(hover:hover) and (pointer:fine){
 :root .button:not(:disabled):hover{background:var(--soft);border-color:var(--muted);color:var(--ink)}
 :root :is(.button.primary,.play-button):not(:disabled):hover{background:#bedf2e;color:#171b18;border-color:#bedf2e}
 :root .text-button:not(:disabled):hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
 :root .icon-button:not(:disabled):hover{background:var(--selected);color:var(--ink)}
 html:root .sidebar .nav-item:hover{background:var(--soft);color:var(--ink)}
 :root .stage-mobile-nav button:not(:disabled):hover{background:var(--soft)}
 :root .stage-switch button:hover{background:var(--selected);color:var(--ink)}
 :root .stage-seek:hover{background:var(--soft)}
 :root .stage-section-row.is-current .stage-seek:hover{background:#bedf2e;color:#171b18}
 :root .setlist-card:hover,:root .profile-stats button:hover{background:var(--soft);border-color:var(--muted)}
 :root .profile-theme-options button:not([aria-pressed=true]):not(:disabled):hover,:root .mix-button:not(:disabled):hover{background:var(--selected);border-color:var(--muted);color:var(--ink)}
 :root .profile-theme-options button[aria-pressed=true]:not(:disabled):hover{background:var(--selected);border-color:var(--green);color:var(--ink)}
 :root .mix-button.active:not(:disabled):hover{background:#bedf2e;color:#171b18}

 :root a:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}
 :root .brand:hover{color:var(--ink);opacity:.8;text-decoration:none}
 :root summary:hover{color:var(--green)}
}
@media(max-width:700px){.collection-heading{flex-wrap:wrap}.collection-heading>div:first-child{flex-basis:100%}.stage-actions #profile-top{width:40px;height:40px}}

/* Header states stay distinct from workspace buttons and selected controls. */
html:root .sidebar .brand{color:var(--ink);opacity:1;border-radius:8px;transition:opacity .16s ease}
html:root .sidebar .nav-item,html:root .sidebar .nav-item.active{position:relative;border:0;border-radius:8px;background:transparent;box-shadow:none;font-weight:500;transform:none}
html:root .sidebar .nav-item{color:var(--muted)}
html:root .sidebar .nav-item.active{color:var(--ink)}
.sidebar .nav-item::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:1px;background:transparent;pointer-events:none}
.sidebar .nav-item.active::after{background:var(--lime)}
html:root .stage-actions #keyboard{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;transform:none}
html:root .stage-actions #profile-top{border:0;border-radius:50%;background:var(--soft);color:var(--ink);outline:none;box-shadow:none;transform:none}
html:root .stage-actions #profile-top.active{box-shadow:inset 0 0 0 1px var(--green)}
html:root .stage-actions .theme-control{background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
html:root .stage-actions .theme-control button{background:transparent;color:var(--muted);box-shadow:none;transform:none}
html:root .stage-actions .theme-control button[aria-pressed=true]{background:var(--selected);color:var(--ink);box-shadow:inset 0 0 0 1px var(--green)}
html:root .sidebar :is(a,button):focus:not(:focus-visible){outline:none}
html:root .sidebar :is(a,button):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
html:root .stage-actions #profile-top:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 html:root .sidebar .brand:hover{background:transparent;color:var(--ink);opacity:.76;text-decoration:none}
 html:root .sidebar .nav-item:not(:disabled):hover{background:var(--soft);color:var(--ink)}
 html:root .stage-actions #keyboard:not(:disabled):hover,html:root .stage-actions #profile-top:not(:disabled):hover{background:var(--line);color:var(--ink)}
 html:root .stage-actions .theme-control button:not([aria-pressed=true]):not(:disabled):hover{background:var(--line);color:var(--ink)}
 html:root .stage-actions .theme-control button[aria-pressed=true]:not(:disabled):hover{background:var(--selected);color:var(--ink)}
}
html:root .sidebar .brand:active{opacity:.65}
html:root .sidebar .nav-item:not(:disabled):active,html:root .stage-actions #keyboard:not(:disabled):active,html:root .stage-actions #profile-top:not(:disabled):active{background:var(--selected);color:var(--ink)}
@media(max-width:700px){html:root .stage-actions #keyboard{display:none}}

/* Selected mobile Library direction C: one first-song task, then compact tools. */
.mobile-collection-count,.mobile-collection-first-action{display:none}
.mobile-collection-desktop-empty{grid-column:1/-1}
.library-toolbar .collection-search{position:relative}
.library-toolbar .collection-search>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:20px;height:20px;pointer-events:none}
.library-toolbar .collection-search input{padding-left:42px}
@media(max-width:700px){
 body[data-view=library] main,body[data-view=setlists] main:has(.setlists-page){padding:0 0 calc(66px + env(safe-area-inset-bottom,0px))}
 .mobile-collection-page{min-height:calc(100svh - 126px - env(safe-area-inset-bottom,0px));display:flex;flex-direction:column}
 .mobile-collection-heading{padding:20px 20px 18px;margin:0;gap:16px;flex-wrap:nowrap}
 .mobile-collection-heading>div:first-child{flex-basis:auto}
 .mobile-collection-heading h1{font-size:30px;line-height:1.12;letter-spacing:-.03em;margin:0}
 .mobile-collection-heading p,.mobile-collection-heading .eyebrow,.library-desktop-count,.mobile-collection-page .collection-note{display:none}
 .mobile-collection-count{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:6px}
 .mobile-collection-heading>.button{min-height:44px;font-size:14px;padding:0 15px;gap:7px;border-radius:10px}
 .mobile-collection-heading>.button svg{width:18px;height:18px}
 .library-toolbar{padding:0 20px 18px;margin:0;border-bottom:1px solid var(--line)}
 .library-toolbar .collection-search{width:100%}
 html:root .library-toolbar input{height:46px;font-size:16px;padding-block:0;border:1px solid transparent;background:var(--paper);border-radius:10px;caret-color:var(--green)}
 .library-toolbar input::placeholder{color:var(--muted);opacity:1}
 .library-toolbar input:focus{border-color:var(--green)}
 .mobile-collection-page.is-empty .mobile-collection-heading{border-bottom:1px solid var(--line);padding-bottom:20px}
 .mobile-collection-page.is-empty .mobile-collection-heading>div:first-child{display:flex;align-items:baseline;gap:12px}
 .mobile-collection-page.is-empty .mobile-collection-count{margin:0}
 .mobile-collection-page.is-empty .mobile-collection-create,.mobile-collection-page.is-empty .library-toolbar,.mobile-collection-desktop-empty{display:none}
 .mobile-collection-page.is-empty :is(#library-rows,.setlist-grid){display:flex;flex:1}
 .mobile-collection-first-action{display:flex;flex:1;min-height:360px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 28px 50px}
 .mobile-collection-first-action .collection-empty-icon{margin-bottom:24px}
 .mobile-collection-first-action .collection-empty-icon svg{width:44px;height:44px}
 .mobile-collection-first-action h2{font-family:var(--font);font-size:29px;line-height:1.15;font-weight:650;letter-spacing:-.025em;text-wrap:balance;max-width:260px;margin:0 0 14px}
 .mobile-collection-first-action p{font-size:15px;line-height:1.5;color:var(--muted);max-width:280px;margin:0}
 .mobile-collection-first-action .button{width:100%;max-width:270px;min-height:48px;margin-top:25px;font-size:14px;border-radius:10px;gap:7px}
 .mobile-collection-first-action .button svg{width:18px;height:18px}
 .mobile-collection-first-action small{font-size:11px;line-height:1.5;color:var(--muted);margin-top:15px}
 .mobile-collection-page.has-songs #library-rows{padding:7px 20px 20px}
 .setlists-page .mobile-collection-heading{border-bottom:1px solid var(--line)}
 .setlists-page.has-items .setlist-grid{padding:20px}
 .setlists-page .setlist-card{min-width:0;overflow-wrap:anywhere}
 .stage-mobile-nav{height:calc(66px + env(safe-area-inset-bottom,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 html:root .stage-has-song .transport{bottom:calc(66px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:350px){.mobile-collection-heading{padding-inline:16px;gap:10px}.mobile-collection-heading h1{font-size:27px}.mobile-collection-heading>.button{font-size:13px;padding-inline:12px}.library-toolbar{padding-inline:16px}}
@media(max-width:700px){.stage-advanced summary{min-height:44px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}[hidden]{display:none!important}


/* Shared page and form roles across the workspace. */
#studio-view .studio-title{font-family:var(--font);font-size:34px;font-weight:650;line-height:1.15;letter-spacing:-.03em;margin:0 0 8px}
#studio-view .page-heading{align-items:center}
#studio-view .page-heading #upload-mobile{display:none}
.empty-studio-copy h2{font-family:var(--font);font-weight:650}
#empty-drop-zone [data-colab-import]{min-height:44px;font-size:12px}
html:root #modal .modal-head{gap:12px;min-height:44px;margin-bottom:16px}
html:root #modal .modal-head h2{font-family:var(--font);font-size:24px;line-height:1.2;font-weight:650;letter-spacing:-.025em}
html:root #modal-close{width:44px;height:44px;flex:0 0 44px;padding:0;border-radius:9px;background:transparent;color:var(--muted)}
html:root :is(.modal-input,.collection-search input){min-height:44px;border-radius:9px}
html:root #modal .modal-actions>.button{min-height:44px}
@media(max-width:700px){
 #studio-view .studio-title{font-size:30px}
 .studio-empty{margin-top:24px}
 html:root .stage-actions #profile-top{width:44px;height:44px}
 html:root #modal .modal-head h2{font-size:22px}
 .stage-inspector :is(select,input),.timeline-actions select{min-height:44px}
 .stage-inspector .property input{border-radius:9px}
 .stage-has-song .project-header #project-menu{width:44px;min-width:44px}
 .stage-section-row>.icon-button{width:44px;min-width:44px}
}

html:root :is(.page-heading h1,.collection-heading h1){font-family:var(--font);font-size:34px;line-height:1.15;font-weight:650;letter-spacing:-.03em;overflow-wrap:anywhere}
@media(max-width:700px){html:root :is(.page-heading h1,.collection-heading h1){font-size:30px}}

@media(max-width:700px){
 html:root .stage-inspector :is(select,input:not([type=range])){min-height:44px}
 .stage-next>.icon-button,.stage-has-song .transport-left>.icon-button,.stage-mixer .mix-button{width:44px;min-width:44px;min-height:44px}
 .section-markers{height:44px}.section-marker{min-height:44px}
 #tracking-panel :is(input,.text-button),.library-row-actions button{min-height:44px}
 .stage-mixer .mixer-row input[type=range]{height:44px;box-sizing:border-box;border-block:20px solid transparent;background-clip:content-box}
}

/* Quiet actions share the same neutral surface in both appearances. */
html:root .button:not(.primary):not(.dark):not(.danger){background:var(--paper);color:var(--ink);border:1px solid var(--line)}
@media(hover:hover) and (pointer:fine){html:root .button:not(.primary):not(.dark):not(.danger):not(:disabled):hover{background:var(--soft);border-color:var(--muted)}}

/* Studio quick access uses the same saved songs and open action as Library. */
#studio-recent{width:min(100%,520px);margin:24px auto 0;text-align:left}
#studio-recent[hidden]{display:none}
#studio-recent h2{font-size:14px;color:var(--muted);margin:0 0 8px}
.studio-recent-song{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px;background:transparent;border:1px solid transparent;border-radius:9px;text-align:left;color:var(--ink);box-shadow:none}
.studio-recent-song:hover{background:var(--soft);border-color:var(--line);transform:none}
.studio-recent-song:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.studio-recent-song .library-cover{width:44px;height:44px;flex:0 0 44px}
.studio-recent-song>span{min-width:0;flex:1}
.studio-recent-song strong,.studio-recent-song small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-recent-song strong{font-size:14px}.studio-recent-song small{font-size:12px;color:var(--muted);margin-top:3px}
.studio-recent-song>svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}

/* Recent tracks are independent cards below the import surface. */
html:root .studio-empty{background:transparent;border:0;border-radius:0;overflow:visible;min-height:0}
html:root .empty-upload-area{background:var(--paper);border:1px solid var(--line);border-radius:16px}
html:root #studio-recent{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 0}
html:root #studio-recent[hidden]{display:none}
html:root #studio-recent h2{grid-column:1/-1;margin:0}
html:root .studio-recent-song{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;min-height:104px}
html:root .studio-recent-song:hover{background:var(--soft);border-color:var(--muted)}
html:root .empty-library-link{background:transparent;border:0;padding-top:24px}
@media(max-width:900px){html:root #studio-recent{grid-template-columns:1fr}}

html:root #empty-open-library{background:transparent;border:0;box-shadow:none;width:auto;color:var(--ink)}
html:root #empty-open-library:hover{background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:4px;transform:none}

.library-row-actions{flex-wrap:wrap}.library-delete{color:var(--muted)}
.library-delete:hover{color:#ff9b91}

.studio-song-navigation{display:flex;flex-direction:row;width:100%;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
html:root .studio-song-navigation .text-button{min-height:44px;padding:0 12px;background:transparent;border:0;border-radius:9px;color:var(--muted);box-shadow:none;gap:8px;font-size:14px;font-weight:500}
html:root .studio-song-navigation .text-button:hover{color:var(--green);background:transparent;text-decoration:underline;text-underline-offset:4px;transform:none}
.studio-song-navigation .text-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}

:root{--library-danger:#a92d36}:root[data-theme=dark]{--library-danger:#ff9696}
/* Library uses flat song rows; Studio recents remain independent cards. */
.library-list-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 12px}.library-list-controls[hidden]{display:none}.library-list-controls>div{display:flex;align-items:center;gap:4px}.library-list-controls select{min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--text,var(--ink));padding:8px 24px 8px 10px;cursor:pointer}.library-list-controls select:hover{background:var(--soft)}.library-list-controls option{background:var(--paper)}.library-list-controls .icon-button{width:44px;height:44px;border-radius:9px;font-size:24px}.library-list-row{position:relative;border-radius:9px;margin:0 0 4px;--swipe:0px;isolation:isolate}.library-row-front{position:relative;display:flex;align-items:center;background:var(--bg);border-radius:9px;transform:translateX(var(--swipe));transition:transform .18s ease;touch-action:pan-y}.library-list-row.dragging .library-row-front{transition:none}.library-song-open{display:flex;align-items:center;gap:16px;flex:1;min-width:0;text-align:left;padding:10px 8px;min-height:76px;border:0;border-radius:9px;color:var(--ink);background:transparent;cursor:pointer}.library-song-open:hover{background:var(--paper)}.library-song-open:disabled{cursor:default;opacity:.65}.library-song-open .library-cover,.library-pending-row .library-cover{width:56px;height:56px;min-width:56px;border-radius:9px}.library-song-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.library-song-copy strong{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.library-song-copy>span,.library-song-copy small{font-size:14px;color:var(--muted)}.library-song-copy small{color:var(--focus)}.song-actions{position:relative;flex-shrink:0;margin:0 4px}.song-actions .song-actions-toggle{list-style:none;display:grid;place-items:center;width:44px;height:44px;border-radius:9px;cursor:pointer;color:var(--muted);letter-spacing:2px}.song-actions .song-actions-toggle:hover,.song-actions.is-open .song-actions-toggle{background:var(--soft);color:var(--ink)}.song-actions-menu{position:absolute;z-index:10;right:0;top:48px;min-width:196px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 12px 32px #0007}.song-actions-menu button{display:block;width:100%;min-height:44px;text-align:left;padding:10px 12px;border:0;border-radius:7px;background:transparent;font:inherit;color:var(--ink);cursor:pointer}.song-actions-menu button:hover{background:var(--soft)}.song-actions-menu hr{border:0;border-top:1px solid var(--line);margin:4px 6px}.song-actions-menu .destructive{color:var(--library-danger)}.library-swipe-actions{position:absolute;inset:0;display:flex;align-items:stretch;justify-content:space-between;overflow:hidden;border-radius:9px}.library-swipe-actions button{border:0;border-radius:9px;padding:12px;max-width:112px;cursor:pointer;color:var(--ink)}.swipe-add{background:var(--selected);width:112px}.swipe-delete{background:#9a3336;width:96px}.library-swipe-actions button:disabled{visibility:hidden}.library-pending-row{display:flex;align-items:center;gap:16px;padding:10px 8px;min-height:76px}.song-info-overview{display:flex;align-items:center;gap:16px;margin:8px 0 24px}.song-info-overview .library-cover{width:64px;height:64px;flex:none}.song-info-overview>div:last-child{display:flex;flex-direction:column;gap:8px;min-width:0}.song-info-overview strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.song-info-overview span{font-size:13px;color:var(--muted)}.song-info-fields{display:grid;gap:20px}.song-info-fields .modal-label{display:grid;gap:8px}.library-song-open:focus-visible,.song-actions .song-actions-toggle:focus-visible,.song-actions-menu button:focus-visible,.library-list-controls select:focus-visible,.library-swipe-actions button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.library-list-row:has(.song-actions.is-open){z-index:20}@media(prefers-reduced-motion:reduce){.library-row-front{transition:none}}@media(max-width:600px){.library-song-open{gap:12px}.library-list-controls{margin-top:4px}.library-song-copy strong{font-size:16px}.song-actions-menu{right:0}}
.library-song-open{justify-content:flex-start}.song-actions-menu button{justify-content:flex-start}.library-list-controls select{font-family:inherit;font-size:15px;font-weight:600}.library-swipe-actions button{font-family:inherit;font-size:13px;font-weight:600;line-height:1.3}
.library-song-open{user-select:none}

.song-actions-toggle{border:0;background:transparent;font:inherit}.song-actions-menu[hidden]{display:none}

.song-info-fields .modal-label{margin:0;font-size:13px}.song-info-fields .modal-input{font:inherit;font-size:16px}.song-actions-menu .destructive{color:var(--library-danger)}@media(max-width:700px){html:root #modal:has(:is(.song-info-fields,.setlist-picker)){position:fixed;inset:auto 0 0;margin:0;box-sizing:border-box;width:100%;max-width:none;max-height:calc(100dvh - 16px);border-radius:var(--sheet-radius) var(--sheet-radius) 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));overflow:auto}#modal:has(.song-info-fields) .modal-actions .primary{flex:1}}
.library-list-row{overflow:clip}.library-list-row:has(.song-actions.is-open){overflow:visible}

.studio-song-navigation{flex-wrap:wrap}.studio-song-navigation [role="status"]{font-size:14px;color:var(--muted)}

/* Section review reuses existing text actions and shaped focus targets. */
.stage-section-tools{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.stage-section-tools .text-button{min-height:44px}.stage-seek strong{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.section-review-badge{font-size:10px;font-style:normal;font-weight:500;color:var(--muted);line-height:1.4}.is-current .section-review-badge{color:inherit}.section-preview-actions{display:flex;gap:16px;flex-wrap:wrap}.section-preview-actions .text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px}.section-preview-actions svg{width:18px;height:18px}

.stage-section-tools{align-items:center;margin-top:16px}.stage-section-tools .text-button{font-size:12px}.stage-section-tools #stage-add-section{padding-top:0}

/* Studio transport refresh: Cuebie surfaces and shape roles remain shared. */
html:root #demo-badge:not(:empty){text-transform:uppercase}
html:root .stage-layout{grid-template-columns:minmax(0,1fr);gap:20px}
html:root .stage-inspector.stage-rhythm{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:20px 24px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
html:root .stage-rhythm .song-properties{margin:0;gap:32px;flex:1;flex-wrap:wrap}
html:root .stage-rhythm .property>span{font-size:12px;margin-bottom:8px}
html:root .stage-rhythm .property input{width:112px;min-height:48px;font-size:28px;font-weight:600;background:var(--soft);border-radius:9px}
html:root .stage-rhythm .property select{height:48px;min-width:120px;font-size:18px;background:var(--soft);border-radius:9px;padding-inline:14px}
html:root .stage-rhythm .property b{font-size:12px}
html:root .stage-rhythm-status{display:flex;align-items:center;gap:9px;min-height:44px;margin:20px 0 0;padding:8px 12px;font-size:13px;border-radius:9px;color:var(--muted)}
.stage-rhythm-status svg{width:18px;height:18px;flex:none}
html:root .stage-has-song .transport{--transport-inset:24px;box-sizing:border-box;position:fixed;left:var(--transport-inset);right:var(--transport-inset);width:auto;max-width:1440px;margin:0 auto;bottom:20px;min-height:88px;height:auto;display:grid;grid-template-columns:minmax(150px,1fr) auto minmax(150px,1fr);align-items:center;gap:20px;padding:16px 24px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 40px #0005;z-index:12}
html:root .stage-has-song .time-display{position:static;display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px;white-space:nowrap;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--muted)}
html:root .stage-has-song .time-display strong{font-size:22px;line-height:1.2;font-weight:600;color:var(--ink)}
html:root .stage-has-song .time-display>span{font-size:14px;line-height:1.2}
.studio-transport-controls,.studio-transport-tools{display:flex;align-items:center;gap:8px}
.studio-transport-tools{justify-content:flex-end}
html:root .studio-transport-controls .icon-button,html:root .studio-transport-tools .icon-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border-radius:10px;background:transparent;border:0;color:var(--muted);box-shadow:none}
html:root .studio-transport-controls svg,html:root .studio-transport-tools svg{width:22px;height:22px;display:block;flex:none}
html:root .stage-has-song #play{width:56px;height:56px;min-width:56px;border-radius:50%;padding:16px;display:grid;place-items:center}
html:root .stage-has-song #play svg{width:24px;height:24px}
html:root .stage-has-song #loop.active{color:var(--lime);background:var(--selected);box-shadow:inset 0 0 0 1px var(--lime)}
#loop[data-mode=section]::after{content:"";position:absolute;bottom:3px;width:4px;height:4px;border-radius:50%;background:currentColor;left:calc(50% - 2px)}
#loop{position:relative}
html:root .studio-control-modal{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:24px;border-radius:var(--sheet-radius)}
.studio-control-panel{max-height:calc(100dvh - 235px);overflow:auto;overscroll-behavior:contain;padding:2px}
html:root .studio-control-panel .sound-panel{padding:0;border:0;background:transparent;box-shadow:none}
.studio-control-panel :is(.panel-heading,.settings-tabs,#sound-options,.voice-options,#click-settings>.setting-label,#cue-settings>.setting-label){display:none}
.studio-control-panel .stage-field>span{font-size:13px}
.studio-control-panel .toggle-row{min-height:44px}.studio-control-panel .toggle-row strong,.studio-control-panel .setting-row{font-size:14px}
.studio-control-panel .toggle-row small{display:none}
.studio-control-panel .stage-advanced summary{font-size:14px;min-height:44px;display:flex;align-items:center}
.studio-control-panel .mixer{padding:0;margin:0;border:0}.studio-control-panel .mixer>.setting-label{display:none}
.studio-control-panel .mixer-row{min-height:56px;gap:10px}.studio-control-panel .mix-button{min-width:44px;min-height:44px;border-radius:9px}.studio-control-panel .mixer-label{width:55px;flex:none}
.studio-control-panel #tracking-panel{margin:0;padding:0;border:0;background:none}.studio-control-panel .tracking-heading{display:none}
html:root .studio-control-modal .modal-actions .button{width:100%}
@media(hover:hover){html:root .studio-transport-controls .icon-button:not(:disabled):hover,html:root .studio-transport-tools .icon-button:not(:disabled):hover,html:root .stage-rhythm-status:hover{background:var(--soft);color:var(--ink);box-shadow:none}html:root .stage-has-song #loop.active:hover{background:var(--selected);color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}}
html:root .studio-transport-controls .icon-button:disabled{opacity:.35;cursor:default}
html:root .studio-transport-controls .icon-button:focus-visible,html:root .studio-transport-tools .icon-button:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
@media(min-width:701px){body.stage-has-song main{padding-bottom:160px}}
@media(max-width:700px){
 html:root .stage-inspector.stage-rhythm{padding:16px;gap:8px;width:100%;box-sizing:border-box}
 html:root .stage-rhythm .song-properties{gap:20px;flex-wrap:nowrap;width:100%}
 html:root .stage-rhythm .property input{width:100px;font-size:26px}
 html:root .stage-rhythm .property select{min-width:100px;font-size:17px}
 html:root .stage-rhythm-status{margin:0;padding-inline:0}
 html:root .stage-has-song .transport{--transport-inset:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));padding:12px 14px;grid-template-columns:1fr auto;row-gap:8px;column-gap:10px;border-radius:16px;min-height:0}
 .studio-transport-controls{grid-column:1/-1;grid-row:2;justify-content:center;gap:12px}
 .studio-transport-tools{grid-column:2;grid-row:1;gap:0}
 html:root .stage-has-song .time-display{grid-column:1;grid-row:1;gap:7px}
 html:root .stage-has-song .time-display strong{font-size:20px}
 html:root .stage-has-song .time-display>span{font-size:13px}
 body.stage-has-song main{padding-bottom:250px}
 html:root .studio-control-modal{width:100%;max-width:100%;margin:0;position:fixed;inset:auto 0 0;max-height:calc(100dvh - 24px);border-radius:var(--sheet-radius) var(--sheet-radius) 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){.studio-transport-controls{gap:6px}html:root .stage-rhythm .song-properties{gap:12px}html:root .stage-rhythm .property select{min-width:90px}}
.studio-control-panel #tracking-panel[open] .tracking-details{padding:0;border:0}
.studio-control-panel .tracking-controls{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.studio-control-panel .tracking-controls label{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:16px}
.studio-control-panel #beat-shift{max-width:110px;min-height:44px;font-size:16px}
.studio-control-panel .tracking-bottom{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.studio-control-panel #review-message{font-size:14px;line-height:1.5}
.studio-control-panel .stage-advanced summary::before{content:"›";margin-right:8px;transform:rotate(0deg)}
.studio-control-panel .stage-advanced[open] summary::before{transform:rotate(90deg)}

/* One select treatment for every Studio sound field; focus stays inside its border. */
.stage-sound-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:20px}
.stage-sound-pair .stage-field{margin:0;min-width:0}
.studio-select-control{position:relative;min-width:0;width:100%;flex-shrink:0}
html:root .studio-control-panel .studio-select-control select{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;max-width:none;height:48px;min-height:48px;margin:0;padding:0 42px 0 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font:400 15px var(--font);line-height:normal;text-overflow:ellipsis;outline:none;box-shadow:none}
.studio-select-control>svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted);pointer-events:none}
html:root .studio-control-panel .studio-select-control select:focus-visible{outline:none;border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}
html:root .studio-control-panel .studio-select-control select:hover{border-color:var(--muted)}
html:root .studio-control-panel .studio-select-control select:focus-visible:hover{border-color:var(--lime)}
.studio-control-panel .setting-row>.studio-select-control{width:160px;max-width:55%}
.studio-control-panel .setting-row{gap:16px;align-items:center}
.studio-control-panel .stage-advanced>summary{list-style:none;cursor:pointer;user-select:none;gap:8px}
.studio-control-panel .stage-advanced>summary::-webkit-details-marker{display:none}
.studio-control-panel .stage-advanced>summary::before{display:inline-block;margin:0;width:16px;flex:0 0 16px;text-align:center}
.studio-control-panel #studio-advanced-content[hidden]{display:none!important}
.studio-control-panel #studio-advanced-content:not([hidden]){padding-top:8px}
@media(max-width:359px){.stage-sound-pair{grid-template-columns:minmax(0,1fr);gap:16px}}

/* Mixer labels and readouts use the same readable scale as the sound controls. */
.studio-control-panel .mixer-row{font-size:16px;color:var(--ink);gap:10px}
.studio-control-panel .mixer-label{font-size:16px;font-weight:500;width:64px;gap:7px}
.studio-control-panel .mixer-value{font-size:14px;font-weight:500;width:44px;flex:0 0 44px;color:var(--muted)}
.studio-control-panel .mix-button{font-size:14px;font-weight:600;flex:0 0 44px}
@media(max-width:380px){
 .studio-control-panel .mixer-row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}
 .studio-control-panel .mixer-label{grid-column:1;grid-row:1;width:auto}
 .studio-control-panel .mixer-value{grid-column:2/4;grid-row:1;width:auto;justify-self:end}
 .studio-control-panel .mixer-row input{grid-column:1;grid-row:2;width:100%}
 .studio-control-panel .mix-button{grid-row:2}
}
.studio-control-panel .mix-button:focus-visible{outline:none;border-color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}

/* Studio editor: song metadata above one uninterrupted performance/timeline area. */
:root{--track-song:#9dafb7;--track-click:#d7ff3f;--track-cue:#c2a2df}
html:root .timeline-toolbar{border-top:0;padding-top:0;align-items:center}
html:root .project-title .title-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html:root .project-title h2{max-width:none}
.studio-song-badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.studio-song-badges>span{display:inline-flex;align-items:center;min-height:28px;padding:3px 8px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.studio-song-menu{position:relative;flex:none}
.studio-song-menu .song-actions-menu{top:calc(100% + 8px);min-width:215px;z-index:20}
html:root .studio-song-menu .studio-menu-item{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:44px;border:0;border-radius:9px;padding:10px 12px;font:400 14px var(--font);text-align:left;background:transparent;color:var(--ink);cursor:pointer;box-shadow:none;transform:none}
.studio-menu-item svg{width:18px;height:18px}
html:root .studio-song-menu .studio-menu-item:hover{background:var(--soft);color:var(--ink)}
html:root .studio-song-menu .studio-menu-item:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--lime);background:var(--soft)}
html:root .studio-song-menu .studio-menu-item:disabled{opacity:.4;cursor:default}
html:root .zoom-control{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
html:root #timeline-zoom{width:128px;min-width:88px;height:44px;accent-color:var(--lime);padding:0;border:0;border-radius:9px;background:transparent;cursor:pointer}
html:root .cue-track{height:46px;min-height:46px;overflow:hidden;background:color-mix(in srgb,var(--track-cue) 12%,var(--bg))}
html:root .cue-block{top:9px;height:28px;line-height:1.2;font-size:11px;padding:0 7px;color:var(--track-cue);border-color:color-mix(in srgb,var(--track-cue) 35%,transparent);background:color-mix(in srgb,var(--track-cue) 16%,var(--bg));border-radius:6px}
html:root .pending-cue-label{display:flex;align-items:center;min-height:46px;margin:0;padding:0 12px;font-size:12px;color:var(--muted)}
html:root #playhead{pointer-events:auto;cursor:ew-resize;touch-action:none}
#playhead::after{content:"";position:absolute;left:-15px;top:0;width:30px;height:100%;background:transparent}
#timeline{touch-action:auto;cursor:crosshair}.timeline-scrubbing,.timeline-scrubbing *{cursor:ew-resize!important;user-select:none}
html:root .mixer-row input[data-track=song]{accent-color:var(--track-song)}
html:root .mixer-row input[data-track=click]{accent-color:var(--track-click)}
html:root .mixer-row input[data-track=cue]{accent-color:var(--track-cue)}
html:root .song-dot{background:var(--track-song)}html:root .click-dot{background:var(--track-click)}html:root .cue-dot{background:var(--track-cue)}
html:root .click-bar{background:var(--track-click)}
html:root .studio-control-panel .mixer-label{font-size:14px;width:60px}
html:root .studio-control-panel .mixer-value,html:root .studio-control-panel .mix-button{font-size:12px}
html:root #modal.studio-details-modal{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px)}
.studio-details-modal #studio-details-form{max-height:calc(100dvh - 230px);overflow:auto;padding:3px}
.studio-details-modal .modal-label{display:grid;gap:8px;margin:0;font-size:13px;font-weight:500}
.studio-detail-rhythm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:22px 0}
.studio-detail-rhythm .modal-label{margin:0;min-width:0}
.studio-detail-rhythm select{width:100%}
.studio-detail-alignment>.modal-label{margin-top:12px}
.studio-detail-tempo{display:flex;align-items:center;gap:8px}.studio-detail-tempo input{min-width:0;width:100%}.studio-detail-tempo span{font-size:12px;color:var(--muted)}
.studio-detail-alignment{margin-top:16px;padding-top:0;border:0}
.studio-detail-alignment summary{min-height:44px;cursor:pointer;font-size:14px;display:list-item;list-style-position:inside;color:var(--ink)}
.studio-detail-alignment .text-button{min-height:44px;font-size:14px;margin-top:8px}
.studio-detail-feedback{font-size:13px;color:var(--muted);line-height:1.5}.studio-detail-feedback:empty{display:none}
.studio-details-modal .modal-input:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--lime);border-color:var(--lime)}

/* Keep each timeline layer on the same measured canvas through the final edge. */
html:root .stage-has-song .timeline-container{display:block;width:100%;min-width:0;padding:0;box-sizing:border-box}
html:root .stage-has-song .timeline-viewport{display:block;width:100%;max-width:100%;min-width:0;margin:0;box-sizing:border-box}
html:root .stage-has-song .timeline{display:block;box-sizing:border-box;width:calc(100% * var(--timeline-zoom,1));min-width:100%;}
html:root .stage-has-song .timeline>:is(.ruler,.section-markers,.wave-track,.click-track,.cue-track){box-sizing:border-box;width:100%;}
html:root .stage-has-song .time-display{gap:5px}
html:root .stage-has-song .time-display strong{font-size:18px;line-height:1.1}
html:root .stage-has-song .time-display>span{font-size:12px;line-height:1.1}
.section-kind-select select{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:0 42px 0 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font:inherit;text-overflow:ellipsis}
.section-kind-select select:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
@media(max-width:700px){html:root .stage-has-song .time-display strong{font-size:17px}}
@media(max-width:700px){
 .studio-song-badges{gap:5px}.studio-song-badges>span{font-size:11px;min-height:25px;padding:3px 6px}
 html:root .stage-has-song .project-header{flex-wrap:wrap}.project-header .project-title{flex-basis:calc(100% - 70px)}
 .studio-song-menu{margin-left:auto}.studio-song-menu .song-actions-menu{right:0}
 html:root #timeline-zoom{width:110px}
 html:root #modal.studio-details-modal{width:100%;max-width:none;margin:0;position:fixed;inset:auto 0 0;max-height:calc(100dvh - 24px);border-radius:var(--sheet-radius) var(--sheet-radius) 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:700px){
 html:root .stage-has-song .project-header{display:grid;grid-template-columns:40px minmax(0,1fr) 44px auto;column-gap:8px;row-gap:4px;align-items:center}
 html:root .project-header .project-title,html:root .project-header .project-title .title-line{display:contents}
 .project-header .cover-art{grid-column:1;grid-row:1/3}
 .project-header #song-title{grid-column:2;grid-row:1;overflow-wrap:anywhere}
 .project-header #song-meta{grid-column:2;grid-row:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
 .project-header .studio-song-menu{grid-column:3;grid-row:1/3;margin:0}
 .project-header .stage-export{grid-column:4;grid-row:1/3}
 .project-header .studio-song-badges{grid-column:1/-1;grid-row:3;margin-top:8px}
}


/* Studio follow-up: clear section kinds, aligned edit affordance and staged alignment controls. */
.studio-detail-rhythm #studio-detail-meter{
 appearance:none;-webkit-appearance:none;padding-right:38px;
 background-image:linear-gradient(45deg,transparent 48%,var(--muted) 49%),linear-gradient(135deg,var(--muted) 49%,transparent 50%);
 background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat
}
.studio-detail-offset-control{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:16px}
.studio-detail-offset-slider{width:100%;height:44px;min-width:0;margin:0;accent-color:var(--lime);cursor:pointer}
.studio-detail-offset-slider:focus-visible{outline:none;box-shadow:none}
.studio-detail-offset-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--lime) 28%,transparent)}
.studio-detail-offset-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--lime) 28%,transparent)}
.studio-detail-offset-control output{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.studio-details-modal .source-links{gap:7px;margin:14px 0 4px}
.studio-details-modal .source-links a{font-size:11px;color:var(--muted);text-underline-offset:3px;opacity:.78;width:max-content;max-width:100%}
.studio-details-modal .source-links a:hover{color:var(--ink);opacity:1}
html:root .stage-section-head{grid-template-columns:minmax(0,1fr) 80px 105px 44px}
html:root .stage-section-row>.icon-button{width:44px;min-width:44px;height:44px;padding:0;border-radius:9px;background:transparent;transform:none;transition:background-color .14s,color .14s,box-shadow .14s}
html:root .stage-section-row>.icon-button svg{width:18px;height:18px}
html:root .stage-section-row>.icon-button:hover{background:var(--soft);color:var(--ink)}
html:root .stage-section-row.is-current>.icon-button:hover{background:rgb(23 27 24 / 12%);color:#171b18}
html:root .stage-section-row>.icon-button:active{background:var(--line);transform:none}
html:root .stage-section-row.is-current>.icon-button:active{background:rgb(23 27 24 / 20%)}
html:root .stage-section-row>.icon-button:focus-visible{outline:none;box-shadow:none}
html:root .stage-section-row>.icon-button:focus-visible::before{opacity:1;background:var(--soft);box-shadow:inset 0 0 0 2px var(--lime)}
html:root .stage-section-row.is-current>.icon-button:focus-visible::before{background:rgb(23 27 24 / 34%);box-shadow:inset 0 0 0 2px #171b18}
html:root .stage-section-row>.icon-button:disabled{opacity:.45;cursor:default}

/* A section's keyboard focus stays inside its own listen target. The selected row uses ink so the ring remains distinct from its lime fill. */
html:root .stage-section-row .stage-seek:focus-visible{outline:2px solid var(--green);outline-offset:-6px;box-shadow:none;border-radius:11px;position:relative;z-index:1}
html:root .stage-section-row.is-current .stage-seek:focus-visible{outline-color:#171b18}
html:root .stage-section-row>.stage-seek:active{transform:none}
html:root .stage-section-row>.icon-button{position:relative;background:transparent;box-shadow:none}
html:root .stage-section-row>.icon-button::before{content:"";position:absolute;inset:6px;border-radius:7px;background:var(--line);box-shadow:inset 0 0 0 1px var(--muted);opacity:0;transition:opacity .14s;pointer-events:none}
html:root .stage-section-row>.icon-button>svg{position:relative;z-index:1}
html:root .stage-section-row>.icon-button:hover{background:transparent;color:var(--ink);box-shadow:none}
html:root .stage-section-row>.icon-button:hover::before{opacity:1}
html:root .stage-section-row.is-current>.icon-button:hover{background:transparent;color:#171b18;box-shadow:none}
html:root .stage-section-row.is-current>.icon-button:hover::before{background:rgb(23 27 24 / 34%);box-shadow:inset 0 0 0 1px rgb(23 27 24 / 45%)}
html:root .stage-section-row>.icon-button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--lime)}
html:root .stage-section-row.is-current>.icon-button:focus-visible{box-shadow:inset 0 0 0 2px #171b18}

/* Only the signed-in avatar receives the Cuebie-green frame. */
html:root .stage-actions #profile-top:has([data-profile-initials]){box-shadow:inset 0 0 0 1px var(--lime)}
html:root .stage-actions #profile-top:has([data-profile-initials]).active{box-shadow:inset 0 0 0 2px var(--lime)}
@media(hover:hover) and (pointer:fine){html:root .stage-actions #profile-top:has([data-profile-initials]):not(:disabled):hover{background:var(--line);color:var(--ink);box-shadow:inset 0 0 0 2px var(--lime)}}

/* Keep the optional demo action centered and secondary to song import. */
html:root .studio-demo-wrap{display:flex;justify-content:center;width:100%;margin:18px auto 0;text-align:center}
html:root #studio-demo{min-height:44px;padding:0 16px;font-size:15px}
@media(max-width:700px){html:root .stage-section-head{grid-template-columns:minmax(0,1fr) 60px 44px}}
html:root .section-markers .section-marker.intro,html:root .section-card.intro{--section-fill:#35433d;--section-ink:#b9d3c3}
html:root .section-markers .section-marker.verse,html:root .section-card.verse{--section-fill:#2f3f4c;--section-ink:#b4cee2}
html:root .section-markers .section-marker.prechorus,html:root .section-card.prechorus{--section-fill:#4a3d2a;--section-ink:#e7d1a4}
html:root .section-markers .section-marker.chorus,html:root .section-card.chorus{--section-fill:#d7ff3f;--section-ink:#171b18}
html:root .section-markers .section-marker.bridge,html:root .section-card.bridge{--section-fill:#44364e;--section-ink:#d4b9e6}
html:root .section-markers .section-marker.instrumental,html:root .section-card.instrumental{--section-fill:#303e3a;--section-ink:#b8d7d1}
html:root .section-markers .section-marker.solo,html:root .section-card.solo{--section-fill:#473546;--section-ink:#e4bedc}
html:root .section-markers .section-marker.break,html:root .section-card.break{--section-fill:#47342f;--section-ink:#e5bba8}
html:root .section-markers .section-marker.outro,html:root .section-card.outro{--section-fill:#3b3f50;--section-ink:#c7cce6}
html:root .section-markers .section-marker:is(.intro,.verse,.prechorus,.chorus,.bridge,.instrumental,.solo,.break,.outro){background:var(--section-fill);color:var(--section-ink)}
html:root .section-card:is(.intro,.verse,.prechorus,.chorus,.bridge,.instrumental,.solo,.break,.outro){background:color-mix(in srgb,var(--section-fill) 25%,var(--paper));border-color:color-mix(in srgb,var(--section-fill) 60%,var(--line))}
html:root .section-card:is(.intro,.verse,.prechorus,.chorus,.bridge,.instrumental,.solo,.break,.outro):before{background:var(--section-ink)}
/* Keep Section / Start / Lead-in labels on the same columns as the rows below. */
html:root .stage-section-head{grid-template-columns:8px 26px minmax(0,1fr) 80px 105px 44px 8px;padding:7px 0}
@media(max-width:1000px) and (min-width:701px){html:root .stage-section-head{grid-template-columns:8px 25px minmax(0,1fr) 65px 0 44px 8px}html:root .stage-section-head>span:nth-child(3){display:block}html:root .stage-section-head>span:nth-child(5){display:none}}
@media(max-width:700px){html:root .stage-section-head{grid-template-columns:6px 23px minmax(0,1fr) 60px 44px 6px;padding:7px 0}html:root .stage-section-head>span:nth-child(3){display:block}html:root .stage-section-head>span:nth-child(5){display:none}}
#stage-position[hidden],#stage-add-section[hidden]{display:none!important}
.stage-focus-top>#stage-add-section{align-self:auto;min-height:36px;padding:0 8px;font-size:12px}

/* Shared library controls: identical hit areas and hover surfaces. */
html:root #stage-beats{padding-top:28px}
html:root .library-list-controls label{position:relative;display:inline-flex;align-items:center}
html:root .library-list-controls select{appearance:none;-webkit-appearance:none;height:44px;padding:0 42px 0 16px;line-height:1.3;background:transparent;border:0;border-radius:12px;min-width:120px}
html:root .library-list-controls label::after{content:"";position:absolute;right:16px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);pointer-events:none}
html:root .library-list-controls>div{gap:8px}
html:root .library-list-controls #library-direction{height:44px;width:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:var(--muted)}
html:root .library-list-controls select:hover,html:root .library-list-controls #library-direction:hover{background:var(--soft);color:var(--text)}
.section-boundary{position:absolute;top:24px;width:16px;height:54px;transform:translateX(-50%);z-index:7;cursor:ew-resize;touch-action:none;background:none;border:0;border-radius:5px;padding:0}
.section-boundary::after{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:2px;border-radius:2px;background:transparent}
.section-boundary:hover::after,.section-boundary:focus-visible::after{background:var(--text)}
body.section-dragging{cursor:ew-resize;user-select:none}
.section-boundary{top:0;height:100%;min-height:25px}
/* Shared Sounds/Mixer controls: stable rows, no dividers, explicit L/R balance. */
.sound-channel{padding:16px;background:var(--paper);border-radius:18px;min-width:0}.sound-channel+.sound-channel{margin-top:12px}.sound-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:8px}.sound-channel-heading strong{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.mix-actions{display:flex;gap:8px}.sound-channel .mix-button{width:44px;height:44px;min-width:44px;margin:0;border-radius:12px;font-size:12px}.sound-slider{display:grid;grid-template-columns:48px minmax(0,1fr) 64px;align-items:center;gap:10px;min-height:44px;font-size:12px;color:var(--muted)}.sound-slider input[type=range]{width:100%;min-width:0;height:44px;margin:0;padding:0;accent-color:var(--lime);border:0;box-shadow:none;background:transparent;outline:none;box-sizing:border-box}.sound-slider input[type=range]:focus-visible{outline:2px solid var(--lime);outline-offset:-2px;border-radius:12px}.sound-slider output{font-size:12px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.sound-pan input{background:linear-gradient(var(--muted),var(--muted)) center / 1px 10px no-repeat!important}.pan-scale{display:flex;justify-content:space-between;margin:0 74px 0 58px;font-size:10px;color:var(--muted);pointer-events:none}.sound-channel[data-channel=song] input{accent-color:var(--track-song)}.sound-channel[data-channel=cue] input{accent-color:var(--track-cue)}.sound-channel[data-channel=accent] input{accent-color:#f2bf78}.accent-dot{background:#f2bf78}.master-dot{background:var(--ink)}.sound-default-status{font-size:12px;color:var(--muted);margin:16px 0 0}.sound-channels{padding:2px}.studio-control-panel #mixer-rows{padding:2px}.studio-control-panel .sound-channel{background:var(--bg)}
@media(hover:hover) and (pointer:fine){.sound-channel .mix-button:hover{background:var(--soft);color:var(--ink)}.sound-channel .mix-button.active:hover{background:var(--lime);color:var(--bg)}}
@media(max-width:380px){.sound-channel{padding:12px}.sound-slider{grid-template-columns:42px minmax(0,1fr) 58px;gap:8px}.pan-scale{margin-left:50px;margin-right:66px}}
.sound-channels{max-height:clamp(180px,calc(100dvh - 330px),540px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:3px 6px 3px 3px}

@media (max-width: 700px) {
 .stage-focus-top { gap: 6px; }
 .stage-switch { flex: 1 1 0; min-width: 0; max-width: 250px; }
 .stage-switch button { white-space: normal; }
 .stage-focus-top > #stage-add-section { flex: none; min-height: 44px; padding-inline: 4px; }
 .stage-focus-top > #stage-add-section[hidden] { display: inline-flex !important; visibility: hidden; }
 .stage-focus:has(#stage-beats:not([hidden])) { height: auto; min-height: 0; }
 #stage-beats .stage-next { margin-top: 18px; }
}

@media (max-width: 380px) {
 .stage-switch button svg { display: none; }
}
/* Timeline actions share one inset footer in viewing and editing modes. */
.timeline-edit-footer{display:flex;align-items:center;gap:12px;margin:-1px 20px 0;padding:4px 12px;border-radius:0 0 14px 18px;background:var(--lime);color:#172015}
.timeline-edit-footer #timeline-edit-mode{margin-left:auto}
.timeline-edit-footer button,.timeline-edit-footer>span{display:inline-flex;align-items:center;gap:6px;min-height:28px;font-size:13px;font-weight:500}
.timeline-edit-footer button{height:28px;min-height:28px;padding:4px 8px;border:0;border-radius:10px;background:transparent;color:inherit}
.timeline-edit-footer svg{width:18px;height:18px;flex:none}
.timeline-edit-footer button:disabled{opacity:.5;cursor:default}
.timeline-edit-footer button:focus-visible{outline:2px solid #172015;outline-offset:-2px}
.timeline-edit-footer button:active{background:#17201529}
.timeline-edit-footer [hidden]{display:none!important}
body:not(.timeline-editing) .section-boundary{display:none}
@media(hover:hover){.timeline-edit-footer button:enabled:hover{background:#17201517}}
@media(max-width:380px){.timeline-edit-footer{margin-inline:12px;padding-inline:8px;gap:4px}.timeline-edit-footer button{padding-inline:4px;font-size:12px;gap:5px}}
#studio-workspace>.project-card:has(+ .timeline-edit-footer){margin-bottom:0}
.timeline-edit-footer{margin-bottom:28px}
@media(max-width:700px){.timeline-toolbar{align-items:center;flex-wrap:nowrap}.timeline-actions{width:auto;flex:none}.timeline-toolbar>div:first-child{white-space:nowrap}.zoom-control input[type=range]{width:90px}}
@media(max-width:380px){.zoom-control input[type=range]{width:70px}}

.timeline-edit-footer>span{gap:4px;min-height:0;font-size:12px;font-weight:400;color:#17201599}

.studio-analysis-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:360px;padding:40px 24px;margin-top:24px;border:1px solid var(--line);border-radius:24px;background:var(--paper);text-align:center}
.studio-analysis-progress[hidden]{display:none}.studio-analysis-progress h2{font-size:clamp(24px,3vw,32px);margin:0}.studio-analysis-progress p{margin:0;max-width:420px;color:var(--muted);line-height:1.5}.studio-analysis-progress .analysis-song-title{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.analysis-wave{height:86px;display:flex;align-items:center;gap:4px}.analysis-wave i{width:4px;height:var(--height);background:var(--lime);border-radius:8px;animation:analysis-pulse 1.2s ease-in-out infinite;animation-delay:calc(var(--bar)*-70ms)}
.analysis-progress-actions{display:flex;gap:20px;flex-wrap:wrap;justify-content:center}.analysis-progress-actions button{min-height:44px}
@keyframes analysis-pulse{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
body.stage-analyzing #studio-workspace>.project-header,body.stage-analyzing #studio-workspace>.stage-layout,body.stage-analyzing #studio-workspace>.project-card,body.stage-analyzing #studio-workspace>.timeline-edit-footer,body.stage-analyzing #studio-workspace>.stage-secondary,body.stage-analyzing #studio-workspace>.transport{display:none!important}
body.stage-analyzing #studio-tempo-label,body.stage-analyzing #studio-meter-label{display:none}
@media(max-width:700px){.studio-analysis-progress{min-height:320px;padding:32px 20px;border-radius:22px;gap:20px}}
@media(prefers-reduced-motion:reduce){.analysis-wave i{animation:none;transform:scaleY(.7)}}

/* First-run choices share the same action and selected-state colors as Studio. */
html:root #first-run{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:24px;border:1px solid var(--line);border-radius:var(--sheet-radius);background:var(--bg);color:var(--ink)}
#first-run::backdrop{background:#080d08b8;backdrop-filter:blur(4px)}
.first-run-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.first-run-header img{filter:brightness(0) invert(0.96)}
#first-run h1{font-size:clamp(29px,5vw,36px);line-height:1.04;letter-spacing:-.03em;margin:0 0 9px;max-width:15ch;text-wrap:balance}
#first-run h1:focus{outline:none}
#first-run p{color:var(--muted);margin:0;font-size:14px}
.first-run-choices{display:grid;gap:6px;margin:20px 0 24px}
.first-run-choices button{display:grid;grid-template-columns:24px 1fr 16px;gap:11px;align-items:center;min-height:58px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);text-align:left}
.first-run-choices button:hover{background:var(--paper)}
.first-run-choices button[aria-pressed=true]{border-color:#82944a;background:var(--selected)}
.first-run-choices svg{width:21px;height:21px;color:var(--green)}
.first-run-choices svg:last-child{width:14px;color:var(--muted)}
.first-run-choices strong,.first-run-choices small{display:block}
.first-run-choices small{color:var(--muted);margin-top:3px}
#first-run .first-run-continue,#first-run .first-run-signin{width:100%;min-height:44px;justify-content:center}
#first-run .first-run-continue{font-size:14px}
#first-run .text-button{min-height:44px;font-size:13px}
#first-run button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
