/* The host owns the outer dark panel; only the approved error readings have their own inner surface. */
@font-face{font-family:Geometrica;src:url('../assets/Geometrica.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--ink:#F1EFE6;--muted:#D1D9CC;--line:#D1D9CC30;--orange:#F7941D;--reference:#F1EFE6;--difference:#E2B16A}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:transparent;color:var(--ink);font-family:Geometrica,Arial,sans-serif}
/* Keep the workshop's top-aligned error group and 960-by-550 graphic footprint. */
#niavra-ray-replay{height:100%;min-height:550px;padding:8px 12px;display:grid;grid-template-rows:140px minmax(0,1fr) 36px;gap:10px}
.error-readouts{display:grid;grid-template-rows:31.5px 1fr;gap:4px}
.error-heading{font-size:30px;line-height:1.05;font-weight:400;text-align:center;margin:0;color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px;background:#101a14cc;border:1px solid #d1d9cc30;border-radius:8px;padding:10px 12px}
.metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0}
.metric h2{font-size:30px;font-weight:400;line-height:1.05;margin:0;white-space:normal;color:var(--muted)}
.metric strong{font-size:44px;line-height:1;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:var(--orange)}
/* SVG viewport pixels match actual pixels; the four graphic annotations match the error typography. */
svg{display:block;width:100%;height:100%;min-height:0;overflow:hidden}
svg text{font-family:inherit;font-size:30px;font-weight:400;fill:var(--muted);font-variant-numeric:tabular-nums}
svg .annotation-value{font-size:44px;fill:var(--orange)}
.legend{display:flex;justify-content:space-between;align-items:center;gap:12px;white-space:nowrap;font-size:30px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:7px}
.swatch{width:11px;height:11px;background:var(--reference);border-radius:50%;display:inline-block;flex:none}
.swatch.direction{height:3px;width:22px;border-radius:0;background:var(--orange)}
.swatch.position{width:10px;height:10px;border-radius:0;background:var(--orange);transform:rotate(45deg)}
.swatch.difference{height:3px;width:22px;border-radius:0;background:var(--difference)}
/* Only a load failure uses the status slot; no workshop controls or provenance copy enters the slide. */
#nr-status[hidden]{display:none}
#nr-status:not([hidden]){position:absolute;inset:160px 12px auto;font-size:30px;color:var(--ink)}

/* The parent A2 clock gently settles the existing 3D viewport; adjacent metrics/legend never scale. */
#nr-scene{transform:scale(var(--demo-model-scale,1));transform-origin:center;transform-box:border-box}
