/* Replay page. Colours: blue, orange and yellow, never red against green (the project lead has deuteranopia). */
.replay-layout { grid-template-columns: 260px 1fr 320px; }
.replay-stage { flex: 1; min-height: 0; display: grid; place-items: center; background: #1f2023; overflow: hidden; }
.replay-frame { position: relative; overflow: hidden; }
.replay-frame canvas { display: block; }
.replay-pointer { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--orange);
  border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px #0008; }
.replay-pointer::after { content: ""; position: absolute; left: 6px; top: 6px; width: 3px; height: 3px;
  background: var(--orange); border-radius: 50%; }
.replay-pointer.pressed { background: #f08a0055; }
.replay-clicks { position: absolute; inset: 0; pointer-events: none; }
.replay-click { position: absolute; border: 3px solid var(--blue); border-radius: 50%; }
.replay-hidden { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: #000a; color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.replay-controls { align-items: center; }
.replay-controls .check { display: inline-flex; gap: 4px; align-items: center; }
.replay-controls input[type=checkbox] { width: auto; }
.replay-controls select { width: auto; }
.replay-timeline { flex-basis: 100%; position: relative; padding-top: 10px; }
.replay-timeline input[type=range] { width: 100%; padding: 0; }
.replay-ticks { position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none; }
.replay-tick { position: absolute; top: 0; width: 2px; height: 10px; background: var(--blue); }
.replay-tick.pause { background: var(--orange); }
.replay-tick.accept { background: var(--yellow); width: 4px; }
.replay-tick.refused { background: var(--orange); height: 6px; }
.replay-tick.view { background: var(--muted); height: 5px; top: 5px; }
.replay-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12px; overflow: auto; }
.replay-events li { padding: 3px 6px; border-radius: 4px; cursor: pointer; border-left: 3px solid transparent; }
.replay-events li:hover { background: var(--bg); }
.replay-events li.action { border-left-color: var(--blue); }
.replay-events li.pause, .replay-events li.refused { border-left-color: var(--orange); }
.replay-events li.accept { border-left-color: var(--yellow); font-weight: 600; }
.replay-events li.current { background: var(--bg); outline: 1px solid var(--blue); }
.replay-events .at { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.replay-summary-table { border-collapse: collapse; width: 100%; }
.replay-summary-table td { padding: 1px 4px; border-bottom: 1px solid var(--line); }
.replay-summary-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.case-list .why { font-size: 11px; color: var(--muted); }
