.remake-mode-options { grid-template-columns: minmax(0, 1fr); }
.volcengine-edit-mode .remake-sidebar > :not(#veStepNav),
.volcengine-edit-mode .remake-highlights,
.volcengine-edit-mode #remakeMobileProgress,
.volcengine-edit-mode #remakeNotice,
.volcengine-edit-mode #remakeQuotaNotice,
.volcengine-edit-mode #remakeDraftStatus,
.volcengine-edit-mode #remakeCostPanel,
.volcengine-edit-mode .remake-main > .remake-stage:not(#remakeUploadStage),
.volcengine-edit-mode #remakeUploadStage > :not(.remake-stage-heading):not(#remakeModePicker):not(#volcengineEditRoot) { display: none !important; }
#volcengineEditRoot { display: grid; gap: 24px; min-width: 0; color: var(--soft-ink, #253147); }
#volcengineEditRoot[hidden] { display: none !important; }
#volcengineEditRoot [hidden] { display: none !important; }
.ve-edit-form, .ve-edit-workspace, .ve-edit-field { display: grid; gap: 12px; min-width: 0; }
.ve-edit-form { gap: 24px; }
.ve-edit-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ve-edit-field > span, .ve-edit-section-heading h3 { font-size: 14px; font-weight: 700; }
.ve-edit-field > small, .ve-edit-help { margin: 0; color: var(--soft-muted, #667085); font-size: 13px; line-height: 1.65; }
.ve-edit-field input:not([type=file]):not([type=radio]):not([type=checkbox]), .ve-edit-field textarea { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--soft-line, #dfe5ec); color: inherit; background: var(--soft-surface, #fff); font: inherit; font-size: 14px; line-height: 1.6; }
.ve-edit-field :is(input, textarea)::placeholder { color: var(--soft-muted, #687286); opacity: .85; }
.ve-edit-field textarea { resize: vertical; }
.ve-edit-product-facts { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--soft-line, #e2e6ee); }
.ve-edit-facts-heading { display: flex; align-items: center; gap: 12px; }
.ve-edit-facts-heading > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-facts-heading img { width: 22px; height: 22px; }
.ve-edit-facts-heading h3 { margin: 0; font-size: 19px; }
.ve-edit-facts-fields { display: grid; gap: 24px; min-width: 0; }
.ve-edit-required { color: #c33a43; }
.ve-edit-selling-points { display: grid; gap: 12px; min-width: 0; }
.ve-edit-selling-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-width: 0; }
.ve-edit-selling-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); font-size: 13px; font-weight: 700; }
.ve-edit-selling-remove { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 10px; background: var(--soft-surface, #fff); cursor: pointer; }
.ve-edit-selling-remove img { width: 18px; height: 18px; }
.ve-edit-selling-add { justify-self: start; }
.ve-edit-selling-remove:hover { background: var(--soft-surface-muted, #f5f7fb); }
.ve-edit-selling-row :is(input, button):focus-visible { outline: 2px solid var(--soft-primary, #6366f1); outline-offset: 2px; }
#veSourceSummaryDetails { white-space: pre-line; }
.ve-edit-field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--soft-line, #d7ddea); color: inherit; background: var(--soft-surface, #fff); font: inherit; }
.ve-edit-upload { position: relative; }
.ve-edit-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ve-edit-upload:focus-within { outline: 3px solid var(--soft-primary, #6366f1); outline-offset: 3px; }
.ve-edit-video-field { container: ve-source-field / inline-size; }
.ve-edit-source { --ve-source-height: 440px; display: grid; align-items: start; gap: 20px; min-width: 0; }
.ve-edit-source video { display: block; justify-self: center; width: min(100%, calc(var(--ve-source-height) * var(--ve-source-aspect, 1.777778))); height: auto; aspect-ratio: var(--ve-source-aspect, 1.777778); border-radius: 8px; background: #101827; object-fit: contain; }
.ve-edit-result video { display: block; width: 100%; max-height: 420px; border-radius: 14px; background: #101827; }
.ve-edit-source-info { display: grid; align-content: start; justify-items: start; gap: 20px; min-width: 0; }
.ve-edit-source-file { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; min-width: 0; }
.ve-edit-source-file > img { width: 24px; height: 24px; }
#veSourceMeta { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.7; }
.ve-edit-source-details { display: grid; gap: 12px; width: 100%; margin: 0; padding: 16px 0; border-block: 1px solid var(--soft-line, #dfe5ec); font-size: 13px; line-height: 1.6; }
.ve-edit-source-details > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; min-width: 0; }
.ve-edit-source-details dt { color: var(--soft-muted, #687286); }
.ve-edit-source-details dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#veClearVideo { gap: 8px; }
#veClearVideo > img { width: 16px; height: 16px; }
@container ve-source-field (min-width: 640px) {
  .ve-edit-source { grid-template-columns: minmax(0, min(60%, calc(var(--ve-source-height) * var(--ve-source-aspect, 1.777778)))) minmax(0, 1fr); gap: 32px; }
  .ve-edit-source video { width: 100%; justify-self: start; }
  .ve-edit-source-info { width: 100%; max-width: 420px; padding-top: 4px; }
}
.ve-edit-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ve-edit-image { margin: 0; min-width: 0; position: relative; }
.ve-edit-image > img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 12px; background: #fff; }
.ve-edit-image button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--soft-line, #e2e6ee); background: white; cursor: pointer; font-size: 20px; }
.ve-edit-section-heading, .ve-edit-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ve-edit-section-heading h3 { margin: 0; }
.ve-edit-characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; max-height: 360px; overflow-y: auto; padding: 4px; }
.ve-edit-character { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 14px; cursor: pointer; min-width: 0; }
.ve-edit-character:has(input:checked) { border-color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-character:focus-within { outline: 2px solid var(--soft-primary, #6366f1); outline-offset: 2px; }
.ve-edit-character > img { width: 100%; height: 112px; object-fit: contain; border-radius: 8px; background: var(--soft-surface-muted, #f5f7fb); }
.ve-edit-character > span { display: flex; align-items: start; gap: 7px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ve-edit-character input { margin-top: 2px; flex-shrink: 0; }
.ve-edit-resolution { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ve-edit-resolution legend { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.ve-edit-resolution label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 12px; cursor: pointer; font-size: 14px; }
.ve-edit-resolution label:has(input:checked) { border-color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-character-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; padding: 0; border: 0; }
.ve-edit-character-mode legend { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.ve-edit-character-mode label { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; background: var(--soft-surface, #fff); cursor: pointer; }
.ve-edit-character-mode label:has(input:checked) { border-color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-character-mode input { flex: 0 0 auto; margin: 4px 0 0; }
.ve-edit-character-mode strong { display: block; font-size: 14px; line-height: 1.5; }
.ve-edit-character-mode small { display: block; margin-top: 4px; color: var(--soft-muted, #667085); font-size: 13px; line-height: 1.6; }
.ve-edit-voice-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px 24px; align-items: start; }
.ve-edit-segmented { min-width: 0; margin: 0; padding: 0; border: 0; }
.ve-edit-segmented legend { margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 700; }
.ve-edit-segmented-options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 6px; border-radius: 19px; background: #eceff5; box-shadow: inset 0 2px 5px rgb(88 101 126 / 7%); }
.ve-edit-segmented-options label { position: relative; display: grid; place-items: center; min-width: 0; min-height: 44px; border-radius: 14px; color: var(--soft-muted, #667085); font-size: 14px; font-weight: 650; cursor: pointer; }
.ve-edit-segmented-options input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ve-edit-segmented-options label:has(input:checked) { color: var(--soft-primary-strong, #4f46e5); background: var(--soft-surface, #fff); box-shadow: 0 10px 24px rgb(99 102 241 / 16%), 0 3px 8px rgb(88 101 126 / 14%); }
.ve-edit-segmented-options label:hover:not(:has(input:checked, input:disabled)) { color: var(--soft-primary-strong, #4f46e5); background: rgb(255 255 255 / 64%); }
.ve-edit-segmented-options label:has(input:focus-visible) { outline: 2px solid var(--soft-primary, #6366f1); outline-offset: 3px; }
.ve-edit-segmented-options label:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.ve-edit-message, .ve-edit-quota { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.ve-edit-message { background: #fff2f1; border: 1px solid #ffdad6; color: #a62d26; white-space: pre-wrap; }
.ve-edit-quota { background: var(--soft-primary-soft, #f1f0ff); border: 1px solid var(--soft-line, #e2e6ee); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ve-edit-quota[data-state=error] { background: #fff2f1; color: #a62d26; }
.ve-edit-quota p { margin: 0; }
.ve-edit-config { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ve-edit-config p { flex: 1; min-width: 180px; }
.ve-edit-workspace { padding: 24px; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 16px; background: var(--soft-surface-muted, #f5f7fb); gap: 18px; }
.ve-edit-workspace progress { display: block; width: 100%; height: 10px; accent-color: var(--soft-primary, #6366f1); }
.ve-edit-workspace h3 { margin: 0; font-size: 18px; }
.ve-edit-task-meta { margin: 0; font-size: 13px; color: var(--soft-muted, #667085); line-height: 1.65; }
.ve-edit-narration { padding: 16px 18px; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 12px; background: var(--soft-surface, #fff); }
.ve-edit-narration h4 { margin: 0 0 10px; font-size: 14px; }
.ve-edit-narration p { margin: 0; color: var(--soft-ink, #253147); font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ve-edit-narration-source { margin: 12px 0 18px; }
.ve-edit-narration-source video { display: block; width: min(100%, 680px); max-height: 340px; border-radius: 8px; background: #101827; }
#veNarrationFallback { margin-top: 12px; color: var(--soft-muted, #667085); }
.ve-edit-draft { display: grid; gap: 20px; padding-top: 20px; border-top: 1px solid var(--soft-line, #e2e6ee); }
.ve-edit-draft h4 { margin: 0; font-size: 15px; }
.ve-edit-speech, .ve-edit-speech-rows { display: grid; gap: 12px; min-width: 0; }
.ve-edit-speech-row { min-width: 0; padding-top: 18px; border-top: 1px solid var(--soft-line, #e2e6ee); }
.ve-edit-speech-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.ve-edit-speech-heading > strong { font-size: 14px; }
.ve-edit-speech-speaker { color: var(--soft-muted, #667085); font-size: 13px; }
.ve-edit-speech-time { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; background: var(--soft-surface, #fff); color: var(--soft-primary-strong, #4f46e5); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.ve-edit-speech-time img { width: 15px; height: 15px; }
.ve-edit-speech-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ve-edit-speech-column { display: grid; align-content: start; gap: 10px; min-width: 0; }
.ve-edit-speech-column-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; }
.ve-edit-speech-column-heading strong { font-size: 13px; }
.ve-edit-speech-delivery { padding: 3px 8px; border-radius: 6px; color: var(--soft-text, #596174); background: var(--soft-surface-muted, #f5f7fb); font-size: 12px; }
.ve-edit-speech-text { margin: 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.ve-edit-speech-column .ve-edit-field > span { font-size: 13px; }
.ve-edit-speech-column textarea { min-height: 88px; }
.ve-edit-speech-column select { width: 100%; min-height: 44px; }
.ve-edit-draft-overview { --ve-draft-preview-height: 640px; display: grid; grid-template-columns: minmax(0, min(56%, calc(var(--ve-draft-preview-height) * var(--ve-draft-preview-aspect, 1.777778)))) minmax(0, 1fr); gap: 32px; align-items: start; }
.ve-edit-draft-details { display: grid; align-content: start; gap: 24px; min-width: 0; }
.ve-edit-draft-preview { min-width: 0; }
#veDraftSourcePlayer { display: block; width: min(100%, calc(var(--ve-draft-preview-height) * var(--ve-draft-preview-aspect, 1.777778))); height: auto; aspect-ratio: var(--ve-draft-preview-aspect, 1.777778); border-radius: 8px; background: #101827; object-fit: contain; }
.ve-edit-draft-details .ve-edit-references { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.ve-edit-draft-details .ve-edit-references figure { max-width: 240px; }
.ve-edit-draft-details .ve-edit-references img { height: 200px; }
.ve-edit-draft textarea { padding: 12px; border: 1px solid var(--soft-line, #d7ddea); background: var(--soft-surface, #fff); color: var(--soft-ink, #253147); font: inherit; line-height: 1.6; }
.ve-edit-references { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 180px)); gap: 12px; }
.ve-edit-references figure { margin: 0; min-width: 0; }
.ve-edit-references img { display: block; width: 100%; height: 140px; object-fit: contain; border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; background: #fff; }
.ve-edit-references figcaption { padding-top: 6px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ve-edit-conflict, .ve-edit-recovery { display: grid; gap: 12px; padding: 16px; border: 1px solid #e8c597; border-radius: 8px; background: #fff8ee; }
.ve-edit-conflict pre { margin: 10px 0 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.6; background: #fff; border-radius: 6px; }
.ve-edit-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ve-edit-check-card { min-width: 0; display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; background: var(--soft-surface, #fff); }
.ve-edit-check-card h5 { margin: 0; font-size: 14px; }
.ve-edit-check-evidence p { margin: 4px 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ve-edit-frame-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; max-height: 620px; overflow-y: auto; padding: 3px; }
.ve-edit-frame-pair { display: grid; gap: 10px; padding: 12px; min-width: 0; text-align: left; color: inherit; background: var(--soft-surface, #fff); border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; cursor: pointer; }
.ve-edit-frame-pair > strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.ve-edit-frame-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ve-edit-frame-images > span { display: grid; gap: 6px; font-size: 12px; min-width: 0; }
.ve-edit-frame-images img, .ve-edit-frame-missing { display: block; box-sizing: border-box; width: 100%; height: 100px; border-radius: 4px; background: #101827; object-fit: contain; }
.ve-edit-frame-missing { display: grid; place-items: center; padding: 10px; color: #fff; line-height: 1.6; }
.ve-edit-facts { display: grid; gap: 8px; }
.ve-edit-facts h4 { font-size: 13px; }
.ve-edit-facts ul { margin: 0; padding-left: 20px; color: var(--soft-muted, #667085); font-size: 13px; line-height: 1.7; }
#veDraftNarrationCount[data-state="error"] { color: #a62d26; }
.ve-edit-result { display: grid; gap: 14px; }
.ve-edit-result h4 { margin: 0; font-size: 15px; }
.ve-edit-compare { --ve-compare-preview-height: min(68dvh, 640px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ve-edit-compare figure { display: grid; align-content: start; justify-self: center; width: min(100%, calc(var(--ve-compare-preview-height) * var(--ve-compare-preview-aspect, 1.777778))); gap: 8px; margin: 0; min-width: 0; }
.ve-edit-compare figcaption { font-size: 14px; font-weight: 700; }
.ve-edit-compare figcaption span { display: block; min-height: 20px; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--soft-muted, #667085); overflow-wrap: anywhere; }
.ve-edit-compare video { width: 100%; height: auto; max-height: none; aspect-ratio: var(--ve-compare-preview-aspect, 1.777778); object-fit: contain; }
.ve-edit-compare-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ve-edit-audio { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0; border: 0; }
.ve-edit-audio legend { float: left; margin-right: 8px; font-size: 13px; color: var(--soft-muted, #667085); }
.ve-edit-audio label { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--soft-line, #d7ddea); border-radius: 8px; background: var(--soft-surface, #fff); cursor: pointer; font-size: 14px; }
.ve-edit-audio label:has(input:checked) { border-color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-check, .ve-edit-review { display: grid; gap: 12px; padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--soft-line, #e2e6ee); }
.ve-edit-check ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #8a4a19; }
.ve-edit-check[data-state="needs_review"] #veMediaCheck { color: #8a4a19; font-weight: 600; }
.ve-edit-integrity { margin: 0; padding: 12px 16px; border-left: 3px solid #b56825; background: #fff5e8; color: #783f15; font-size: 14px; line-height: 1.6; }
#veTimingSummary, .ve-edit-compare figcaption span { font-variant-numeric: tabular-nums; }
.ve-edit-issue-fields { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); gap: 12px; }
.ve-edit-review-status { padding: 5px 10px; border-radius: 8px; background: var(--soft-primary-soft, #f1f0ff); color: var(--soft-primary-strong, #4f46e5); font-size: 13px; }
.ve-edit-review-status[data-state="confirmed"] { color: #25653f; background: #edf8f0; }
.ve-edit-review-status[data-state="needs_review"] { color: #8a4a19; background: #fff5e8; }
.ve-edit-issues { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ve-edit-issues li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 8px; }
.ve-edit-issues li > .secondary-button { flex-shrink: 0; }
.ve-edit-compare-controls button img, .ve-edit-issues button img { width: 16px; height: 16px; }
.ve-edit-issue-description { flex: 1; min-width: 0; }
.ve-edit-issue-description p { margin: 0 0 4px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.ve-edit-issue-jump { padding: 4px 0; border: 0; background: transparent; color: var(--soft-primary-strong, #4f46e5); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
#veCompareTime { font-variant-numeric: tabular-nums; }
#volcengineEditRoot :is(button, input, select, a):focus-visible { outline: 2px solid var(--soft-primary, #6366f1); outline-offset: 3px; }
.ve-edit-history { display: grid; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--soft-line, #e2e6ee); }
.ve-edit-history-list { display: grid; gap: 8px; }
.ve-edit-history-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; text-align: left; border: 1px solid var(--soft-line, #e2e6ee); border-radius: 12px; background: #fff; cursor: pointer; }
.ve-edit-history-list button[aria-current=true] { border-color: var(--soft-primary, #6366f1); background: var(--soft-primary-soft, #f1f0ff); }
.ve-edit-history-list button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ve-edit-history-list small { display: block; margin-top: 4px; color: var(--soft-muted, #667085); }
.ve-edit-history-list strong { flex-shrink: 0; font-size: 12px; color: var(--soft-primary-strong, #4f46e5); }
#volcengineEditRoot button, #volcengineEditRoot a.secondary-button { min-height: 44px; }
#volcengineEditRoot :is(.primary-button, .secondary-button) { width: auto; max-width: 100%; }
#volcengineEditRoot button:disabled, #veStepNav button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 900px) { .remake-mode-options { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ve-edit-voice-settings { grid-template-columns: minmax(0, 340px); }
  .ve-edit-fields, .ve-edit-character-mode, .ve-edit-compare, .ve-edit-issue-fields, .ve-edit-draft-overview, .ve-edit-checks, .ve-edit-speech-columns { grid-template-columns: minmax(0, 1fr); }
  .ve-edit-workspace { padding: 16px; }
  #volcengineEditRoot .ve-edit-actions > .primary-button { width: 100%; }
  .ve-edit-issues li { align-items: start; flex-direction: column; gap: 4px; }
  .ve-edit-field :is(input, select, textarea) { font-size: 16px; }
}

/* Step views share the task state while keeping each screen focused. */
body.volcengine-edit-mode[data-ve-step="mode"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/sliders-horizontal.svg"); }
body.volcengine-edit-mode[data-ve-step="source"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/upload.svg"); }
body.volcengine-edit-mode[data-ve-step="replace"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/replace.svg"); }
body.volcengine-edit-mode[data-ve-step="draft"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/file-text.svg"); }
body.volcengine-edit-mode[data-ve-step="result"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/clapperboard.svg"); }
body.volcengine-edit-mode[data-ve-step="history"] #remakeUploadStage .remake-stage-heading::before { background-image: url("/icons/history.svg"); }
.volcengine-edit-mode #remakeUploadStage { scroll-margin-top: 92px; }
.volcengine-edit-mode[data-ve-step]:not([data-ve-step="mode"]) #remakeModePicker,
.volcengine-edit-mode[data-ve-has-task="true"] #remakeModePicker { display: none !important; }
#veStepNav { display: grid; align-content: start; gap: 12px; min-width: 0; }
#veStepNav ol { margin: 0; padding: 0; list-style: none; }
#veStepNav button { font: inherit; cursor: pointer; }
#veStepNav .ve-edit-step-label { overflow-wrap: anywhere; }
#veStepNav > button { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--soft-line, #dfe5ec); border-radius: 6px; background: var(--soft-surface, #fff); color: var(--soft-primary-strong, #4f46e5); text-align: left; font-size: 14px; }
#veStepNav > button:hover:not(:disabled) { background: var(--soft-surface-muted, #f5f7fa); }
#veStepNav #veHistoryStep { margin-top: 8px; border-width: 1px 0 0; border-radius: 0; color: var(--soft-text, #596174); }
#veStepNav > button img { width: 18px; height: 18px; }
#volcengineEditRoot button:focus-visible, #veStepNav button:focus-visible { outline: 2px solid var(--soft-primary, #6366f1); outline-offset: 3px; }
#veFlowContent { min-width: 0; display: grid; align-content: start; gap: 24px; }
#veFlowContent > *, #veFlowContent :is(form, section, fieldset) { min-width: 0; }
.ve-edit-mode-step { display: grid; align-content: start; gap: 24px; }
.ve-edit-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; border: 0; }
.ve-edit-mode-options legend { margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.ve-edit-mode-option { display: grid; grid-template-rows: auto 1fr auto; align-items: start; gap: 24px; min-width: 0; min-height: 232px; padding: 24px; border: 1px solid var(--soft-line-strong, #cfd7e2); border-radius: 8px; color: var(--soft-ink, #2d3345); background: var(--soft-surface, #fff); text-align: left; font: inherit; cursor: pointer; transition: border-color var(--soft-transition), background var(--soft-transition), box-shadow var(--soft-transition); }
.ve-edit-mode-option:hover:not(:disabled) { border-color: var(--soft-primary, #6366f1); background: var(--soft-surface-muted, #f5f7fa); box-shadow: 0 4px 12px rgb(45 51 69 / 6%); }
.ve-edit-mode-option[aria-current="true"] { border-color: var(--soft-primary, #6366f1); box-shadow: inset 0 0 0 1px var(--soft-primary, #6366f1); }
.ve-edit-mode-option[aria-current="true"] strong { color: var(--soft-primary-strong, #4f46e5); }
.ve-edit-mode-option > span { min-width: 0; overflow-wrap: anywhere; }
.ve-edit-mode-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.ve-edit-mode-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: var(--soft-primary-soft, #eef0ff); }
.ve-edit-mode-card-icon img { width: 24px; height: 24px; }
.ve-edit-mode-option[data-edit-mode="product_only"] .ve-edit-mode-card-icon { background: var(--soft-emerald-soft, #e8f8f2); }
.ve-edit-mode-option[data-edit-mode="person_product"] .ve-edit-mode-card-icon { background: var(--soft-pink-soft, #fceef5); }
.ve-edit-mode-card-arrow { width: 20px; height: 20px; opacity: .55; }
.ve-edit-mode-option:hover:not(:disabled) .ve-edit-mode-card-arrow { opacity: 1; }
.ve-edit-mode-option strong { display: block; font-size: 17px; line-height: 1.5; }
.ve-edit-mode-option small { display: block; margin-top: 6px; color: var(--soft-muted, #667085); font-size: 13px; line-height: 1.6; }
.ve-edit-mode-card-audio { display: flex; align-items: center; gap: 8px; width: 100%; padding-top: 16px; border-top: 1px solid var(--soft-line, #dfe5ec); color: var(--soft-text, #596174); font-size: 13px; line-height: 1.6; }
.ve-edit-mode-card-audio img { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
#volcengineEditRoot[data-edit-mode="face_only"] #veSourceStep > .ve-edit-fields,
#volcengineEditRoot[data-edit-mode="face_only"] #veReplaceStep > .ve-edit-fields,
#volcengineEditRoot[data-edit-mode="product_only"] #veReplaceStep > .ve-edit-fields,
#volcengineEditRoot[data-edit-mode="face_only"] #veDraftForm > .ve-edit-fields,
#volcengineEditRoot[data-edit-mode="product_only"] #veDraftForm > .ve-edit-fields,
#volcengineEditRoot[data-edit-mode="face_only"] #veSourceSummary .ve-edit-summary-grid,
#volcengineEditRoot[data-edit-mode="product_only"] #veReplaceSummary .ve-edit-summary-grid { grid-template-columns: minmax(0, 1fr); }
#volcengineEditRoot[data-ve-step="mode"] .ve-edit-config,
#volcengineEditRoot[data-ve-step="mode"] #veQuota { display: none; }
#veSourceStep, #veReplaceStep, #veSourceSummary, #veReplaceSummary, #veDraftPanel, #veResultPanel { display: grid; align-content: start; gap: 24px; min-width: 0; }
#veSourceStep > .ve-edit-fields { align-items: start; }
#veSourceSummary :is(h3, h4), #veReplaceSummary :is(h3, h4) { margin: 0; }
#veSourceSummary video { display: block; width: 100%; max-height: 420px; background: #101827; border-radius: 12px; object-fit: contain; }
.ve-edit-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.ve-edit-summary-grid > * { min-width: 0; }
.ve-edit-summary-grid figure { display: grid; gap: 10px; margin: 0; }
.ve-edit-summary-grid figure > img { width: 100%; max-height: 320px; object-fit: contain; border: 1px solid var(--soft-line, #dfe5ec); border-radius: 12px; background: var(--soft-surface-muted, #f5f7fa); }
.ve-edit-summary-grid figcaption { font-size: 14px; color: var(--soft-muted, #687286); }
.ve-edit-summary-details { display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr); gap: 12px 20px; margin: 0; font-size: 14px; line-height: 1.65; }
.ve-edit-summary-details dt { color: var(--soft-muted, #687286); }
.ve-edit-summary-details dd { margin: 0; overflow-wrap: anywhere; }
#veFlowContent .ve-edit-workspace { gap: 20px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#veFlowContent .ve-edit-draft { margin: 0; padding: 0; border: 0; }
#veFlowContent .ve-edit-history { margin: 0; padding: 0; border: 0; }
#veFlowContent .ve-edit-config { gap: 8px 12px; padding-bottom: 16px; border-bottom: 1px solid var(--soft-line, #dfe5ec); }
#veFlowContent .ve-edit-config p { min-width: min(100%, 180px); }
#veResultTabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--soft-line, #dfe5ec); }
#veResultTabs button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--soft-line, #dfe5ec); border-radius: 10px; color: var(--soft-text, #596174); background: var(--soft-surface, #fff); font: inherit; font-size: 14px; cursor: pointer; }
#veResultTabs button[aria-selected="true"] { color: var(--soft-primary-strong, #4f46e5); border-color: var(--soft-primary-halo, #dfe0ff); background: var(--soft-primary-soft, #eef0ff); font-weight: 650; }
#veResultComparePanel, #veResultChecksPanel { display: grid; align-content: start; gap: 20px; min-width: 0; }
#veResultPanel .ve-edit-compare { gap: 20px; }
#veResultChecksPanel > .ve-edit-check:first-child, #veResultChecksPanel > .ve-edit-review:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#veStepActions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--soft-line, #dfe5ec); border-radius: 0; background: transparent; }
#veStepActions :is(button, a) { min-height: 44px; }
#veStepActions .primary-button { margin-left: auto; }
#veStepActions img { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .volcengine-edit-mode .remake-sidebar { grid-template-columns: minmax(0, 1fr); }
  #veStepNav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .ve-edit-stepper-heading, #veStepNav .ve-edit-step-icon { display: none; }
  #veStepNav ol { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  #veStepNav .remake-stepper { display: grid; }
  #veStepNav ol li::before { display: none; }
  #veStepNav ol button { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; min-height: 64px; height: 100%; align-content: start; padding: 8px 4px; text-align: center; }
  #veStepNav .ve-edit-step-number { width: 24px; height: 24px; border-radius: 8px; }
  #veStepNav .ve-edit-step-label { font-size: 12px; line-height: 1.4; text-wrap: balance; }
  #veStepNav #veHistoryStep { grid-column: 1 / -1; grid-template-columns: 18px auto; justify-content: center; min-height: 44px; margin-top: 4px; padding: 8px; border-radius: 0; }
  #veStepNav:has(#veStartNew:not([hidden])) #veHistoryStep { grid-column: 1; border-radius: 8px; }
  #veStepNav #veStartNew { grid-column: 2; grid-template-columns: 18px auto; justify-content: center; margin-top: 4px; padding: 8px; }
  #veFlowContent { gap: 20px; }
  .ve-edit-draft-details .ve-edit-character-mode { grid-template-columns: minmax(0, 1fr); }
  #veStepActions { margin: 0; padding: 16px 0 max(0px, env(safe-area-inset-bottom)); }
}

@media (max-width: 700px) {
  .ve-edit-mode-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ve-edit-mode-option { grid-template-columns: 48px minmax(0, 1fr) 20px; grid-template-rows: auto auto; align-items: center; gap: 8px 12px; min-height: 144px; padding: 20px; }
  .ve-edit-mode-card-heading { display: contents; }
  .ve-edit-mode-card-icon { grid-column: 1; grid-row: 1; }
  .ve-edit-mode-card-arrow { grid-column: 3; grid-row: 1; }
  .ve-edit-mode-card-body { grid-column: 2; grid-row: 1; }
  .ve-edit-mode-card-audio { grid-column: 1 / -1; grid-row: 2; padding-top: 12px; }
  #veFlowContent { gap: 20px; }
  #veSourceStep, #veReplaceStep, #veSourceSummary, #veReplaceSummary, #veDraftPanel, #veResultPanel { gap: 20px; }
  .ve-edit-draft-overview { gap: 24px; }
  #veDraftSourcePlayer { justify-self: center; }
  #veResultTabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #veResultTabs button { min-width: 0; padding-inline: 10px; }
  #veResultPanel .ve-edit-compare { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ve-edit-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ve-edit-summary-details { grid-template-columns: minmax(76px, auto) minmax(0, 1fr); gap: 10px 12px; }
  #veFlowContent .ve-edit-config p { flex-basis: 100%; }
  #veFlowContent .ve-edit-history-list button { align-items: flex-start; flex-direction: column; }
  #veFlowContent .ve-edit-history-list strong { flex-shrink: 1; }
  #veFlowContent .ve-edit-references { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #veFlowContent .ve-edit-references img { height: 116px; }
  #veStepActions { margin: 0; padding: 16px 0 max(0px, env(safe-area-inset-bottom)); border-radius: 0; }
  #veStepActions .primary-button { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ve-edit-mode-option { transition: none; }
}
