/* ORTHO//TRIAD: shared lab layout (../assets/theme.css) carries the page.
   Only page-specific cursor, legend swatches, and mobile HUD spacing live here; zero hardcoded hex colours. */
#gl { cursor: grab; touch-action: none; }
#gl:active { cursor: grabbing; }
.sw.ink { background: var(--sigma); }
.sw.cy { background: var(--cyan); }
.sw.mg { background: var(--magenta); }
.sw.vi { background: var(--violet); }
.sw.am { background: var(--amber); }
.sw.dash.dm { background: repeating-linear-gradient(90deg, var(--dim) 0 4px, transparent 4px 7px); }
.sw.dash.mg { background: repeating-linear-gradient(90deg, var(--magenta) 0 4px, transparent 4px 7px); }
.m, .chip .m, .tour .what b .m { text-transform: none; font-family: var(--font-data); letter-spacing: 0.02em; }
:root:not([data-shot]) .hud-tl { max-width: calc(100% - 230px); }
@media (max-width: 560px) {
  :root:not([data-embed]):not([data-figure]):not([data-thumb-mode]) .lab .center { grid-template-rows: minmax(430px, 60vh) auto auto; }
  .hud-tr { top: 10px; right: 12px; }
  #stageChips { gap: 4px; }
  #stageChips .chip { padding: 3px 6px; font-size: 10px; letter-spacing: 0.04em; }
  :root:not([data-shot]) .hud-tl, .hud-tl { left: 14px; right: 14px; max-width: calc(100% - 28px); }
  .hud-tl .big { font-size: 12.5px; line-height: 1.18; }
  .hud-tl .sub { font-size: 10.5px; line-height: 1.2; }
}

/* The tour bar selects the scene in a narrow cited figure. */
@media (max-width: 480px) {
  :root[data-embed][data-figure] .stage .hud-tr { display: none; }
}
