/* Neutral Live-style workspace. Colors belong to chrome; track colors remain project data. */
:root,.studio-shell{color-scheme:light;--bg:#a9abad;--panel:#bfc1c3;--line:#888b8e;--muted:#494c50;--text:#242629;--accent:#ff991f}
body.studio-shell{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);grid-template-rows:26px 32px minmax(0,1fr) 22px}
.studio-shell button,.studio-shell input,.studio-shell select{font-family:inherit;border-color:#8b8d90;color:#202225;border-radius:2px;background:#c9cbcd;box-shadow:none}
.studio-shell button:hover{background:#e0e1e2;border-color:#65686a}.studio-shell button.primary,.studio-shell button[aria-pressed=true],.studio-shell .tabs .active{background:var(--accent);color:#242629;border-color:#b57728}.studio-shell button:disabled{opacity:.45}
.studio-shell input,.studio-shell select{background:#d8dadd}.studio-shell button:focus-visible,.studio-shell input:focus-visible,.studio-shell select:focus-visible{outline-color:#b85b00}
.studio-shell .topbar{background:#a5a7a9;border-color:#8d8f92;gap:8px;padding:0 7px}.brand{font:700 11px Arial,sans-serif;color:#242629;letter-spacing:.3px}.logo{color:#343638;font-size:14px}.project-title input{background:transparent!important;width:240px}.file-actions button{background:transparent;padding:2px 7px;border-color:transparent}.file-actions #export{background:#c4c6c8;border-color:#909295;font-weight:400}.studio-shell .transport{background:#b9bbbd;padding:2px 7px;gap:7px;border-bottom:1px solid #7f8285}.transport .tabs{margin-left:auto;margin-right:0;display:flex;background:transparent;flex:none;order:20}.studio-shell .tabs button{padding:3px 7px;font-size:10px}.transport .playback{margin-left:12px;gap:4px}.transport .position{order:-1;min-width:80px;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;font-size:12px;color:#202225}.transport .separator{display:none}.transport .engine-state{display:none}.transport .tempo{gap:2px;color:#303236}.transport .tempo input{width:44px;background:#d1d3d5;border:1px solid #909295;font:11px Arial}.transport-note{color:#242629!important;font-size:11px!important;display:block!important}.transport .launch-quantization{font-size:0;gap:0}.transport .launch-quantization select{font-size:10px;width:58px}.studio-shell .transport #metronome{font-size:10px;padding:3px 5px}.transport #back{font-size:9px;max-width:130px;padding:3px 5px;color:#303236;border-color:#8b8d90}.transport #follow-actions-global{font-size:9px;padding:3px 5px}.transport-button.record{color:#9b3028}
.studio-shell .workspace{padding:5px;gap:5px}.studio-shell .browser{width:276px;flex-basis:276px;padding:5px;background:#c0c2c4;border:1px solid #8b8e91;border-radius:3px}.browser-title{color:#303236;text-transform:capitalize}.browser-title button{padding:0 4px!important}.browser-caption,.browser>.micro,.library-search-label{display:none}.library-search-row{margin-top:5px;margin-bottom:4px;height:24px}.library-search-row input{font-size:11px}.library-columns{display:grid;grid-template-columns:99px minmax(0,1fr);flex:1;min-height:0;border-top:1px solid #96999c;border-bottom:1px solid #96999c}.library-categories{padding:6px 2px;background:#babcbf;border-right:1px solid #96999c}.studio-shell .library-categories button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:5px 3px;font-size:10px;white-space:normal}.studio-shell .library-categories button:before{content:'';display:inline-block;width:0;height:0;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:4px solid currentColor;margin-right:4px;color:#606367}.studio-shell .library-categories button[aria-pressed=true]{background:#ffad49;color:#202225}.studio-shell .library-results{background:#c7c9cb;max-height:none;min-height:0;border:0}.studio-shell .library-results button{padding:5px 5px;border:0;font-size:10px;background:transparent;gap:1px;min-height:23px}.library-results button>span:before{content:'';display:inline-block;width:6px;height:7px;border:1px solid currentColor;background:repeating-linear-gradient(to bottom,transparent 0 2px,currentColor 2px 3px);margin-right:5px;color:#606367}.library-results small{display:none}.studio-shell .library-results button:hover,.studio-shell .library-results button:focus-visible{background:#aab8c8;color:#202225}.studio-shell #studio-library{min-height:180px;margin-bottom:5px}#library-category{position:absolute!important;width:1px!important;height:1px!important;opacity:0;clip-path:inset(50%);overflow:hidden}#library-category:focus{position:static!important;width:100%!important;height:auto!important;opacity:1;clip-path:none}#library-destination{font-size:9px;color:#414448;line-height:1.25;margin:4px 1px}#library-count{font-size:9px;margin:4px 0}#sound-presets{font-size:10px;padding:4px}.section-label,.browser-bottom,.browser-title span{color:#505357}.studio-shell .library-group{margin-bottom:7px}.library-group>.section-label{font-size:9px}.studio-shell .library-group button{font-size:10px}.browser-bottom{font-size:9px}
.studio-shell .viewbar{background:#a9abad;border:0;min-height:24px;height:24px;padding:0 0 4px}.view-actions{width:100%;justify-content:flex-end}.studio-shell .view-actions button{font-size:9px;padding:2px 6px}.view-actions>span{margin-right:auto}.studio-stage{background:#a4a6a8;border:1px solid #85888b;border-radius:3px}.session-grid{background:#8b8e90}.studio-shell .track-header{background:color-mix(in srgb,var(--track) 65%,#c5c7c9);color:#242629;height:24px}.track-header input{color:#202225!important}.studio-shell .slot{background:#bcbec0}.studio-shell .clip{background:color-mix(in srgb,var(--track) 60%,#c7c9cb)}.studio-shell .slot.selected{box-shadow:inset 0 0 0 1px #191b1e;background:#ffab44}.studio-shell .launch{background:transparent;color:#242629;border-color:#96999c}.studio-shell .clip-select{background:transparent}.studio-shell .clip-select span{color:#202225}.track-well{background:#b4b6b8;border-top:1px solid #aaaeb0}.session-space,.mixer-space{background:#a4a6a8}.drop-space{color:#515458}.studio-shell .scene-header{background:#b4b6b8;color:#242629}.main-well{background:#b4b6b8}.studio-shell .scene{background:#bcbec0;color:#242629}.scene .number{color:#4e5155}.scene-settings{background:#bcbec0!important}.studio-shell .track-stop{background:#b9bbbd;color:#242629}.slot-stop-setting:after{color:#55585b}
.mixer{background:#898c8f;border-color:#8a8d90}.studio-shell #mixer>.channel{background:#b8babc;border-bottom-color:var(--track);padding-top:5px;min-height:262px}.studio-shell .channel-name{color:#242629}.studio-shell .channel label{color:#303236}.channel select{background:#c9cbcd}.channel input[data-volume]::-webkit-slider-runnable-track,#master::-webkit-slider-runnable-track{background:#8b8d90;border-color:#737578}.channel input[data-volume]::-webkit-slider-thumb,#master::-webkit-slider-thumb{background:#393b3d;border-color:#141618;box-shadow:0 1px 0 #eee}.channel input[data-volume]::-moz-range-track,#master::-moz-range-track{background:#8b8d90}.channel input[data-volume]::-moz-range-thumb,#master::-moz-range-thumb{background:#393b3d}.channel [data-pan]{accent-color:#4d5053}.channel .meter{background:repeating-linear-gradient(to top,#6c706c 0 8px,#a4a8a4 8px 9px)}.channel .meter i{background:#6bd764}.studio-shell .channel .toggles button{background:#d1d3d5;color:#25272a}.studio-shell .channel .toggles button[aria-pressed=true]{background:var(--accent)}
.detail-divider{background:#a4a6a8}.detail-divider:after{background:#65686b}.detail-panel{background:#bfc1c3;border:1px solid #83878a;border-radius:3px}.detail-tabs{background:#a9abad;border-color:#85888b;min-height:25px;padding:1px 4px}.studio-shell .detail-tabs button{color:#242629}.studio-shell .detail-tabs button[aria-selected=true]{background:#d3d5d7;color:#202225;box-shadow:inset 0 -2px var(--accent)}.detail-context{color:#474a4e}.detail-content{padding:5px}.editor-heading{padding:2px 3px;border-bottom:1px solid #9c9fa2;min-height:22px}.editor-heading .section-label{display:none}.editor-heading h2{font-size:11px}.clip-badge{color:#404347;background:#cbcdcf;border-color:#a0a3a6;font-size:8px;letter-spacing:.4px}.clip-editor{display:grid;grid-template-columns:260px minmax(0,1fr);gap:7px}.clip-fields{grid-column:1;grid-row:1;align-content:start;border-right:1px solid #96999c;padding-right:7px;gap:6px}.clip-editor>div:first-child{grid-column:2;grid-row:1;min-width:0}.clip-fields label,.clip-fields .micro,.editor-caption{color:#3f4246;font-size:10px}.clip-fields input,.clip-fields select{padding:3px;height:23px;font-size:10px!important}.audio-edit-controls{gap:6px;padding-top:5px;border-color:#999c9f}.audio-edit-controls h3{font-size:10px}.audio-edit-controls p{font-size:9px}.waveform{background:#c4c7cb;border-color:#8c8f94;border-radius:0;height:170px;background-image:linear-gradient(90deg,#95999d66 1px,transparent 1px),linear-gradient(#95999d44 1px,transparent 1px);background-size:12.5% 100%,100% 25%}.editor-caption{margin:5px 0;font-size:9px}.piano-scroll,.velocity-scroll{border-color:#8c9094;background:#bec1c5}.piano-key,.note-label{background:#d5d7da;color:#282a2e;border-color:#9da1a5}.piano-cell{border-color:#9ca0a4}.note-tools label,.note-properties label{color:#34373b}.note-tools,.note-properties{gap:5px;margin:5px 0}.note-tools button,.note-properties button{padding:3px 6px}.note-tools input,.note-properties input{width:70px}
.studio-shell .timeline{background:#babdbf;border-color:#8a8e91;min-width:480px}.studio-shell .timeline-row{display:flex;height:68px;border-color:#8d9194}.timeline-row .timeline-lane{order:0;flex:1;min-width:0;background-color:#b9bcbf;background-image:linear-gradient(to right,#91969b 1px,transparent 1px)}.timeline-row .timeline-label{order:1;flex:0 0 160px;width:160px;border-left:1px solid #767b7f;border-right:0;background:#b0b4b7;padding:4px;color:#24272a;font-size:10px}.timeline-label button{width:100%;text-align:left;background:color-mix(in srgb,var(--track) 65%,#bfc3c6);font-size:10px;padding:4px;border:0}.studio-shell .timeline-ruler{height:23px;background:#a7abaf}.timeline-ruler .timeline-lane{background-color:#a7abaf}.ruler-number{color:#25282b!important;background:transparent!important;font-size:9px}.studio-shell .region{background:color-mix(in srgb,var(--track) 65%,#c3c6c9);border:1px solid #6f767d;color:#202529;font-size:10px;top:3px;bottom:3px}.studio-shell .region.selected{outline:1px solid #222;background:var(--accent)}.timeline-cursor{background:#222!important;width:1px}.locator-marker{background:#c8cccf!important;color:#303539!important}.loop-brace{border-color:#41484e!important}.arrangement-toolbar,.loop-controls{gap:6px;margin-bottom:5px}.arrangement-toolbar button,.loop-controls button{font-size:10px;padding:3px 6px}.loop-controls label,.arrangement-tools summary{color:#30363a}.arrangement-tools{background:#bfc3c6}.arrangement-tool{border-color:#969b9f}.arrangement-tool>summary{background:#b5b9bc;font-size:10px;padding:4px 7px}.arrangement-help{color:#41474b}.arrangement-active #arrangement-view{flex:1}
.studio-shell .instrument,.studio-shell .device,.studio-shell .midi-device,.studio-shell .return-channel{background:#c4c7c9;border:1px solid #8c9195;border-radius:3px;color:#282d30;padding:7px}.studio-shell .device{min-width:185px;width:185px;max-width:230px}.device-chain{gap:5px;padding:4px 0}.device header{background:#aeb4b9;border-color:#8e969c;padding:3px 4px;margin:-4px -4px 5px}.device header strong{font-size:10px}.device label,.device output,.instrument label,.midi-device label,.midi-device output,.micro,.muted,.devices-empty,.devices-empty span,.instrument-summary{color:#3c444a}.device label{font-size:10px;margin-top:6px}.device input{accent-color:#ff991f;margin-top:3px}.device header button{color:#30383f}.instrument-controls{gap:6px}.device-rack-heading{margin-bottom:4px}.device-rack-heading .section-label{display:none}.device-rack-heading select,.device-rack-heading button{padding:3px;font-size:10px}.studio-shell .studio-dialog{background:#c5c8ca;color:#24282b;border-color:#858b90}.studio-dialog .dialog-heading{border-color:#8b9297}.studio-dialog h2{font-size:14px}.studio-shell footer{background:#b3b6b9;color:#3c4146;border-color:#8a9095;font-size:9px}.studio-shell footer button{font-size:9px;padding:2px 5px}.local-dot{background:#5e8753}
@media(max-width:1100px){.studio-shell .browser{width:235px;flex-basis:235px}.transport #back{max-width:100px;overflow:hidden;text-overflow:ellipsis}.transport #follow-actions-global{display:inline-flex}.clip-editor{grid-template-columns:220px minmax(0,1fr)}.clip-fields{grid-template-columns:1fr 1fr}.transport .playback{margin-left:0}.studio-shell .tabs button{font-size:9px;padding:3px 4px}}
@media(max-width:760px){body.studio-shell{grid-template-rows:auto auto minmax(0,1fr) 22px}.studio-shell .topbar{min-height:55px;flex-wrap:wrap}.studio-shell .transport{flex-wrap:wrap;min-height:60px;gap:5px}.transport .tabs{margin-left:auto}.transport #back{display:none}.transport-note{display:none!important}.studio-shell .workspace{padding:3px;gap:3px}.studio-shell .browser{width:min(310px,90vw);top:118px;bottom:22px}.studio-shell .viewbar{min-height:27px;height:27px;flex-wrap:nowrap}.view-actions{flex-wrap:nowrap}.studio-shell .view-actions button{padding:2px 4px!important}.clip-editor{grid-template-columns:1fr}.clip-editor>div:first-child{grid-column:1;grid-row:1}.clip-fields{grid-column:1;grid-row:2;border:0;padding:0}.detail-tabs{min-height:25px}.studio-shell .detail-tabs button{padding:3px 7px}.waveform{height:120px}.timeline-row .timeline-label{flex-basis:120px;width:120px}.transport #toggle-browser{display:block}}

/* Signal-flow order in one horizontally scrolling detail strip. */
.device-workspace{display:flex;align-items:stretch;gap:6px;overflow:auto;min-height:190px;padding:2px 1px 7px}
.device-workspace #midi-effects{display:flex;align-items:stretch;gap:5px;flex:none}
.device-workspace #midi-effects>.instrument-heading{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-width:110px;width:110px;margin:0;padding:5px;background:#b6bbbf;border:1px solid #8e959b;border-radius:3px}
.device-workspace #midi-effects>.instrument-heading strong{font-size:10px}.device-workspace #midi-effects>.instrument-heading button{font-size:10px;padding:4px}
.device-workspace #midi-effects>.micro{display:none}.device-workspace .midi-effect{flex:0 0 225px;width:225px;margin:0;background:#c4c7c9;border:1px solid #8c9195;padding:6px;border-radius:3px}
.device-workspace #instrument{flex:0 0 350px;width:350px;margin:0}.device-workspace #instrument:empty,.device-workspace #midi-effects:empty{display:none}.device-workspace #device-chain{display:contents}.device-workspace .device{flex:0 0 190px}.device-workspace .devices-empty{width:200px;flex:none;padding:10px}
.device-workspace .instrument-heading{gap:5px;margin-bottom:7px}.device-workspace .instrument-heading strong{font-size:10px}.device-workspace .synth-controls{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}.device-workspace .synth-controls label{font-size:9px;color:#343b40}.device-workspace .synth-controls input:not([type=range]),.device-workspace .synth-controls select{width:100%;min-width:0;font-size:10px;padding:3px}.device-workspace .synth-controls output{color:#343b40}.device-workspace input[type=range]{accent-color:#ee8c17}.device-workspace .micro{font-size:9px;line-height:1.35}
#status,.channel [data-volume-label],#master-label,.channel [data-pan-label],#crossfader-value,.arrangement-toolbar>span,.follow-controls span{color:#30363b!important}.scene-play{color:#30363b}.clip-follow-settings>summary{color:#794000}.studio-shell .channel input[data-volume],.studio-shell #master{color:#30363b}.device-workspace .midi-effect label,.device-workspace .midi-effect output{color:#343b40}
@media(max-width:760px){.device-workspace #instrument{flex-basis:290px;width:290px}.device-workspace{min-height:180px}}
/* Note and velocity editors share the light timeline surface. */
.piano-cell.note-cell{background:#c6c9cd;border-right-color:#a2a6ab}.piano-row{border-bottom-color:#999ea4}.piano-row:nth-child(4n) .piano-cell{background:#b9bdc2}.piano-ruler{background:#aeb3b9;border-color:#858c93}.piano-ruler span{color:#30363c;border-color:#858c93}.piano-note.note-cell{border-radius:0;border-color:#626a73;color:#202830}.piano-note.selected{outline:2px solid #242a30}.piano-note.muted-note{background:#a9adb2;border:1px dashed #515860;color:#252c33}.piano-note.muted-note.selected{outline-color:#242a30}.velocity-label{background:#c0c4c8;color:#30373e}.velocity-lane{background:repeating-linear-gradient(to top,#969da4 0 1px,#c6cacf 1px 20px)}.velocity-help{color:#414950}.velocity-stem.selected i{outline-color:#252c33}.piano-scroll:focus-visible,.velocity-stem:focus-visible{outline-color:#b85b00}.velocity-stem.muted-note i{background:#9ca3ab;border-color:#525b64}
/* Native-style top application menus. */
.studio-shell .topbar{position:relative;flex-wrap:wrap;align-content:center;row-gap:0;min-height:49px}
body.studio-shell{grid-template-rows:49px 32px minmax(0,1fr) 22px}
.app-menubar{display:flex;align-items:center;gap:0;flex:0 0 100%;height:23px;order:10;border-top:1px solid #96999c}
.studio-shell .app-menubar>button{font-size:11px;border:0;border-radius:0;background:transparent;padding:4px 10px;line-height:15px;color:#242629}
.studio-shell .app-menubar>button:hover,.studio-shell .app-menubar>button[aria-expanded=true]{background:#ffad49;color:#202225}
.app-menu-popup{position:fixed;z-index:1000;width:310px;max-width:calc(100vw - 8px);max-height:calc(100dvh - 65px);overflow:auto;background:#dedfe0;border:1px solid #888c90;border-radius:3px;padding:4px;box-shadow:2px 4px 12px #0004;color:#242629}
.studio-shell .app-menu-popup>button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;border:0;border-radius:1px;background:transparent;color:#22272b;padding:5px 9px;min-height:25px;font:11px Arial,sans-serif;white-space:normal}
.studio-shell .app-menu-popup>button:hover,.studio-shell .app-menu-popup>button:focus{outline:0;background:#ffad49;color:#202225}
.studio-shell .app-menu-popup>button[aria-disabled=true]{color:#777c81;cursor:default}.studio-shell .app-menu-popup>button[aria-disabled=true]:hover{background:#d3d5d7}.app-menu-popup small{font-size:9px;white-space:nowrap;color:#686d72}.app-menu-popup hr{border:0;border-top:1px solid #b5b9bd;margin:4px 3px}.app-menu-popup .menu-back{border-bottom:1px solid #b5b9bd!important;font-weight:bold!important}.menu-footnote{font-size:9px;color:#5d646a;line-height:1.4;margin:5px 8px 2px;border-top:1px solid #bbbfc3;padding-top:5px}
@media(max-width:760px){body.studio-shell{grid-template-rows:auto auto minmax(0,1fr) 22px}.studio-shell .topbar{min-height:78px}.app-menubar{overflow-x:auto;flex-wrap:nowrap;height:24px}.studio-shell .app-menubar>button{font-size:10px;padding:4px 7px;flex:none}.studio-shell .browser{top:141px}.app-menu-popup{max-height:calc(100dvh - 90px)}}

#templates-dialog{width:min(650px,94vw);max-height:90dvh;overflow:auto}#templates-dialog .template-save{display:grid;grid-template-columns:1fr auto;gap:6px;margin:16px 0}#templates-dialog .template-save label{grid-column:1/-1}#templates-dialog input{min-width:0}#template-search,#template-list{display:block;width:100%;margin:6px 0}#template-list{height:160px;padding:4px}#template-list option{padding:6px}#templates-dialog #template-status{min-height:18px;font-size:12px;color:#30363a}#templates-dialog .preset-actions{gap:6px} @media(max-width:500px){#templates-dialog .template-save{grid-template-columns:1fr}}
.studio-shell .arrangement-tool .loop-controls{background:#c3c7ca;color:#30363a}.studio-shell .arrangement-tool[open]>summary{color:#653900}#time-clipboard-state{color:#30363a;font-size:10px;flex-basis:100%}

.time-selection-range{position:absolute;top:0;bottom:0;background:#ff991f28;border-left:1px solid #925000;border-right:1px solid #925000;z-index:3;pointer-events:none;box-sizing:border-box}.timeline.time-select-mode .timeline-lane{touch-action:none;cursor:crosshair}#time-selection-status{font-size:10px;color:#30363a;flex-basis:100%}.studio-shell #time-select-mode[aria-pressed=true]{background:#ff991f;color:#222}

.studio-shell .region.dragging{z-index:4;opacity:.85;outline:1px solid #3d4246}.studio-shell .region.dragging.invalid{outline:2px solid #a52b23;background:#d98179}

.studio-shell #timeline:focus-visible{outline:1px solid #e38a32;outline-offset:2px}

.studio-shell .region.copy-preview{cursor:copy;border-style:dashed}

.studio-shell .region:focus-visible{outline:2px solid #e38a32;outline-offset:-2px}

.studio-shell .region.inactive{background:#a8aaac;color:#505459;border-color:#767b7f;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 5px,#ffffff18 5px,#ffffff18 6px)}
.studio-shell .region.inactive .region-name{text-decoration:line-through}

@media(max-width:760px){
 .device-workspace{flex-wrap:wrap;align-content:flex-start}
 .device-workspace #instrument{order:-1;flex:0 0 100%;width:100%;min-width:0}
 .device-workspace #midi-effects{max-width:100%;overflow-x:auto}
 .device-workspace .drum-layout{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:10px}
 .device-workspace .drum-pads{min-width:0;max-width:100%;gap:5px}
 .device-workspace .drum-pad{min-height:54px;padding:6px}
}

.note-quantize-options{margin:10px 0;border:1px solid var(--line);padding:8px;background:var(--surface,transparent)}.note-quantize-options summary{cursor:pointer;font-size:11px;font-weight:600}.note-quantize-options .note-tools{margin-top:8px}.note-quantize-options .micro{margin:5px 0 0;max-width:80ch}

.record-quantization-options{margin:12px 0;padding:10px;border:1px solid var(--line);min-width:0}.record-quantization-options legend{padding:0 5px;font-size:11px;font-weight:600}.record-quantization-options .input-controls{display:flex;flex-wrap:wrap;gap:10px}.record-quantization-options label{min-width:0}.record-quantization-options select{max-width:100%}

/* Keep capture controls visible while reviewing a growing overdub. */
.studio-shell .input-record-actions{position:sticky;top:0;z-index:3;padding:8px 0;margin:4px 0;background:var(--panel,#a9abad);border-bottom:1px solid #818487}
.studio-shell #input-overdub-preview{margin:8px 0;padding:8px;border:1px solid #85888a;background:#9fa2a4}
.studio-shell #input-overdub-preview strong{display:block;margin-bottom:6px;font-size:11px}

.studio-shell #input-overdub-preview .micro{margin:4px 0 0}
@media(max-width:720px){.studio-shell #input-overdub-preview{padding:4px;margin:4px 0}.studio-shell #input-overdub-preview svg{height:44px!important}.studio-shell .input-record-actions{gap:6px;padding:5px 0}}

.studio-shell #input-overdub-preview .micro{color:#34373b}

/* Recent projects share the existing compact studio dialog. */
#recent-sets-dialog{width:min(520px,94vw)}
#recent-list{display:block;width:100%;margin:10px 0;min-height:140px;background:var(--panel);color:var(--text);border:1px solid var(--line)}
#recent-list option{padding:9px 10px}
#recent-summary,#recent-status{min-height:1.5em;overflow-wrap:anywhere}

#history-dialog{width:min(580px,94vw)}
#history-list{display:block;width:100%;min-width:0;margin:10px 0;min-height:176px;background:var(--panel);color:var(--text);border:1px solid var(--line)}
#history-list option{padding:7px 9px}
#history-summary,#history-status{min-height:1.5em;overflow-wrap:anywhere}

.clip-grid-line{position:absolute;top:0;bottom:0;width:1px;background:#85898d55;pointer-events:none}

#metronome-dialog{width:min(430px,94vw)}
#metronome-dialog>label{display:flex;align-items:center;gap:9px;margin:16px 0}
#metronome-volume{flex:1;min-width:70px}
#tap-tempo{padding:3px 6px;min-height:24px}

/* Inline mixer values share the DAW's compact numeric control treatment. */
.studio-shell .channel input.mix-value{appearance:none;display:block;box-sizing:border-box;width:52px;max-width:none;height:18px;min-height:0;margin:0 auto 3px;padding:1px 2px;border:1px solid transparent;border-radius:0;background:transparent;color:#30363b;font:9px/14px ui-monospace,monospace;text-align:center;letter-spacing:-.3px;cursor:text}
.studio-shell .channel input.mix-value:hover{border-color:#85898d;background:#c8cacc}.studio-shell .channel input.mix-value:focus{outline:1px solid var(--accent);background:#e1e3e4;border-color:transparent}
.studio-shell #mixer .channel label:has([data-volume]) .mix-value,.studio-shell #mixer .channel label:has(#master) .mix-value{position:relative;left:-12px}.studio-shell #mixer .channel label:has([data-pan]) .mix-value{position:relative;left:-3px}
.studio-shell .return-channel input.mix-value{display:inline-block;float:right;margin:0}
.studio-shell .channel-name.track-selected{background:#cdd3d5;box-shadow:inset 0 -2px var(--accent);color:#22292c}
#stem-import-dialog{width:min(510px,94vw)}#stem-import-dialog>p{line-height:1.5}#stem-import-dialog [data-list]{max-height:150px;overflow:auto;padding-left:20px;overflow-wrap:anywhere}#stem-import-dialog>label{display:flex;align-items:center;gap:10px;margin:12px 0}#stem-import-dialog [data-start]{width:110px}#stem-import-dialog [data-status]{min-height:2em;font-size:11px}

#project-save-dialog{width:min(460px,94vw)}#project-save-dialog p{line-height:1.5}#project-save-dialog label{display:flex;flex-direction:column;gap:6px}#project-save-dialog input{width:100%;box-sizing:border-box}#project-save-dialog [data-status]{min-height:1.5em}#project-save-dialog [data-filename]{overflow-wrap:anywhere}

body .channel .meter.is-clipping i{background:#c94138}
.studio-shell .return-channel .meter{position:relative;right:auto;bottom:auto;width:100%;height:4px;margin-top:8px}
.studio-shell .return-channel .meter i{height:100%!important;width:var(--meter-fill,0%)!important;transition:width .06s linear}

.empty-slot-controls [data-slot-stop].slot-stop-removed{visibility:hidden}
