.editor-workspace{--radius:6px;--editor-panel:#fff;--editor-surface:#f7f7f9;--editor-hover:#efedf4;--editor-border:#e5e5eb;--editor-text:#292734;--editor-muted:#747180;--editor-accent:#7c3aed;--editor-accent-soft:#f2ecff;--editor-accent-text:#6d28d9;--editor-selection:#2563eb;--editor-selection-fill:#1d4ed8;--editor-selection-lane:#eff6ff;--editor-selection-label:#dbeafe;--editor-selection-text:#1e40af;--editor-danger-bg:#fef2f2;--editor-danger-text:#b91c1c;display:flex;flex-direction:column;position:relative;height:100dvh;min-height:0;overflow:hidden;background:var(--editor-panel);color:var(--editor-text);font:400 13px/1.5 var(--font-sans,Inter,system-ui,sans-serif)}.dark .editor-workspace{--editor-panel:#19191e;--editor-surface:#222228;--editor-hover:#2c2b34;--editor-border:#33323c;--editor-text:#eeeef2;--editor-muted:#a4a1af;--editor-accent-soft:#30233f;--editor-accent-text:#c4a5ff;--editor-selection:#38bdf8;--editor-selection-fill:#0369a1;--editor-selection-lane:#162b3d;--editor-selection-label:#1d3d54;--editor-selection-text:#bae6fd;--editor-danger-bg:#3b2028;--editor-danger-text:#fca5a5}.editor-workspace h2,.editor-workspace h3{color:inherit;font-family:inherit;letter-spacing:normal}.editor-workspace button{transition:background .15s,border-color .15s}.editor-workspace button:disabled{cursor:not-allowed;opacity:.4}.editor-workspace [role=separator]:focus-visible,.editor-workspace a:focus-visible,.editor-workspace button:focus-visible{outline:2px solid var(--editor-accent);outline-offset:-2px}.editor-workspace input,.editor-workspace select,.editor-workspace textarea{color-scheme:light}.dark .editor-workspace input,.dark .editor-workspace select,.dark .editor-workspace textarea{color-scheme:dark}.editor-header{min-height:58px;flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:10px 18px;border-bottom:1px solid var(--editor-border)}.editor-header-project{display:flex;align-items:center;gap:8px;min-width:0}.editor-header-project>a,.editor-header-project>span{flex-shrink:0}.editor-header-actions,.editor-header-canvas{display:flex;align-items:center;gap:6px;min-width:0}.editor-header-actions{justify-content:flex-end}.editor-header-canvas{gap:12px}.editor-properties-toggle[aria-expanded=true]{color:var(--editor-accent-text);background:var(--editor-accent-soft);border-color:var(--editor-accent)}@media (max-width:1199px){.editor-header{grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.editor-header-actions{grid-column:1/-1}.editor-header-canvas .editor-aspect-ratio>span,.editor-properties-toggle>span{display:none}}.editor-project-name{width:220px;min-width:0;border-radius:5px;background:transparent;padding:4px 6px;font-size:14px;font-weight:600;outline:none}.editor-project-name:focus{background:var(--editor-surface)}.editor-export-button,.editor-primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;background:var(--editor-accent);color:#fff;padding:9px 16px;font-size:13px;font-weight:500;white-space:nowrap}.editor-export-button:hover,.editor-primary-button:hover{background:#6d28d9}.editor-secondary-button{display:flex;justify-content:center;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--editor-border);border-radius:7px}.editor-wide-button{width:100%;margin-bottom:12px}.editor-body{display:grid;grid-template-columns:64px 300px minmax(0,1fr);flex:1;min-height:0;position:relative}.editor-body.editor-chat-open{grid-template-columns:64px 300px minmax(0,1fr) 340px}.editor-body.editor-panel-collapsed{grid-template-columns:64px minmax(0,1fr)}.editor-body.editor-panel-collapsed.editor-chat-open{grid-template-columns:64px minmax(0,1fr) 340px}.editor-tool-rail{padding:12px 5px;border-right:1px solid var(--editor-border);overflow-y:auto}.editor-tool-rail,.editor-tool-rail>button{display:flex;flex-direction:column;align-items:center;gap:7px}.editor-tool-rail>button{width:54px;min-height:61px;justify-content:center;padding:7px 3px;border-radius:7px;color:var(--editor-muted)}.editor-tool-rail>button span{font-size:10px;font-weight:500;line-height:1.25;text-align:center;overflow-wrap:anywhere}.editor-secondary-button:hover,.editor-tool-rail>button:hover{background:var(--editor-hover)}.editor-tool-rail>button[aria-pressed=true]{background:var(--editor-accent-soft);color:var(--editor-accent-text)}.editor-tool-panel{min-width:0;min-height:0;border-right:1px solid var(--editor-border);background:var(--editor-panel);overflow:hidden}.editor-inspector,.editor-library{display:flex;flex-direction:column;height:100%;min-height:0}.editor-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:12px 18px;border-bottom:1px solid var(--editor-border);flex-shrink:0}.editor-panel-heading h2{font-size:16px;font-weight:600}.editor-panel-heading>button{color:var(--editor-muted)}.editor-back-button{display:inline-flex;align-items:center;gap:4px;font-size:12px}.editor-library-content{padding:18px;min-height:0;overflow-y:auto}.editor-import-zone{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;padding:24px 16px;border:1px dashed #c9c3d8;border-radius:9px;background:var(--editor-surface);text-align:center}.editor-import-zone:hover{border-color:var(--editor-accent);background:var(--editor-accent-soft)}.editor-import-zone>span:last-child{font-size:11px;line-height:1.7;color:var(--editor-muted)}.editor-import-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:var(--editor-panel);color:var(--editor-accent-text);border:1px solid var(--editor-border)}.editor-quick-add{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 24px}.editor-quick-add button{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 9px;font-size:11px;border:1px solid var(--editor-border);border-radius:6px}.editor-quick-add button:hover{background:var(--editor-surface)}.editor-section-label{display:flex;justify-content:space-between;margin:22px 0 12px;font-size:12px;font-weight:600}.editor-library-empty,.editor-section-label>span{color:var(--editor-muted)}.editor-library-empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:36px 22px;font-size:12px}.editor-asset-grid,.editor-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.editor-asset-card{width:100%;text-align:left}.editor-asset-thumbnail{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:var(--editor-surface);border:1px solid var(--editor-border);border-radius:6px;overflow:hidden;color:var(--editor-muted)}.editor-asset-thumbnail img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.editor-asset-add{position:absolute;right:5px;bottom:5px;padding:3px;border-radius:4px;background:var(--editor-panel)}.editor-asset-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px;font-size:11px}.editor-asset-status{display:block;font-size:10px;color:var(--editor-muted)}.editor-relink{font-size:11px;color:var(--editor-accent-text);text-decoration:underline}.editor-preset-sample{display:grid;place-items:center;height:82px;padding:8px;background:#24212c;border-radius:7px;font-size:19px}.editor-text-preset>span:last-child{display:block;padding:6px;font-size:11px;color:var(--editor-muted)}.editor-preset-label{background:#facc15}.editor-preset-terminal{background:#052e16}.editor-source-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--editor-border);border-radius:7px;margin:10px 0;padding:12px}.editor-source-row span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}.editor-muted-copy{color:var(--editor-muted);font-size:12px;line-height:1.8}.editor-upload-status{margin:14px 0;color:var(--editor-accent-text);font-size:12px}.editor-upload-status progress{width:100%}.editor-center{isolation:isolate;overflow:hidden}.editor-center,.editor-preview{min-width:0;min-height:0;display:flex;flex-direction:column}.editor-preview{flex:1}.editor-preview-stage{container-type:size;position:relative;flex:1;min-height:0;padding:24px;overflow:hidden;background-color:var(--editor-surface);background-image:linear-gradient(90deg,#80808014 1px,transparent 0),linear-gradient(180deg,#80808014 1px,transparent 0);background-size:16px 16px}.editor-preview-stage:fullscreen{padding:24px}.editor-empty-preview{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;color:#f8fafc;margin:auto;width:min(100%,calc(100cqh * var(--editor-aspect-ratio)));max-height:100%;padding:18px;pointer-events:none}.editor-empty-preview h2{font-size:20px;font-weight:600}.editor-empty-preview p{color:#b0adbc;font-size:12px;max-width:290px}.editor-empty-preview button{margin-top:7px;pointer-events:auto}.editor-empty-icon{color:#b7adcd;margin-bottom:4px}.editor-transport{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:5px 8px;border-top:1px solid var(--editor-border);flex-shrink:0}.editor-transport>button{padding:6px 8px;border-color:transparent}.editor-transport>button[aria-label=Pause],.editor-transport>button[aria-label=Play]{border-radius:50%;background:var(--editor-accent-soft);color:var(--editor-accent-text)}.editor-timeline-panel{display:flex;flex-direction:column;flex-shrink:0;min-height:0;max-height:60%}.editor-timeline-resizer{height:6px;flex-shrink:0;cursor:ns-resize;touch-action:none;display:grid;place-items:center;background:var(--editor-surface);border-top:1px solid var(--editor-border)}.editor-timeline-resizer span{height:2px;width:32px;border-radius:3px;background:var(--editor-border)}.editor-timeline-resizer:hover{background:var(--editor-accent-soft)}.editor-timeline-actions{display:flex;align-items:center;flex-shrink:0;gap:12px;height:42px;padding:4px 10px;overflow-x:auto}.editor-timeline-actions>*{flex-shrink:0}.editor-timeline-tracks{flex:1;min-height:0}.editor-timeline-tracks[hidden]{display:none}.editor-timeline{display:flex;height:100%;flex-direction:column;min-height:0}.editor-timeline-scroll{display:flex;align-items:flex-start;min-height:0;flex:1;overflow:auto}.editor-chat{width:100%;min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--editor-panel);border-left:1px solid var(--editor-border)}.editor-chat-title{display:flex;align-items:center;gap:8px}.editor-chat-title svg{color:var(--editor-accent-text)}.editor-chat-welcome{padding:30px 10px 20px}.editor-chat-welcome>svg{color:var(--editor-accent-text);margin-bottom:18px}.editor-chat-welcome h3{font-size:18px;font-weight:600;margin-bottom:9px}.editor-chat-welcome p{font-size:12px;line-height:1.8;color:var(--editor-muted)}.editor-chat-suggestion{display:block;width:100%;text-align:left;margin-top:10px;padding:11px 12px;border:1px solid var(--editor-border);border-radius:8px;font-size:12px}.editor-chat-suggestion:hover{border-color:var(--editor-accent);background:var(--editor-accent-soft)}.editor-chat-composer{flex-shrink:0;padding:14px;border-top:1px solid var(--editor-border);background:var(--editor-panel)}.editor-chat-composer textarea{min-height:94px;max-height:180px;resize:vertical;font-size:13px}@media (min-width:1600px){.editor-body{grid-template-columns:68px 330px minmax(0,1fr)}.editor-body.editor-chat-open{grid-template-columns:68px 330px minmax(0,1fr) 360px}}@media (max-width:1199px){.editor-body,.editor-body.editor-chat-open{grid-template-columns:60px 270px minmax(0,1fr)}.editor-body.editor-panel-collapsed,.editor-body.editor-panel-collapsed.editor-chat-open{grid-template-columns:60px minmax(0,1fr)}.editor-chat{position:absolute;right:0;inset-block:0;width:min(360px,calc(100% - 60px));z-index:40;box-shadow:-8px 0 28px #0002}.editor-project-name{width:170px}}@media (max-width:767px){.editor-header{padding:8px;gap:8px}.editor-header-canvas,.editor-header-project{grid-column:1/-1}.editor-header-canvas{gap:6px;flex-wrap:wrap}.editor-project-name{width:140px}.editor-export-button{padding:8px 10px}.editor-body,.editor-body.editor-chat-open,.editor-body.editor-panel-collapsed,.editor-body.editor-panel-collapsed.editor-chat-open{grid-template-columns:52px minmax(0,1fr)}.editor-tool-rail{padding:5px 2px}.editor-tool-rail>button{width:47px}.editor-tool-panel{position:absolute;left:52px;inset-block:0;width:min(300px,calc(100% - 52px));z-index:30;box-shadow:8px 0 28px #0002}.editor-preview-stage{padding:10px}.editor-empty-preview{padding:12px;gap:7px}.editor-empty-preview h2{font-size:16px}.editor-empty-icon,.editor-empty-preview p{display:none}.editor-chat{width:calc(100% - 52px)}}.editor-text-toolbar{min-height:48px;flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;padding:6px 10px;background:var(--editor-panel);border-bottom:1px solid var(--editor-border)}.editor-text-toolbar>button{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:5px;color:var(--editor-muted)}.editor-text-toolbar>button:hover{background:var(--editor-hover)}.editor-text-toolbar>button[aria-pressed=true]{background:var(--editor-accent-soft);color:var(--editor-accent-text)}.editor-text-toolbar>label{flex-direction:row;align-items:center;gap:6px;font-size:0}.editor-text-toolbar>label>input{width:54px;font-size:12px}.editor-toolbar-divider{height:19px;border-left:1px solid var(--editor-border);margin:0 3px}@media (max-width:767px){.editor-text-toolbar{justify-content:flex-start}}@container (max-height: 360px){.editor-empty-icon,.editor-empty-preview p{display:none}.editor-empty-preview h2{font-size:16px}.editor-empty-preview button{padding:8px;font-size:11px}}@container (max-height: 180px){.editor-empty-preview h2{display:none}}.editor-aspect-ratio{display:flex;align-items:center;gap:8px;min-width:0;color:var(--editor-text);font-size:12px}.editor-aspect-ratio>span{flex-shrink:0;color:var(--editor-muted)}.editor-aspect-ratio select{height:34px;min-width:0;max-width:220px;border:1px solid var(--editor-border);border-radius:6px;background:var(--editor-panel);padding:5px 24px 5px 8px;outline-color:var(--editor-accent)}.editor-export-resolution-field{display:flex;flex-direction:column;gap:6px;font-size:12px}.editor-export-resolution-field select{width:100%;border:1px solid var(--editor-border);border-radius:4px;background:var(--editor-panel);padding:6px}@media (max-width:767px){.editor-aspect-ratio{gap:5px;font-size:11px}.editor-aspect-ratio select{max-width:176px;padding-inline-end:8px}}.editor-text-content{position:sticky;top:0;z-index:10;padding:16px;border-bottom:1px solid var(--editor-border);background:var(--editor-panel)}.editor-text-content>label{color:var(--editor-text);font-size:13px;font-weight:500}.editor-text-content textarea{min-height:104px;max-height:180px;font-size:14px;line-height:1.6;font-weight:400}.editor-clip-delete{position:sticky;left:calc(var(--editor-track-label-width) + 8px);flex-shrink:0;z-index:20;display:grid;place-items:center;width:26px;height:26px;border-radius:5px;background:#171321dd;color:#fff;opacity:0;pointer-events:none;cursor:pointer}.editor-timeline-item:focus-within .editor-clip-delete,.editor-timeline-item:hover .editor-clip-delete,.editor-timeline-item[aria-pressed=true] .editor-clip-delete{opacity:1;pointer-events:auto}.editor-clip-delete:hover{background:#b91c1c}.editor-timeline-item .editor-clip-delete:disabled{opacity:.35;cursor:not-allowed}@media (hover:none){.editor-clip-delete{opacity:1;pointer-events:auto}}.editor-timeline-item{isolation:isolate;z-index:0}.editor-timeline-item:hover:not([aria-pressed=true]){border-color:var(--editor-selection)}.editor-timeline-item[aria-pressed=true]{z-index:5;border-color:var(--editor-selection);background-color:var(--editor-selection-fill);box-shadow:0 0 0 2px var(--editor-panel),0 0 0 5px var(--editor-selection)}.editor-timeline-item[aria-pressed=true] .editor-clip-name{background:#fff;color:#172554;font-weight:700}.editor-timeline-item[aria-pressed=true] [data-trim-handle]:not(:disabled):after{content:"";position:absolute;top:8px;bottom:8px;left:2px;width:3px;border-radius:2px;background:#fff;pointer-events:none}.editor-timeline [data-track-lane][data-selected=true]{background:var(--editor-selection-lane)}.editor-timeline [data-track-label][data-selected=true]{background:var(--editor-selection-label);box-shadow:inset 4px 0 var(--editor-selection)}.editor-timeline [data-track-label][data-selected=true]>span{color:var(--editor-selection-text);font-weight:700}.editor-visualizer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editor-visualizer-card{min-width:0;overflow:hidden;padding:5px;border:1px solid var(--editor-border);border-radius:8px;background:var(--editor-panel);text-align:left}.editor-workspace .editor-visualizer-card:disabled{opacity:1}.editor-visualizer-card:hover:not(:disabled),.editor-visualizer-card[aria-pressed=true]{border-color:var(--editor-accent);background:var(--editor-accent-soft);box-shadow:0 0 0 1px var(--editor-accent)}.editor-visualizer-card-name{display:block;padding:9px 4px 5px;font-size:12px;font-weight:600;line-height:1.4;color:var(--editor-text)}.editor-visualizer-source{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500}.editor-visualizer-source select{min-width:0;width:100%;padding:9px 10px;border:1px solid var(--editor-border);border-radius:6px;background:var(--editor-surface);color:var(--editor-text);font-size:12px}.editor-visualizer-current{border-radius:7px;overflow:hidden}.editor-project-name-control{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}.editor-project-name-control .editor-project-name{max-width:100%}.editor-project-name-status{display:inline-flex;align-items:center;gap:5px;max-width:270px;font-size:11px;line-height:1.5;color:var(--editor-muted)}.editor-project-name-status>svg{flex-shrink:0}.editor-project-name-control[data-rename-state=saving] .editor-project-name-status{color:var(--editor-accent-text)}.editor-project-name-control[data-rename-state=saved] .editor-project-name-status{color:#047857}.dark .editor-project-name-control[data-rename-state=saved] .editor-project-name-status{color:#6ee7b7}.editor-project-name-control[data-rename-state=error] .editor-project-name-status{color:var(--editor-danger-text)}.editor-project-name-control[data-rename-state=error] .editor-project-name{outline:1px solid var(--editor-danger-text)}.editor-project-name-status button{text-decoration:underline;font-weight:600}@media (max-width:767px){.editor-project-name-control[data-rename-state=idle] .editor-project-name-status{display:none}}.editor-caption-library{display:flex;flex-direction:column;gap:12px}.editor-caption-group{border:1px solid var(--editor-border);border-radius:9px;overflow:hidden;background:var(--editor-panel)}.editor-caption-track{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:12px}.editor-caption-track:hover{background:var(--editor-hover)}.editor-caption-track>svg{flex-shrink:0;color:var(--editor-accent-text)}.editor-caption-track>span{min-width:0}.editor-caption-track strong{display:block;font-size:12px;overflow-wrap:anywhere}.editor-caption-track small{display:block;margin-top:5px;font-size:11px;color:var(--editor-muted)}.editor-caption-source-label{margin:-5px 12px 10px 39px;color:var(--editor-muted);font-size:11px;overflow-wrap:anywhere}.editor-caption-translation{padding-left:26px;border-top:1px solid var(--editor-border);background:var(--editor-accent-soft)}.editor-caption-translate-action{display:flex;align-items:center;gap:6px;padding:9px 12px;width:100%;font-size:11px;color:var(--editor-accent-text);border-top:1px solid var(--editor-border)}.editor-caption-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(850px,calc(100vw - 32px));max-width:none;max-height:min(900px,calc(100dvh - 32px));border:1px solid var(--editor-border);border-radius:14px;background:var(--editor-panel);color:var(--editor-text);box-shadow:0 24px 90px #0005;font-size:13px}.editor-caption-dialog[open]{display:flex;flex-direction:column}.editor-caption-dialog::backdrop{background:#100d2066;backdrop-filter:blur(3px)}.editor-caption-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 24px;flex-shrink:0;border-bottom:1px solid var(--editor-border)}.editor-caption-dialog-header h2{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:650}.editor-caption-dialog-header h2 svg{color:var(--editor-accent-text)}.editor-caption-dialog-header button{display:grid;place-items:center;width:30px;height:30px;border-radius:6px}.editor-caption-dialog button:focus-visible{outline:2px solid var(--editor-accent);outline-offset:2px}.editor-caption-dialog-header button:hover{background:var(--editor-hover)}.editor-caption-dialog>form{display:flex;flex-direction:column;min-height:0}.editor-caption-dialog-body{padding:22px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}.editor-caption-source-name{color:var(--editor-muted);margin-bottom:18px;overflow-wrap:anywhere}.editor-caption-setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:end}.editor-caption-setup-fields label{display:flex;flex-direction:column;gap:8px;font-weight:500}.editor-caption-content select,.editor-caption-setup-fields select{background:var(--editor-surface);color:var(--editor-text);border:1px solid var(--editor-border);border-radius:7px;padding:9px 10px;min-width:0;width:100%;font-size:13px}.editor-caption-setup-fields .editor-caption-translation-toggle{flex-direction:row;align-items:center;margin-bottom:10px}.editor-caption-dialog input[type=checkbox]{width:15px;height:15px;accent-color:var(--editor-accent);flex-shrink:0}.editor-caption-style-heading{display:flex;flex-direction:column;gap:6px;margin:24px 0 14px}.editor-caption-style-heading h3{font-size:14px;font-weight:650}.editor-caption-style-heading span{font-size:12px;color:var(--editor-muted)}.editor-caption-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.editor-caption-style-card{min-width:0;padding:4px;border:1px solid var(--editor-border);border-radius:9px;text-align:left;overflow:hidden}.editor-caption-style-card:hover,.editor-caption-style-card[aria-pressed=true]{border-color:var(--editor-accent);background:var(--editor-accent-soft);box-shadow:0 0 0 1px var(--editor-accent)}.editor-caption-style-art{aspect-ratio:2;border-radius:6px;overflow:hidden;background:#161320;pointer-events:none}.editor-caption-style-art>div{height:100%;width:100%}.editor-caption-style-name{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 5px 5px;font-size:12px;font-weight:600}.editor-caption-style-name small{display:flex;align-items:center;gap:3px;font-size:10px;color:var(--editor-muted);font-weight:400}.editor-caption-dialog-footer{padding:15px 24px 20px;border-top:1px solid var(--editor-border);flex-shrink:0}.editor-caption-dialog-actions{display:flex;justify-content:flex-end;gap:9px}.editor-caption-consent{font-size:12px;margin-bottom:14px}.editor-caption-consent label{display:flex;align-items:center;gap:8px}.editor-caption-consent p{color:var(--editor-muted);font-size:11px;margin-top:7px}.editor-caption-error{color:var(--editor-danger-text);font-size:12px;margin-top:10px}.editor-caption-progress{padding:18px;border:1px solid var(--editor-border);border-radius:10px;background:var(--editor-panel)}.editor-workspace>.editor-caption-progress{position:absolute;right:20px;top:70px;width:min(340px,calc(100% - 32px));z-index:50;box-shadow:0 8px 30px #0002}.editor-caption-progress-heading{display:flex;gap:8px;align-items:center;color:var(--editor-accent-text);font-size:13px;margin-bottom:8px}.editor-caption-progress-heading>button{margin-left:auto}.editor-caption-progress.is-error .editor-caption-progress-heading{color:var(--editor-danger-text)}.editor-caption-progress-steps{display:flex;gap:4px;margin:15px 0}.editor-caption-progress-steps span{height:4px;flex:1;border-radius:2px;background:var(--editor-border)}.editor-caption-progress-steps span[data-state=done]{background:var(--editor-accent)}.editor-caption-progress-steps span[data-state=active]{background:var(--editor-accent);animation:caption-progress-pulse 1.4s ease-in-out infinite}.editor-caption-progress-meter{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--editor-muted);margin-bottom:10px}.editor-caption-progress-meter progress{width:100%;height:6px;accent-color:var(--editor-accent)}.editor-caption-progress>button{margin:10px 8px 0 0}@keyframes caption-progress-pulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.editor-caption-progress-steps span[data-state=active]{animation:none}}.editor-caption-content{padding:16px;border-bottom:1px solid var(--editor-border)}.editor-caption-editor-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin-bottom:10px}.editor-caption-editor-meta>span{color:var(--editor-muted);font-size:11px}.editor-caption-relationship{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:12px;font-size:11px}.editor-caption-relationship>span{color:var(--editor-muted)}.editor-caption-relationship button{display:flex;gap:4px;align-items:center;padding:4px 7px;border-radius:5px;background:var(--editor-accent-soft);color:var(--editor-accent-text)}.editor-caption-editor-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.editor-caption-editor-toolbar label{display:flex;align-items:center;gap:6px;padding:7px 8px;border:1px solid var(--editor-border);border-radius:6px;width:100%;color:var(--editor-muted)}.editor-caption-editor-toolbar input{min-width:0;width:100%;background:transparent;font-size:12px;color:var(--editor-text);outline:none}.editor-caption-editor-actions button,.editor-caption-editor-toolbar button{display:inline-flex;align-items:center;gap:5px;font-size:11px;border:1px solid var(--editor-border);padding:6px 8px;border-radius:5px}.editor-caption-cues{display:flex;flex-direction:column;gap:10px}.editor-caption-cue{min-width:0;padding:10px;border:1px solid var(--editor-border);border-radius:8px;background:var(--editor-surface)}.editor-caption-cues>[data-active=true] .editor-caption-cue{border-color:var(--editor-accent);box-shadow:inset 3px 0 var(--editor-accent)}.editor-caption-cue-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--editor-muted);margin-bottom:8px}.editor-caption-cue-heading>button:first-child{color:var(--editor-accent-text);font-variant-numeric:tabular-nums}.editor-caption-cue textarea{font-size:14px;line-height:1.6;background:var(--editor-panel);min-height:72px}.editor-caption-cue details{margin-top:8px}.editor-caption-cue summary{font-size:11px;color:var(--editor-muted);cursor:pointer}.editor-caption-word-editor{display:flex;flex-direction:column;gap:8px;margin-top:10px}.editor-caption-word-editor small{font-size:10px;color:var(--editor-muted)}.editor-caption-word-row{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:6px}.editor-caption-word-row input{width:100%;min-width:0;padding-inline:6px}.editor-caption-bilingual-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.editor-caption-bilingual-row fieldset{min-width:0}.editor-caption-editor-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.editor-caption-edit-dialog .editor-caption-editor-toolbar label{width:auto;flex:1}@media (max-width:600px){.editor-caption-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.editor-caption-dialog-body,.editor-caption-dialog-footer,.editor-caption-dialog-header{padding:14px}.editor-caption-dialog-header h2{font-size:16px}.editor-caption-setup-fields{gap:15px;grid-template-columns:1fr}.editor-caption-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-caption-style-name{font-size:11px;padding-inline:2px}.editor-caption-bilingual-row{grid-template-columns:1fr;gap:9px}}.editor-track-delete{display:grid;place-items:center;width:23px;height:23px;margin:-5px 0 -5px auto;border:1px solid var(--editor-border);border-radius:5px;color:var(--editor-muted)}.editor-track-delete:hover:not(:disabled){color:var(--editor-danger-text);background:var(--editor-danger-bg);border-color:var(--editor-danger-text)}.editor-toolbar-color{display:flex;align-items:center;gap:5px;flex-shrink:0;padding:3px 6px;border:1px solid var(--editor-border);border-radius:6px;color:var(--editor-muted)}.editor-toolbar-color>label{flex-direction:row;align-items:center;gap:6px;font-size:11px;white-space:nowrap}.editor-toolbar-color input[type=color]{width:25px;height:24px;padding:2px;cursor:pointer;border-radius:4px}.editor-toolbar-color input[type=color]:disabled{cursor:not-allowed}.editor-toolbar-color[data-transparent=true] input::-webkit-color-swatch{background:repeating-conic-gradient(#cbd5e1 0 25%,#fff 0 50%) 50% /8px 8px!important}.editor-toolbar-color[data-transparent=true] input::-moz-color-swatch{background:repeating-conic-gradient(#cbd5e1 0 25%,#fff 0 50%) 50% /8px 8px!important}.editor-caption-style-target{display:flex;gap:4px;align-self:flex-start;padding:3px;border:1px solid var(--editor-border);border-radius:7px;background:var(--editor-surface)}.editor-caption-style-target button{padding:6px 14px;border-radius:5px;font-size:12px;color:var(--editor-muted)}.editor-caption-style-target button[aria-pressed=true]{background:var(--editor-accent-soft);color:var(--editor-accent-text);font-weight:600}.editor-font-picker{display:flex;flex-direction:column;gap:4px;min-width:0}.editor-font-label{font-size:11px;color:var(--editor-muted)}.editor-font-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:34px;padding:6px 9px;border:1px solid var(--editor-border);border-radius:6px;background:var(--editor-surface);color:var(--editor-text);text-align:left}.editor-font-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-font-trigger>span:last-child{flex-shrink:0;color:var(--editor-muted)}.editor-font-picker-compact{flex-shrink:0;max-width:150px}.editor-font-picker-compact .editor-font-trigger{min-height:30px;padding:3px 7px;font-size:13px;background:var(--editor-panel)}.editor-font-menu{z-index:100;min-width:max(240px,var(--radix-select-trigger-width));max-width:calc(100vw - 20px);max-height:min(420px,var(--radix-select-content-available-height));overflow:hidden;background:var(--editor-panel);color:var(--editor-text);border:1px solid var(--editor-border);border-radius:9px;box-shadow:0 12px 36px #0003}.editor-font-options{padding:5px}.editor-font-option{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:61px;padding:7px 30px 7px 12px;border-radius:5px;cursor:pointer;outline:none}.editor-font-option[data-highlighted]{background:var(--editor-accent-soft)}.editor-font-option[data-state=checked]{box-shadow:inset 3px 0 var(--editor-accent)}.editor-font-option[data-disabled]{opacity:.5;cursor:not-allowed}.editor-font-name{display:block;font-size:20px;line-height:1.4}.editor-font-sample{display:block;font-size:15px;line-height:1.5;color:var(--editor-muted);text-align:start}.editor-font-loading{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--editor-muted)}.editor-font-check{position:absolute;right:10px;color:var(--editor-accent-text)}.editor-font-scroll{display:flex;height:20px;align-items:center;justify-content:center;background:var(--editor-panel);color:var(--editor-muted)}@media (max-width:767px){.editor-font-picker-compact{max-width:125px}}