.instrument{position:relative;min-width:0;overflow:hidden;border:1px solid #cbd9d7;border-radius:18px;background:#f7faf9;color:#172e31;box-shadow:0 14px 45px #173a3714;align-self:center}
.instrument-head,.instrument-tools{display:flex;align-items:center;gap:6px;padding:12px 16px;flex-wrap:wrap}
.instrument-head{justify-content:space-between;border-bottom:1px solid #d3dfdc;background:white}
.instrument-head strong{font-size:18px}.instrument-head small{font:11px var(--mono,monospace);color:#427470}
.instrument button,.instrument select{font:600 13px system-ui;color:#294544;background:white;border:1px solid #c9d6d2;border-radius:7px;padding:8px 10px;cursor:pointer}
.instrument button[aria-pressed=true]{background:#134c46;color:white;border-color:#134c46}
.instrument model-viewer,.scope-screen{width:100%;height:clamp(280px,31vw,440px);background:radial-gradient(ellipse at center,#fff,#dfebe8)}
.instrument-tools{justify-content:center;padding-bottom:6px}.instrument-caption{text-align:center;font:12px/1.5 system-ui;margin:5px 10px 14px;color:#506562}
.scope-screen{background:#102725;color:#a3e5d2;padding:12px;display:flex;flex-direction:column}
.scope-screen p{margin:0;font:12px/1.5 monospace}.scope-screen canvas{width:100%;min-height:0;flex:1}
.instrument [hidden]{display:none}.instrument-tabs{display:flex;gap:4px}
.instrument model-viewer{background:radial-gradient(ellipse at center,#faf9f8,#e7e6e8);--poster-color:transparent}
.board-stage{position:relative;background:radial-gradient(ellipse at center,#faf9f8,#e7e6e8)}
.board-stage model-viewer{display:block;opacity:0;pointer-events:none}
.board-stage.ready model-viewer{opacity:1;pointer-events:auto}
#board-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;touch-action:pan-y;user-select:none;cursor:grab}
.board-stage.ready #board-frame{visibility:hidden}
