/* A readable performance surface; the inspector, not the entire page, scrolls. */
.performance-switchbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;font-size:.82rem}.performance-switchbar>div:first-child{display:flex;align-items:baseline;gap:15px;min-width:0}.performance-switchbar strong{font:1.7rem/1 Georgia,serif;letter-spacing:-.07em}.performance-switchbar #performance-patch-name{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50vw}.performance-switches{display:flex;gap:6px;align-items:center}.performance-switchbar button{min-height:34px;padding:5px 10px;font-size:.75rem}.info-circle{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid currentColor!important;border-radius:50%!important;min-width:25px!important;width:25px!important;min-height:25px!important;height:25px!important;padding:0!important;font:italic 15px/1 Georgia,serif!important;flex-shrink:0;vertical-align:middle;opacity:.86}.info-circle:hover{opacity:1}.performance-switchbar .info-circle{margin-left:4px}.performance-docked-module>.section-title>.info-circle{margin-left:auto}.performance-docked-module>summary>.info-circle{margin-left:12px}
#performance-shell[hidden]{display:none!important}#performance-shell{min-width:0;display:grid;grid-template-rows:auto auto minmax(200px,1fr);gap:10px}.performance-overview{display:grid;grid-template-columns:minmax(220px,.87fr) minmax(290px,1.18fr) minmax(320px,1.15fr);gap:10px;min-width:0;min-height:0}.performance-overview>section{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:13px;min-width:0;min-height:0;overflow:hidden}.performance-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:9px;min-width:0}.performance-card-heading h2{font:1.35rem/1.1 var(--heading);white-space:nowrap;margin-right:auto}.performance-card-heading .compact-label{font-size:.63rem;display:flex;align-items:center;gap:4px;min-width:0}.performance-card-heading select{min-height:29px;padding:3px 7px;font-size:.72rem;max-width:110px}.performance-card-heading .compact-label:has(#performance-drum-length) select{max-width:55px}.performance-overview .hint{font-size:.69rem}
.performance-orbit{display:flex;flex-direction:column;background:var(--dark)!important;color:#e8dff6}.performance-orbit .orbit-panel{border:0;background:transparent;padding:0;margin:0;border-radius:0;display:flex;min-height:0;--workspace-orbit-height:160px!important}.performance-orbit .orbit-panel>.workspace-panel-tools,.performance-orbit .orbit-panel>.orbit-options,.performance-orbit .orbit-panel>.hint,.performance-orbit .orbit-panel .eyebrow{display:none!important}.performance-orbit .orbit-panel .section-title{margin:0;gap:8px}.performance-orbit .orbit-panel h2{font:1.22rem/1.1 var(--heading)}.performance-orbit .orbit-panel #freeze{font-size:.62rem;padding:3px 7px;min-height:28px}.performance-orbit .orbit-footer{font-size:.62rem;line-height:1.4;gap:8px}.performance-orbit .orbit-footer span:first-child{max-width:52%}.orbit-quick{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:8px}.orbit-quick>button:first-child{min-height:29px;padding:4px 9px;font-size:.7rem;background:#3e394e;border-color:#696076;color:#efe6fa}.orbit-quick>.info-circle{margin-left:auto;background:transparent;color:#e8dff6}
.performance-drum-pads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.performance-drum-pads>button{position:relative;min-height:57px;height:58px;border-radius:8px;background:color-mix(in srgb,var(--light),var(--panel) 30%);border:1px solid var(--line);padding:9px 6px 8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;touch-action:manipulation;color:var(--ink)}.performance-drum-pads>button:nth-child(2n){background:color-mix(in srgb,var(--pink),var(--panel) 42%)}.performance-drum-pads>button:nth-child(3n){background:color-mix(in srgb,var(--mint),var(--panel) 44%)}.performance-drum-pads>button>span{font-size:.74rem;font-weight:600;line-height:1.1}.performance-drum-pads small{font-size:.58rem;opacity:.68}.performance-drum-pads meter{position:absolute;left:7px;bottom:4px;width:calc(100% - 14px);height:4px;opacity:.7}.performance-drum-pads>button.is-hit{background:#eee1b8!important;color:#281e35;box-shadow:0 0 16px #dac4ff66;transform:translateY(1px);border-color:#f0dca2}.performance-drum-actions{display:flex;align-items:center;gap:5px;margin:9px 0;min-height:30px}.performance-drum-actions button{min-height:29px;font-size:.63rem;padding:4px 7px;white-space:nowrap}.performance-drum-actions>span{font-size:.61rem;line-height:1.3;color:var(--muted);overflow:hidden;max-height:30px}.performance-macros{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border-top:1px solid var(--line);padding-top:8px}.performance-macros>label{font-size:.65rem;display:grid;grid-template-columns:1fr auto;gap:0;align-items:center}.performance-macros input{grid-column:1/-1;grid-row:2;margin:2px 0;height:18px;min-width:0}.performance-macros output{font:.6rem ui-monospace,monospace;color:var(--muted)}
.performance-drum-banks{display:flex;gap:4px;align-items:center;margin:3px 0 7px;min-height:24px}.performance-drum-banks button{font-size:.6rem;min-height:23px;padding:2px 6px;border-radius:4px}.performance-drum-grid{display:grid;grid-template-columns:68px repeat(8,minmax(0,1fr));gap:4px;min-width:0}.performance-drum-grid button{min-height:19px;height:19px;padding:0;border-radius:3px;font-size:.53rem;line-height:1;min-width:0}.performance-drum-grid .performance-row-label{border:0;background:transparent;text-align:left;color:var(--muted);font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.performance-step{background:color-mix(in srgb,var(--light),transparent 82%);border-color:var(--line);position:relative}.performance-step[aria-pressed=true]{background:var(--light);color:#2c2238;border-color:color-mix(in srgb,var(--purple),var(--line) 30%);box-shadow:inset 0 -2px #ffffff20}.performance-step.is-current:after{content:'';position:absolute;bottom:1px;height:2px;left:20%;right:20%;background:var(--purple)}.performance-step[aria-pressed=true].is-current:after{background:#31223c}.performance-step:disabled{opacity:.12}.performance-step:focus-visible{outline:2px solid #b57630;outline-offset:1px}
.performance-relationship-strip{display:flex;align-items:center;gap:8px;min-height:30px;padding:3px 9px;font-size:.69rem;border:1px solid var(--line);border-radius:7px;background:var(--panel);min-width:0}.relationship-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--purple);box-shadow:0 0 8px #b899d536}.performance-relationship-strip>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.performance-relationship-strip button{margin-left:auto;font-size:.65rem;min-height:23px;padding:2px 7px;white-space:nowrap;border:0;background:transparent}.has-trigger .relationship-dot{background:#dba05a;box-shadow:0 0 12px #ebc583}.performance-inspector{border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;flex-direction:column;overflow:hidden;min-height:0;min-width:0}.performance-tabs{display:flex;gap:3px;flex-wrap:wrap;align-items:center;padding:6px 8px;border-bottom:1px solid var(--line);flex-shrink:0;min-width:0}.performance-tabs button{min-height:28px;padding:3px 10px;font-size:.71rem;border:0;border-radius:5px;background:transparent;color:var(--muted)}.performance-tabs button[aria-selected=true]{background:var(--light);color:#2d243b}.performance-tabs button:focus-visible{outline:2px solid #af7a3c;outline-offset:0}.performance-panes{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}.performance-pane{min-width:0;padding:15px}.performance-pane[hidden]{display:none!important}.performance-pane>.panel{border:0;padding:0;margin:0;background:transparent;border-radius:0}.performance-pane>.panel>.section-title{margin-bottom:15px}.performance-pane .section-title h2{font-size:1.5rem}.performance-pane .eyebrow{font-size:.62rem;margin-bottom:5px}.performance-pane .hint{font-size:.73rem}.performance-pane .workspace-panel-tools,.performance-pane .workspace-divider{display:none!important}.performance-pane .workspace-collapsed>*{display:revert!important}.performance-pane .workspace-collapsed>.workspace-panel-tools{display:none!important}.performance-pane .workspace-focus-suppressed{display:revert!important}.performance-pane details.panel>summary{font:1.2rem/1.3 var(--heading);padding-bottom:8px}.performance-pane details.panel>summary>span{font-size:1.2rem}.performance-pane .knob-grid{grid-template-columns:repeat(auto-fit,minmax(75px,1fr))!important;margin-top:17px;gap:13px}.performance-pane .dial{width:46px;height:46px}.performance-pane .dial:after{transform-origin:1.5px 15px;height:10px}.performance-pane .control .label,.performance-pane .control output{font-size:.68rem}.performance-pane .matrix-layout{grid-template-columns:minmax(0,1fr) 300px!important;gap:20px}.performance-pane .lfo-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.performance-pane .lfo{padding:10px}.performance-pane .lfo label{font-size:.7rem}.performance-pane .lfo select{font-size:.72rem}.performance-pane .route-row{font-size:.73rem}.performance-pane .synth-tools{gap:7px}.performance-pane .preset-tiles{margin-top:12px}
#performance-help-dialog{max-width:660px;width:calc(100vw - 32px);max-height:80vh;padding:25px}#performance-help-dialog .performance-dialog-heading{display:flex;align-items:start;gap:20px;justify-content:space-between}#performance-help-heading{font-size:2rem}#performance-help-body{font-size:.95rem;line-height:1.65;margin-top:20px}#performance-help-body p{margin:0 0 16px}#performance-help-body .performance-connection-list{padding-left:22px;max-height:260px;overflow:auto;font:.82rem/1.7 ui-monospace,monospace}#performance-help-dialog form{margin:0}
/* Channel mixer stays readable in the inspector. */
.performance-mixer-channels{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;margin:10px 0 16px}.performance-mixer-channels button{padding:7px;min-height:42px;font-size:.7rem;display:grid;gap:5px}.performance-mixer-channels meter{width:100%;height:5px}.performance-mixer-top{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.performance-mixer-top>label:first-child{min-width:150px}.performance-mixer-top>.check{margin:0 0 10px}.performance-mixer-top>output{font:.75rem ui-monospace,monospace;color:var(--muted);margin:0 0 10px}.performance-mixer-top>button{font-size:.75rem}.performance-channel-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.performance-channel-controls label{font-size:.75rem;grid-template-columns:1fr auto;gap:0}.performance-channel-controls input{grid-column:1/-1;grid-row:2;height:25px}.performance-channel-controls output{font:.7rem ui-monospace,monospace;color:var(--muted)}#performance-band-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}#performance-band-controls fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px}#performance-band-controls legend{font:.95rem var(--heading);padding:0 5px}#performance-band-controls label{grid-template-columns:1fr auto;gap:0;font-size:.73rem;margin:4px 0}#performance-band-controls input{grid-column:1/-1;grid-row:2;margin:1px 0 7px}#performance-band-controls output{font:.68rem ui-monospace,monospace;color:var(--muted)}.performance-crossovers{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:16px 0}.performance-crossovers label{font-size:.72rem}.performance-crossovers input{width:150px;font-size:.8rem}.performance-crossovers p{font-size:.73rem;color:var(--muted);margin-bottom:10px}.performance-sidechains,.performance-limiter{padding:18px 0;border-top:1px solid var(--line)}.performance-sidechains>summary,.performance-limiter>summary{font:1.3rem var(--heading);cursor:pointer;margin-bottom:10px}.performance-limiter>summary>.info-circle{margin-left:10px}.performance-sidechain-route{display:grid;grid-template-columns:45px repeat(5,minmax(0,1fr));gap:10px;border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:12px;min-width:0}.performance-sidechain-route legend{font-size:.72rem;padding:0 5px;color:var(--muted)}.performance-sidechain-route label{min-width:0;font-size:.67rem;gap:4px}.performance-sidechain-route select,.performance-sidechain-route input[type=number]{width:100%;padding:6px;font-size:.73rem;min-width:0}.performance-sidechain-route .check{margin:0;align-self:center}.performance-sidechain-route button{align-self:end;font-size:.7rem;min-height:33px;padding:5px 8px}.performance-sidechain-route output{font:.65rem ui-monospace,monospace;color:var(--muted)}.performance-sidechain-route meter{width:100%;height:8px;align-self:center}.performance-limiter>p{font-size:.73rem;color:var(--muted)}.performance-master-meter{display:flex;align-items:center;gap:20px;margin-top:13px}.performance-master-meter meter{width:40%;height:17px}.performance-master-meter output{font:.73rem ui-monospace,monospace}
/* Fixed overview applies only at a size where it remains legible. */
@media(min-width:1080px) and (min-height:660px){
 body.performance-instrument{height:100dvh;overflow:hidden}
 body.performance-instrument>header{height:47px;min-height:47px;padding:8px 20px;width:100%;max-width:none;gap:20px}body.performance-instrument>header .brand{font-size:1.6rem}body.performance-instrument>header nav{gap:20px;font-size:.75rem}body.performance-instrument>header button{min-height:30px;padding:4px 9px;font-size:.72rem}
 body.performance-instrument>main{height:calc(100dvh - 47px);max-width:none;width:100%;padding:9px 20px 12px;display:flex;flex-direction:column;gap:7px;overflow:hidden}
 body.performance-instrument .intro,body.performance-instrument #workspace-layout,body.performance-instrument main>footer,body.performance-instrument main>.media-player{display:none!important}
 body.performance-instrument .transport{position:relative;top:0;flex-shrink:0;min-height:47px;padding:7px 10px;gap:6px;border-radius:9px;box-shadow:none}body.performance-instrument .transport button{min-height:30px;padding:5px 9px;font-size:.73rem}body.performance-instrument .transport .bpm{margin:0 6px;font-size:.63rem}body.performance-instrument .transport .bpm input{padding:4px 7px;width:61px;font-size:.8rem}body.performance-instrument .transport .level{font-size:.65rem;min-width:100px}body.performance-instrument .transport .mono{font-size:.7rem}
 body.performance-instrument .view-tabs{flex-shrink:0;margin:0;gap:20px;min-height:25px;height:25px}body.performance-instrument .view-tabs button{min-height:24px;padding:1px 0 5px;font-size:.68rem}
 body.performance-instrument .performance-switchbar{flex-shrink:0;min-height:28px;height:28px;margin:0}body.performance-instrument .performance-switchbar strong{font-size:1.4rem}body.performance-instrument .performance-switchbar button{min-height:26px;padding:3px 9px;font-size:.67rem}body.performance-instrument #performance-patch-name{font-size:.77rem}
 body.performance-instrument #instrument{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}body.performance-instrument #instrument[hidden]{display:none}body.performance-instrument #instrument>.instrument-top{display:none!important}body.performance-instrument #performance-shell{flex:1;min-height:0;grid-template-rows:304px 29px minmax(0,1fr);gap:7px}
 body.performance-instrument #performance-shell~.workspace-divider{display:none}
}
@media(min-width:1500px) and (min-height:900px){body.performance-instrument #performance-shell{grid-template-rows:330px 32px minmax(0,1fr)}.performance-orbit .orbit-panel{--workspace-orbit-height:188px!important}.performance-drum-pads>button{height:70px}.performance-drum-grid button{height:23px;min-height:23px}.performance-drum-pads>button>span{font-size:.83rem}.performance-macros>label{font-size:.75rem}.performance-pattern .performance-row-label{font-size:.7rem}}
@media(max-width:1079px),(max-height:659px){body.performance-mode .intro,body.performance-mode #workspace-layout{display:none!important}body.performance-mode #instrument>.instrument-top{display:none!important}body.performance-instrument main>.media-player,body.performance-instrument main>footer{display:none!important}body.performance-mode #performance-shell{grid-template-rows:auto auto auto}.performance-overview{grid-template-columns:minmax(230px,1fr) minmax(270px,1fr)}.performance-pattern{grid-column:1/-1}.performance-drum-grid{grid-template-columns:90px repeat(8,minmax(0,1fr));gap:6px}.performance-drum-grid button{height:29px;min-height:29px;font-size:.65rem}.performance-drum-grid .performance-row-label{font-size:.72rem}.performance-panes{max-height:65vh}.performance-pane .matrix-layout{grid-template-columns:1fr!important}.performance-pane .lfo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.performance-orbit .orbit-panel{--workspace-orbit-height:185px!important}.performance-macros>label{font-size:.7rem}}
@media(max-width:700px){.performance-switchbar{align-items:flex-start;flex-wrap:wrap;gap:9px}.performance-switchbar>div:first-child{width:100%;justify-content:space-between}.performance-switchbar #performance-patch-name{font-size:.75rem;max-width:65%}.performance-overview{display:flex;flex-direction:column}.performance-overview>section{padding:14px}.performance-pattern{order:3}.performance-orbit{order:2}.performance-drums{order:1}.performance-drum-pads>button{height:65px}.performance-drum-pads>button>span{font-size:.8rem}.performance-drum-grid{grid-template-columns:68px repeat(8,minmax(0,1fr));gap:3px}.performance-drum-grid button{height:27px;min-height:27px}.performance-tabs{gap:3px;padding:7px}.performance-tabs button{font-size:.74rem;min-height:34px;padding:4px 8px}.performance-pane{padding:13px}.performance-pane .knob-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.performance-pane .lfo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-pane .route-row{grid-template-columns:22px 1fr 16px 1fr;gap:5px}.performance-pane .route-row input[type=range]{grid-column:2/4}.performance-mixer-channels{grid-template-columns:repeat(3,minmax(0,1fr))}.performance-channel-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-mixer-top{gap:10px}#performance-band-controls{grid-template-columns:1fr}.performance-sidechain-route{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.performance-sidechain-route>.check{grid-column:1/-1}.performance-master-meter{flex-direction:column;align-items:stretch;gap:10px}.performance-master-meter meter{width:100%}.performance-relationship-strip{font-size:.63rem}.performance-relationship-strip button{font-size:.61rem}.performance-card-heading h2{font-size:1.45rem}.performance-orbit .orbit-panel h2{font-size:1.3rem}.performance-orbit .orbit-panel{--workspace-orbit-height:190px!important}#performance-help-dialog{padding:20px}#performance-help-heading{font-size:1.6rem}}
@media(prefers-reduced-motion:reduce){.performance-drum-pads>button.is-hit{transform:none;box-shadow:none}.has-trigger .relationship-dot{box-shadow:none}}
@media(forced-colors:active){.performance-step[aria-pressed=true]{border:2px solid Highlight}.performance-drum-pads>button.is-hit{outline:2px solid Highlight}.performance-tabs button[aria-selected=true]{outline:2px solid Highlight}.relationship-dot{background:CanvasText}}

/* Overview controls must fit without clipping at ordinary desktop heights.
   The inspector takes the remaining space; type is never scaled to fit. */
.performance-overview{line-height:1.3}
.performance-overview .compact-label,.performance-overview .orbit-footer,.performance-overview #freeze,.performance-overview .performance-drum-actions button,.performance-overview .performance-drum-actions>span,.performance-overview .performance-macros>label,.performance-overview .performance-macros output,.performance-overview .performance-drum-pads small,.performance-overview .performance-drum-banks button,.performance-overview .performance-drum-grid button,.performance-overview .performance-row-label{font-size:max(11px,.68rem)}
.performance-overview .orbit-footer{min-height:29px;max-height:31px;line-height:1.35;overflow:hidden}
.performance-overview .orbit-footer>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.performance-overview .performance-macros>label{line-height:1.2}
.performance-overview .performance-drum-actions{line-height:1.2;margin:7px 0}
.performance-overview .orbit-quick{min-height:37px;flex-shrink:0}
