.replay + [data-replay-body]:not(:empty), [data-replay-body] > .replay + .replay { margin-top: 12px; }
.replay .replay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.replay .replay-demo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.replay .replay-setting { display: grid; grid-template-columns: minmax(100px, 160px) 1fr; gap: 16px; align-items: end; }
.replay .replay-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.replay [data-scenario] > * + *, .replay [data-quality] > * + * { margin-top: 14px; }
.replay [data-plot] { display: block; width: 100%; height: 150px; background: var(--inset, #1c1c1d); border-radius: 6px; cursor: crosshair; }
.replay [data-plot] path, .replay-cursor { fill: none; vector-effect: non-scaling-stroke; }
.replay .replay-grid { stroke: #494640; stroke-width: 1; }
.replay .replay-observed { stroke: #efa875; stroke-width: 2.5; }
.replay .replay-projected { stroke: #85d2bd; stroke-width: 2.5; }
.replay .replay-cursor { stroke: #eaf3f7; stroke-width: 1.5; stroke-dasharray: 4 3; }
.replay .replay-key, .replay .replay-axis { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .79rem; }
.replay .replay-key { margin: 4px 0 8px; }
.replay .replay-key small { margin-inline-start: auto; font-size: inherit; }
.replay .replay-key > span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; background: #efa875; }
.replay .replay-key > span + span::before { background: #85d2bd; border-radius: 50%; }
.replay .replay-axis { justify-content: space-between; margin: 3px 0 8px; font-variant-numeric: tabular-nums; }
.replay .replay-slider input[type=range] { height: 24px; padding: 0; accent-color: var(--gold); }
.replay .replay-summary { color: #e9c79d; font-variant-numeric: tabular-nums; }
.replay .replay-hits { padding-inline-start: 2.2rem; }
.replay .replay-hits > li { padding: .65rem 0; border-top: 1px solid var(--line); }
.replay .replay-hits > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.replay .replay-hit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, 155px); align-items: center; gap: 8px; }
.replay .replay-source { display: block; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.replay .replay-hits summary { width: fit-content; margin-top: 5px; font-size: .8rem; }
.replay .replay-hits code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.replay .tool-note a { color: var(--gold); text-decoration: underline; }
@media (max-width: 530px) {
  .replay .replay-setting { grid-template-columns: 1fr; gap: 6px; }
  .replay .replay-setting select { max-width: 11rem; }
  .replay .replay-hit { grid-template-columns: minmax(0, 1fr) minmax(95px, 110px); }
  .replay [data-plot] { height: 120px; }
}
