/* Native musical panels share the viewport, without paging or scaled bodies. */
html.studio-shell-enabled body[data-research-tool]{height:var(--studio-app-height);min-height:0}
.studio-shell-enabled body[data-research-tool]>footer[data-cr-footer]{flex:none;margin:0!important;padding:1px 5px!important;font-size:9px!important;line-height:14px!important;height:16px;min-height:0}
html.studio-shell-enabled body.osc-page{display:grid!important;grid-template-rows:minmax(0,1fr) 16px;align-items:stretch;justify-content:stretch;gap:3px;height:var(--studio-app-height);min-height:0;padding:5px 8px 2px!important;overflow:visible}
.studio-shell-enabled .osc-workspace{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;gap:5px;width:100%;max-width:none;min-height:0;padding:7px!important;margin:0 auto}
.studio-shell-enabled .osc-workspace>header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:6px;min-height:30px;margin:0;padding:0 0 4px}
.studio-shell-enabled .osc-workspace>header h1{font-size:20px;line-height:1.2;text-align:start}
.studio-shell-enabled .osc-workspace .osc-header-actions{width:auto;flex:none}
.studio-shell-enabled .osc-workspace #master-toggle{width:auto;min-height:30px;font-size:12px;padding:5px 8px}
.studio-shell-enabled .osc-workspace .osc-frequency{margin:0;padding:4px 7px;gap:2px}
.studio-shell-enabled .osc-workspace .frequency-row{flex-wrap:nowrap;gap:6px}
.studio-shell-enabled .osc-workspace .frequency-row label{font-size:11px}
.studio-shell-enabled .osc-workspace .osc-frequency-control{flex:1 1 0;order:0;min-width:0}
.studio-shell-enabled .osc-workspace #base-freq{min-height:20px;height:20px}
.studio-shell-enabled .osc-workspace .osc-frequency-scale{height:16px;font-size:9px}
.studio-shell-enabled .osc-workspace .frequency-meta{font-size:9px;padding-top:2px;line-height:1.2}
.studio-shell-enabled .osc-workspace #freq-val{font-size:11px;min-width:60px;width:auto}
.studio-shell-enabled .osc-workspace>.osc-visuals{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;min-height:0;gap:6px}
.studio-shell-enabled .osc-workspace .osc-scopes{order:0;grid-column:auto;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;gap:4px;min-height:0;min-width:0}
.studio-shell-enabled .osc-workspace .osc-scope{display:grid;grid-template-rows:auto minmax(0,1fr);gap:3px;padding:5px;min-height:0;min-width:0}
.studio-shell-enabled .osc-workspace .osc-scope h2{font-size:11px;line-height:1.2;margin:0}
.studio-shell-enabled .osc-workspace .composite-header{margin:0;gap:3px;flex-wrap:wrap}
.studio-shell-enabled .osc-workspace .osc-zoom{gap:3px;flex-wrap:nowrap}
.studio-shell-enabled .osc-workspace .osc-zoom label{font-size:9px}
.studio-shell-enabled .osc-workspace #zoom-slider{min-width:0;min-height:16px;height:16px;width:70px}
.studio-shell-enabled .osc-workspace .osc-screen{height:100%;min-height:0}
.studio-shell-enabled .osc-workspace .osc-screen canvas{height:100%;width:100%}
.studio-shell-enabled .osc-workspace #legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:2px;max-height:none;overflow:visible}
.studio-shell-enabled .osc-workspace #legend>div{min-width:0;padding:1px 2px;gap:2px}
.studio-shell-enabled .osc-workspace #legend>div>span:last-child{font-size:8px;line-height:10px;white-space:normal}
.studio-shell-enabled .osc-workspace .osc-string-panel{order:0;grid-column:auto;display:grid;grid-template-rows:auto minmax(0,1fr);gap:4px;padding:5px;min-width:0;min-height:0;max-height:none;overflow:visible}
.studio-shell-enabled .osc-workspace .osc-string-panel h2{position:static;padding:0;margin:0;font-size:11px;line-height:1.2}
.studio-shell-enabled .osc-workspace #string-container{display:grid;grid-template-rows:repeat(13,minmax(0,1fr));min-height:0;gap:1px}
.studio-shell-enabled .osc-workspace #string-container>div{display:grid;grid-template-rows:auto 4px;gap:1px;align-content:center;margin:0;min-width:0}
.studio-shell-enabled .osc-workspace #string-container>div>div{margin:0}
.studio-shell-enabled .osc-workspace #string-container>div>div:first-child{font-size:10px;line-height:1.1;gap:3px}
.studio-shell-enabled .osc-workspace #string-container>div>div:last-child{height:4px;padding:0}
.studio-shell-enabled .osc-workspace .osc-intervals{order:0;margin:0;display:grid;grid-template-rows:auto auto;gap:3px}
.studio-shell-enabled .osc-workspace .osc-intervals h2{font-size:11px;line-height:1.2;margin:0}
.studio-shell-enabled .osc-workspace #intervals-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-rows:43px;gap:4px}
.studio-shell-enabled .osc-workspace #intervals-grid>button{min-height:0;min-width:0;padding:3px;gap:0}
.studio-shell-enabled .osc-workspace #intervals-grid>button>span{font-size:11px;line-height:12px;white-space:normal}
.studio-shell-enabled .osc-workspace #intervals-grid>button>div{margin:0;line-height:1.1;gap:0}
.studio-shell-enabled .osc-workspace #intervals-grid>button>div>span:first-child{font-size:10px}
.studio-shell-enabled .osc-workspace #intervals-grid>button>div>span:last-child{font-size:8px}
@media(max-width:1199px){.studio-shell-enabled .osc-workspace{width:100%!important;min-width:0;transition:none}}
@media(max-width:699px){
 .studio-shell-enabled .osc-workspace{padding:5px!important;gap:4px}
 .studio-shell-enabled .osc-workspace>header h1{font-size:16px}
 .studio-shell-enabled .osc-workspace #master-toggle{font-size:10px;padding:4px 5px;min-height:30px}
 .studio-shell-enabled .osc-workspace .osc-frequency{padding:3px}
 .studio-shell-enabled .osc-workspace .frequency-row{flex-wrap:wrap}
 .studio-shell-enabled .osc-workspace .osc-frequency-control{flex-basis:100%;order:3}
 .studio-shell-enabled .osc-workspace .frequency-meta{font-size:8px;gap:4px}
 .studio-shell-enabled .osc-workspace>.osc-visuals{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;gap:4px}
 .studio-shell-enabled .osc-workspace .osc-scope{padding:3px}
 .studio-shell-enabled .osc-workspace .osc-scope h2,.studio-shell-enabled .osc-workspace .osc-string-panel h2{font-size:9px}
 .studio-shell-enabled .osc-workspace .osc-string-panel{padding:3px}
 .studio-shell-enabled .osc-workspace #string-container>div>div:first-child{font-size:8px}
 .studio-shell-enabled .osc-workspace #string-container>div>div:first-child span{font-size:8px!important;min-width:0}
 .studio-shell-enabled .osc-workspace #legend{grid-template-columns:repeat(2,minmax(0,1fr))}
 .studio-shell-enabled .osc-workspace #intervals-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:42px;gap:3px}
 .studio-shell-enabled .osc-workspace #intervals-grid>button>span{font-size:10px}
}
@media(max-height:450px){
 .studio-shell-enabled .osc-workspace>header h1{font-size:17px}
 .studio-shell-enabled .osc-workspace .frequency-meta{display:none}
 .studio-shell-enabled .osc-workspace #intervals-grid{grid-auto-rows:36px}
 .studio-shell-enabled .osc-workspace #string-container{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));gap:1px 6px}
 .studio-shell-enabled .osc-workspace #string-container>div>div:first-child{font-size:8px}
 .studio-shell-enabled .osc-workspace #string-container>div>div:first-child span{font-size:8px!important}
}
/* All 24 harmonics, plots and envelope remain present on a bounded synth. */
html.studio-shell-enabled body[data-research-tool=overtone-synth]{display:grid;grid-template-rows:minmax(0,1fr) 16px;gap:3px;padding:4px 8px 2px!important;overflow:visible}
.studio-shell-enabled #overtone-synth.os-workspace{height:100%;min-height:0;grid-template-rows:auto auto auto minmax(0,1fr);gap:4px}
.studio-shell-enabled #overtone-synth.os-workspace .top{grid-template-columns:minmax(100px,1.5fr) 55px 50px 68px minmax(85px,1fr) 68px 68px 75px;gap:4px 6px;align-items:center;padding:0}
.studio-shell-enabled #overtone-synth .top>.os-section-head{min-height:24px;font-size:12px}
.studio-shell-enabled #overtone-synth .os-app-title{font-size:20px}
.studio-shell-enabled #overtone-synth .os-knob-control{--os-knob-size:48px}
.studio-shell-enabled #overtone-synth .os-knob-caption{font-size:9px}
.studio-shell-enabled #overtone-synth .os-knob-output{font-size:9px}
.studio-shell-enabled #overtone-synth .readout{gap:10px;min-height:18px;font-size:10px;line-height:1.2}
.studio-shell-enabled #overtone-synth .big{font-size:14px}
.studio-shell-enabled #overtone-synth .os-time-info{padding:3px 6px;font-size:10px;line-height:1.3}
.studio-shell-enabled #overtone-synth.os-workspace .main-content{grid-template-rows:minmax(70px,1fr) minmax(0,1.2fr);gap:5px}
.studio-shell-enabled #overtone-synth .overtones-section{gap:3px}
.studio-shell-enabled #overtone-synth .osc-list{gap:2px}
.studio-shell-enabled #overtone-synth .osc{padding:3px 1px;gap:3px;grid-template-rows:auto minmax(15px,1fr) auto}
.studio-shell-enabled #overtone-synth .osc-name{font-size:10px;line-height:11px;gap:2px}
.studio-shell-enabled #overtone-synth .osc .form-range{min-height:15px}
.studio-shell-enabled #overtone-synth .freq{font-size:8px;line-height:9px}
.studio-shell-enabled #overtone-synth .plots-section{gap:5px}
.studio-shell-enabled #overtone-synth .plots{gap:5px}
.studio-shell-enabled #overtone-synth .plot{grid-template-rows:24px 25px minmax(0,1fr);gap:3px}
.studio-shell-enabled #overtone-synth .plot .os-section-head{font-size:11px;line-height:1.1}
.studio-shell-enabled #overtone-synth .os-grid-time-label{font-size:8px;line-height:1.2;gap:2px 4px}
.studio-shell-enabled #overtone-synth .adsr{flex-basis:220px;gap:3px;padding-inline-start:5px}
.studio-shell-enabled #overtone-synth .adsr .os-knob-control{--os-knob-size:42px}
.studio-shell-enabled #overtone-synth .os-midi-section{padding:3px;gap:4px}
.studio-shell-enabled #overtone-synth .os-midi-section .form-label{font-size:9px}
.studio-shell-enabled #overtone-synth .os-midi-section .btn{font-size:10px;padding:4px}
.studio-shell-enabled #overtone-synth .os-midi-section .form-select{font-size:10px}
@media(max-width:699px){
 .studio-shell-enabled #overtone-synth.os-workspace .top{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
 .studio-shell-enabled #overtone-synth .top>.preset-field{min-width:0;max-width:none}
 .studio-shell-enabled #overtone-synth .top>.note-field,.studio-shell-enabled #overtone-synth .top>.octave-field{min-width:0;max-width:none}
 .studio-shell-enabled #overtone-synth.os-workspace .top>.form-label{font-size:10px;line-height:1.2}
 .studio-shell-enabled #overtone-synth .top .form-select{height:26px;margin-top:2px;font-size:11px}
 .studio-shell-enabled #overtone-synth .top .os-knob-control{--os-knob-size:40px}
 .studio-shell-enabled #overtone-synth .readout{gap:4px;font-size:9px}
 .studio-shell-enabled #overtone-synth .readout .text-muted{display:none}
 .studio-shell-enabled #overtone-synth.os-workspace .main-content{grid-template-rows:minmax(120px,.8fr) minmax(0,1.2fr)}
 .studio-shell-enabled #overtone-synth .osc-list{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px 2px}
 .studio-shell-enabled #overtone-synth .freq{display:none}
 .studio-shell-enabled #overtone-synth .osc{grid-template-rows:auto minmax(15px,1fr);padding:2px 1px}
 .studio-shell-enabled #overtone-synth .osc-name{font-size:9px;gap:0}
 .studio-shell-enabled #overtone-synth .osc .dot{display:none}
 .studio-shell-enabled #overtone-synth.os-workspace .plots-section{display:grid;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}
 .studio-shell-enabled #overtone-synth .plots{display:flex;gap:4px;min-height:0}
 .studio-shell-enabled #overtone-synth .plot{grid-template-rows:25px 27px minmax(0,1fr);gap:2px}
 .studio-shell-enabled #overtone-synth .plot .os-section-head{font-size:10px}
 .studio-shell-enabled #overtone-synth .plot .os-section-head>span{white-space:normal}
 .studio-shell-enabled #overtone-synth .plot .os-section-head>button{width:19px;height:20px;font-size:14px}
 .studio-shell-enabled #overtone-synth .plot .os-spectrum-options label{font-size:8px!important;line-height:1.1}
 .studio-shell-enabled #overtone-synth .adsr{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;padding:0;border:0;gap:3px}
 .studio-shell-enabled #overtone-synth .adsr>.os-section-head{grid-column:1/-1}
 .studio-shell-enabled #overtone-synth .adsr .os-envelope-knobs{gap:2px;grid-column:1}
 .studio-shell-enabled #overtone-synth .adsr .os-knob-control{--os-knob-size:32px}
 .studio-shell-enabled #overtone-synth .adsr .os-knob-caption{font-size:8px}
 .studio-shell-enabled #overtone-synth .adsr .os-midi-section{grid-column:2;grid-row:2;align-self:stretch;align-items:center}
 .studio-shell-enabled #overtone-synth .os-time-info[open]>.os-time-info-body{position:fixed;inset:100px 8px auto;z-index:70;width:auto;max-height:calc(var(--studio-app-height) - 100px);overflow:auto;padding:12px;margin:0;background:var(--card);border:1px solid var(--border);border-radius:9px}
}
@media(max-height:450px){
 .studio-shell-enabled #overtone-synth .top .os-knob-control{--os-knob-size:32px}
 .studio-shell-enabled #overtone-synth .top .form-select{height:24px;margin-top:2px;font-size:10px}
 .studio-shell-enabled #overtone-synth .adsr .os-knob-control{--os-knob-size:30px}
 .studio-shell-enabled #overtone-synth .adsr{flex-basis:190px}
 .studio-shell-enabled #overtone-synth .plot{grid-template-rows:21px 21px minmax(0,1fr)}
 .studio-shell-enabled #overtone-synth .osc{gap:1px}
 .studio-shell-enabled #overtone-synth .freq{display:none}
}
/* Illusion navigation and optional explanations leave the listening canvas stable. */
html.studio-shell-enabled body[data-research-tool=audio-illusions]{display:flex;flex-direction:column;padding:0!important}
.studio-shell-enabled body[data-research-tool=audio-illusions] .app{width:100%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column;gap:5px;padding:5px 8px}
.studio-shell-enabled body[data-research-tool=audio-illusions] .head{flex:none;padding:0 0 4px;gap:0}
.studio-shell-enabled body[data-research-tool=audio-illusions] .headtop,.studio-shell-enabled body[data-research-tool=audio-illusions] .head .sub{display:none}
.studio-shell-enabled body[data-research-tool=audio-illusions] .head h1{font-size:24px;line-height:1.2;text-align:center}
.studio-shell-enabled body[data-research-tool=audio-illusions] .grid{flex:1;min-height:0;grid-template-columns:220px minmax(0,1fr);gap:6px;align-items:stretch}
.studio-shell-enabled body[data-research-tool=audio-illusions] .menu{min-height:0;padding:5px;gap:4px;overflow:visible}
.studio-shell-enabled .lab-compact-menu .grp-label{padding:5px 6px;font-size:11px;gap:4px}
.studio-shell-enabled .lab-compact-menu .item{min-height:26px;padding:4px 6px;font-size:11px;line-height:1.2}
.studio-shell-enabled .research-illusion-choice{display:none}
.studio-shell-enabled .research-import{border:1px solid var(--line);border-radius:7px;flex:none}
.studio-shell-enabled .research-import summary{font-size:11px;padding:5px}
.studio-shell-enabled .research-import[open]>.drop{position:fixed;top:100px;left:50%;transform:translateX(-50%);width:min(450px,calc(100vw - 20px));background:var(--surface);border:1px solid var(--line);padding:15px;z-index:100}
.studio-shell-enabled body[data-research-tool=audio-illusions] .panel{min-height:0;min-width:0;padding:8px;gap:6px;display:flex;flex-direction:column}
.studio-shell-enabled body[data-research-tool=audio-illusions] .panel h2{font-size:22px;line-height:1.2}
.studio-shell-enabled body[data-research-tool=audio-illusions] .lab-brief{font-size:12px;line-height:1.3;margin:3px 0 0}
.studio-shell-enabled body[data-research-tool=audio-illusions] .scope{flex:1;min-height:65px;height:0;aspect-ratio:auto;overflow:hidden}
.studio-shell-enabled body[data-research-tool=audio-illusions] .scope canvas{display:block;height:100%;width:100%}
.studio-shell-enabled body[data-research-tool=audio-illusions] .transport{flex:none;flex-wrap:nowrap;padding-top:4px;gap:7px}
.studio-shell-enabled body[data-research-tool=audio-illusions] .transport .play{min-width:88px;padding:6px 10px;min-height:32px;font-size:13px}
.studio-shell-enabled body[data-research-tool=audio-illusions] .transport .vol{min-width:0;width:auto;flex:1;max-width:280px;margin:0;gap:4px}
.studio-shell-enabled body[data-research-tool=audio-illusions] .transport .vol input{width:100%;min-width:0;flex:1}
.studio-shell-enabled body[data-research-tool=audio-illusions] .transport .vol label{font-size:10px}
.studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls{flex:none;gap:5px 10px}
.studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .ctrl{gap:4px;min-width:0}
.studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .lbl{font-size:11px}
.studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .seg button{font-size:11px;padding:4px 6px}
.studio-shell-enabled .lab-options{width:auto;border:0;padding:0}
.studio-shell-enabled .lab-options>summary,.studio-shell-enabled .lab-explanation>summary{font-size:11px;padding:4px}
.studio-shell-enabled .lab-options[open]>.lab-extra-settings{position:fixed;top:90px;left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 20px));max-height:calc(var(--studio-app-height) - 50px);overflow:auto;z-index:100;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 6px 24px #0006}
.studio-shell-enabled .lab-extra-settings .ctrl{min-width:0;flex-wrap:wrap;align-content:start}
.studio-shell-enabled .lab-extra-settings input[type=range],.studio-shell-enabled .lab-extra-settings input[type=text]{max-width:100%;min-width:0}
.studio-shell-enabled .lab-explanation{flex:none;padding:0}
.studio-shell-enabled .lab-explanation[open]>.research-explanation-body{position:fixed;top:90px;left:50%;transform:translateX(-50%);width:min(700px,calc(100vw - 20px));max-height:calc(var(--studio-app-height) - 60px);overflow:auto;z-index:100;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-shadow:0 6px 24px #0006}
.studio-shell-enabled body[data-research-tool=audio-illusions] .warn{flex:none;margin:0;padding:5px;font-size:11px;line-height:1.3}
.studio-shell-enabled .panel.vl-mode .voice-lab{flex:1;min-height:0;gap:5px}
.studio-shell-enabled .panel.vl-mode .vl-head{flex:none;grid-template-columns:150px minmax(0,1fr);gap:6px;align-items:center}
.studio-shell-enabled .panel.vl-mode .vl-field span{font-size:10px;letter-spacing:0}
.studio-shell-enabled .panel.vl-mode .vl-field select{min-height:28px;padding:3px 5px;font-size:11px}
.studio-shell-enabled .panel.vl-mode .vl-piece h3{font-size:12px}
.studio-shell-enabled .panel.vl-mode .vl-piece p{font-size:10px;line-height:1.2}
.studio-shell-enabled .panel.vl-mode .vl-transport{flex:none;padding:4px;gap:4px}
.studio-shell-enabled .panel.vl-mode .vl-btn{min-height:27px;padding:3px 6px;font-size:11px}
.studio-shell-enabled .panel.vl-mode .vl-scores{display:grid;flex:1;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px}
.studio-shell-enabled .panel.vl-mode .vl-score-row{grid-template-columns:42px minmax(0,1fr);gap:3px;min-height:0}
.studio-shell-enabled .panel.vl-mode .vl-voice{font-size:10px;gap:3px}
.studio-shell-enabled .panel.vl-mode .vl-score-wrap{height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
.studio-shell-enabled .panel.vl-mode .vl-score{height:100%;width:100%;object-fit:contain}
.studio-shell-enabled .panel.vl-mode .vl-mixer{flex:none;grid-template-columns:1fr 1fr 1fr;padding:4px;gap:5px}
.studio-shell-enabled .panel.vl-mode .vl-balance{grid-template-columns:auto minmax(0,1fr) auto;gap:4px;font-size:10px}
.studio-shell-enabled .panel.vl-mode .vl-status{font-size:9px;flex:none}
@media(max-width:820px),(max-height:600px){
 .studio-shell-enabled body[data-research-tool=audio-illusions] .grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .menu{display:flex;flex-direction:row;align-items:center;gap:6px;padding:4px}
 .studio-shell-enabled .lab-compact-menu>.grp{display:none!important}
 .studio-shell-enabled .research-illusion-choice{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:11px;white-space:nowrap}
 .research-illusion-choice select{min-width:0;flex:1;width:0;height:30px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;padding:3px 5px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .lab-brief{display:none}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .panel h2{font-size:19px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .panel{padding:6px;gap:4px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .val{font-size:10px}
}
@media(max-width:600px){
 .studio-shell-enabled body[data-research-tool=audio-illusions] .head h1{font-size:21px}
 .studio-shell-enabled .research-illusion-choice{font-size:0;gap:0}
 .studio-shell-enabled .research-import summary{font-size:10px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .transport .vol{max-width:150px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .ctrl{gap:4px;flex-wrap:wrap;max-width:100%}
 .studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .ctrl input[type=range]{max-width:135px}
 .studio-shell-enabled .panel.vl-mode .vl-head{grid-template-columns:1fr 1fr}
 .studio-shell-enabled .panel.vl-mode .vl-piece p{display:none}
 .studio-shell-enabled .panel.vl-mode .vl-transport{gap:3px}
 .studio-shell-enabled .panel.vl-mode .vl-btn{font-size:10px;padding:3px 5px;min-height:26px}
 .studio-shell-enabled .panel.vl-mode .vl-time{width:auto;margin:0;font-size:10px}
 .studio-shell-enabled .panel.vl-mode .vl-mixer{grid-template-columns:1fr 1fr}
 .studio-shell-enabled .panel.vl-mode .vl-balance{grid-column:1/-1}
 .studio-shell-enabled .panel.vl-mode .vl-score-row{grid-template-columns:1fr;grid-template-rows:14px minmax(0,1fr)}
}
@media(max-height:450px){
 .studio-shell-enabled body[data-research-tool=audio-illusions] .head h1{font-size:18px}
 .studio-shell-enabled body[data-research-tool=audio-illusions] .panel>div:first-child h2{font-size:16px}
 .studio-shell-enabled .panel.vl-mode .vl-head{grid-template-columns:160px minmax(0,1fr)}
 .studio-shell-enabled .panel.vl-mode .vl-head .vl-piece p{display:none}
 .studio-shell-enabled .panel.vl-mode .vl-transport{gap:3px;padding:2px}
 .studio-shell-enabled .panel.vl-mode .vl-btn{font-size:10px;min-height:24px}
 .studio-shell-enabled .panel.vl-mode .vl-field span{font-size:9px}
 .studio-shell-enabled .panel.vl-mode .vl-field select{min-height:24px;font-size:10px}
 .studio-shell-enabled .panel.vl-mode .vl-mixer{padding:2px}
 .studio-shell-enabled .panel.vl-mode .vl-status{font-size:8px}
}
.research-synth-readout{display:contents}
@media(max-height:450px){
 .studio-shell-enabled #overtone-synth.os-workspace{grid-template-rows:auto auto minmax(0,1fr)}
 .research-synth-readout{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
 .research-synth-readout>.readout{flex:1;min-width:0}
 .research-synth-readout>.os-time-info{flex:none}
 .research-synth-readout>.os-time-info summary{font-size:0}
 .research-synth-readout>.os-time-info summary::before{content:'ציר זמן · ';font-size:10px}
 html[lang=en] .research-synth-readout>.os-time-info summary::before{content:'Time axis · '}
 .research-synth-readout #os-time-summary{font-size:10px}
}
/* The string simulator already fits its content; remove its obsolete top reserve. */
.studio-shell-enabled body[data-research-tool=virtual-string-app] #root>div{padding:6px 10px!important;height:var(--studio-app-height);min-height:0!important;max-width:1200px}
.studio-shell-enabled body[data-research-tool=virtual-string-app] #root main{min-height:0;gap:6px}
@media(max-width:699px){
 .studio-shell-enabled .osc-workspace #string-container>div>div:first-child,.studio-shell-enabled .osc-workspace #string-container>div>div:first-child span{font-size:10px!important}
}
@media(max-height:450px){
 .studio-shell-enabled #overtone-synth .adsr{display:flex;flex-direction:column;gap:3px}
 .studio-shell-enabled #overtone-synth .adsr>.os-section-head{min-height:20px;height:20px;flex:none}
 .studio-shell-enabled #overtone-synth .adsr>.os-section-head .os-toggle{height:20px;width:20px}
 .studio-shell-enabled #overtone-synth .adsr .os-envelope-knobs{flex:none;gap:2px}
 .studio-shell-enabled #overtone-synth .adsr .os-knob-caption,.studio-shell-enabled #overtone-synth .adsr .os-knob-output{font-size:8px;line-height:1}
 .studio-shell-enabled #overtone-synth .adsr .os-knob-control{gap:1px}
 .studio-shell-enabled #overtone-synth .adsr .os-midi-section{flex:none;align-self:stretch;padding:2px;gap:3px}
 .studio-shell-enabled #overtone-synth .adsr .os-midi-input{font-size:0;line-height:0}
 .studio-shell-enabled #overtone-synth .adsr .os-midi-input select{margin:0;height:24px;font-size:10px;line-height:1}
}
.studio-shell-enabled .research-string-card{gap:5px!important}
.studio-shell-enabled .research-string-toolbar{flex:none;gap:5px!important;margin-bottom:0!important;min-width:0}
.studio-shell-enabled .research-string-modes{gap:4px!important;min-width:0}
.studio-shell-enabled .research-string-modes>button{min-height:28px;padding:4px 7px!important;font-size:11px!important;line-height:1.2}
.studio-shell-enabled .research-string-readouts{gap:4px!important;font-size:10px!important;min-width:0}
.studio-shell-enabled .research-string-readouts>div{padding:4px 6px!important;font-size:10px!important;min-width:0}
.studio-shell-enabled .research-string-readouts>button{padding:4px 7px!important;font-size:11px!important}
.studio-shell-enabled .research-string-neck{flex:none;min-height:0}
@media(max-width:699px){
 .studio-shell-enabled .research-string-readouts{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;width:100%}
 .studio-shell-enabled .research-string-readouts>div{white-space:normal;font-size:9px!important}
 .studio-shell-enabled .research-string-toolbar{display:flex!important;flex-direction:column!important}
 .studio-shell-enabled .research-string-modes{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important}
}
@media(max-height:450px){
 .studio-shell-enabled .research-string-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px!important;align-items:center}
 .studio-shell-enabled .research-string-modes{gap:3px!important;flex-wrap:wrap}
 .studio-shell-enabled .research-string-modes>button{padding:3px 5px!important;font-size:10px!important;min-height:24px}
 .studio-shell-enabled .research-string-wave{min-height:35px!important}
}
@media(max-height:450px){
 .studio-shell-enabled .research-string-modes>button{min-height:22px;padding:2px 4px!important;font-size:9px!important}
 .studio-shell-enabled .research-string-modes>div{padding:1px 4px!important;font-size:9px!important;line-height:12px;min-height:0!important}
 .studio-shell-enabled .research-string-modes input[type=range]{height:14px;min-height:0}
 .studio-shell-enabled body[data-research-tool=virtual-string-app] #root main>div:nth-child(2){flex-basis:48px!important;min-height:0}
}
@media(min-height:451px) and (max-height:650px){
 .studio-shell-enabled body[data-research-tool=virtual-string-app] #root main>div:nth-child(2){flex-basis:60px!important;min-height:0}
}
@media(max-height:450px){
 .studio-shell-enabled .research-string-neck .string-neck-caption{font-size:10px;line-height:12px;margin:2px 0}
 .studio-shell-enabled .research-string-neck .string-instrument-picker button{padding:2px 4px}
 .studio-shell-enabled .research-string-neck .string-instrument-picker img{width:22px;height:22px}
}
/* A roomy instrument shelf beside the string and fretboard on desktop. */
.studio-shell-enabled .research-string-card[data-string-sidebar=true]{display:grid!important;direction:ltr;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:auto minmax(50px,1fr) auto;gap:8px 12px!important}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.research-string-toolbar{grid-column:1;grid-row:1;direction:rtl}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.research-string-wave{grid-column:1;grid-row:2;height:100%!important;min-height:50px}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.research-string-neck{grid-column:1;grid-row:3;min-width:0;direction:rtl}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.string-instrument-picker{grid-column:2;grid-row:1/4;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(7,minmax(0,1fr));gap:5px;margin:0;min-height:0;direction:rtl}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.string-instrument-picker button{display:flex;align-items:center;justify-content:flex-start;gap:10px;max-width:none;padding:4px 8px;min-height:0}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.string-instrument-picker img{width:clamp(36px,calc(var(--studio-app-height) * 0.06),54px);height:clamp(36px,calc(var(--studio-app-height) * 0.06),54px);object-fit:contain}
.studio-shell-enabled .research-string-card[data-string-sidebar=true]>.string-instrument-picker span{display:block;font-size:14px;line-height:1.3;text-align:start}
/* Touch screens: keep the compact illusion toggles at least 24px tall. */
@media(pointer:coarse){.studio-shell-enabled body[data-research-tool=audio-illusions] #ctrls .seg button{min-height:28px}}
