/* ORTHO//PADIC: shared lab layout (../assets/theme.css) carries the page.
   Only page-specific cursor, prime chip grid, legend swatches, and mobile HUD spacing live here; zero hardcoded hex colours. */
#cv { cursor: pointer; touch-action: manipulation; }
.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.vi { background: repeating-linear-gradient(90deg, var(--violet) 0 4px, transparent 4px 7px); }
.chip .m { text-transform: none; font-family: var(--font-data); letter-spacing: 0.02em; }
.chip small { font-family: var(--font-data); color: var(--dim); font-size: 10px; }
.prime-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.prime-grid .chip { padding: 3px 7px; min-width: 32px; text-align: center; }
.prime-grid .cliff-chip { border-color: var(--magenta); }
.prime-grid .cliff-chip[aria-pressed="true"] { background: var(--magenta); color: var(--on-accent); border-color: var(--magenta); }
:root:not([data-shot]) .hud-tl { max-width: calc(100% - 210px); }
@media (max-width: 560px) {
  :root:not([data-embed]):not([data-figure]):not([data-thumb-mode]) .lab .center { grid-template-rows: minmax(610px, 70vh) auto auto; }
  .hud-tr { top: 10px; right: 12px; }
  #sceneChips { gap: 4px; }
  #sceneChips .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; }
}
/* a cited figure in a narrow column: the title's second line and the legend set their lines closer, so the panel in
   the band between them (measured by main.js each frame) keeps its room */
@media (max-width: 520px) {
  :root[data-embed][data-figure] .hud-tl .sub, :root[data-embed][data-figure] .hud-bl { line-height: 1.3; }
  :root[data-embed][data-figure] .hud-bl { row-gap: 1px; }
}
