/* The formats' ruler in three.js (ruler3d.js; Lucas, 16 Nov 2026: "maybe we can use three js for this"). Once three.js
   has loaded the canvas takes the CSS ruler's place in its panel; the CSS ruler stays for no JS and if three.js fails.
   The canvas fills the panel's width (narrower than 600px it keeps 600px and swipes sideways, as the CSS one does);
   its labels are HTML over it, placed from the 3D points each frame: the numbers in ink on the top faces (links to each
   format, for the keyboard), the axis's marks in the mono under it, the picked program's name as an ink tag. */
.rl-stage.r3d-on > .rl-svg { display: none; }
.rl-stage.r3d-on { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.rl-stage.r3d-on::-webkit-scrollbar { display: none; }
.r3d { position: relative; width: max-content; }
.r3d canvas { display: block; touch-action: pan-x pan-y; }
.r3d-ui { position: absolute; left: 0; top: 0; pointer-events: none; }
.r3d-ui > * { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.r3d-n { pointer-events: auto; translate: -100% -50%; transform-origin: 100% 50%; padding: 0 1px; border-radius: 4px; color: var(--ink); text-decoration: none; font: var(--t-body); font-weight: 500; font-variant-numeric: tabular-nums; }
a.r3d-n { cursor: pointer; }
.r3d-n:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.r3d-t { translate: -50% 0; transform-origin: 50% 0; color: var(--grey); font: var(--t-label); }
.r3d-t.first { translate: 0 0; transform-origin: 0 0; }
.r3d-name { translate: -100% -100%; padding: 5px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); font: var(--t-small); font-weight: 500; opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard); }
.r3d-name.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .r3d-name { transition: none; } }
