.transcribe-v2 .tv2-restart-panel { margin-top: 28px; padding: 24px; border: 1px solid var(--tv2-line); border-radius: 8px; background: #f6f8fb; scroll-margin-block: 110px 160px; }
.transcribe-v2 .tv2-restart-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.transcribe-v2 .tv2-restart-settings > div { min-width: 0; }
.transcribe-v2 .tv2-restart-settings label { display: block; margin-bottom: 8px; font-size: 13px; line-height: 20px; color: var(--tv2-muted); }
.transcribe-v2 .tv2-restart-settings .tv2-field-heading label { margin: 0; }
.transcribe-v2 .tv2-restart-panel .tv2-help-popover p { margin: 0; font: inherit; }
.transcribe-v2 .tv2-restart-settings select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 30px 10px 12px; border: 1px solid var(--tv2-line); border-radius: 6px; background-color: #fff; color: var(--tv2-ink); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.transcribe-v2 .tv2-restart-settings select:focus-visible { outline: 2px solid var(--tv2-accent); outline-offset: 2px; }
.transcribe-v2 .tv2-restart-panel p { margin: 12px 0 0; padding: 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.transcribe-v2 .tv2-restart-note { color: var(--tv2-muted); }
.transcribe-v2 .tv2-restart-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 20px; }
.transcribe-v2 .tv2-restart-settings[hidden] ~ .tv2-restart-actions { margin-top: 0; }
.transcribe-v2 #restart-cost { flex: 0 0 auto; color: var(--tv2-muted); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.transcribe-v2 .tv2-restart-panel #restart-current { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid var(--tv2-accent); border-radius: 6px; background: var(--tv2-accent); color: #fff; font-size: 14px; line-height: 22px; }
.transcribe-v2 .tv2-restart-panel #restart-current:hover:not(:disabled) { background: #1f54cd; }
.transcribe-v2 .tv2-restart-confirm { position: fixed; inset: 0; margin: auto; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--tv2-line); border-radius: 8px; background: #fff; color: var(--tv2-ink); box-shadow: 0 16px 48px #18223026; overflow: auto; }
.transcribe-v2 .tv2-restart-confirm::backdrop { background: #18223066; }
.transcribe-v2 .tv2-restart-confirm h2 { margin: 0 0 12px; font-size: 20px; line-height: 28px; }
.transcribe-v2 .tv2-restart-confirm p { margin: 12px 0; padding: 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.transcribe-v2 #restart-confirm-description { color: var(--tv2-muted); }
.transcribe-v2 #restart-confirm-warning { padding-left: 12px; border-left: 3px solid #d8a14a; }
.transcribe-v2 #restart-confirm-errors { max-height: 220px; overflow: auto; padding-left: 18px; margin: 16px 0; font-size: 13px; line-height: 20px; }
.transcribe-v2 #restart-confirm-errors li { margin: 8px 0; overflow-wrap: anywhere; }
.transcribe-v2 #restart-confirm-cost { font-weight: 600; font-variant-numeric: tabular-nums; }
.transcribe-v2 .tv2-restart-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.transcribe-v2 .tv2-restart-confirm-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--tv2-line); border-radius: 6px; background: #fff; color: var(--tv2-ink); font: inherit; font-size: 14px; cursor: pointer; }
.transcribe-v2 #restart-confirm-submit, .transcribe-v2 #restart-exclude { border-color: var(--tv2-accent); background: var(--tv2-accent); color: #fff; }
@media (max-width: 600px) {
    .transcribe-v2 .tv2-restart-panel { padding: 16px; }
    .transcribe-v2 .tv2-restart-settings { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .transcribe-v2 .tv2-restart-actions { gap: 10px; }
    .transcribe-v2 #restart-cost { font-size: 12px; }
    .transcribe-v2 .tv2-restart-panel #restart-current { flex: 0 1 auto; padding: 10px; font-size: 13px; }
    .transcribe-v2 .tv2-restart-confirm { padding: 20px; }
    .transcribe-v2 .tv2-restart-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .transcribe-v2 #restart-cancel { order: 1; }
}
.transcribe-v2.tv2-restart-modal { overflow: hidden; }
