.v01-replay-launcher {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-weight: 800;
}

.v01-replay-persistent-badge {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid currentColor;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
}

.v01-replay-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,.22);
  padding: 18px;
}

.v01-replay-sheet[hidden],
.v01-replay-persistent-badge[hidden] {
  display: none !important;
}

.v01-replay-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.v01-replay-sheet h2 {
  margin: 4px 0 0;
}

.v01-replay-mode {
  font-weight: 900;
  letter-spacing: .04em;
}

.v01-replay-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 24px;
}

.v01-replay-disclaimer {
  margin: 12px 0;
  padding: 10px 12px;
  border: 2px solid currentColor;
  border-radius: 12px;
  font-weight: 900;
}

.v01-replay-priority {
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  border: 3px solid currentColor;
  font-weight: 900;
}

.v01-replay-field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-weight: 800;
}

.v01-replay-field select {
  min-height: 48px;
  padding: 8px 10px;
  font: inherit;
  border-radius: 10px;
}

.v01-replay-scenario-card,
.v01-replay-status,
.v01-replay-current-alert {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.v01-replay-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.v01-replay-controls button {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
}

.v01-replay-controls button:disabled,
.v01-replay-field select:disabled {
  opacity: .45;
}

.v01-replay-error {
  margin-top: 12px;
  padding: 12px;
  border: 2px solid currentColor;
  border-radius: 12px;
  font-weight: 900;
}

.v01-replay-sheet[data-v01-replay-state="INTERRUPTED_BY_LIVE"] {
  border-top: 5px solid currentColor;
}

@media (min-width: 720px) {
  .v01-replay-sheet {
    left: auto;
    width: min(520px, 92vw);
    right: 16px;
    bottom: 16px;
    border-radius: 20px;
  }
}