/* Carbon workspace. Layout, controls and instrument dock share one visual system. */
:root{--sans:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;--mono:"Cascadia Mono",Consolas,monospace;--text:#d5d8df;--ink:#d5d8df;--dim:#969ca7;--subtle:#7b7c7e;--rule:#2b2c2e;--amber:#c7a572;--amber-hi:#e3c48f;--cyan:#a5a6a8;--accent:#c7a572;--accent2:#e3c48f;--carbon:#0b0c0e;--panel:#131416;--raised:#1c1d1f}
*{box-sizing:border-box}html,body{margin:0;background:var(--carbon);color:var(--text);font-family:var(--sans)}body{font-size:12px}button,input,select{font-family:var(--sans)}button,a,input,select,summary{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #d7b781}button,select,summary{cursor:pointer}[hidden]{display:none!important}
.hardware-panel,.inset-panel{border:1px solid var(--rule);background:var(--panel);border-radius:4px;box-shadow:none}.screw{display:none}.app-shell{width:100%;max-width:none;margin:0}.top-rack{height:52px;min-height:52px;display:flex;align-items:center;gap:28px;padding:0 20px;border:0;border-bottom:1px solid #2a2b2d;border-radius:0;background:#0f1012}.brand-stack{display:flex;align-items:center;gap:10px}.brand-badge{width:27px!important;height:27px!important;border:1px solid #4a4235;border-radius:5px;background:#181712;box-shadow:none}.brand-badge span{font-size:9px;color:#c5ad83}.brand-badge b{font-size:11px;color:#c5ad83}.top-rack h1{font:600 14px var(--sans);letter-spacing:-.2px;margin:0;color:#e1e4ea}.top-rack p,.top-rack .overline{display:none}.app-tabs{display:flex;align-self:stretch;align-items:stretch;gap:5px;padding:0;background:none;border:0;box-shadow:none;order:0;margin:0 auto}.app-tabs button{min-width:76px;padding:0 14px;font:12px var(--sans);letter-spacing:0;background:none;border:0;border-radius:0;box-shadow:none;color:#8e8f91}.app-tabs button.active{color:#e0c496;background:#17181a;border-bottom:2px solid #b99b6c;box-shadow:none}.app-tabs button:hover{color:#eef0f5;background:#1a1b1d}
.file-menu{position:relative}.file-menu>summary{font:12px var(--sans);padding:7px 12px;color:#acb2be;list-style:none;border:1px solid #303133;border-radius:4px;background:#191a1c}.file-menu>summary::after{content:'⌄';margin-left:15px;color:#898a8c}.file-menu-content{position:absolute;right:0;top:38px;z-index:50;width:230px;padding:6px;background:#1d1e20;border:1px solid #3d3e40;border-radius:6px;box-shadow:0 12px 36px #0009}.file-menu-content a{display:block;padding:10px 12px;color:#c1c7d0;text-decoration:none;border-radius:3px;font-size:12px}.file-menu-content a:hover{background:#2e2f31;color:#fff}
body[data-view=workstation] .app-shell{height:100dvh;min-height:0;display:flex;flex-direction:column}body[data-view=workstation] #studioMain{flex:1;min-height:0}body[data-view=workstation] #view-workstation{height:100%;padding:0}.main-rack{height:100%;display:flex;flex-direction:column;border:0;border-radius:0;padding:0;background:#0c0d0f}
.track-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 20px;height:62px;min-height:62px;margin:0;border-bottom:1px solid #28292b;background:#141517}.track-copy{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:12px}.project-mark{display:none}.track-copy .overline{grid-column:1;grid-row:2;color:#8e8f91;font:9px var(--mono);letter-spacing:.08em;line-height:1.6}.track-copy h2{grid-column:1;grid-row:1;font:600 20px var(--sans);letter-spacing:-.4px;margin:0;color:#e3e6ec}.track-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:540px}.track-meta span{font:10px var(--mono);font-variant-numeric:tabular-nums;color:#9a9b9d;padding:4px 7px;border:0;background:none;border-radius:2px}.track-meta span:nth-child(n+4){background:#1e1f21;color:#c0c7d0}
.compact-control-strip{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:9px 20px;margin:0;min-height:52px;border:0;border-bottom:1px solid #2b2c2e;border-radius:0;background:#151618;box-shadow:none}.transport-group{display:flex;align-items:center;gap:5px}.transport-group>.mini-label{display:none}.compact-button,.compact-control-strip select{background:#222325;border:1px solid #343537;border-radius:4px;box-shadow:none;color:#c2c3c5;font:12px var(--sans);height:32px;min-height:32px;padding:0 10px;text-decoration:none;display:inline-flex;align-items:center;gap:5px}.compact-control-strip select{display:block;max-width:170px;padding-right:4px}.compact-button.amber{background:#c7aa79;color:#191a1c;border-color:#c7aa79;box-shadow:none;font-weight:600;min-width:65px;justify-content:center}.compact-button:hover{border-color:#808183;color:#f1f4f9}.compact-button.amber:hover{color:#191a1c;background:#ddc392}.mini-label{font:9px var(--mono);color:#939496}.inline-control{display:grid;grid-template-columns:auto minmax(45px,1fr) 32px;align-items:center;gap:8px;flex:0 1 145px;margin:0}.inline-control span{font:9px var(--mono);color:#999a9c}.inline-control output{font:10px var(--mono);color:#c9d0da;text-align:right}.tempo-control{grid-template-columns:auto minmax(40px,1fr) 34px 26px;flex-basis:185px}.tempo-control b{font:10px var(--mono);color:#9e9fa1}.transport-readout{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:0;border:0;background:none;box-shadow:none;min-width:128px}.transport-readout span{font:8px var(--mono);color:#8b8c8e;letter-spacing:.08em}.transport-readout strong{font:500 15px var(--mono);color:#dbdfe7;letter-spacing:.025em;font-variant-numeric:tabular-nums}
input[type=range]{accent-color:#b8a079}.inline-control input[type=range],.scrub-module input[type=range],.instrument-row input[type=range]{appearance:none;width:100%;height:18px;min-height:18px;padding:0;border:0;background:linear-gradient(#393a3c,#393a3c) center/100% 2px no-repeat}.inline-control input[type=range]::-webkit-slider-thumb,.scrub-module input[type=range]::-webkit-slider-thumb,.instrument-row input[type=range]::-webkit-slider-thumb{appearance:none;width:8px;height:12px;background:#a7aeb9;border:0;border-radius:2px;box-shadow:none}.scrub-module{height:15px;min-height:15px;padding:0 20px;margin:0;border:0;border-radius:0;background:#111214;box-shadow:none;display:flex;align-items:center}.scrub-module input[type=range]{height:15px;min-height:15px}.scrub-module input[type=range]::-webkit-slider-thumb{height:8px;width:5px;background:#bba67f}
.playback-settings{position:relative;margin:0;border:0;padding:0}.playback-settings>summary{font:11px var(--sans);color:#b4b5b7;list-style:none;padding:7px 9px;border:1px solid #333436;border-radius:4px}.playback-settings>summary::after{content:'⌄';margin-left:9px}.advanced-playback{position:absolute;z-index:40;top:37px;right:0;width:330px;padding:16px;background:#202123;border:1px solid #424345;border-radius:5px;box-shadow:0 12px 30px #0009;display:grid;gap:16px}.advanced-playback .inline-control{width:100%}.pitch-control{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border:0;margin:0}.pitch-control .mini-label{width:100%}.pitch-control button{width:32px;height:28px;min-height:28px;background:#2d2e30;border:1px solid #454648;color:#cccdcf;border-radius:3px}.pitch-control output,.pitch-control b{font:11px var(--mono);color:#d2b98d}
.workstation-grid{flex:1;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr);gap:0}.browser-rack{grid-column:1;grid-row:1;min-height:0;max-height:none;display:flex;flex-direction:column;padding:16px 12px 0;border:0;border-right:1px solid #2e2f31;border-radius:0;background:#121315;overflow:hidden}.browser-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}.browser-head .overline{display:none}.browser-head h3{font:600 13px var(--sans);line-height:1.4;margin:0;color:#c8c9cb}.browser-head-actions{display:flex;align-items:center;gap:5px}.count-badge{font:9px var(--mono);color:#999a9c;background:#28292b;border:0;border-radius:3px;padding:4px}.local-import-status{font:10px var(--sans);line-height:1.5;color:#7d7e80;margin:0 0 12px}.category-picker{position:relative;margin-bottom:10px}.category-picker>summary{list-style:none;font:11px var(--sans);color:#adaeb0;padding:8px 10px;border:1px solid #37383a;border-radius:4px;background:#1c1d1f}.category-picker>summary::after{content:'⌄';float:right}.category-tabs{position:absolute;top:34px;left:0;right:0;z-index:35;display:flex;flex-direction:column;gap:2px;background:#242527;border:1px solid #424345;box-shadow:0 15px 35px #0009;border-radius:4px;padding:5px;margin:0;max-height:310px;overflow:auto}.category-tabs button{font:11px var(--sans);line-height:1.3;text-align:left;min-width:0;white-space:normal;background:none;color:#babbbd;border:0;border-radius:3px;padding:8px;box-shadow:none}.category-tabs button.active{background:#39362e;color:#e1cba5}.category-tabs button:hover{background:#353638;color:#eef2f7}
.browser-rack .field-label{margin:0}.browser-rack .field-label>span{display:none}.browser-rack input[type=search],.browser-rack select{width:100%;font:11px var(--sans);min-height:32px;border:1px solid #353638;background:#0e0f11;color:#c8c9cb;border-radius:4px;padding:7px 9px}.catalog-filters{border:0;margin:0 0 4px}.catalog-filters summary{padding:9px 0;font:10px var(--sans);color:#8d8e90;cursor:pointer}.catalog-filters select{margin-bottom:8px}.track-list{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;gap:2px;overflow:auto;padding-bottom:8px;margin:0 -5px 0 0;padding-right:5px}.track-list button{flex-shrink:0;position:relative;border:1px solid transparent;border-radius:4px;background:none;box-shadow:none;padding:11px 9px;text-align:left;min-width:0;color:#b4b5b7}.track-list button:hover{background:#212224;border-color:#353638}.track-list button.active{background:#28292b;border-color:#47484a;box-shadow:inset 2px 0 #ceb185}.track-row strong{font:500 12px var(--sans);color:#d0d1d3;line-height:1.5}.track-row small{font:10px var(--sans);color:#838486;line-height:1.5}.track-row .mini-tags{margin-top:6px}.mini-tags span{font-size:8px;background:none;border-color:#38393b;color:#8f9092}.track-row.active strong{color:#ead4ae}
.roll-column{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;padding:0 16px;background:#0f1012;overflow:auto}.studio-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 0;flex-shrink:0;min-height:48px}.studio-tools .module-label{font:9px var(--mono);color:#7a7b7d;margin-right:16px}.studio-history{display:flex;gap:5px;margin-left:auto}.studio-tools button,.studio-tool-panel button,.studio-note-editor button,.studio-ensemble button,.focus-instrument button,.micro-button,.metal-button{font:11px var(--sans);color:#b7b8ba;padding:6px 10px;min-height:29px;background:#242527;border:1px solid #3d3e40;border-radius:4px;box-shadow:none;cursor:pointer}.metal-button.amber,.studio-tool-panel .studio-primary{background:#bba37b;color:#1a1b1d;border-color:#bba37b;box-shadow:none}.studio-tools button:hover,.studio-tool-panel button:hover,.studio-note-editor button:hover,.studio-ensemble button:hover,.micro-button:hover{background:#37383a;color:#eef2f8;border-color:#68696b}.studio-tools button[aria-expanded=true]{color:#e4d0ac;border-color:#8d7758;background:#342e24}.studio-tools button:disabled,.studio-note-editor button:disabled{opacity:.35;cursor:default}.studio-tool-panel{flex-shrink:0;background:#1d1e20;border:1px solid #414244;padding:12px;margin-bottom:10px;border-radius:4px}.studio-control-row{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.studio-control-row+.studio-control-row{margin-top:10px}.studio-control-row label{display:grid;gap:5px;flex:1;min-width:100px;color:#acadaf;font-size:11px}.studio-control-row label span{display:flex;gap:4px}.studio-control-row input[type=number]{width:70px}.studio-control-row select{width:100%}.studio-control-row input,.studio-control-row select{background:#121315;border:1px solid #444547;border-radius:3px;color:#d1dae7;padding:6px;min-height:30px;font:11px var(--mono)}.studio-control-row input[type=range]{width:100%;padding:0}.studio-control-row output{color:#d9ba88}.studio-tool-panel p{font-size:11px;color:#929395;margin:10px 0 0}
.roll-frame{flex:1;min-height:235px;border:1px solid #393a3c;border-bottom:0;border-radius:4px 4px 0 0;background:#0e0f11;overflow:hidden;position:relative}.roll-frame canvas{display:block;width:100%;height:100%;min-height:235px;cursor:crosshair}.roll-readout{pointer-events:none;background:#0b121bdc;border:1px solid #353638;border-radius:3px;padding:5px 8px;box-shadow:none}.roll-readout span{font:8px var(--mono);color:#858688}.roll-readout strong{font:11px var(--mono);color:#c8c9cb}.studio-note-editor{flex-shrink:0;display:grid;grid-template-columns:minmax(100px,1.3fr) minmax(100px,1.3fr) repeat(4,minmax(42px,.55fr)) auto;align-items:end;gap:10px;padding:10px;background:#1c1d1f;border:1px solid #393a3c;border-radius:0 0 4px 4px}.studio-note-editor label{display:grid;gap:5px;font:10px var(--sans);color:#a1a2a4}.studio-note-editor input,.studio-note-editor select{width:100%;min-width:0;min-height:28px;padding:4px 6px;font:11px var(--mono);background:#141517;border:1px solid #3f4042;border-radius:3px;color:#d2d3d5}.studio-note-editor button{color:#d8c4a1;border-color:#5a5142;background:#282820}.studio-status{flex-shrink:0;font:10px var(--sans);line-height:18px;color:#858688;min-height:18px;margin:5px 0 7px}.studio-status[data-error=true]{color:#eab09c}
.studio-dock{flex:0 0 225px;min-height:225px;display:flex;flex-direction:column;border-top:1px solid #37383a;margin:0 -16px;background:#17181a}.dock-tabs{display:flex;align-items:center;height:37px;min-height:37px;gap:0;border-bottom:1px solid #37383a;padding:0 16px;background:#1d1e20}.dock-tabs button{font:11px var(--sans);padding:0 15px;height:37px;color:#939496;background:none;border:0;border-bottom:2px solid transparent;cursor:pointer}.dock-tabs button[aria-selected=true]{color:#e3ca9f;border-bottom-color:#c9ae80;background:#252628}.dock-caption{margin-left:auto;font:8px var(--mono);letter-spacing:.09em;color:#696a6c}.dock-panel{flex:1;min-height:0;overflow:auto;margin:0;border:0;border-radius:0;padding:0;background:none}.studio-ensemble{position:relative;display:flex;flex-direction:column}.atelier-controls{height:32px;min-height:32px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 16px;border:0;background:none}.atelier-kicker{display:none}.atelier-actions{display:flex;gap:8px}.atelier-actions button{font-size:9px;min-height:23px;padding:2px 6px;background:none;border-color:#3b3c3e;color:#97989a}.studio-ensemble #studioInstruments{display:flex;gap:1px;flex:1;min-height:0;overflow:auto;padding:0 16px 8px;background:none;scrollbar-width:thin}.studio-ensemble .instrument{flex:0 0 210px;min-width:0;position:relative;background:#1a1b1d;border:1px solid #3b3c3e;border-radius:0;padding:0;overflow:hidden}.studio-ensemble .instrument.selected{background:#232426;border-color:#7d705a}.studio-ensemble .instrument.muted{opacity:.4}.studio-ensemble .instrument header{display:flex;align-items:center;gap:4px;padding:7px 8px 0}.studio-ensemble .instrument-name{flex:1;min-width:0;text-align:left;font:500 11px var(--sans);color:#bdbec0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;padding:0;background:none;min-height:21px}.studio-ensemble .instrument.selected .instrument-name{color:#dfc79f}.studio-ensemble .role{display:none}.lane-buttons{display:flex;gap:3px}.lane-buttons button{height:19px;min-height:19px;width:19px;padding:0;font:9px var(--mono);border-color:#454648;background:none;color:#939496}.lane-buttons button[aria-pressed=true]{color:#eed6aa;border-color:#af9466}.studio-ensemble .readout{display:flex;justify-content:space-between;padding:1px 8px;font:9px var(--mono)}.readout strong{color:var(--voice);font-weight:400}.readout span{color:#828385;font-size:8px}.studio-ensemble .surface{height:82px;width:100%}.studio-ensemble .event-trail{height:8px;width:calc(100% - 16px);margin:0 8px;display:block}.studio-ensemble .instrument footer{display:flex;align-items:center;gap:5px;font:8px var(--mono);color:#8e8f91;padding:4px 8px;border:0;text-align:left}.level{flex:1;height:2px;background:#131416;overflow:hidden}.level i{display:block;height:2px;background:var(--voice)}.note-pads{display:flex;gap:4px;flex-wrap:wrap;padding:5px 8px}.note-pads button{min-width:24px;min-height:24px;flex:1;font:9px var(--mono);padding:3px;background:#38393b;border-color:#525355;color:#d3d4d6}.note-pads button.accidental{background:#1a1b1d}.note-pads button.lit{background:var(--voice);color:#101113}.hide-pads .note-pads{display:none}
.instrument-column{max-height:none;padding:8px 16px}.column-head{display:flex;justify-content:space-between;align-items:center;padding:0 0 8px;margin:0;border:0}.module-label{font:9px var(--mono);color:#87888a;letter-spacing:.08em}.instrument-activity{display:flex;gap:8px;overflow:auto;min-height:130px}.instrument-row{flex:0 0 150px;padding:10px;background:#1f2022;border:1px solid #404143;border-radius:3px;margin:0;box-shadow:none}.instrument-row .instrument-name{font:11px var(--sans);color:#c8c9cb}.instrument-row .instrument-patch{display:block;min-height:30px;margin-top:7px;font:9px var(--mono);color:#999a9c}.instrument-row input{margin:8px 0}.instrument-meter{height:2px;background:#141517}.score-notes{padding:14px 20px}.score-notes>p{margin:0 0 12px;color:#b4b5b7;font-size:12px}.analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}.analysis-grid article{padding:0;border:0;background:none;box-shadow:none}.analysis-grid article>span{font:9px var(--mono);color:#88898b}.analysis-grid p{font:11px/1.6 var(--sans);color:#bcbdbf;margin:7px 0 0}
.focus-instrument{width:min(1000px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #444547;border-radius:8px;padding:24px;background:#151618;color:#c7d0dd;box-shadow:0 30px 100px #000c}.focus-instrument::backdrop{background:#02050adf;backdrop-filter:blur(6px)}.focus-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid #353638}.focus-head .atelier-kicker{display:block;color:#818284;font:9px var(--mono)}.focus-head h2{font:600 23px var(--sans);margin:6px 0 0}.focus-body .surface{max-height:50vh}.focus-body .note-pads{justify-content:center;padding:12px}.focus-body .note-pads button{flex:0 0 44px;min-height:38px;font-size:11px}.focus-instrument .hint{font:12px/1.5 var(--sans);color:#909193;border-top:1px solid #353638;padding-top:12px}.focus-instrument button{background:#292a2c;border-color:#4a4b4d}
.app-view:not(#view-workstation){padding:20px}.view-heading h2{font-size:24px;color:#d8e0eb}.view-heading p{font-size:12px;color:#98999b}.view-heading .overline{color:#87888a}.harness-rack,.bank-rack,.review-rack{background:#17181a;border-color:#393a3c}.harness-panel,.harness-json,.bank-hero,.bank-browser,.bank-usage,.review-summary{background:#121315;border-color:#3a3b3d}.soundbank-compare article,.bank-metrics article,.dimension-grid article,.critique-grid article{background:#1c1d1f;border-color:#3d3e40;box-shadow:none;border-radius:4px}.field-label input,.field-label select{background:#141517;border-color:#404143;color:#c9cacc}.overline{color:#98999b}.empty-state{padding:20px 12px;background:#1e1f21;border-color:#4a4b4d;color:#c4c5c7;font-size:12px}.app-notice{background:#292a2c;border:1px solid #747577;color:#d1dbea;font-size:12px;border-radius:5px;box-shadow:0 8px 24px #0008}
*{scrollbar-width:thin;scrollbar-color:#464749 #111214}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#111214;border-radius:0}::-webkit-scrollbar-thumb{background:#464749;border:0;border-radius:3px}
@media(max-width:1150px){.compact-control-strip{gap:10px;padding:8px 14px}.inline-control{flex-basis:120px}.tempo-control{flex-basis:165px}.workstation-grid{grid-template-columns:190px minmax(0,1fr)}.track-meta{max-width:420px;gap:0}.top-rack{padding:0 14px;gap:14px}.app-tabs button{min-width:60px;padding:0 10px}.track-header{padding:10px 14px}.studio-dock{flex-basis:215px;min-height:215px}.studio-note-editor{gap:6px}.dock-caption{display:none}}
@media(max-width:800px){body[data-view=workstation] .app-shell{height:auto;min-height:100dvh}.top-rack{height:auto;min-height:84px;flex-wrap:wrap;padding:10px 14px;gap:10px}.top-rack h1{font-size:13px}.app-tabs{order:3;flex:1 0 100%;height:31px}.app-tabs button{flex:1;min-width:0}.file-menu{margin-left:auto}.track-header{height:auto;min-height:62px;align-items:flex-start;flex-wrap:wrap;gap:6px}.track-copy h2{font-size:19px}.track-meta{justify-content:flex-start;max-width:none}.track-meta span{font-size:9px;padding:3px 5px}.compact-control-strip{gap:8px}.transport-group{flex-wrap:wrap;width:100%}.transport-group select{flex:1;max-width:none;min-width:0}.transport-group .compact-button{flex:1;justify-content:center}.inline-control{flex-basis:130px}.tempo-control{flex-basis:180px}.transport-readout{min-width:110px}.advanced-playback{left:0;right:auto;width:300px}.workstation-grid{display:flex;flex-direction:column;min-height:0}.roll-column{order:0;overflow:visible;padding:0 10px}.browser-rack{order:1;max-height:520px;min-height:300px;padding:16px 14px;border:0;border-top:1px solid #3a3b3d;overflow:visible}.track-list{min-height:130px;max-height:320px;flex:none}.category-tabs{max-height:250px}.studio-tools{gap:4px}.studio-tools .module-label{display:none}.studio-history{gap:3px}.studio-tools button{font-size:10px;padding:5px 7px}.roll-frame{height:340px;min-height:340px;flex:none}.roll-frame canvas{height:100%;min-height:0}.studio-note-editor{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-note-editor label:nth-child(-n+2){grid-column:span 2}.studio-note-editor button{grid-column:1/-1}.studio-dock{margin:0 -10px;min-height:235px;flex-basis:235px}.dock-tabs{padding:0 10px}.dock-tabs button{padding:0 12px}.analysis-grid{grid-template-columns:1fr 1fr}.score-notes{max-height:195px}.instrument-column{max-height:195px}.focus-instrument{padding:16px}.app-view:not(#view-workstation){padding:10px}.file-menu-content{top:33px}.bank-layout,.recipe-layout,.review-layout{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.focus-instrument::backdrop{backdrop-filter:none}}

/* Performance surfaces: preserve the material under note activity. */
.surface{width:100%;display:block;user-select:none;touch-action:manipulation;aspect-ratio:600/340}
.surface text{pointer-events:none}.surface [data-note]{pointer-events:all;cursor:pointer}
.surface [data-note]:hover{filter:brightness(1.13)}
.surface .play-part{transform-box:fill-box;transform-origin:center;transition:filter 90ms ease-out,stroke 90ms ease-out}
.surface .lit{filter:brightness(1.22);stroke:#ffcf83;stroke-width:1.8}
.surface .lit.white-key{transform:translateY(3px);fill:#f2d7a7}
.surface .lit.black-key{transform:translateY(2px);fill:#65513a}
.surface .lit.bar,.surface .lit.tine{transform:translateY(1.5px)}
.surface .fret{opacity:0;stroke:#ffd087;stroke-width:2}.surface .fret:hover,.surface .fret.lit{opacity:1}
.surface .harp-string.lit{stroke:#ffd087;stroke-width:2.5}
.surface [data-motion]{transition:none;transform-box:view-box}
.level{overflow:hidden}.level i{width:100%;transform:scaleX(0);transform-origin:left center}
.surface[data-reduced=true] .play-part,.surface[data-reduced=true] [data-motion],.surface[data-reduced=true] [data-vibrate]{transform:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.surface .play-part,.surface [data-motion],.surface [data-vibrate]{transform:none!important;transition:none!important}}


body::before{display:none}#playButton{background:#c7ad82;border-color:#c7ad82;color:#111318;box-shadow:none}.track-list .track-row{min-height:0;padding:10px 9px;gap:3px}.track-list .track-row strong{font-size:12px}.track-list .track-row small{font-size:10px}.track-list .track-row .mini-tags{margin-top:3px}.studio-tools .module-label{margin-right:16px}.brand-badge{display:flex;flex-direction:column;gap:0;line-height:1}.brand-badge span,.brand-badge b{position:static;line-height:1;font-size:9px}.studio-ensemble .instrument{min-height:145px}.studio-ensemble #studioInstruments{align-items:stretch}.instrument-column .column-head{min-height:28px}.roll-column{scrollbar-gutter:stable}.file-menu-content a:focus-visible{outline-offset:-2px}

.main-rack{margin:0}.brand-badge b{margin:0}.track-list .track-row small{display:block;margin:2px 0 6px}.track-list .row-meta{display:flex;gap:4px;margin:0}.track-list .row-meta span{font:8px var(--mono);border-color:#303238;background:none;color:#858a94;padding:1px 3px}.track-list .row-meta .quality-curated{color:#91a68e}.track-list .row-meta .quality-review{color:#bba681}.track-list .row-meta .quality-local{color:#a1a7b9}

/* Secondary views keep the same carbon materials. */
.harness-sections button,.bank-profile-switch button,.bank-patch-row{background:#151618;border-color:#303237;border-radius:4px;box-shadow:none;color:#a6acb6}.harness-sections button.active,.bank-profile-switch button.active{background:#302c24;border-color:#7b6a4e;box-shadow:none;color:#dec59b}.harness-json{color:#aeb7c6;font-size:10px;line-height:1.6}.harness-control{background:none;border:0;border-bottom:1px solid #2d3035;border-radius:0;padding:12px}.harness-control select{font:12px var(--sans);background:#101113;border-color:#393c42;color:#c1c7d0}.harness-control label span{font:10px var(--sans);color:#8c95a3;letter-spacing:.02em}.recipe-guide{background:#101113;border-color:#2b2e32;border-radius:4px}.recipe-guide ol li{background:none;color:#a8afb9}.bank-patch-row.active{background:#242321;border-color:#796d58;box-shadow:inset 2px 0 #c6ab7b}.bank-hero h3{font:600 24px var(--sans)}#bankKeys button{background:#1a1c20;border:1px solid #3b3e45;border-radius:4px;color:#c8cdd6;box-shadow:inset 0 -3px #101114;min-height:66px;font:12px var(--mono)}#bankKeys button:hover{background:#2b2d30;border-color:#9e8967;color:#e8cc9f}#bankKeys button:active{background:#4b4131;box-shadow:none}.bank-region-table code{color:#a5b2c4}.soundbank-compare article.active{border-color:#938063;box-shadow:inset 2px 0 #b59c73}.harness-sections button{font:11px var(--sans);text-transform:capitalize}.view-heading .overline{font-size:9px;letter-spacing:.08em}
@media(max-width:800px){.transport-group select{flex:1 1 calc(50% - 5px)}.transport-group .compact-button{flex:1 1 20%}.transport-group #midiLink{font-size:11px}.bank-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-keys{grid-template-columns:repeat(3,minmax(0,1fr))}}

.studio-ensemble .note-pads{max-height:54px;overflow:auto}.studio-ensemble .instrument footer{flex-shrink:0}

.bank-previous-palettes{margin:12px 0}.bank-previous-palettes>summary{padding:9px 0;color:#a9aaad;font:11px var(--sans);cursor:pointer}.bank-previous-palettes>summary:focus-visible{outline:2px solid #b59c73;outline-offset:3px}

.console-palette-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bank-console-packs p { color: var(--text-muted, #a6a6a6); font-size: 12px; }
.bank-console-packs audio { grid-column: 1 / -1; display: block; width: 100%; height: 32px; margin-top: 12px; color-scheme: dark; }
@media(max-width: 700px) { .console-palette-grid { grid-template-columns: 1fr; } }

/* Fit the workspace by allocating height once; each dock owns its scrolling. */
body[data-view=workstation] .app-shell { overflow: hidden; }
.roll-column { overflow: auto; scrollbar-gutter: stable; padding-bottom: 0; }
.roll-frame { min-height: 180px; }
.roll-frame canvas { min-height: 0; }
.studio-tools { min-height: 42px; padding: 7px 0; }
.studio-note-editor { padding: 8px; gap: 8px; }
.studio-status { margin: 3px 0 5px; }
.studio-dock { flex: 0 0 210px; min-height: 210px; }
.dock-tabs { flex-shrink: 0; }
.studio-ensemble .instrument { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.studio-ensemble .instrument header, .studio-ensemble .readout, .studio-ensemble .instrument footer, .studio-ensemble .event-trail { flex-shrink: 0; }
.studio-ensemble .surface { flex: 1 0 60px; min-height: 60px; max-height: 90px; }
.studio-ensemble .note-pads { flex-shrink: 0; overflow: visible; max-height: none; }
.instrument-column { display: flex; flex-direction: column; overflow: hidden; }
.column-head { flex-shrink: 0; padding-bottom: 6px; }
.instrument-activity { flex: 1; min-height: 0; padding-bottom: 8px; scrollbar-width: thin; }
.instrument-row { flex: 1 0 135px; max-width: 220px; scroll-snap-align: start; min-width: 0; display: grid; grid-template-rows: auto 1fr 20px 3px; gap: 5px; padding: 8px; }
.instrument-row .instrument-name { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: start; min-height: 28px; }
.instrument-row .instrument-name span { min-width: 0; overflow-wrap: anywhere; }
.instrument-row .instrument-patch { white-space: normal; overflow-wrap: anywhere; min-height: 0; margin: 0; line-height: 1.35; }
.instrument-row input { margin: 0; }
.track-copy { min-width: 0; }
.track-copy h2 { overflow-wrap: anywhere; }
.track-header { height: auto; flex-shrink: 0; }
.bank-heading > div, .bank-inspector, .bank-hero > div { min-width: 0; }
.bank-layout { grid-template-columns: 240px minmax(0,1fr); align-items: start; }
.bank-browser { display: flex; flex-direction: column; overflow: hidden; max-height: 650px; }
.bank-patch-list { min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.bank-hero { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bank-hero h3, .bank-hero code, .bank-metrics strong { overflow-wrap: anywhere; }
.bank-usage { grid-column: 1 / -1; max-height: none; }
.soundbank-compare { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); align-items: stretch; }
.soundbank-compare article { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr auto; align-content: start; gap: 8px; }
.soundbank-compare article > * { grid-column: 1; grid-row: auto; min-width: 0; margin: 0; }
.soundbank-compare article > button, .soundbank-compare article > a { justify-self: start; }
.soundbank-compare article > audio { width: 100%; }
@media (max-width:1200px) and (min-width:801px) {
 .compact-control-strip { display: grid; grid-template-columns: minmax(220px,1fr) minmax(160px,1fr) 140px; gap: 7px 14px; }
 .transport-group { grid-column: 1 / 3; }
 .transport-readout { grid-column: 3; grid-row: 1; min-width: 0; }
 .inline-control { width: 100%; }
 .playback-settings { justify-self: end; }
 .studio-history { gap: 3px; }
 .studio-tools .module-label { display: none; }
 .studio-note-editor { gap: 5px; }
}
@media (max-height:820px) and (min-width:801px) {
 .track-header { padding-top: 7px; padding-bottom: 7px; min-height: 50px; }
 .studio-dock { flex-basis: 200px; min-height: 200px; }
 .studio-ensemble .surface { max-height: 70px; }
}
@media(max-width:800px) {
 body[data-view=workstation] .app-shell { overflow: visible; height: auto; }
 .roll-column { overflow: visible; scrollbar-gutter: auto; }
 .studio-dock { flex-basis: 230px; min-height: 230px; }
 .instrument-column { max-height: none; }
 .bank-layout { grid-template-columns: minmax(0,1fr); }
 .bank-browser { max-height: 320px; }
 .bank-usage { grid-column: 1; }
 .bank-profile-switch { display: flex; flex-wrap: wrap; }
 .bank-profile-switch button { min-width: 0; }
 .heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
 .track-copy h2 { font-size: 18px; }
 .studio-history { flex-wrap: wrap; }
}

.soundbank-compare article > p { align-self: start; }
.bank-palette-overview > summary { cursor: pointer; padding: 12px 0; font: 12px var(--sans); color: #b8bcc5; border-bottom: 1px solid var(--rule); }
.recipe-cue-status{margin:8px 0 0;color:#b4b8c0;font-size:12px;line-height:1.5}
.bank-palette-overview{margin:0 0 18px}
.bank-palette-overview > .soundbank-compare{margin-top:12px}
.harness-rack .view-heading,.bank-rack .view-heading,.review-rack .view-heading{gap:16px}
.heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.recipe-layout{grid-template-columns:180px minmax(0,1fr) minmax(220px,320px);gap:16px}
@media(max-width:1100px){.recipe-layout{grid-template-columns:1fr}}

