/* Study uses the real Lab canvas and reserves space for its compact controls. */
#study-heading[hidden],#study-transport[hidden]{display:none!important}
.study-open :is(#wheel-dock,#control-panel,#player-drawer,#music-floating,.workspace-edge-controls,#inspire-floating-transport,#instrument-tools,#instrument-tools-toggle,.player-grip,#touch-recorder,#metro-mini,.inner-mini,#play-welcome,#artist-corner,#artist-toggle){display:none!important}
#study-heading{position:absolute;inset-block-start:max(14px,env(safe-area-inset-top));inset-inline-start:max(16px,env(safe-area-inset-left));z-index:31;display:flex;align-items:center;gap:10px;max-width:min(440px,calc(100% - 100px));background:#ffffffed;border:1px solid #e0e9ed;border-radius:20px;padding:10px 12px;box-shadow:0 10px 28px #4564740c;color:#456372}
.study-cap{display:grid;place-items:center;width:34px;height:34px;flex:none;background:#edf4f3;border-radius:12px;color:#4b8378}.study-cap svg{width:24px;height:24px}#study-heading>div{min-width:0;display:grid;gap:2px}#study-heading [data-study-mode]{font-size:11px;color:#67808b}#study-heading strong{font-size:14px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#study-heading button{background:none;border:0;color:#66818d;min-width:36px;min-height:36px;font-size:22px}
#study-transport{position:absolute;inset-block-end:max(12px,env(safe-area-inset-bottom));inset-inline:16px;margin-inline:auto;width:max-content;max-width:calc(100% - 32px);z-index:30;background:#fffffff5;border:1px solid #e1eaf0;border-radius:23px;padding:10px 12px 9px;box-shadow:0 12px 40px #45647416;backdrop-filter:blur(12px);color:#446270;--study-accent:#ee8d46}
.study-open[data-study-view=dance] #study-transport{--study-accent:#946bd2}.study-open[data-study-view=inspire] #study-transport{--study-accent:#d86388}.study-open[data-study-view=metronome] #study-transport{--study-accent:#289eb0}
.study-controls{display:flex;align-items:center;gap:10px}#study-transport button,#study-transport a{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;border-radius:13px;padding:8px 12px;border:1px solid #e0e8ef;background:#f7f9fb;font-size:14px;color:#587284;text-decoration:none;white-space:nowrap}#study-transport .study-play{background:var(--study-accent);color:white;border-color:transparent;min-width:112px;font-weight:600}#study-transport [aria-pressed=true]{background:#e7f4ef;color:#2c806c;border-color:#bfddcf}
.study-speed{display:grid;grid-template-columns:1fr auto;gap:2px 12px;width:210px;margin-inline:6px;font-size:11px}.study-speed input{grid-column:1/-1;grid-row:2;accent-color:var(--study-accent);width:100%;height:28px;padding:0;touch-action:pan-x}.study-speed output{font-weight:600;white-space:nowrap}.study-progress{height:3px;background:#edf2f3;border-radius:3px;margin-top:7px;overflow:hidden}.study-progress i{display:block;height:100%;width:0;background:var(--study-accent);transition:width .1s linear}#study-transport p{font-size:11px;text-align:center;margin:6px 0 0;color:#68818b}
.study-open .handpan-note.study-hit{z-index:7;filter:drop-shadow(0 0 9px var(--study-light));--study-light:#936bd5}.study-open .study-hit[data-study-hand=right]{--study-light:#00a9c5}.study-open .study-hit[data-study-hand=left]{--study-light:#dd429a}.study-open .study-hit .note-surface{background:color-mix(in srgb,var(--study-light) 40%,white)!important;border:3px solid var(--study-light)!important;box-shadow:inset 0 0 0 2px #fff,0 0 16px var(--study-light)!important;transition:background .06s}.study-open .study-hit::after{content:'';position:absolute;inset:-7px;border:2px solid var(--study-light);border-radius:50%;opacity:.65;pointer-events:none}.study-open .slap-zone.study-hit{background:#d3bbf288}
@media(max-width:600px){#study-heading{inset-inline-start:12px;padding:8px 10px;border-radius:17px;gap:7px;max-width:calc(100% - 94px)}#study-heading strong{font-size:12px}#study-heading [data-study-mode]{font-size:10px}.study-cap{width:29px;height:29px}#study-transport{inset-inline:10px;max-width:calc(100% - 20px);width:calc(100% - 20px);padding:9px 10px;border-radius:20px}.study-controls{display:grid;grid-template-columns:44px minmax(90px,1fr) 80px;gap:6px}.study-speed{grid-row:2;grid-column:1/3;width:auto;margin:2px 2px 0}#study-transport [data-study-return]{grid-row:2;grid-column:3;min-width:0;width:80px;padding:5px;font-size:10px;white-space:normal;line-height:1.2;text-align:center}#study-transport .study-play{min-width:0}.study-open #artist-language-group{gap:0}.study-open #artist-language-group>:not(.locale-page){display:none!important}}
@media(max-height:500px) and (orientation:landscape){#study-heading{padding:6px 10px;inset-block-start:8px}#study-transport{padding:6px 9px;inset-block-end:max(6px,env(safe-area-inset-bottom))}.study-speed{width:170px}#study-transport button,#study-transport a{font-size:12px;min-height:42px;padding:6px 9px}.study-controls{gap:6px}}
@media(prefers-reduced-motion:reduce){.study-progress i,.study-hit .note-surface{transition:none!important}}
body[data-view] #instrument-view.study-open[data-panel-layout] #stage-canvas{inset:0!important;width:100%!important;height:100%!important;visibility:visible!important;pointer-events:auto!important}
@media(max-height:500px) and (orientation:landscape){
 #study-heading{max-width:min(250px,calc(100% - 320px))}
 #study-transport{inset-inline-start:auto;inset-inline-end:max(12px,env(safe-area-inset-right));inset-block-start:50%;inset-block-end:auto;transform:translateY(-35%);width:230px;max-width:230px;padding:12px}
 .study-controls{display:grid;grid-template-columns:40px minmax(80px,1fr) 40px;gap:7px}
 #study-transport button{min-width:40px}#study-transport .study-play{min-width:0}
 .study-speed{grid-row:2;grid-column:1/-1;width:auto;margin:6px 0}
 #study-transport [data-study-return]{grid-row:3;grid-column:1/-1;white-space:normal;text-align:center}
}
@media(max-height:500px) and (orientation:landscape){
 #study-heading{inset-inline-start:auto;inset-inline-end:max(12px,env(safe-area-inset-right));width:230px;max-width:230px}
 .study-open #artist-language-group,.study-open #scene-richness{display:none!important}
}
