/* ORTHO//CONSENSUS: the shared lab layout (../assets/theme.css) carries the page. Only what belongs to this page lives
   here: the pointer on the stage, legend swatches, the grid of erasable records, math kept out of uppercase, the
   book's colour rule (amber only for the current state, rail cursor and selected card) and touch targets on phones.
   Colours come from the tokens (var(--cyan) …), never from literal colour values. */
#cv { cursor: grab; touch-action: none; }
#cv:active { cursor: grabbing; }
.stage.still #cv { cursor: crosshair; }

/* 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); }
.sheet .evh { margin: 16px 0 6px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; color: var(--cyan); }

/* math never goes through an uppercase transform (α, π, κ, λ would change shape) */
.chip .m { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-data); }

/* legend swatches */
.sw.ink { background: var(--sigma); }
.sw.dash { background: repeating-linear-gradient(90deg, var(--dim) 0 4px, transparent 4px 7px); }
.sw.dash.cy { background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 7px); }
.sw.dash.ink { background: repeating-linear-gradient(90deg, var(--sigma) 0 4px, transparent 4px 7px); }
.sw.ring { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 2px solid var(--sigma); }
.sw.box { opacity: 0.6; }

/* the sixteen records that can be erased (controlled U†): pressed = erased back to blank */
.access { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.access button {
  min-width: 0; min-height: 28px; border: 1px solid var(--line-hot); background: color-mix(in srgb, var(--sigma) 16%, transparent);
  color: var(--ink); font-family: var(--font-data); font-size: 11px; cursor: pointer; padding: 0;
}
.access button:hover { border-color: var(--cyan); }
.access button[aria-pressed="true"] { background: transparent; color: var(--dim); border-style: dashed; }
.chip[aria-pressed="true"] .m { color: inherit; }

/* the stage's own hud: the scene chips stay on one row; long titles wrap under them on narrow screens */
:root:not([data-shot]) .hud-tl { max-width: calc(100% - 300px); }
@media (max-width: 1080px) {
  :root:not([data-shot]) .hud-tl { max-width: calc(100% - 290px); }
}
@media (max-width: 760px) {
  :root:not([data-shot]) .hud-tl, .hud-tl { max-width: calc(100% - 36px); }
  .hud-tl .big { font-size: 12.5px; line-height: 1.2; }
  .hud-tl .sub { font-size: 11px; line-height: 1.25; }
}

/* phones: every control a finger can hit is at least 44 px tall */
@media (max-width: 520px) {
  :root:not([data-embed]):not([data-thumb-mode]) .lab .center { grid-template-rows: minmax(470px, 64vh) auto auto; }
  .hud-tr { top: 8px; right: 10px; gap: 4px; }
  .hud-tr .chip { min-height: 44px; padding: 4px 8px; font-size: 10.5px; letter-spacing: 0.04em; }
  :root:not([data-shot]) .hud-tl, .hud-tl { left: 14px; max-width: calc(100% - 28px); }
  .chip, .preset, .tbtn, .langs button, .access button { min-height: 44px; }
  .tbtn { min-width: 44px; }
  .access { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  input[type=range] { height: 44px; }
}
