/* Larger reference text without changing the simulation or its controls. */
.inspector .aside-heading h2{font-size:16px}
.inspector .aside-heading>span{font-size:11px}
.inspector select,.inspector button{font-size:14px}
.inspector .subtle,.inspector .inspect-description{font-size:14px;line-height:1.65;color:#a4bdc3}
.inspector .inspect-title{font-size:18px}
.inspector .control-label,.inspector .control-label strong{font-size:14px}
.inspector .control-ticks{font-size:11px}
.inspector .param-row,.inspector .pin-row{font-size:13px;line-height:1.5;gap:8px}
.inspector .param-row strong{overflow-wrap:anywhere;text-align:right}
.inspector .pin-row{flex-wrap:wrap}
.inspector .pin-row button{font-size:13px;min-height:34px;padding:6px 8px}
.inspector .notebook-entry,.inspector .notebook-entry strong{font-size:13px}
.inspector .notebook-entry small,.inspector .code-badge{font-size:12px}
.inspector .switch-options button{font-size:14px;min-height:36px}

/* Thin, independent edges do not intercept gestures inside the circuit. */
body.playing .lab-layout{grid-template-columns:minmax(0,1fr) 8px var(--inspector-width,305px)}
body.playing .lab-main{grid-template-rows:minmax(320px,1fr) 8px 298px}
#deckResize,#deckWidthResize{background:#344d55;touch-action:none;user-select:none;position:relative}
#deckResize{cursor:ns-resize}
#deckWidthResize{cursor:ew-resize;align-self:stretch}
#deckResize:hover,#deckResize:focus-visible,#deckWidthResize:hover,#deckWidthResize:focus-visible{background:#c39266;outline:2px solid #efad73;outline-offset:-2px}
body.resizing-deck,body.resizing-deck *{cursor:ns-resize!important;user-select:none!important}
body.resizing-deck-width,body.resizing-deck-width *{cursor:ew-resize!important;user-select:none!important}
body.playing .lab-layout.deck-resized{height:auto;min-height:0;align-items:start}
body.playing .lab-layout.deck-resized .lab-main{grid-template-rows:var(--deck-height) 8px 310px}
.deck-resized .inspector{height:calc(var(--deck-height) + 318px)}
.inspector{min-width:0}
.bench-toolbar,.selection-bar{flex-shrink:0}
@media(max-width:780px){
  body.playing .lab-layout{grid-template-columns:minmax(0,1fr)}
  body.playing .lab-main{grid-template-rows:440px 12px 310px}
  body.playing .lab-layout.deck-resized .lab-main{grid-template-rows:var(--deck-height) 12px 310px}
  #deckWidthResize{display:none}
  .deck-resized .inspector{height:auto}
}
@media(max-width:480px){.inspector{grid-template-columns:1fr}}

/* Deck theme only: keep component artwork and golden terminal pads unchanged. */
.deck-dark #scene{background:#14252d}
.deck-dark .bench-toolbar{background:#223a42;color:#d4e4df;border-color:#47616a}
.deck-dark .bench-toolbar .eyebrow,.deck-dark .lock-label{color:#a4bdc3}
.deck-dark .bench-toolbar button{color:#c2d8d1}
.deck-dark .bench-toolbar button.active,.deck-dark #deckDarkMode[aria-pressed=true]{background:#476055;color:#fff1cf}
.deck-dark .toolbar-line{background:#5a737b}
.deck-dark .selection-bar{background:#20363e;color:#c9ded5;border-color:#425c64}
.deck-dark #sceneHint,.deck-dark #sceneStatus{color:#a8c3bd}
.deck-dark #diagram #benchGrid circle{fill:#33434b;opacity:.45}
.deck-dark #diagram text{fill:#bfd2ca}
.deck-dark #diagram .terminal-label{fill:#c1d6cd;stroke:#14252d}
.deck-dark #diagram .selected-pin .terminal-label{fill:#ffcf91;stroke:#14252d}
.deck-dark #diagram .wire-visible{stroke:#94b7c0}
.deck-dark #diagram .selected-wire{stroke:#ffb66f}
.deck-dark #diagram .wire-junction{stroke:#a2bcc1;stroke-width:1}
.deck-dark #terminalFocus{background:#493c2c;color:#ffdcaa;border-color:#b58b55}

/* Raise package and wire contrast without brightening unlit indicators. */
.deck-dark #diagram .deck-dark-surface{fill:#697e89;stroke:#a5bac3}
.deck-dark #diagram .wire-visible{stroke:#bdd6df;stroke-width:2.6}
.deck-dark #diagram .selected-wire{stroke:#ffc07d;stroke-width:4}
.deck-dark #diagram .wire-junction{stroke:#c5dce3}

.deck-dark #diagram text{fill:#fff!important;paint-order:stroke;stroke:#14252d;stroke-width:.55;stroke-linejoin:round}
.deck-dark #diagram .terminal-label,.deck-dark #diagram .selected-pin .terminal-label{fill:#fff!important;stroke:#14252d}
.deck-dark .bench-toolbar .eyebrow,.deck-dark .lock-label,.deck-dark .bench-toolbar button,.deck-dark .bench-toolbar button.active,.deck-dark #deckDarkMode[aria-pressed=true],.deck-dark .selection-bar,.deck-dark #sceneHint,.deck-dark #sceneStatus,.deck-dark #terminalFocus{color:#fff}
