.replay-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.replay-player-error { position: absolute; inset: auto 12px 28px; z-index: 5; padding: 10px; color: #fff; background: #292929; font: 13px/1.4 Inter, sans-serif; }
.replay-player-error[hidden], .replay-action[hidden] { display: none !important; }
#instantReplayControls.replay-controls { box-sizing: border-box; width: 100%; min-width: 0; gap: 0; padding: 0; margin-block: 8px; border: 1px solid #414141 !important; border-radius: 12px; background: #171717; box-shadow: none; }
body #instantReplayControls #instantReplayToggle { display: flex; align-items: center; width: 100%; min-height: 66px !important; height: auto !important; gap: 10px !important; margin: 0; padding: 12px !important; border: 0 !important; border-bottom: 1px solid #363636 !important; border-radius: 11px 11px 0 0 !important; background: #222 !important; text-align: left; }
body #instantReplayControls #instantReplayToggle:hover { background: #292929 !important; }
body #instantReplayControls #instantReplayToggle:focus-visible { outline: 2px solid #bed39e; outline-offset: -3px; }
body #instantReplayControls .replay-heading-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; white-space: normal; line-height: 1.25; }
#instantReplayControls .replay-heading-copy small { color: #a8a8a8; font: 400 11px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none; }
body #instantReplayControls #instantReplayToggle .status-chip { flex: 0 0 44px !important; width: 44px !important; min-width: 44px !important; height: 24px; border: 1px solid #555 !important; border-radius: 6px; background: #343434 !important; color: #ddd !important; font: 700 10px/1 Inter, sans-serif; }
body #instantReplayControls #instantReplayToggle[aria-pressed="true"] .status-chip { border-color: #819768 !important; background: #35442c !important; color: #e0f3cb !important; }
.replay-controls-body { display: grid; gap: 14px; min-width: 0; padding: 14px 12px 12px; }
.replay-controls p { margin: 0; color: #aaa; font: 12px/1.5 Inter, sans-serif; overflow-wrap: anywhere; }
.replay-controls p:empty { display: none; }
.replay-buffer-panel { display: grid; gap: 8px; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid #303030; }
#replayBufferStatus { color: #d7d7d7; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
#replayBufferProgress { display: block; appearance: none; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 99px; background: #333; color: #b4cb94; accent-color: #b4cb94; }
#replayBufferProgress::-webkit-progress-bar { background: #333; border-radius: 99px; }
#replayBufferProgress::-webkit-progress-value { background: #b4cb94; border-radius: 99px; }
#replayBufferProgress::-moz-progress-bar { background: #b4cb94; border-radius: 99px; }
.replay-controls-actions { display: grid; gap: 8px; }
.replay-action { display: block; width: 100%; margin: 0; }
.replay-duration-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.replay-duration-options legend { margin-bottom: 8px; padding: 0; color: #c7c7c7; font: 600 12px/1.3 Inter, sans-serif; }
.replay-duration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #393939; border-radius: 9px; background: #101010; }
.replay-duration-options button { min-width: 0; min-height: 36px; padding: 8px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #c4c4c4; font: 600 12px/1.3 Inter, sans-serif; cursor: pointer; }
.replay-duration-options button:hover:not(:disabled) { background: #363a35; }
.replay-duration-options button[aria-pressed="true"] { border-color: #a1bc81; background: #35442c; color: #e0f3cb; }
.replay-duration-options button:focus-visible { outline: 2px solid #c0dc9f; outline-offset: 2px; }
.replay-duration-options button:disabled { opacity: .5; cursor: default; }
.replay-action { padding: 9px 12px; border: 1px solid #5b5b5b; border-radius: 7px; background: #333; color: #eee; font: 600 12px/1.3 Inter, sans-serif; cursor: pointer; }
.replay-action:hover:not(:disabled) { background: #484848; }
.replay-action:disabled { opacity: .45; cursor: default; }
#returnFromReplayButton { min-height: 36px; background: transparent; border-color: #454545; }
.replay-action:focus-visible, .replay-preview button:focus-visible { outline: 2px solid #ddd; outline-offset: 3px; }
body.left-nav-layout #instantReplayToggle[aria-pressed="true"] .status-chip { background: #c0dc9f !important; color: #21301d !important; }
.replay-card .stream-live-indicator, .replay-card .volume-stabilization-trim-badge { display: none !important; }
.replay-stream-icon { color: #ddd; }
.replay-preview [data-replay-close] { width: 32px; min-height: 32px; padding: 6px; border-color: transparent; background: transparent; }
.replay-preview-stage { width: min(100%, calc(max(120px, 100dvh - 470px) * var(--snapshot-aspect))); }
.replay-preview-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.replay-preview-stage canvas { position: absolute; inset: 0; }
.replay-drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 1; }
.replay-preview .snapshot-editor-messages { overflow-wrap: anywhere; }
.replay-preview [data-replay-drawing-status]:empty { display: none; }
.replay-viewer-controls { padding: 12px 22px 18px; border-top: 1px solid #3b3b3b; background: #202020; }
.replay-viewer-track { --replay-progress: 0%; position: relative; height: 24px; margin-inline: 8px; }
.replay-viewer-track::before, .replay-viewer-buffered, .replay-viewer-progress { position: absolute; top: 9px; left: 0; width: 100%; height: 6px; border-radius: 4px; pointer-events: none; }
.replay-viewer-track::before { content: ''; background: #3d3d3d; }
.replay-viewer-progress { width: var(--replay-progress); background: #d6d6d6; }
.replay-viewer-track input { position: absolute; inset: 0 -8px; appearance: none; box-sizing: border-box; width: calc(100% + 16px); height: 24px; margin: 0; background: transparent; cursor: pointer; }
.replay-viewer-track input::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.replay-viewer-track input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -5px; border: 2px solid #202020; border-radius: 50%; background: #eee; box-shadow: 0 0 0 1px #aaa; }
.replay-viewer-track input::-moz-range-track { height: 6px; background: transparent; }
.replay-viewer-track input::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #202020; border-radius: 50%; background: #eee; box-shadow: 0 0 0 1px #aaa; }
.replay-viewer-track input:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; border-radius: 5px; }
.replay-viewer-track input:disabled { opacity: .4; cursor: default; }
.replay-viewer-timeline-labels { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 16px; color: #aaa; font-size: 11px; }
.replay-viewer-timeline-labels [data-replay-time] { color: #eee; font-variant-numeric: tabular-nums; white-space: nowrap; }
.replay-buffer-legend { margin-left: 16px; }
.replay-buffer-legend::before { content: ''; display: inline-block; width: 15px; height: 4px; margin: 0 6px 2px 0; border-radius: 4px; background: #777; }
.replay-viewer-transport { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.replay-viewer-transport button { min-height: 42px; gap: 8px; padding-inline: 14px; }
.replay-viewer-transport .replay-viewer-toggle { min-width: 112px; border-color: #999; background: #484848; color: #fff; }
.replay-viewer-loop { display: inline-flex; align-items: center; gap: 7px; padding: 8px; color: #aaa; font-size: 11px; }
.replay-viewer-loop svg { width: 17px; height: 17px; }
@media (max-width: 680px) {
  .replay-preview-stage { width: 100%; }
  .replay-preview .snapshot-editor-actions { flex-wrap: wrap; }
  .replay-viewer-controls { padding: 10px 12px 14px; }
  .replay-viewer-transport { gap: 6px; }
  .replay-viewer-transport button { padding-inline: 10px; }
  .replay-viewer-transport .replay-viewer-toggle { min-width: 90px; }
  .replay-viewer-loop { flex-basis: 100%; justify-content: center; padding-bottom: 0; }
  .replay-preview .snapshot-editor-header h2 { overflow-wrap: anywhere; }
}
