/* Exact dark faceplate vocabulary from BeleInstrumentPanel.swift. No animation
   clock: instruments redraw their tiny canvases only on resize/value changes. */
.bele-panel-surface{position:absolute;inset:0;z-index:25;color:#fff6e5;background:#000;pointer-events:auto;font-family:-apple-system,BlinkMacSystemFont,"Avenir Next",sans-serif;font-weight:400;touch-action:none;--panel-tint:#fff6e5;--panel-cell-height:var(--native-cell,70px)}
.bele-panel-surface *{box-sizing:border-box;touch-action:none;-webkit-user-select:none;user-select:none}
.bele-panel-surface button{font:inherit;color:inherit;min-height:0;min-width:0;cursor:pointer;transform:none;border-radius:0}
.bele-panel-surface button:active{transform:none}
.panel-instrument{height:50%;bottom:auto;background:transparent}
.panel-instrument.panel-has-expression{height:min(calc(var(--panel-cell-height)*4),max(calc(var(--panel-cell-height)*3),240px));display:flex;flex-direction:column;background:#101213}
.panel-has-expression>.panel-face{height:calc(100% - 124px);flex:none}
.panel-playing-strip{flex:0 0 124px;height:124px;display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:12px;padding:6px 10px;background:linear-gradient(#151718,#0d0f10);border-top:1px solid #fff6e526;box-shadow:inset 0 1px #000;min-width:0}
.panel-playing-choices{display:flex;flex-direction:column;gap:4px;min-width:0}.panel-playing-group{height:54px;min-width:0}
.panel-playing-label{font:10px/10px ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff6e5a6;text-align:left;margin-bottom:0;white-space:nowrap}
.panel-playing-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:44px;border-radius:3px;overflow:hidden;border:1px solid #fff6e526;box-shadow:0 1px #000,inset 0 1px #0008}
.bele-panel-surface .panel-expression-choice{height:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 4px;margin:0;background:linear-gradient(#242728,#191b1d);border:0!important;color:#fff6e58c;font-size:11px}
.panel-expression-choice+.panel-expression-choice{box-shadow:inset 1px 0 #000b}
.bele-panel-surface .panel-expression-choice.selected{background:linear-gradient(#111314,#1a1d1e);color:#fff6e5;box-shadow:inset 0 2px 4px #0008,inset 0 -1px #fff6e510}
.panel-expression-choice .panel-switch-title{font-size:11px;line-height:1.15;white-space:normal;text-wrap:balance}.panel-expression-choice>.panel-led{width:3px;height:3px;flex-basis:3px;background:#fff6e52b;border-radius:50%}.panel-expression-choice.selected>.panel-led{background:#d6b59a;box-shadow:0 0 3px #d6b59a55}.panel-expression-choice .panel-switch-detail{display:none}
.panel-saved-point{min-width:0;display:grid;grid-template-rows:12px minmax(0,1fr) 11px;gap:2px}.panel-saved-point .panel-playing-label{margin:0}.panel-point-surface{position:relative;min-height:0;outline-offset:2px;border-radius:2px;box-shadow:0 0 0 1px #fff6e529,inset 0 1px #000;overflow:hidden}.panel-point-art{display:block;width:100%;height:100%;pointer-events:none}.panel-point-caption{font:8px/11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff6e57a;white-space:nowrap;text-align:center}
.panel-has-expression .panel-instrument-switches>.panel-knob{flex:1;height:90px;max-height:100%}.panel-has-expression .panel-marimba-switches{grid-template-columns:repeat(3,minmax(0,1fr))}.panel-has-expression .panel-phrase-left{display:block;flex-basis:22%!important;min-width:48px}.panel-has-expression .panel-phrase-left>.panel-knob{height:100%}
@media(max-width:360px){.panel-playing-strip{grid-template-columns:minmax(0,1fr) 88px;gap:8px;padding-left:7px;padding-right:7px}.panel-expression-choice .panel-switch-title{font-size:11px}.panel-expression-choice>.panel-led{display:none}.panel-point-caption{font-size:7px}}
.panel-face{position:relative;width:100%;height:100%;background:linear-gradient(#1b1d1f,#111314);box-shadow:inset 0 .7px #fff6e533,inset 0 -.7px #fff6e533;display:flex;gap:8px;align-items:center;padding:0 6px}
.panel-face::before,.panel-face::after{content:"";position:absolute;left:3px;right:3px;height:3px;pointer-events:none;background:radial-gradient(circle at 1px 1px,#fff6e540 .4px,#0009 .6px,#0009 1.3px,transparent 1.4px),radial-gradient(circle at calc(100% - 1px) 1px,#fff6e540 .4px,#0009 .6px,#0009 1.3px,transparent 1.4px)}
.panel-face::before{top:4px}.panel-face::after{bottom:4px}
.panel-instrument-body{flex:1;min-width:0;height:100%}.panel-simple{display:flex;align-items:center;gap:5px}
.panel-simple>.panel-knob{flex:0 0 25%;max-width:84px;height:min(90px,100%)}
.panel-instrument-switches{display:flex;gap:5px;flex:1;align-items:center;min-width:0}.panel-instrument-switches>.panel-switch{flex:1;height:76px;max-height:calc(var(--panel-cell-height)*2 - 12px)}
.panel-value{position:relative;display:grid;grid-template-rows:14px minmax(1px,1fr) 14px;min-width:0;padding:2px 3px;align-items:center;text-align:center;outline-offset:-3px;height:100%;touch-action:none}
.panel-value-title{font-size:11px;font-weight:500;white-space:nowrap;line-height:14px}.panel-value-text{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;line-height:14px;color:var(--panel-tint);white-space:nowrap}
.panel-control-art{width:100%;height:100%;display:block;min-height:0;pointer-events:none}
.panel-fader{flex:0 0 clamp(58px,18.6%,78px);height:100%;padding:2px 0;grid-template-rows:16px minmax(1px,1fr) 14px}
.panel-knob{min-height:44px}
.panel-has-expression .panel-knob.panel-compact{grid-template-rows:minmax(1px,1fr) 13px;padding:0 2px}.panel-has-expression .panel-compact>.panel-value-title{grid-row:2;font-size:10px;line-height:13px}.panel-has-expression .panel-compact>.panel-control-art{grid-row:1}.panel-has-expression .panel-compact>.panel-value-text{position:absolute;left:0;right:0;top:calc((100% - 13px)/2 - 5px);font-size:8px;line-height:10px;pointer-events:none}
.panel-switch{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 3px;margin:3px;min-height:38px;background:linear-gradient(#2b2b2b,#212121);border:.6px solid #fff6e533!important;border-radius:2px!important;color:#fff6e5;box-shadow:none;font-weight:500!important}
.panel-switch.selected{background:linear-gradient(#1f1f1f,#1a1a1a);border-color:#fff6e51f!important;color:#fff6e5!important}
.panel-led{display:block;flex:0 0 2px;height:2px;width:12px;border-radius:1px;background:#474747}.selected>.panel-led{background:var(--panel-tint)}
.panel-switch-title{font-size:12px;line-height:1.15;text-align:center}.panel-switch-detail{font-size:10px;line-height:1.2;opacity:.6;text-align:center}.panel-switch-detail:empty{display:none}
.panel-electric{display:grid;grid-template-rows:minmax(44px,1fr) 44px}.panel-electric-knobs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:0}.panel-electric-switches{display:flex;gap:4px}.panel-electric-switches>.panel-switch{flex:1;margin:3px 0}
.panel-electric .panel-value-title{font-size:10px}.panel-electric .panel-value-text{font-size:9px}
.panel-phrase-body{display:flex;gap:8px}.panel-phrase-left{width:25%;max-width:76px;display:grid;grid-template-rows:minmax(44px,1fr) 44px}.panel-phrase-left>.panel-switch{margin:3px 0}.panel-phrase-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));flex:1;gap:0 2px}
.panel-mixer>.panel-face{height:50%}.panel-face.panel-mixer{padding:0 10px;gap:12px}.panel-mixer>.panel-fader{flex-basis:25%;max-width:104px}.panel-mixer>.panel-knob{width:25%;max-width:104px;height:min(94px,calc(100% - 8px))}.panel-mixer-info{flex:1;min-width:0;max-width:154px;text-align:center;margin-left:auto}.panel-mixer-info>.panel-switch{width:min(110px,100%);height:48px;margin:0 auto 8px}.panel-mixer-info p{font-size:10px;line-height:1.4;white-space:pre-line;color:#fff6e5a6}
.panel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(var(--panel-rows,4),minmax(0,1fr));width:100%;height:100%;gap:0;background:#000}
.panel-mixer>.panel-takes{height:50%}.panel-cell,.panel-empty,.panel-integer{border:.5px solid #fff6e540!important;border-radius:0!important;background:#000;min-width:0;min-height:0;padding:3px;text-align:center}
.panel-cell{font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important;font-weight:400!important;overflow:hidden}.panel-cell.selected{background:#fff6e529;color:#fff6e5!important}.panel-cell>.panel-led{display:none}.panel-cell .panel-switch-title{font-size:12px;font-weight:400}.panel-cell:disabled{opacity:.3}
.panel-take{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;border:0!important;border-radius:0;background:color-mix(in srgb,var(--take-tint) 24%,#000);padding:0;overflow:hidden;color:var(--take-tint)!important}.panel-take.disabled-take{background:color-mix(in srgb,var(--take-tint) 3.5%,#000);color:#fff6e559!important}.panel-take-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:1}.disabled-take>.panel-take-art{opacity:.35}.panel-take-number{font-size:18px;font-weight:600;position:absolute;top:53%;left:0;right:0;text-align:center}.panel-take-readout{font-size:12px;font-weight:500;white-space:pre-line;line-height:1.4;display:none}.panel-take.mixing .panel-take-number{display:none}.panel-take.mixing .panel-take-readout{display:block}
.panel-robot.panel-face{display:grid;padding:0;gap:0}.panel-robot>.panel-switch{height:calc(100% - 6px)}
.panel-adult{display:flex;flex-direction:column;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.panel-adult-header{flex:1;min-height:84px;padding:0 12px;overflow:hidden}.panel-adult-title{display:flex;align-items:center;gap:0;height:44px}.panel-adult-title h2{font:17px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0;white-space:nowrap;flex:1;min-width:0}.panel-header-button{background:transparent;border:0!important;padding:0 6px;min-width:40px!important;min-height:44px!important;height:44px;flex:none;font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important}.panel-header-button>.panel-led{display:none}.panel-header-button>.panel-switch-title{font:inherit}.panel-context{font-size:13px;font-weight:500;display:block;margin-bottom:6px}.panel-adult-help,.panel-adult-header>p{font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff6e5c7;margin:0}.panel-note-labels,.panel-mic-override{background:none;border:0!important;text-align:left;min-height:44px!important;padding:4px 0;display:flex;align-items:center;gap:8px;font-size:13px!important}.panel-note-labels>.panel-led,.panel-mic-override>.panel-led{width:12px;height:12px;flex-basis:12px;border:.7px solid #fff6e5;border-radius:0;background:transparent}.panel-note-labels.selected>.panel-led,.panel-mic-override.selected>.panel-led{background:#fff6e5}
.panel-tabs,.panel-subtabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:none;height:var(--panel-cell-height)}.panel-tab,.panel-subtab{background:#000;border:.5px solid #fff6e540!important;border-radius:0;display:flex;align-items:center;justify-content:center;padding:2px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace!important}.panel-tab.selected,.panel-subtab.selected{background:#fff6e529;color:#fff6e5!important}.panel-tab>.panel-led,.panel-subtab>.panel-led{display:none}.panel-tabs .panel-switch-title,.panel-subtabs .panel-switch-title{font:inherit}.panel-subtabs{height:clamp(44px,calc(var(--panel-cell-height)*.75),56px)}.panel-subtab{position:relative;flex-direction:column;gap:1px;font-size:11px!important}.panel-subtab.selected{box-shadow:inset 0 -2px var(--panel-tint)}.panel-subtab img{height:calc(100% - 22px);max-height:32px;max-width:100%;object-fit:contain}.panel-layer-modes{display:flex;flex:none;height:36px}.panel-layer-modes>.panel-tab:first-child{width:40%}.panel-layer-modes>.panel-tab:last-child{width:60%}
.panel-adult-content{height:calc(var(--panel-cell-height)*4);flex:none;min-height:0}.panel-record-groups{height:100%;display:grid;grid-template-rows:repeat(2,minmax(0,1fr))}.panel-record-group{display:flex;min-height:0}.panel-record-heading{flex:0 0 20%;border:.5px solid #fff6e540;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;text-align:center}.panel-record-heading strong{font-size:15px;font-weight:500}.panel-record-heading small{font-size:10px;color:#fff6e5a6}.panel-record-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:80%}.panel-record-footnote{grid-column:span 2;display:flex;align-items:center;justify-content:center;white-space:pre-line;font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center;color:#fff6e599}
.panel-integer{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center}.panel-integer small{font:11px ui-monospace,SFMono-Regular,Menlo,monospace}.panel-integer strong{font:23px ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:300}.panel-xy-readout{font:9px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-line;display:block;margin-top:3px}.panel-clip{height:100%;display:grid;grid-template-rows:36px 27% minmax(0,1fr) minmax(0,1fr);background:#000}.panel-clip-tools{display:flex;align-items:center;justify-content:space-between;font:12px ui-monospace,SFMono-Regular,Menlo,monospace;padding:0 10px}.panel-clip-tools .panel-header-button{height:36px;min-height:36px!important}.panel-clip-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.panel-clip-wave{position:relative;min-height:0;touch-action:none}.panel-clip-wave>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
@media(max-width:360px){.panel-switch-title{font-size:11px}.panel-switch-detail{font-size:9px}.panel-adult-title h2{font-size:15px}.panel-adult-help{font-size:11px}.panel-fader{flex-basis:58px}.panel-mixer-info p{font-size:9px}}

.panel-host{position:absolute;inset:calc(var(--native-header) + var(--native-stage)) 0 0;z-index:40;pointer-events:none}.panel-host-adult{inset:0;z-index:42}.panel-host:empty{display:none}
.panel-effect{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}.panel-effect-glyph{display:block;width:32px;height:28px;color:#fff6e5cc}.panel-effect-glyph svg{width:100%;height:100%}.panel-effect-name{font-size:11px}.panel-effect.effect-moving .panel-effect-glyph{display:none}
.panel-robot-overlay{position:absolute;inset:0;background:#000;z-index:4}.panel-robot-back{position:absolute;top:0;right:0;background:#000;border:.6px solid #fff6e5!important;padding:5px;min-width:44px!important;height:24px;font-size:10px!important}.panel-robot-back .panel-led{display:none}

/* Monster canvases live beside the isolated viewport so carriers can cross the
   footer. A fully opaque editor must lift its whole stacking context above
   those canvases, not only its children. The footer opener stays outside. */
.adult-open>.room-viewport{z-index:6}
.adult-open #room-billboards{visibility:hidden;pointer-events:none}
.adult-open #room-billboards *{visibility:hidden!important;pointer-events:none!important}

/* Cricket's continuous brass-and-graphite faceplate. Same two-row footprint,
   44px preset/gesture targets and relative controls as the native panel. */
.panel-face.panel-cricket{--cricket-cream:#e7e2cc;--cricket-brass:#a99762;--panel-tint:#95ae72;background:linear-gradient(#1b1d19,#0b0c0a);color:var(--cricket-cream);padding:4px 8px;gap:8px;box-shadow:inset 0 .7px #e7e2cc42,inset 0 -.7px #e7e2cc42}
.panel-cricket>.panel-fader{flex-basis:clamp(50px,15.5%,68px)}
.cricket-body{flex:1;min-width:0;display:flex;flex-direction:column;height:100%}
.cricket-header{height:44px;flex:none;display:flex;gap:6px;align-items:center}
.cricket-selector{display:flex;align-items:center;min-width:0;flex:1;height:44px;background:#0b0c0abf;box-shadow:inset 0 -.6px #a9976270}
.cricket-arrow{width:44px;height:44px;flex:0 0 44px;background:none;border:0!important;padding:0;display:grid;place-items:center;color:var(--cricket-brass)!important}
.cricket-arrow>.panel-led,.cricket-arrow>.panel-switch-title,.cricket-arrow>.panel-switch-detail{display:none}.cricket-arrow:disabled{opacity:.3}
.cricket-arrow-ink{display:block;width:20px;height:20px;pointer-events:none}.cricket-arrow-ink svg{width:100%;height:100%}
.cricket-preset{flex:1;min-width:0;height:44px;display:flex;flex-direction:column;justify-content:center;padding:0 2px;gap:2px;outline-offset:-1px}
.cricket-caption{display:flex;gap:5px;align-items:center;justify-content:space-between}.cricket-name{font-size:11px;font-weight:600}.cricket-preset-number{font:9px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--cricket-brass)}
.cricket-preset-value{font-size:13px;font-weight:500;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel-switch.cricket-gesture{width:clamp(48px,20%,68px);height:44px;flex-shrink:0;border:0!important;border-radius:0!important;background:none!important;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;position:relative}
.cricket-gesture>.panel-led{position:absolute;width:3px;height:3px;border-radius:50%;top:12px;left:6px;background:var(--cricket-cream)}.cricket-gesture.selected>.panel-led{background:#95ae72}.cricket-gesture>.panel-switch-title{font-size:11px;font-weight:500}.cricket-gesture>.panel-switch-detail{font:9px ui-monospace,SFMono-Regular,Menlo,monospace;opacity:.62;white-space:nowrap}
.cricket-controls{display:flex;flex:1;min-height:44px}.cricket-controls>.cricket-macro{flex:1;min-width:0;padding:0;grid-template-rows:15px minmax(1px,1fr) 16px}.cricket-controls>.cricket-pan{flex:0 0 clamp(44px,19%,70px);padding:0;grid-template-rows:15px minmax(1px,1fr) 16px}
.cricket-controls .panel-value-title{font-size:11px;line-height:15px}.cricket-controls .panel-value-text{font-size:10px;line-height:16px}.cricket-pan .panel-value-text{color:var(--cricket-brass)}
.panel-switch.panel-expression{position:relative;min-width:44px;min-height:44px;padding:0;justify-content:flex-end;gap:0}
.panel-expression>.panel-origin-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.panel-expression>.panel-led,.panel-expression>.panel-switch-detail{display:none}
.panel-expression>.panel-switch-title{position:relative;z-index:1;height:18px;line-height:16px;font-size:10px;margin-bottom:1px}

/* Strike-location ink cuts the pad flash, never adds another control. */
.play-pad .strike-origin{position:absolute;inset:1px;pointer-events:none;z-index:2;background:linear-gradient(90deg,transparent calc(var(--strike-x) - .5px),#000b calc(var(--strike-x) - .5px),#000b calc(var(--strike-x) + .5px),transparent calc(var(--strike-x) + .5px)),linear-gradient(transparent calc(var(--strike-y) - .5px),#000b calc(var(--strike-y) - .5px),#000b calc(var(--strike-y) + .5px),transparent calc(var(--strike-y) + .5px))}
.play-pad .strike-origin:after{content:"";position:absolute;left:var(--strike-x);top:var(--strike-y);width:5px;height:5px;border:1px solid #000b;border-radius:50%;transform:translate(-50%,-50%)}

.cricket-pan-column{display:flex;flex-direction:column;min-width:0;height:100%}.cricket-pan-column>.cricket-pan{height:calc(100% - 44px);width:100%;min-height:44px}.cricket-pan-column>.panel-switch{height:44px;min-height:44px;width:100%;margin:0;padding:2px}

.panel-phrase-left{flex-basis:42%!important;min-width:92px}.panel-phrase-origin{display:flex;gap:4px;height:44px}.panel-phrase-origin>.panel-switch{flex:1;width:calc(50% - 2px);margin:0;padding:2px}.panel-phrase-left>.panel-knob{height:calc(100% - 44px)}
@media(max-width:380px){.panel-cricket .cricket-caption .cricket-name{display:none}.panel-cricket .cricket-preset-value{font-size:11px}}

/* Rosewood bar controls: compact, no generic segmented UI chrome. */
.panel-marimba{display:flex;flex-direction:column;min-width:0}.panel-marimba-knobs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1;min-height:0}.panel-marimba-switches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:44px;gap:3px}.panel-marimba .panel-control{min-width:0}.marimba-face{position:absolute;inset:0;background:linear-gradient(96deg,#130c08,#100b08 34%,#160e09 66%,#100b08);pointer-events:none}.marimba-face svg{position:absolute;right:7px;top:8px;width:12px;height:12px;fill:none;stroke:#fcf6e8a8;stroke-width:.7;stroke-linecap:round;stroke-linejoin:round}.marimba-pad-label{position:absolute;right:6px;bottom:6px;max-width:calc(100% - 22px);white-space:nowrap;overflow:hidden;font:12px ui-monospace,monospace;color:#fcf6e8cc}.marimba-pad-label small{display:block;font-size:10px;color:#fcf6e880;text-align:right;margin-bottom:2px}.marimba-inlay{position:absolute;left:9px;top:8px;bottom:28px;width:3px;background:#fcf6e85c;border-radius:1.5px;display:flex;flex-direction:column-reverse;justify-content:space-between}.marimba-inlay b{width:4px;height:2px;margin-left:-.5px;background:#ffae33;border-radius:.7px}.marimba-pad.down .marimba-face,.marimba-pad.flash .marimba-face{background:transparent}.marimba-pad .pad-note-name{display:none}

/* Long-form reading stays within the menu; music controls keep their size. */
.panel-showing-about .panel-adult-header{flex:none;min-height:44px;height:44px}
.panel-credits{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:none;padding:8px 16px 24px;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff6e5e0;-webkit-overflow-scrolling:touch}
.panel-credits h3{font:500 15px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;margin:20px 0 7px;color:#fff6e5}
.panel-credits p{white-space:pre-line;margin:8px 0 12px}
.panel-credits a{color:#d1dfa7;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:8px 0;min-height:44px;box-sizing:border-box}
.panel-credits section>a+a{margin-left:14px}
.panel-credits-links{display:flex;flex-wrap:wrap;gap:0 18px}
.panel-credits-hint{font-size:12px;color:#fff6e599}
.panel-credits details{border-top:1px solid #fff6e533;padding:0}
.panel-credits summary{padding:13px 0;min-height:44px;box-sizing:border-box;cursor:pointer}
.panel-credits pre{font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#fff6e5c7}
.panel-credits :focus-visible{outline:1px solid #d1dfa7;outline-offset:2px}
/* One tactile console: five identical channels, selected material below. */
.panel-face.panel-mixer-bank{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:6px 3px;align-items:stretch;height:64%}
.panel-channel-strip{display:grid;grid-template-rows:48px minmax(60px,1fr) 57px 44px 44px;min-width:0;border-right:1px solid #fff6e51c;padding:0 3px}
.panel-channel-strip:last-child{border-right:0}.panel-channel-strip>.panel-fader{width:100%;max-width:none}.panel-channel-strip>.panel-knob{width:100%;height:57px;min-height:44px}
.bele-panel-surface .panel-channel-select{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent;border:0;padding:0;font-size:9px;gap:0;min-height:44px}
.panel-channel-select img{height:28px;width:38px;object-fit:contain}.panel-channel-select .panel-switch-title{font-size:9px}.panel-channel-select .panel-led{position:absolute;bottom:0;width:28px;height:1px}.panel-channel-select.selected{color:var(--panel-tint)}
.bele-panel-surface .panel-channel-mute,.bele-panel-surface .panel-channel-solo{background:#131617;border:1px solid #fff6e51c;border-radius:2px;padding:3px;margin:0;min-height:44px}.panel-channel-mute .panel-switch-title,.panel-channel-solo .panel-switch-title{font-size:10px}.panel-channel-mute.selected{color:#e9b78d;background:#39231d}.panel-channel-solo.selected{color:var(--panel-tint);background:#29402e}
.panel-mixer>.panel-takes{height:36%}.panel-grownup-mixer.panel-mixer-bank{height:65%;padding:0 3px}.panel-grownup-mixer .panel-channel-strip{grid-template-rows:44px minmax(36px,1fr) 44px 44px 44px}.panel-grownup-mixer .panel-knob{height:44px}.panel-grownup-mixer+.panel-takes{height:35%}
/* A graphite library deck: printed keys, recessed sleeves, no idle decoration.
   Fractional inset strokes stay visible on older WebKit unlike border widths. */
.panel-tabs{grid-template-columns:repeat(6,minmax(0,1fr));height:44px}.panel-tabs .panel-switch-title{font-size:10px}.panel-layer-modes{height:44px}
.panel-showing-library>.panel-adult-header,.panel-showing-mix>.panel-adult-header{flex:none;min-height:0;padding-bottom:10px}
.panel-showing-library>.panel-adult-content,.panel-showing-mix>.panel-adult-content,.panel-library-standalone>.panel-adult-content{flex:1;height:auto;min-height:0}
.panel-adult-title h2{font-size:14px}.panel-header-button{font-size:11px!important;padding:0 5px;min-width:44px!important}
.panel-showing-library .panel-adult-help{display:none}.panel-showing-library .panel-context{margin-bottom:0}
.panel-library{--library-ink:#e7e2d6;--library-dim:#9c9c93;--library-amber:#d5b17a;--library-pixel:1px;height:100%;display:flex;flex-direction:column;gap:8px;padding:0 12px 10px;background:#101213;color:var(--library-ink);font:300 13px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:inset 0 var(--library-pixel) #fff6e524;overflow:hidden}
.panel-library-toolbar{height:44px;min-height:44px;display:flex;align-items:center;gap:8px}.panel-library-toolbar h2{font:300 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace;margin:0;letter-spacing:.08em}.panel-library-status{flex:1;min-width:0;font-size:10px;line-height:1.2;color:var(--library-amber);text-align:right}
.panel-library-current{display:flex;align-items:center;gap:10px;flex:none;height:60px;min-width:0;padding:4px 0 8px;box-shadow:0 var(--library-pixel) #fff6e522}
.panel-library-cover{flex:none;height:48px;width:48px;padding:3px;background:#050607;box-shadow:inset 0 1px 3px #000,inset 0 0 0 var(--library-pixel) #fff6e51c,0 var(--library-pixel) #fff6e50f;border-radius:3px;overflow:hidden}.panel-library-cover svg{display:block;width:100%;height:100%;border-radius:1px}
.bele-panel-surface .panel-library-name{flex:1;min-width:0;width:0;height:44px;padding:0 2px;border:0;border-radius:0;background:transparent;outline-offset:2px;color:var(--library-ink);font:300 16px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;user-select:text;-webkit-user-select:text;text-overflow:ellipsis}
.bele-panel-surface .panel-library-key{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:44px;min-height:44px;margin:0;padding:0 9px;border:0!important;border-radius:3px;background:linear-gradient(#26292a,#1e2021);color:var(--library-ink);box-shadow:inset 0 var(--library-pixel) #fff6e540,inset 0 0 0 var(--library-pixel) #fff6e52b,0 2px 0 #050606,0 3px 3px #0006;transition:transform 70ms,box-shadow 70ms,background-color 70ms}
.bele-panel-surface .panel-library-key:active:not(:disabled),#cube-shell .panel-library .panel-library-key:active:not(:disabled){transform:translateY(1px);background:#191c1d;box-shadow:inset 0 1px 3px #0008,inset 0 0 0 var(--library-pixel) #fff6e529,0 1px 0 #050606}
.panel-library-key:disabled{opacity:.35;cursor:default}.panel-library-key .panel-switch-title{font:300 13px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}.panel-library-key .panel-switch-title:empty,.panel-library-key .panel-switch-detail{display:none}.panel-library-key>.panel-led{position:absolute;top:7px;right:7px;width:3px;height:3px;flex-basis:3px;border-radius:50%;background:#585149;box-shadow:0 0 0 1px #080909}
.panel-library-key:active:not(:disabled)>.panel-led,.panel-library-key.selected>.panel-led{background:var(--library-amber);box-shadow:0 0 0 1px #080909,0 0 4px #d5b17a66}
.panel-library-glyph{display:block;width:20px;height:20px;flex:none;pointer-events:none}.panel-library-glyph svg{display:block;width:100%;height:100%;overflow:visible}
.panel-library-glyph path{stroke-width:var(--library-pixel);vector-effect:non-scaling-stroke}
.bele-panel-surface .panel-library-reroll,.bele-panel-surface .panel-library-save{width:44px;height:44px;padding:0;background:#181b1c;box-shadow:inset 0 0 0 var(--library-pixel) #fff6e525,0 1px #000}.panel-library-reroll>.panel-led,.panel-library-save>.panel-led{display:none}.panel-library-save{margin-right:-4px!important}
.panel-library-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex:none;margin:2px 0 5px}.bele-panel-surface .panel-library-new{height:50px;gap:10px}.panel-library-new .panel-library-glyph{width:19px;height:19px}.panel-library-new>.panel-led{background:#b19a75;top:auto;bottom:7px;right:7px}
.panel-library-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none;margin-bottom:3px}.bele-panel-surface .panel-library-tab{height:44px;padding:7px 2px 0;background:linear-gradient(#1b1e1f,#17191a);box-shadow:inset 0 0 0 var(--library-pixel) #fff6e524,0 2px #050606;color:var(--library-dim)}.panel-library-tab .panel-switch-title{font-size:11px}.panel-library-tab>.panel-led{top:8px;right:calc(50% - 1.5px)}.bele-panel-surface .panel-library-tab.selected{color:var(--library-ink);background:linear-gradient(#111314,#181a1b);box-shadow:inset 0 1px 3px #0009,inset 0 0 0 var(--library-pixel) #fff6e524,0 1px #050606}
.panel-library-list{display:flex;flex-direction:column;flex:1;min-height:0;gap:4px;overflow:hidden}.panel-library-item{height:64px;min-height:64px;display:flex;align-items:center;gap:9px;padding:7px 6px 7px 8px;background:linear-gradient(90deg,#0a0c0d,#111314 80%,#17191a);box-shadow:inset 0 0 0 var(--library-pixel) #fff6e520,inset 0 1px 3px #0009;position:relative;border-radius:3px}.panel-library-item .panel-library-cover{height:44px;width:44px;padding:2px}.panel-library-item-text{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.panel-library-item-text strong{font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-library-item-text small{font-size:9px;font-weight:300;color:var(--library-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bele-panel-surface .panel-library-open{width:44px;height:44px;padding:0;background:#171a1b;box-shadow:inset 0 0 0 var(--library-pixel) #fff6e52e,0 1px #000}.panel-library-open .panel-library-glyph{width:15px;height:15px}.panel-library-open>.panel-led{top:6px;right:6px;width:2px;height:2px}
.panel-library-pages{display:flex;align-items:center;gap:5px;min-height:44px;flex:none;margin-top:auto}.panel-library-pages>.panel-library-key{height:44px;width:44px;padding:0;background:#171a1b;box-shadow:inset 0 0 0 var(--library-pixel) #fff6e524,0 1px #000}.panel-library-pages .panel-led{display:none}.panel-library-pages small{margin-left:auto;padding-right:3px;font:300 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--library-dim);font-variant-numeric:tabular-nums}.panel-library-empty{margin:0;padding:20px 8px;color:var(--library-dim);font:300 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}
.panel-library :focus-visible{outline:1px solid var(--library-amber);outline-offset:2px}.panel-library input:focus-visible{outline-offset:-1px;background:#0b0d0e}
/* Continuous, recycled 64px song rows: the whole row is a target. */
.panel-library{padding-top:12px}.panel-library-status{flex:none;text-align:left;padding:0 3px}.panel-library-status[hidden]{display:none}
.panel-library-list{display:block;position:relative;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#060708;box-shadow:inset 0 0 0 var(--library-pixel) #fff6e526}
.panel-library-rack{position:relative;width:100%}.panel-library-rack>.panel-library-item{position:absolute;left:0;top:0;width:100%;height:64px;min-height:64px;border:0;border-radius:0;background:#080a0b;box-shadow:inset 0 calc(-1 * var(--library-pixel)) #fff6e526;text-align:left;font:inherit;color:inherit;padding:7px 10px}
.panel-library-rack>.panel-library-item:active{background:#17191a}.panel-library-rack>.panel-library-item:disabled{opacity:.45}.panel-library-row-ink{width:16px;height:16px;flex:none;margin-left:auto}.panel-library-row-ink svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:var(--library-pixel)}
.panel-library-row-ink path{vector-effect:non-scaling-stroke}.panel-library-list>.panel-library-empty{position:absolute;inset:0 0 auto;text-align:center;padding-top:32px}.panel-library-empty[hidden]{display:none}
@media(max-width:360px){.panel-library{padding-left:9px;padding-right:9px}.panel-library-current{gap:8px}.bele-panel-surface .panel-library-name{font-size:16px}.panel-library-item-text strong{font-size:11px}.panel-library-key .panel-switch-title{font-size:12px}.panel-library-tab .panel-switch-title{font-size:10px}.bele-panel-surface .panel-library-new{gap:7px}}
@media(prefers-reduced-motion:reduce){.bele-panel-surface .panel-library-key{transition:none}}
@media(max-height:700px){.panel-channel-strip{grid-template-rows:44px minmax(42px,1fr) 44px 44px 44px}.panel-channel-strip>.panel-knob{height:44px}}

@media(max-height:700px){.panel-showing-mix .panel-adult-help{font-size:10px;line-height:1.3}.panel-showing-mix .panel-context{margin-bottom:3px;font-size:12px}.panel-grownup-mixer.panel-mixer-bank{height:calc(100% - 44px);min-height:220px}.panel-grownup-mixer+.panel-takes{height:44px}}
/* Fixed height for the take rack leaves a useful mixer stroke on short phones. */
.panel-face.panel-mixer-bank{grid-template-rows:minmax(0,1fr)}
.panel-channel-strip{min-height:0}
.panel-grownup-mixer.panel-mixer-bank{height:calc(100% - 88px);min-height:0}
.panel-grownup-mixer .panel-channel-strip{grid-template-rows:44px minmax(80px,1fr) 44px 44px 44px}
.panel-grownup-mixer+.panel-takes{height:88px}
.panel-mixer-bank .panel-value-title{font-size:9px;line-height:11px}
.panel-mixer-bank .panel-value-text{font-size:9px;line-height:12px}
.panel-mixer-bank .panel-fader{grid-template-rows:12px minmax(1px,1fr) 12px}
.panel-mixer-bank .panel-knob{grid-template-rows:10px minmax(1px,1fr) 10px}
@media(max-height:700px){.panel-showing-mix>.panel-adult-header{height:44px;padding-bottom:0}.panel-showing-mix .panel-context,.panel-showing-mix .panel-adult-help{display:none}.panel-grownup-mixer.panel-mixer-bank{height:calc(100% - 44px)}.panel-grownup-mixer+.panel-takes{height:44px}}
.panel-mixer-bank .panel-fader{padding:0;grid-template-rows:10px minmax(1px,1fr) 10px}

.panel-library-art-button{display:block;border:0;min-width:48px;min-height:48px;touch-action:none;cursor:pointer}.panel-library-art-button:active{transform:translateY(var(--library-pixel,1px));filter:brightness(1.1)}.panel-library-art-button:focus-visible{outline:1px solid var(--library-cream,#fff6e5);outline-offset:2px}

/* Advanced menu is the single persistent editor; its close target stays 44px. */
.panel-room-close,.panel-room-icon{display:flex;align-items:center;justify-content:center;width:44px;padding:0!important}
/* A pressed header glyph (Microphone or About page showing) reads as pressed; press it again to return. */
.panel-room-icon.selected{background:#fff6e529!important;border-radius:8px}
.panel-adult-title h2{overflow:hidden;text-overflow:ellipsis}
@media(max-width:360px){.panel-adult-header{padding:0 8px}.panel-adult-title h2{font-size:11px}.panel-header-button{padding:0 3px;min-width:40px!important}.panel-room-icon{width:40px}}

.panel-tuning-alternate{grid-template-columns:repeat(6,minmax(0,1fr))}
.panel-tuning-alternate .panel-tuning-choice{grid-column:span 2}
.panel-tuning-alternate .panel-scale-choice{grid-column:span 4}
.panel-tuning-alternate .panel-integer{grid-column:span 2}
.panel-tuning-notes{grid-column:1/-1;grid-row:span 2;padding:16px;color:#fff6e5cc;font:12px/1.45 ui-monospace,monospace}
.panel-tuning-notes strong{font-size:15px;font-weight:400}.panel-tuning-notes p:last-child{color:#fff6e599}

.panel-scale-preferences{display:grid;grid-template-columns:1fr 1fr;gap:8px}.panel-scale-preferences .panel-note-labels{font-size:11px!important;line-height:1.2}.panel-scale-preferences .panel-switch-title{white-space:normal;text-align:left}
