/* Warm graphite studio. A bounded workspace, with independent working panes. */
:root{--bg:#242320;--panel:#2c2a27;--line:#45413a;--muted:#aaa398;--text:#ede8df;--accent:#e9ad50}
html,body{height:100%;overflow:hidden}.studio-shell{display:grid;grid-template-rows:48px 44px minmax(0,1fr) 28px;font-family:Arial,system-ui,sans-serif;font-size:12px}
.studio-shell button,.studio-shell input,.studio-shell select{border-radius:2px;font-size:11px}.studio-shell button{background:#36332e;padding:5px 9px}.studio-shell button:hover{background:#484238;border-color:#8c7a5d}.studio-shell input,.studio-shell select{background:#24221f;border-color:#514a40}.studio-shell button.primary,.studio-shell button[aria-pressed=true],.studio-shell .tabs .active{background:var(--accent);border-color:var(--accent);color:#211c15}.studio-shell .topbar{height:auto;padding:0 14px;gap:18px;background:#302d28}.brand{font-size:17px;letter-spacing:-.5px}.logo{font-size:25px}.beta{font-size:8px;color:#bcb4a7;border-color:#60574a}.project-title input{font-size:12px;padding:0;width:180px}.project-title span{font-size:9px}.file-actions{gap:4px}.studio-shell .transport{height:auto;gap:15px;padding:0 14px;background:#38342e}.transport-button{width:28px;height:27px}.position{font-size:13px;min-width:100px}.separator{margin:0 5px}.tempo input{font-size:14px}.engine-state{font-size:9px}.studio-shell .workspace{min-height:0;height:100%;overflow:hidden}.studio-shell .browser{width:192px;flex:0 0 192px;padding:17px 12px;background:#292723;overflow:auto}.browser-title{font-size:10px;letter-spacing:1.4px;font-weight:700;display:flex;justify-content:space-between}.browser-title span{font-size:8px;color:var(--accent)}.browser-caption{font-size:11px;color:var(--muted);margin:8px 0 24px}.library-group{display:flex;flex-direction:column;gap:4px;margin-bottom:24px}.library-group>.section-label{margin-bottom:7px}.studio-shell .library-group button{display:flex;gap:10px;align-items:center;text-align:left;border:0;background:transparent;padding:9px 5px}.library-group button:hover{color:var(--accent)}.studio-shell .import-button{margin:0}.browser-bottom{font-size:10px;padding-top:24px;color:#c0b7a7}.browser-bottom p{color:var(--muted);line-height:1.5}.browser-collapsed .browser{display:none}.studio-shell main{padding:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}.studio-shell .viewbar{height:44px;min-height:44px;gap:8px;padding:0 10px;border-bottom:1px solid var(--line);background:#2b2925}.tabs{border:0;background:#211f1c;padding:2px;border-radius:2px;margin-right:auto}.studio-shell .tabs button{padding:6px 14px;background:transparent}.view-actions{gap:5px}.view-actions>span{margin-right:5px}.studio-stage{flex:1;min-height:140px;overflow:auto;padding:10px;background:#211f1c}.session-grid,.mixer{border-radius:0;background:var(--line);border-color:var(--line)}.studio-shell .track-header{height:30px;padding:6px 10px;background:#35312b;font-size:11px}.studio-shell .slot{height:43px;padding:3px;background:#2d2a25}.studio-shell .slot.selected{background:#534735;box-shadow:inset 0 0 0 1px var(--accent)}.clip{border-radius:2px}.clip-select{gap:2px}.clip-select small{font-size:7px}.studio-shell .launch{padding:8px}.studio-shell .scene{background:#39342d;padding:0 10px}.studio-shell .track-stop{padding:5px;background:#302c27}.session-hint{margin:7px 1px 12px;font-size:9px}.session-hint span:first-child{color:#c5b79e}.studio-mixer>.mixer-heading{padding:5px 2px;font-size:8px}.studio-shell .channel{padding:9px 10px;background:#2d2a26;min-width:0}.studio-shell .channel-name{display:flex;width:100%;margin:0 0 9px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 7px;font-size:10px}.channel label{font-size:8px;margin-bottom:5px}.channel input[type=range]{height:13px}.channel .toggles{margin-top:5px}.channel .meter{margin-top:6px}.detail-panel{flex:0 0 34%;min-height:180px;max-height:55%;border-top:3px solid #171613;display:flex;flex-direction:column;background:#302c26}.detail-tabs{display:flex;align-items:center;gap:2px;padding:5px 8px;border-bottom:1px solid var(--line);min-height:35px;background:#3a352d}.studio-shell .detail-tabs button{border:0;background:transparent;color:#bfb5a6;padding:5px 14px}.studio-shell .detail-tabs button[aria-selected=true]{background:#24211c;color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.detail-context{font-size:9px;color:#a89d8c;margin-left:auto}.detail-content{overflow:auto;min-height:0;flex:1;padding:12px}.detail-content>[hidden],[hidden]{display:none!important}.detail-panel.collapsed{flex:0 0 35px;min-height:35px}.detail-panel.collapsed .detail-content{display:none}.studio-shell .editor,.studio-shell .device-rack,.studio-shell .input-rack,.studio-shell .return-rack{margin:0;padding:0;border:0;border-radius:0;background:transparent}.editor-heading,.device-rack-heading{margin-bottom:10px}.editor-heading h2,.device-rack-heading h2,.input-rack h2{font-size:14px;margin:3px 0}.section-label{font-size:8px;color:#b4a58f;letter-spacing:1.3px}.clip-badge{border-color:#64553d;color:var(--accent)}.detail-content .micro{font-size:10px;line-height:1.5}.device-chain{display:flex;overflow:auto;align-items:stretch}.device-card{min-width:240px;max-width:360px;flex:0 0 280px}.studio-shell footer{padding:0 12px;height:auto;min-height:0;font-size:9px;background:#302c26;border-top:1px solid var(--line);gap:12px}.studio-shell footer button{font-size:9px;padding:3px 6px}.studio-dialog{max-width:min(850px,94vw);max-height:85vh;background:#302c26;border:1px solid #786345;color:var(--text);padding:18px}.studio-dialog::backdrop{background:#100e0bb5}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:16px}.dialog-heading h2{margin:0;font-size:17px}.studio-dialog details>summary{display:none}.studio-dialog .export-settings,.studio-dialog .set-manager{padding:0;margin:0;border:0;background:transparent}.arrangement-tools{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0}.arrangement-tool>summary{cursor:pointer;list-style:none;padding:5px 12px;background:#39342d;border:1px solid var(--line);font-size:10px}.arrangement-tool[open]{flex:1 0 100%;order:2}.arrangement-tool[open]>summary{color:var(--accent)}.arrangement-tool .loop-controls{margin:0;padding:10px;background:#302b25}.studio-shell .loop-controls,.studio-shell .arrangement-toolbar{padding:6px;gap:7px;font-size:10px}.loop-controls>span,.arrangement-toolbar>span,.arrangement-help{display:none}.automation-editor{margin:0}.timeline{margin:8px 0}.studio-shell .timeline-label,.studio-shell .timeline-ruler{background:#353029}.studio-shell .timeline-lane{background-color:#28251f}.studio-shell .input-controls{gap:10px}.studio-shell .instrument{background:#28251f;border-color:var(--line)}
@media(max-width:1000px){.studio-shell .browser{width:160px;flex-basis:160px}.beta,.engine-state,.detail-context,.view-actions>span{display:none}.studio-shell .transport{gap:10px}.file-actions button{font-size:10px}.project-title input{width:120px}.studio-shell .topbar{gap:10px}.brand{font-size:14px}}
@media(max-width:720px){.studio-shell{grid-template-rows:auto auto minmax(0,1fr) 30px}.studio-shell .topbar{padding:7px 9px;flex-wrap:wrap;gap:6px}.brand{flex:1}.project-title{margin:0}.project-title span{display:none}.file-actions{width:100%;justify-content:flex-end}.studio-shell .transport{padding:6px 9px;flex-wrap:wrap;gap:8px}.engine-state,.transport-note,#back{display:none}.studio-shell .browser{display:none}.studio-shell .browser-collapsed .browser{display:none}#toggle-browser{display:none}.studio-shell .viewbar{height:auto;min-height:42px;flex-wrap:wrap;padding:6px}.view-actions{margin-left:auto}.tabs button{padding:6px 10px!important}.view-actions button{padding:5px!important;font-size:9px}.studio-stage{padding:6px;min-height:100px}.detail-panel{flex-basis:38%;min-height:160px}.detail-tabs{padding:4px}.studio-shell .detail-tabs button{padding:5px 9px}.detail-content{padding:9px}.studio-shell footer>span:first-child{display:none}#status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-hint{display:none}.editor-heading,.device-rack-heading{flex-wrap:wrap}.studio-shell .device-rack-heading>div{max-width:100%;flex-wrap:wrap}.studio-shell .clip-editor{min-width:0}.studio-shell .input-rack{display:block}.studio-shell .management-columns{grid-template-columns:1fr}.studio-shell .export-options{flex-wrap:wrap}.studio-shell .piano-scroll{max-width:100%}}
.studio-shell .workspace{width:100%;max-width:none;margin:0}.clip-editor{grid-template-columns:minmax(0,1fr) minmax(280px,330px);gap:18px}.clip-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.clip-fields button{white-space:normal;min-width:0}.clip-fields select{width:100%;min-width:0}.clip-fields label{min-width:0}.waveform{background:#23211d;border-color:#494236}.clip-badge{background:#3a3225}.studio-shell .channel:last-child{--track:var(--accent)!important}.studio-shell .record{color:#ec8974}.studio-shell footer #status{min-width:0}.detail-content .editor-caption{color:var(--muted)}
@media(max-width:1000px){.clip-editor{grid-template-columns:minmax(0,1fr)}.clip-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){#toggle-browser{display:block}.studio-shell .browser{display:none;position:absolute;z-index:10;top:140px;bottom:30px;left:0;width:220px;box-shadow:10px 0 30px #0008}.studio-shell.browser-mobile-open .browser{display:flex}.clip-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-shell footer{flex-wrap:nowrap}.studio-shell footer #status{order:0;width:auto;flex:1}.file-actions button{flex:1}.studio-dialog{width:94vw}.detail-content .device-rack-heading select{max-width:135px}}
.detail-divider{height:7px;flex:0 0 7px;background:#191713;cursor:row-resize;touch-action:none;position:relative;z-index:1}.detail-divider:after{content:'';position:absolute;width:34px;height:2px;left:calc(50% - 17px);top:2px;background:#77664b}.detail-divider:hover,.detail-divider:focus-visible{background:#685133;outline:1px solid var(--accent);outline-offset:-1px}.detail-panel{flex-basis:var(--detail-size,34%);max-height:65%;border-top:0}.detail-panel.collapsed{flex-basis:35px}
@media(max-width:720px){.detail-divider{height:10px;flex-basis:10px}.detail-divider:after{top:4px}.detail-panel{flex-basis:var(--detail-size,34%)}.detail-panel.collapsed{flex-basis:35px}.file-actions #export-options{flex:0 0 28px}.studio-shell .file-actions{flex-wrap:nowrap;gap:3px}.studio-shell .file-actions button{padding:5px;font-size:9px}}
.studio-shell .browser{width:224px;flex-basis:224px}.browser-caption{margin-bottom:14px}#studio-library{min-height:210px;display:flex;flex-direction:column;margin-bottom:16px}.library-search-label{font-size:10px;color:var(--muted);margin-bottom:5px}.library-search-row{display:flex;gap:3px}.library-search-row input{width:100%;min-width:0}.library-search-row button{flex:0 0 24px;padding:4px!important}#library-category{width:100%;margin-top:7px}#library-destination{font-size:9px;line-height:1.5;margin:8px 0}.library-results{max-height:35vh;min-height:75px;overflow:auto;border:1px solid var(--line);background:#211f1b}.studio-shell .library-results button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal;width:100%;text-align:left;border:0;border-bottom:1px solid #3a352e;border-radius:0;background:transparent;padding:9px}.studio-shell .library-results button:hover,.studio-shell .library-results button:focus-visible{background:#463a28;color:var(--accent);outline-offset:-2px}.library-results small{font-size:9px;color:var(--muted)}.library-empty{padding:10px;font-size:11px;line-height:1.6;color:var(--muted)}#library-count{margin:5px 0 0}.browser .library-group{margin-bottom:12px}.browser .browser-bottom{padding-top:15px}@media(max-width:1000px) and (min-width:721px){.studio-shell .browser{width:190px;flex-basis:190px}}@media(max-width:720px){.studio-shell .browser{width:min(300px,85vw);top:100px}.library-results{max-height:32vh}}
#sound-presets{margin-top:8px;width:100%}.preset-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}#sound-presets-dialog input,#sound-presets-dialog select{max-width:100%;margin-left:10px}#sound-preset-status{font-size:12px;color:var(--accent)}
#follow-state{color:var(--muted);font-size:10px}#follow-resume{color:var(--accent)}

.follow-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;padding-top:10px}.follow-settings summary{cursor:pointer;color:var(--accent)}.launch.has-follow{background-image:repeating-linear-gradient(135deg,transparent 0 4px,#d9a44e30 4px 6px)}

.scene-cell{display:grid;grid-template-columns:minmax(0,1fr) 24px;min-width:0}.scene-cell .scene{min-width:0;padding:0 6px;gap:5px}.scene-settings{border:0;border-radius:0;padding:0}.scene.has-follow{background-image:repeating-linear-gradient(135deg,transparent 0 5px,#d9a44e18 5px 7px)}.scene[aria-pressed="true"]{box-shadow:inset 0 0 0 1px var(--accent)}#scene-follow-editor{margin-top:12px;border-top:1px solid var(--border);padding-top:8px}

#scene-follow-editor label:has(input[type="checkbox"]){display:flex;align-items:center;gap:8px}#scene-follow-editor input[type="checkbox"]{width:auto;flex:none}

.warp-marker-lane{position:relative;height:30px;margin:0 8px 7px;touch-action:none;border-top:1px solid var(--accent)}.studio-shell .warp-marker{position:absolute;top:2px;transform:translateX(-50%);min-width:24px;height:24px;padding:2px;background:#654d29;color:#ffe4b5;border-color:var(--accent);touch-action:none;cursor:ew-resize}.warp-marker:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#warp-timing summary{color:var(--accent);cursor:pointer}.warp-marker-actions{display:flex;gap:8px;margin:8px 0}.warp-marker-row{display:grid;grid-template-columns:24px 1fr 1fr 28px;align-items:end;gap:8px;margin:8px 0}.warp-marker-row input{width:100%;min-width:0}.warp-marker-row label{font-size:10px}.warp-marker-row span{align-self:center;color:var(--accent)}.warp-marker-rows{max-height:240px;overflow:auto}
