/* VOLUME//STANDING: the shared lab layout (../assets/theme.css) carries the page. Only what belongs to this page lives
   here: the pointer on the stage, the book's colour rule (amber only for the current phase and the handle), violet
   readouts, and the compact title and legend on narrow stages. Colours come from the tokens (var(--cyan) …), never from
   literal colour values. */
#cv { cursor: grab; touch-action: none; }
#cv:active { cursor: grabbing; }
#stage { container-type: inline-size; }

/* the book's colour rule: the tagline and the drawer's bold leads are not "now" */
.tagline em { color: var(--cyan); }
.sheet li b { color: var(--cyan); }

/* violet readouts: volume and the Bloch formula; magenta: the background */
dl.ro .v dd { color: var(--violet); }
dl.ro .m dd { color: var(--magenta); }

/* the stage's own labels keep their case (numbers, Ψ, γ, ε) */
.stage .tag.c-vi { color: var(--violet); }
.stage .tag.c-am { color: var(--amber); }

/* the density chips sit right under their slider */
#densityChips { margin: -2px 0 10px; }
#harmonic { margin-top: 2px; }

/* narrow stages: a smaller title block and legend, so that the solid keeps the room */
@container (max-width: 520px) {
  .hud-tl { left: 14px; max-width: calc(100% - 28px); }
  .hud-tl .big { font-size: 12px; letter-spacing: 0.08em; }
  .hud-tl .sub { font-size: 10.5px; line-height: 1.3; }
  .hud-bl { left: 12px; right: 12px; bottom: 8px; gap: 1px 9px; font-size: 10px; }
  .stage .tag.raw { font-size: 11px; }
}

/* phones: a taller stage, so that the sector and its labels have room */
@media (max-width: 520px) {
  :root:not([data-embed]):not([data-thumb-mode]) .lab .center { grid-template-rows: minmax(min-content, max(460px, 64vh)) auto auto; }
}
