/* 极小圆弧与宏观积分的局部样式；版式与颜色由共享主题提供。 */
#cv { cursor: grab; touch-action: none; }
#cv:active { cursor: grabbing; }
#stage { container-type: inline-size; }
.tagline em, .sheet 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 10px; background: var(--sheet); border: 1px solid var(--panel-edge); text-shadow: none; font-family: var(--font-data); letter-spacing: 0.02em; }
.stage .tag.c-vi { color: var(--violet); }
.stage .tag.c-dm { color: var(--dim); }
.hud-tl .big, .hud-tl .sub, #plotTitle, #plotMeta, .tau { text-transform: none; }
#plotMeta .k { white-space: nowrap; }
#plotMeta .k + .k { margin-left: 10px; }
#plotMeta .sw { margin-right: 4px; vertical-align: middle; }
#plotMeta .sw.dash { background: none; border-top: 2px dashed var(--magenta); height: 0; }
#plotMeta .sw.dash.cy { border-top-color: var(--cyan); }
#plotMeta .sw.dash.vi { border-top-color: var(--violet); }
#plotMeta .sw.dash.ik { border-top-color: var(--ink); }
#plotMeta .sw.ring { width: 7px; height: 7px; border-radius: 50%; background: none; border: 1.5px solid var(--violet); }
#ctlPanel h3 { margin: 14px 0 8px; font-size: 11px; color: var(--dim); }
/* the end of the arc: drag it to change Θ (amber marks the one thing the reader holds) */
.arc-handle {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; z-index: 2;
  border-radius: 50%; border: 2px solid var(--amber); background: none; box-shadow: 0 0 8px var(--amber);
  cursor: grab; touch-action: none;
}
.arc-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--amber); }
.arc-handle.dragging { cursor: grabbing; border-width: 3px; }
.arc-handle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@container (max-width: 620px) {
  .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: 10px; }
  .stage .tag.backed { padding: 2px 7px; }
}
@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; }
}
