/* Light decoder (video file and camera): the picture to tap, the marker, the brightness trace. Tokens only. */
/* The <video> plays so the page can read its frames; the reader looks at the canvas instead, so this one is out of sight. */
.decoder-source { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.decoder-view { display: grid; gap: 14px; min-width: 0; }
.decoder-view[hidden] { display: none; }
.decoder-stage { position: relative; width: 100%; max-width: 640px; aspect-ratio: var(--picture-ratio, 4 / 3); border-radius: var(--r-tile); background: var(--tile); overflow: hidden; cursor: crosshair; touch-action: manipulation; }
.decoder-picture { display: block; width: 100%; height: 100%; }
.decoder-target { position: absolute; left: var(--left); top: var(--top); width: var(--width); height: var(--height); box-sizing: border-box; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.decoder-target[hidden] { display: none; }
.decoder-trace { display: block; width: 100%; max-width: 640px; height: 120px; border-radius: var(--r-tile); background: var(--tile); }
