/* Controls exhibit. Shared primitives live in museum.css. The canvas only redraws while you push or while it coasts. */
.ct-stage { grid-template-columns: minmax(0, 1fr); }
.ct-modes, .ct-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-opts legend { padding: 0; margin-bottom: 6px; font: 600 .98rem var(--f-display); letter-spacing: .02em; color: var(--ink-2); }
.ct-mode, .ct-opts label { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-s); color: var(--ink-2); cursor: pointer; }
.ct-opts label { flex-direction: row; align-items: center; font: 500 .98rem var(--f-display); }
.ct-mode input, .ct-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-mode-t { font: 700 1rem/1.15 var(--f-display); letter-spacing: .02em; }
.ct-mode-y { font: 400 .68rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ct-mode:has(input:checked), .ct-opts label:has(input:checked) { border-color: var(--era); color: var(--era); background: var(--era-glow); box-shadow: inset 0 0 0 1px var(--era); }
.ct-mode:has(input:focus-visible), .ct-opts label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.ct-frame { margin: 0; }
.ct-canvas { aspect-ratio: 8 / 5; color: var(--era); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ct-canvas:active { cursor: grabbing; }
.ct-canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ct-status { display: block; margin-top: 6px; color: var(--ink); }
.ct-set { margin: 0 0 12px; }
.ct-set .ex-field { max-width: 26rem; }
.ct-sensor-fig { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ct-sensor { display: block; width: 183px; max-width: 100%; height: auto; border: 1px solid var(--rule-2); border-radius: 4px; background: #000; }
.ct-sensor-fig figcaption { flex: 1 1 12rem; color: var(--ink-2); font-size: .92rem; }
.ct-made { margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; max-width: 60ch; }
@media (min-width: 900px) {
  .ct-stage { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
  .ct-stage > .ex-panel:first-child { grid-column: 1 / -1; }
}
