/* TRIAD//LOOP 的局部样式；三栏实验室版式与颜色都来自共享主题，这里只写本页的舞台细节。颜色一律用令牌。 */
.stage:not(.still) #cv { cursor: grab; touch-action: none; }
.stage:not(.still) #cv:active { cursor: grabbing; }
#stage { container-type: inline-size; }

/* 本书的颜色规则：标语与抽屉的加粗引语不是“当前”，不用琥珀 */
.tagline em, .sheet li b { color: var(--cyan); }
dl.ro .v dd { color: var(--violet); }

/* 舞台标签：数学符号保持原样 */
.stage .tag { text-transform: none; white-space: nowrap; }
.stage .tag.backed { border-radius: 999px; padding: 3px 9px; background: var(--sheet); border: 1px solid var(--panel-edge); text-shadow: none; }
.stage .tag.c-vi { color: var(--violet); }
.hud-tl .big, .hud-tl .sub, #plotTitle, #plotMeta, .tau, #dtKey { text-transform: none; }

/* 条带小图：阶段 0–3 可拖动改变 ε；阶段 4 只读 */
#plot { cursor: crosshair; touch-action: none; }
#plot.readonly { cursor: default; touch-action: auto; }

#ctlPanel #stageChips { flex-wrap: wrap; gap: 4px; margin: 2px 0 14px; }
#ctlPanel #stageChips .chip { text-transform: none; }

/* 圆弧手柄：琥珀只标当前选择的 ε；随圆弧端点 A 在舞台上移动 */
#arcHandle { position: absolute; z-index: 3; left: 0; top: 0; width: 30px; height: 30px; padding: 0; border: 2px solid var(--amber); border-radius: 50%; background: var(--sheet); color: var(--amber); font: 600 15px/1 var(--font-data); text-transform: none; transform: translate(-50%, -50%); cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
#arcHandle[hidden] { display: none; }
#arcHandle.dragging { cursor: grabbing; }
#arcHandle.behind { opacity: 0.5; }
#arcHandle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

@container (max-width: 620px) {
  .hud-tr { left: 12px; right: 12px; max-width: none; gap: 3px; justify-content: flex-start; }
  .hud-tr .chip { padding: 3px 6px; font-size: 9.5px; letter-spacing: 0.02em; }
  .hud-tl { left: 12px; max-width: calc(100% - 24px); }
  .hud-tl .big { font-size: 12px; }
  .hud-tl .sub { font-size: 10.5px; line-height: 1.35; }
  .hud-bl { left: 12px; right: 12px; bottom: 9px; gap: 3px 10px; font-size: 10px; }
  .stage .tag { font-size: 10.5px; }
  .stage .tag.backed { padding: 2px 7px; }
  #arcHandle { width: 28px; height: 28px; font-size: 14px; }
}
@media (max-width: 520px) {
  :root:not([data-embed]):not([data-thumb-mode]):not([data-shot]) .lab .center { grid-template-rows: minmax(min-content, max(480px, 65vh)) auto auto; }
}
