/* HIR's learning surface: bigger instruments, fewer simultaneous decisions. */
.drum-machine.studio-playground[data-instrument]{--play-mint:#a9d8c7;--play-dim:#b9c4c0;height:min(690px,calc(100dvh - 160px));padding:14px 3.1vw 34px;font-size:14px;line-height:1.45;transition:transform 420ms cubic-bezier(.32,.72,0,1),visibility 420ms}
.studio-playground :is(button,select,input){font-size:14px}.studio-playground button{touch-action:manipulation}.studio-playground button:disabled{opacity:.4;cursor:default}.studio-playground :is(button,select,input):focus-visible{outline:2px solid var(--studio-accent)!important;outline-offset:3px;box-shadow:none!important}.studio-playground .drum-toolbar{min-height:52px;gap:26px;flex-wrap:nowrap}.studio-playground .drum-title{font-size:16px;letter-spacing:.04em}.studio-playground .drum-title span{font-size:12px;margin-left:7px}.studio-playground .drum-play{min-height:46px;min-width:112px;justify-content:center;gap:10px;padding:0 16px!important;background:var(--studio-accent)!important;color:#080e0f;border-radius:7px;font-size:15px}.studio-playground .drum-play:hover{color:#080e0f!important}.studio-playground .drum-play svg{width:21px;height:21px}.studio-playground .drum-play[aria-pressed=true]{background:var(--studio-paper)!important;color:#080e0f}.studio-playground :is(.drum-bpm,.drum-volume){font-size:13px;gap:10px}.studio-playground .drum-bpm input{font-size:18px;width:49px;min-height:40px;padding:0;text-align:center}.studio-playground .speed-unit{font-size:11px;color:var(--play-dim)}.studio-playground .drum-volume input{width:95px;min-height:40px}.studio-playground .drum-position{margin-left:auto;font-size:12px;min-width:66px;text-align:right}.studio-playground .drum-close{min-height:44px;font-size:14px;margin-left:auto}.studio-playground .drum-position+.drum-close{margin-left:0}.studio-playground .drum-close svg{width:20px;height:20px}
.studio-playground .studio-patternbar{min-height:44px;gap:12px;margin-top:3px}.studio-playground .studio-patternbar>label{width:200px}.studio-playground .studio-patternbar select{height:38px;font-size:13px;border-color:#ffffff40}.studio-playground .studio-patternbar>button{min-height:40px;font-size:13px}.studio-playground .studio-playmode{margin-left:12px;border-radius:5px;overflow:hidden}.studio-playground .studio-playmode button{min-height:36px;min-width:67px;font-size:13px}
.studio-playground .sequencer-tabs{gap:16px;margin:5px 0 14px;min-height:46px}.studio-playground .sequencer-tabs [role=tablist]{gap:30px}.studio-playground .sequencer-tabs [role=tab]{font-size:15px;min-height:46px;padding:0 3px!important;display:flex;flex-direction:row;align-items:center}.studio-playground .pattern-actions{gap:18px}.studio-playground .pattern-actions button{font-size:13px;min-height:44px}.studio-playground[data-studio-details=simple] .pattern-actions{display:none}.studio-playground[data-studio-details=simple][data-instrument=timeline] .pattern-actions{display:flex}
.studio-playground .drum-body{padding:2px 3px 8px;scrollbar-gutter:stable}.studio-playground .play-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 14px}.studio-playground .play-intro h2,.studio-playground .play-section-title{font:500 26px/1.12 var(--sans);letter-spacing:-.025em;color:var(--studio-paper);margin:0 0 7px}.studio-playground .play-intro p{font:400 13px/1.5 var(--sans);color:var(--play-dim);margin:0;max-width:65ch}.studio-playground .play-help-toggle{font-size:13px;white-space:nowrap;min-height:44px;padding:0 12px!important;border:1px solid #ffffff40!important;border-radius:6px}.studio-playground .play-guide{padding:12px 0 16px;border-bottom:1px solid #ffffff25;margin-bottom:14px}.studio-playground .play-guide p{font:400 13px/1.5 var(--sans);color:var(--play-dim);margin:0 0 10px}.studio-playground .play-guide>div{display:flex;gap:12px;flex-wrap:wrap}.studio-playground .play-guide button{min-height:44px;display:flex;gap:10px;align-items:center;font-size:13px;padding:0 14px!important;border:1px solid #ffffff35!important;border-radius:6px}.studio-playground .play-guide b{font-size:12px;color:var(--studio-accent)}
.studio-playground .play-pads{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px;max-width:900px}.studio-playground .play-pad{min-height:74px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:1fr 1fr;column-gap:10px;align-items:center;text-align:left;padding:10px 14px!important;border:1px solid #ffffff40!important;background:#0f1918!important;border-radius:7px}.studio-playground .play-pad svg{width:31px;height:31px;grid-row:1/3}.studio-playground .play-pad>span{font-size:14px;font-weight:500;align-self:end}.studio-playground .play-pad small{font-size:12px;color:var(--play-dim);align-self:start;font-variant-numeric:tabular-nums}.studio-playground .play-pad[aria-pressed=true]{border-color:var(--studio-accent)!important;background:#1e2a23!important;color:var(--studio-accent)}.studio-playground .play-pad:hover{border-color:var(--studio-accent)!important}
.studio-playground .play-editor-tools{display:flex;align-items:center;gap:18px;min-height:42px;margin:0 0 9px}.studio-playground .play-editor-tools>div{display:flex;align-items:baseline;gap:10px}.studio-playground .play-voice-title{font-size:14px;font-weight:500}.studio-playground .play-voice-hint{font-size:12px;color:var(--play-dim)}.studio-playground .play-sound-choice{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--play-dim);margin-left:auto}.studio-playground .play-sound-choice select{font-size:13px;height:38px;max-width:190px;min-width:120px;border:1px solid #ffffff40;border-radius:4px;padding:0 7px;background:#0f1918;color:var(--studio-paper)}.studio-playground .play-editor-tools button{min-height:42px;font-size:12px;white-space:nowrap}.studio-playground .play-voice-mute[aria-pressed=true]{color:var(--studio-accent)}.studio-playground .play-editor-tools>span{font-size:12px;color:var(--play-dim)}
.studio-playground .play-loop-scroll{overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#68726e #080e0f;padding:3px 2px 9px}.studio-playground .play-loop-scroll:focus-visible{outline:1px solid var(--studio-accent);outline-offset:-1px}.studio-playground .play-loop-canvas{min-width:770px}.studio-playground .play-bar+.play-bar{margin-top:14px}.studio-playground .play-bar-title{font-size:12px;color:var(--play-dim);position:sticky;left:0;width:60px;background:#080e0f;margin-bottom:5px}.studio-playground .play-beat-labels,.studio-playground .play-bar-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.studio-playground .play-beat-labels{font-size:11px;line-height:1;margin-bottom:7px;color:var(--play-dim)}.studio-playground .play-beat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.studio-playground .play-step{position:relative;height:43px;min-width:0;border:1px solid #ffffff30!important;border-radius:4px;background:#182321!important;color:var(--studio-paper);padding:0!important;font-size:14px}.studio-playground .play-beat:nth-child(even) .play-step{background:#23302b!important}.studio-playground .play-step[aria-pressed=true]{background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:#080e0f!important}.studio-playground .play-step[data-kind=drums][aria-pressed=true]::after{content:'';position:absolute;width:7px;height:7px;background:currentColor;left:calc(50% - 3.5px);top:calc(50% - 3.5px);border-radius:1px}.studio-playground .play-step.is-current{outline:2px solid var(--studio-paper);outline-offset:1px;z-index:1}.studio-playground .play-step[data-kind=melody][aria-pressed=true]{background:var(--play-mint)!important;border-color:var(--play-mint)!important}.studio-playground .play-step.is-held::before{content:'';position:absolute;left:-7px;right:0;top:calc(50% - 2px);height:4px;background:var(--play-mint);pointer-events:none}.studio-playground .play-step.is-note-selected{border-color:var(--studio-paper)!important}.studio-playground .play-step:hover{border-color:var(--studio-paper)!important}
.studio-playground .play-grid-navigation{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:6px;min-height:26px}.studio-playground .play-grid-navigation>span{font-size:12px;color:var(--play-dim)}.studio-playground .play-grid-navigation>div{display:none;gap:8px}.studio-playground .play-grid-navigation.has-overflow>div{display:flex}.studio-playground .play-grid-navigation button{width:42px;min-height:42px;border:1px solid #ffffff35!important;border-radius:5px;display:flex;align-items:center;justify-content:center}.studio-playground .play-grid-navigation svg{width:22px;height:22px}
.studio-playground .play-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:650px;margin:10px 0 8px}.studio-playground .play-key{min-height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;background:#1a2924!important;border:1px solid #ffffff40!important;border-radius:5px}.studio-playground .play-key>span{font-size:19px;font-weight:500}.studio-playground .play-key small{font-size:11px;min-height:16px;color:var(--play-dim)}.studio-playground .play-key[aria-pressed=true]{background:var(--play-mint)!important;color:#080e0f!important;border-color:var(--play-mint)!important}.studio-playground .play-key[aria-pressed=true] small{color:#18342c}.studio-playground .play-workspace-melody .play-editor-tools{display:none}
.studio-playground .melody-selects{max-width:none;display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(230px,1fr);gap:14px;align-items:end;margin-bottom:10px}.studio-playground .melody-selects label,.studio-playground .melody-octave-field{font-size:12px;color:var(--play-dim)}.studio-playground .melody-selects select{font-size:13px;height:40px;padding:0 9px}.studio-playground .melody-preview{font-size:13px;min-height:40px}.studio-playground .melody-octave-controls button{width:auto;min-width:80px;padding:0 8px!important;gap:6px;min-height:40px;font-size:12px;border-radius:4px}.studio-playground .melody-octave-controls button svg{width:16px;height:16px}.studio-playground .melody-octave-controls select{min-width:95px}.studio-playground .melody-note-editor{font-size:13px;gap:16px;min-height:46px;margin:8px 0 10px;padding:5px 0;flex-shrink:0}.studio-playground .melody-note-editor>span{font-size:13px;min-width:115px}.studio-playground .melody-note-editor label{font-size:12px}.studio-playground .melody-note-editor select{font-size:13px;height:38px;min-width:140px}.studio-playground .melody-note-editor button{font-size:13px;min-height:42px}.studio-playground .melody-faders label{font-size:13px}.studio-playground .melody-faders output{font-size:12px}.studio-playground .piano-tools{font-size:13px}.studio-playground .piano-tools button{font-size:13px;min-height:42px}
.studio-playground[data-studio-details=simple] #sequencer-drums>.drum-scroll,.studio-playground[data-studio-details=simple] #sequencer-drums>.instrument-hint,.studio-playground[data-studio-details=simple] .melody-controls,.studio-playground[data-studio-details=simple] .piano-tools,.studio-playground[data-studio-details=simple] .piano-scroll{display:none!important}.studio-playground[data-studio-details=full] .play-workspace{display:none!important}.studio-playground #sequencer-melody{display:flex;flex-direction:column;height:auto;min-height:100%}
.studio-playground .play-section-title{margin-bottom:14px}.studio-playground .timeline-tools{gap:20px}.studio-playground .timeline-tools label{font-size:13px}.studio-playground .timeline-tools input{font-size:14px;height:42px}.studio-playground .timeline-tools button{font-size:13px;min-height:44px}.studio-playground .timeline-help{font-size:13px;line-height:1.5;max-width:75ch;margin:14px 0}.studio-playground .timeline-block{height:112px;flex-basis:150px;width:150px;padding:12px!important;border-radius:5px}.studio-playground .clip-title{font-size:14px}.studio-playground .clip-bars{font-size:12px}.studio-playground .timeline-clip-controls{gap:12px}.studio-playground .timeline-clip-controls>span,.studio-playground .timeline-clip-controls label,.studio-playground .timeline-clip-controls button{font-size:13px}.studio-playground .timeline-clip-controls button{min-height:44px}.studio-playground .timeline-clip-controls select{height:40px;font-size:13px}.studio-playground .timeline-clip-controls :is(#timeline-left,#timeline-right){width:44px}.studio-playground .timeline-summary{font-size:12px}
.studio-playground .mixer-intro{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;margin-bottom:16px}.studio-playground .mixer-intro .play-section-title{margin-bottom:6px}.studio-playground .mixer-intro p{font-size:13px}.studio-playground .mixer-intro button{font-size:13px;min-height:44px}.studio-playground .mixer-channel-name{font-size:14px;font-weight:500}.studio-playground .mixer-output{font-size:14px}.studio-playground .mixer-source{font-size:12px}.studio-playground[data-studio-details=simple] .mixer-source{display:none}.studio-playground input.mixer-fader{height:125px;width:36px}.studio-playground .mixer-mute{min-height:40px;min-width:65px;font-size:13px;border-radius:5px}.studio-playground .mixer-preview{min-height:40px;font-size:13px}.studio-playground .mixer-master{flex-basis:115px}.studio-playground #sequencer-mixer>.instrument-hint{font-size:12px;margin-top:6px}
.studio-playground .drum-footer{min-height:44px;font-size:12px;gap:18px;margin-top:8px}.studio-playground #drum-status{min-width:0;flex:1;max-width:75ch;line-height:1.4}.studio-playground #studio-detail-toggle{min-height:40px;font-size:13px;white-space:nowrap;padding:0 12px!important;border:1px solid #ffffff40!important;border-radius:5px}.studio-playground .drum-links{font-size:12px}.studio-playground[data-studio-details=simple] .drum-links a:not(:first-child){display:none}
@media(max-width:1050px){.studio-playground .drum-toolbar{gap:17px}.studio-playground .drum-title{font-size:14px}.studio-playground .drum-title span{font-size:11px}.studio-playground .play-pad{padding:9px!important;gap:7px;grid-template-columns:26px 1fr}.studio-playground .play-pad svg{width:26px;height:26px}.studio-playground .play-pad>span{font-size:13px}.studio-playground .play-pad small{font-size:11px}.studio-playground .play-voice-hint{display:none}.studio-playground .melody-selects{grid-template-columns:minmax(140px,1fr) auto minmax(230px,1fr)}}
@media(max-width:680px){.drum-machine.studio-playground[data-instrument]{height:calc(100dvh - 88px);padding:10px 14px 34px}.studio-playground .drum-toolbar{gap:8px 14px;flex-wrap:wrap;min-height:88px}.studio-playground .drum-title{font-size:15px;min-width:100px}.studio-playground .drum-title span{font-size:11px}.studio-playground .drum-play{min-width:94px;min-height:44px;font-size:14px;padding:0 11px!important}.studio-playground .drum-close{margin-left:auto!important;min-width:60px;font-size:13px;order:3}.studio-playground .drum-bpm{order:4;font-size:12px;gap:8px}.studio-playground .drum-bpm input{min-height:34px;width:44px;font-size:18px}.studio-playground .drum-volume{order:5;flex:1;font-size:12px;justify-content:flex-end;gap:8px}.studio-playground .drum-volume input{width:80px;min-height:34px}.studio-playground .drum-position{display:none}.studio-playground .studio-patternbar{min-height:44px;gap:11px;flex-wrap:nowrap;margin-top:7px}.studio-playground .studio-patternbar>label{width:auto;flex:1;min-width:80px}.studio-playground .studio-patternbar select{height:38px;font-size:13px}.studio-playground .studio-patternbar>button{font-size:12px;min-height:40px;white-space:nowrap}.studio-playground .studio-playmode{margin-left:0}.studio-playground .studio-playmode button{min-width:47px;min-height:36px;font-size:12px;padding:0 7px!important}.studio-playground .sequencer-tabs{margin:3px 0 12px;gap:4px;flex-wrap:wrap}.studio-playground .sequencer-tabs [role=tablist]{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.studio-playground .sequencer-tabs [role=tab]{align-items:center;justify-content:center;font-size:14px;min-height:46px}.studio-playground .pattern-actions{gap:18px}.studio-playground .pattern-actions button{font-size:12px;min-height:38px}.studio-playground .play-intro{gap:12px;margin-bottom:12px;align-items:flex-start}.studio-playground .play-intro h2,.studio-playground .play-section-title{font-size:23px;line-height:1.15}.studio-playground .play-intro p{font-size:12px;line-height:1.45}.studio-playground .play-help-toggle{font-size:12px;min-height:40px;max-width:85px;white-space:normal;padding:0 9px!important;line-height:1.2}.studio-playground .play-guide>div{display:grid;grid-template-columns:1fr;gap:7px}.studio-playground .play-guide button{min-height:44px;font-size:13px}.studio-playground .play-guide p{font-size:12px}.studio-playground .play-pads{gap:6px;margin-bottom:8px}.studio-playground .play-pad{min-height:83px;padding:7px 2px!important;display:flex;flex-direction:column;gap:3px;text-align:center;justify-content:center}.studio-playground .play-pad svg{width:25px;height:25px;flex-shrink:0}.studio-playground .play-pad>span{font-size:11px;line-height:1.1;align-self:auto;min-height:24px;display:flex;align-items:center;justify-content:center}.studio-playground .play-pad small{font-size:11px;align-self:auto;line-height:1.1}.studio-playground .play-editor-tools{gap:12px;flex-wrap:wrap;min-height:40px;margin:0 0 8px}.studio-playground .play-editor-tools>div{min-width:70px}.studio-playground .play-voice-title{font-size:13px}.studio-playground .play-sound-choice{gap:6px;flex:1}.studio-playground .play-sound-choice>span{display:none}.studio-playground .play-sound-choice select{width:100%;min-width:80px;max-width:160px;font-size:12px;height:38px}.studio-playground .play-editor-tools button{min-height:40px;font-size:11px}.studio-playground .play-voice-clear{margin-left:auto}.studio-playground .play-loop-canvas{min-width:770px}.studio-playground .play-step{height:44px}.studio-playground .play-bar+.play-bar{margin-top:12px}.studio-playground .play-grid-navigation>span{font-size:11px;line-height:1.4;max-width:220px}.studio-playground .play-grid-navigation button{min-height:42px;width:42px}.studio-playground .play-grid-navigation{gap:8px}.studio-playground .play-keys{gap:8px;margin:8px 0}.studio-playground .play-key{min-height:59px}.studio-playground .play-key>span{font-size:18px}.studio-playground .play-key small{font-size:11px}.studio-playground .melody-selects{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;max-width:100%;margin-bottom:7px}.studio-playground .melody-sound-label{grid-column:1;grid-row:1}.studio-playground .melody-preview{grid-column:2;grid-row:1;min-height:38px;font-size:12px}.studio-playground .melody-selects label,.studio-playground .melody-octave-field{font-size:11px}.studio-playground .melody-selects select{height:38px;font-size:12px}.studio-playground .melody-octave-field{grid-column:1/-1;grid-row:2}.studio-playground .melody-octave-controls{max-width:none;gap:6px}.studio-playground .melody-octave-controls button{min-width:82px;min-height:38px;gap:4px;font-size:12px}.studio-playground .melody-octave-controls button svg{width:14px;height:14px}.studio-playground .melody-octave-controls select{min-width:90px}.studio-playground .melody-note-editor{gap:8px;min-height:45px;flex-wrap:nowrap;padding:5px 0;margin:6px 0 9px}.studio-playground .melody-note-editor>span{min-width:0;flex:1 1 80px;font-size:11px}.studio-playground .melody-note-editor label{min-width:105px;flex:1 1 105px;max-width:140px}.studio-playground .melody-note-editor select{min-width:105px;width:100%;font-size:12px;height:38px}.studio-playground .melody-note-editor button{font-size:11px;min-height:40px}.studio-playground .melody-faders{margin:10px 0}.studio-playground .melody-faders label{font-size:12px}.studio-playground .piano-tools{font-size:12px}.studio-playground .timeline-tools{gap:10px 14px}.studio-playground .timeline-tools label{font-size:12px;flex-basis:140px}.studio-playground .timeline-tools input{height:40px}.studio-playground .timeline-tools button{font-size:12px;min-height:42px}.studio-playground .timeline-help{font-size:12px;margin:10px 0}.studio-playground .timeline-clip-controls>span,.studio-playground .timeline-clip-controls label,.studio-playground .timeline-clip-controls button{font-size:12px}.studio-playground .timeline-clip-controls select{max-width:150px}.studio-playground .timeline-summary{font-size:11px}.studio-playground .mixer-intro{gap:10px;margin-bottom:12px}.studio-playground .mixer-intro h2{font-size:23px}.studio-playground .mixer-intro p{font-size:12px;line-height:1.4}.studio-playground .mixer-intro button{font-size:12px;min-width:65px;max-width:75px;line-height:1.3}.studio-playground .mixer-layout{gap:10px}.studio-playground .mixer-channel-name{font-size:13px}.studio-playground .mixer-output{font-size:14px}.studio-playground .mixer-grid{min-width:620px;gap:12px}.studio-playground .mixer-master{flex-basis:76px;padding-left:11px}.studio-playground input.mixer-fader{height:140px;width:36px}.studio-playground .mixer-mute{min-height:42px;min-width:65px;font-size:13px}.studio-playground .mixer-preview{min-height:40px;font-size:12px}.studio-playground #sequencer-mixer>.instrument-hint{font-size:11px}.studio-playground .drum-footer{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin-top:7px;min-height:75px;padding-top:8px}.studio-playground #drum-status{grid-column:1/-1;min-height:17px;font-size:11px;max-height:32px;overflow:auto}.studio-playground #studio-detail-toggle{min-height:38px;font-size:12px;padding:0 10px!important;justify-self:start}.studio-playground .drum-links{margin:0;font-size:11px;gap:12px}.studio-playground .drum-links a{font-size:11px}.studio-playground[data-studio-details=full] .drum-links{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:360px){.studio-playground .drum-title{min-width:90px}.studio-playground .drum-play{min-width:82px}.studio-playground .drum-toolbar{gap:8px 10px}.studio-playground .drum-volume input{width:65px}.studio-playground .studio-patternbar{gap:7px}.studio-playground .studio-patternbar>button{font-size:11px}.studio-playground .studio-playmode button{min-width:42px;font-size:11px}.studio-playground .play-pad>span{font-size:11px}.studio-playground .play-sound-choice select{max-width:120px}.studio-playground .melody-note-editor{gap:6px}.studio-playground .melody-note-editor>span{flex-basis:70px}.studio-playground .melody-octave-controls button{min-width:70px}.studio-playground .melody-octave-controls select{min-width:80px}}
@media(max-height:500px){.drum-machine.studio-playground[data-instrument]{height:94dvh;min-height:0;padding-top:8px}.studio-playground .drum-toolbar{min-height:44px}.studio-playground .studio-patternbar{margin-top:0}.studio-playground .sequencer-tabs{margin:2px 0 8px}.studio-playground .drum-footer{min-height:38px}.studio-playground .play-intro{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.drum-machine.studio-playground[data-instrument]{transition:none}}

/* Keep the first musical action in view, rather than below a settings panel. */
.drum-machine.studio-playground[data-instrument]{height:min(750px,calc(100dvh - 144px))}
.studio-playground[data-studio-details=simple]:not([data-instrument=timeline]) .studio-patternbar{display:none}
.studio-playground .play-loop-canvas{min-width:838px}
.studio-playground .play-bar{position:relative;padding-left:68px}
.studio-playground .play-bar-title{position:absolute;top:29px;left:0;width:62px;margin:0}
.studio-playground .play-bar+.play-bar{margin-top:12px}
.studio-playground .play-step{height:44px}
.studio-playground .play-grid-navigation:not(.has-overflow){min-height:0;margin-top:5px}
@media(min-width:1051px){
 .studio-playground .play-intro{margin-bottom:10px;min-height:30px}
 .studio-playground .play-intro>div{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
 .studio-playground .play-intro h2{font-size:25px;margin:0}
 .studio-playground .play-pad{min-height:54px;grid-template-rows:auto;padding:8px 14px!important}
 .studio-playground .play-pad svg{grid-row:1}
 .studio-playground .play-pad>span{align-self:center}
 .studio-playground .play-pad small{display:none}
 .studio-playground .play-pads{margin-bottom:10px}
 .studio-playground .play-editor-tools{min-height:40px;margin-bottom:5px}
 .studio-playground .play-workspace-melody{display:grid;grid-template-columns:minmax(515px,1.4fr) minmax(300px,1fr);gap:5px 22px}
 .studio-playground .play-workspace-melody>.play-intro,.studio-playground .play-workspace-melody>.melody-note-editor,.studio-playground .play-workspace-melody>.play-loop-scroll,.studio-playground .play-workspace-melody>.play-grid-navigation{grid-column:1/-1}
 .studio-playground .play-workspace-melody .melody-selects{align-self:center;margin-bottom:0}
 .studio-playground .play-workspace-melody .play-keys{margin:0;align-self:center}
 .studio-playground .play-key{min-height:54px}
 .studio-playground .play-key small{display:none}
 .studio-playground .play-workspace-melody .melody-note-editor{margin:4px 0 6px;min-height:43px;padding:3px 0}
}
@media(max-width:680px){
 .drum-machine.studio-playground[data-instrument]{height:calc(100dvh - 88px)}
 .studio-playground .play-pads{margin-bottom:7px}
 .studio-playground .play-pad{min-height:74px}
 .studio-playground .play-workspace-melody>.play-intro{margin-bottom:8px}
 .studio-playground .play-workspace-melody>.play-intro h2{margin:0}
 .studio-playground .play-workspace-melody>.play-intro p{display:none}
 .studio-playground[data-studio-details=simple] .melody-preview{display:none}
 .studio-playground[data-studio-details=simple] .melody-sound-label{grid-column:1/-1}
 .studio-playground[data-studio-details=simple] .melody-octave-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .studio-playground .play-key{min-height:44px}
 .studio-playground .play-key small{display:none}
 .studio-playground .play-loop-canvas{min-width:838px}
 .studio-playground .play-bar{padding-left:68px}
 .studio-playground .play-bar-title{top:29px}
}
@media(max-height:500px){.drum-machine.studio-playground[data-instrument]{height:94dvh}}
.studio-playground .play-grid-navigation:not(.has-overflow){display:none}
.studio-playground .play-beat .play-step[data-kind=drums][aria-pressed=true]{background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:#080e0f!important}
/* Horizontal music lanes must not trap a vertical swipe inside the drawer. */
.studio-playground :is(.play-loop-scroll,.timeline-scroll,.mixer-channels,.drum-scroll){overscroll-behavior:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
/* Reviewed novice fixes: guidance stays visible; the Song inspector never squeezes its actions. */
@media(max-width:680px){
 .studio-playground .play-workspace-melody>.play-intro p{display:block;margin-top:4px}
 .studio-playground .timeline-clip-controls{display:grid;grid-template-columns:44px 44px minmax(0,1fr) auto;gap:10px;align-items:center}
 .studio-playground .timeline-clip-controls>span{grid-column:1/-1;min-width:0}
 .studio-playground .timeline-clip-controls label{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;max-width:none;gap:12px;white-space:nowrap;min-width:0;font-size:13px}
 .studio-playground .timeline-clip-controls select{width:100%;max-width:none;min-width:0;height:42px;font-size:13px}
 .studio-playground .timeline-clip-controls #timeline-left{grid-column:1}
 .studio-playground .timeline-clip-controls #timeline-right{grid-column:2}
 .studio-playground .timeline-clip-controls #timeline-repeat{grid-column:3;justify-self:start;min-height:44px;padding:0 8px!important}
 .studio-playground .timeline-clip-controls #timeline-remove{grid-column:4;min-height:44px;margin-left:0;padding:0 8px!important}
}

/* Reserve the incumbent desktop logo box, including browser zoom viewports. */
@media(min-width:681px) and (min-height:501px){
 .drum-machine.studio-playground[data-instrument]{height:min(750px,calc(100dvh - max(144px,calc(13vh + 74px))))}
}
