/* ORTHO//DREAM: the shared lab layout (../assets/theme.css) carries the page. Put here only what belongs to this
   visualization alone; colours come from the tokens (var(--cyan) …), never from hex values. */
#cv { cursor: grab; touch-action: none; }

/* Cited figures keep their short notes complete; detailed notes remain in the full laboratory. */
:root[data-embed][data-figure] .lab .tour { background: var(--panel-solid); }
/* on a phone the frame is about 334 × 500: the scene buttons give way to the title (◀ ▶ step through every card, and
   so every scene), and the title, the legend, the note and the transport are set tighter */
@media (max-width: 480px) {
  :root[data-embed][data-figure] #stage .hud-tr { display: none; }
  :root[data-embed][data-figure] #stage .hud-tl { top: 10px; left: 14px; max-width: calc(100% - 28px); gap: 1px; }
  :root[data-embed][data-figure] #stage .hud-tl .big { font-size: 12px; letter-spacing: 0.08em; }
  :root[data-embed][data-figure] #stage .hud-tl .sub { font-size: 11px; line-height: 1.32; }
  :root[data-embed][data-figure] #stage .hud-bl { left: 14px; right: 14px; bottom: 12px; gap: 1px 10px; font-size: 10px; line-height: 1.28; }
  :root[data-embed][data-figure] #stage .hud-bl .sw.box { width: 8px; height: 8px; }
  :root[data-embed][data-figure] .lab .tour { gap: 6px; padding: 4px 6px; }
  :root[data-embed][data-figure] .lab .tour .tbtn { min-width: 26px; height: 28px; padding: 0 4px; }
  :root[data-embed][data-figure] .lab .tour .what { font-size: 11.5px; line-height: 1.34; }
  :root[data-embed][data-figure] .lab .tour .what b { font-size: 10.5px; letter-spacing: 0.06em; }
  :root[data-embed][data-figure] .app.lab > footer.rail .tbtn { height: 26px; min-width: 30px; }
  :root[data-embed][data-figure] .app.lab > footer.rail .tau { font-size: 15px; }
}

/* The apparatus and its matrix stack vertically in the full phone laboratory: the stage is at least 520 px or 84vh,
   and never shorter than the height main.js measures and asks for through kit.plot (title block, band, panels, legend). */
@media (max-width: 520px) {
  :root:not([data-embed]) .lab .center { grid-template-rows: minmax(min-content, max(520px, 84vh)) auto auto; }
}
