/* ScrollHUD (ui-v/08): the instrument in the 12th column, under the header, from the title's line (293px) down. */
.h8 { position: fixed; right: var(--m); top: 293px; bottom: var(--m); width: var(--col); z-index: 4; display: flex; flex-direction: column; align-items: flex-end;
  font-size: 13px; line-height: 16px; letter-spacing: -.03em; color: var(--fg); pointer-events: none; }
.h8 > * { pointer-events: auto; }
.h8-read { display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.h8-dir { display: inline-block; width: 1ch; text-align: center; }
.h8.live .h8-dir { color: var(--accent, #dc3418); }
.h8-pct { min-width: 4ch; text-align: right; }
.h8-name { position: relative; margin-top: 4px; max-width: 100%; text-align: right; opacity: .5; min-height: 16px; }
.h8-name .ch { opacity: 0; }
.h8-name .ch.on { opacity: 1; }
.h8-car { position: absolute; left: 0; top: 3px; width: 6px; height: 10px; background: var(--accent, #dc3418); opacity: 0; }
.h8-car.on { opacity: 1; }
.h8-inst { flex: 1; min-height: 0; max-height: 440px; margin-top: 24px; display: flex; gap: 8px; align-items: stretch; }
.h8-ticks { position: relative; width: 28px; }
.h8-tick { all: unset; position: absolute; right: -6px; display: flex; align-items: center; gap: 4px; transform: translateY(-50%); cursor: pointer; font-size: 11px; line-height: 12px; font-variant-numeric: tabular-nums; opacity: .4; padding: 2px 0 2px 4px; }
.h8-tick::after { content: ""; width: 6px; height: 1px; background: currentColor; }
.h8-tick.on { opacity: 1; }
.h8-tick.on::after { width: 10px; }
.h8-tick:hover, .h8-tick:focus-visible { opacity: 1; }
.h8-tick:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
.h8-gauge { display: block; flex: none; image-rendering: pixelated; }
.h8-map { position: relative; flex: none; align-self: flex-start; cursor: pointer; touch-action: none; }
.h8-map canvas { display: block; image-rendering: pixelated; opacity: .75; }
.h8-map:hover canvas, .h8-map.drag canvas { opacity: 1; }
.h8-map:focus { outline: none; }
.h8-map:focus-visible { outline: 1px dotted var(--fg); outline-offset: 4px; }
/* the window on the map: a 1px frame; its leading edge red while the page moves */
.h8-win { position: absolute; left: -3px; right: -3px; top: 0; border: 1px solid var(--fg); pointer-events: none; will-change: transform; }
.h8-win.live { border-bottom-color: var(--accent, #dc3418); }
.h8-win.live.up { border-bottom-color: var(--fg); border-top-color: var(--accent, #dc3418); }

/* phones: a strip at the bottom — readout, name, a horizontal gauge */
.h8.h8-phone { top: auto; left: var(--m); right: var(--m); bottom: 12px; width: auto; flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; background: var(--bg); outline: 1px solid var(--fg); }
.h8.h8-phone .h8-name { margin: 0; order: 2; flex: none; width: 128px; overflow: hidden; text-align: left; white-space: nowrap; }
.h8.h8-phone .h8-inst { order: 3; flex: 1; min-width: 0; overflow: hidden; height: 8px; max-height: none; margin: 0; align-items: center; }
.h8.h8-phone .h8-ticks, .h8.h8-phone .h8-map { display: none; }
