/* Height source: the AI depth buttons sit under the depth dropzone. */
.ai-depth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.ai-progress {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  line-height: 1.15;
  text-align: right;
}

/* The EQ canvas height is fixed: eq-widget.js lays the plot out with pixel paddings. */
.frequency-eq { position: relative; width: 100%; }
#frequencyEQ {
  display: block;
  width: 100%;
  height: 126px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--well);
  touch-action: none;
  cursor: ns-resize;
}
.eq-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  line-height: 1.35;
}
.eq-caption span:last-child { text-align: right; }

/* Output pane: three stacked canvases; the tab radios choose which one shows. */
.view-stack .output-canvas { position: absolute; inset: 0; display: none; object-fit: fill; }
.view-stack:not(.is-ready) .output-canvas { opacity: 0; }
.pane:has(input[name="outputView"][value="height"]:checked) .output-canvas[data-view="height"],
.pane:has(input[name="outputView"][value="normal"]:checked) .output-canvas[data-view="normal"],
.pane:has(input[name="outputView"][value="ao"]:checked) .output-canvas[data-view="ao"] { display: block; }
/* Without :has() the tabs cannot switch; keep the normal map visible. */
@supports not selector(:has(*)) {
  .view-stack .output-canvas[data-view="normal"] { display: block; }
}

/* Lit preview: dragging moves the light, so the stage owns touch gestures. */
.stage.lit { touch-action: none; }
.light-dot {
  position: absolute;
  left: 72%;
  top: 28%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--highlight);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}
.stage.lit.is-ready .light-dot { display: block; }
.drag-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: var(--fs-md);
}
