/* Snagedit editing workbench. Inter is bundled locally under the SIL OFL. */
@font-face{font-family:InterVariable;font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/InterVariable.woff2') format('woff2')}
:root{color-scheme:dark;--bg:#0b0c0d;--ink:#ededf0;--muted:#a4a4af;--line:#303035;--green:#bba6ff;--dark:#19191c;--panel:#141416;--panel-raised:#1c1c20;--accent:#bba6ff;--action:#6952f5;--violet:#bba6ff;--radius:8px}
*{box-sizing:border-box}html,body{min-height:100%;background:var(--bg)}body.editor-workbench{font-family:InterVariable,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;color:var(--ink);margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{transition:background .15s,border-color .15s,color .15s}button:disabled{cursor:not-allowed;opacity:.4}button,a{-webkit-tap-highlight-color:transparent}button svg{width:18px;height:18px}button.primary,.primary{background:var(--action);color:#fff;border:1px solid var(--action);border-radius:8px;padding:10px 14px;font-size:12px;font-weight:650}.primary:hover:not(:disabled){background:#7b65fb}.secondary{background:#202023;border:1px solid #35353c;border-radius:7px;color:#e2e2ea;padding:9px 12px;font-size:12px}.secondary:hover:not(:disabled){background:#2b303a;border-color:#535c6b}button.icon-button{width:32px;height:32px;border:1px solid var(--line);border-radius:7px;color:#e2e2ea;background:#202023;font-size:20px;display:grid;place-items:center;padding:0}.full{width:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.hint,.connection-help{font-size:11px;color:var(--muted);line-height:1.65}.hint strong{color:#d7dce5}.eyebrow,.field-label{color:#9ca5b4;font-size:9px;letter-spacing:1.3px;font-weight:600}.field-label{display:block;margin:20px 0 8px}select,textarea,input[type=text],input[type=password],input[type=number]{color:#ededf0;background:#101012;border:1px solid #36363d;border-radius:7px;padding:9px 10px;font-size:12px;max-width:100%}select{cursor:pointer}textarea{min-height:66px;resize:vertical;line-height:1.65}input[type=checkbox]{accent-color:var(--accent);width:14px;height:14px;flex:0 0 14px}input[type=range]{accent-color:var(--accent)}input[type=file]{font-size:11px;color:#b8c1d0;max-width:100%;width:100%}input::file-selector-button{border:1px solid #3a4250;background:#232934;color:#edf1f6;padding:8px;border-radius:6px;margin-right:8px}a{color:#d5f29d}h1,h2,h3,h4,p{overflow-wrap:anywhere}h2{font-size:16px;font-weight:600;letter-spacing:-.35px}h3{font-size:13px;font-weight:600}h4{font-size:12px;font-weight:600}small{color:var(--muted)}details{border:1px solid var(--line);border-radius:8px;padding:12px}summary{cursor:pointer;color:#e2e2ea;font-size:12px;font-weight:550;line-height:1.5}details[open]>summary{margin-bottom:12px}.check{display:flex;align-items:flex-start;gap:8px;color:#bbc2cd;font-size:11px;line-height:1.65;margin:12px 0}.check input{margin-top:3px}.caption-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.caption-actions button{font-size:11px;padding:8px 10px}.section-title{margin-bottom:14px}.section-title>span{font-size:8px;color:#959ead;letter-spacing:1px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;min-width:0}.badge{color:#aab3c1}.skip-link{position:fixed;left:80px;top:-60px;z-index:1000;background:var(--accent);color:#101508;padding:12px;border-radius:8px}.skip-link:focus{top:8px}
/* Tool rail and project bar */
.editor-workbench>aside{width:70px;padding:18px 8px;background:#101012;border-right:1px solid var(--line);z-index:30;display:flex;flex-direction:column;align-items:center;gap:8px}.editor-workbench .logo{font-size:0;display:grid;place-items:center;width:48px;height:44px;margin:0 0 22px}.editor-workbench .logo>span:first-child{color:var(--accent);font-size:36px}.rail-brand{display:none}.editor-workbench aside>.workspace,.editor-workbench aside>.label,.sidebar-bottom{display:none}.editor-workbench .nav{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 2px;gap:6px;width:52px;min-height:60px;color:#aaaab5;border:1px solid transparent;border-radius:10px;background:transparent;margin:2px 0}.rail-icon{font-size:22px;line-height:1}.rail-label{font-size:9px;line-height:1.2}.editor-workbench .nav.active{color:var(--accent);background:#bba6ff0c;border-color:#bba6ff2b}.editor-workbench .nav:hover{background:#202023}.editor-workbench main{max-width:none;margin:0 0 0 70px;padding:0 16px}.editor-workbench header{height:66px;gap:18px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;position:relative;z-index:25}.editor-workbench header>span:first-of-type,.editor-workbench header>.avatar{display:none}.editor-project{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.project-symbol{width:32px;height:34px;display:grid;place-items:center;border:1px solid #303035;border-radius:8px;color:var(--accent);font-size:20px}.editor-project strong{display:block;font-size:13px;font-weight:600;max-width:42vw;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.editor-project div>span{display:block;color:#a4a4af;font-size:10px;margin-top:3px}.editor-header-actions{display:flex;align-items:center;gap:8px}.editor-header-actions .primary{white-space:nowrap}.editor-header-actions .project-menu{margin:0;position:relative;border:0;padding:0}.project-menu>summary{padding:8px 10px;color:#c3c3cd}.project-menu[open]>.project-backup{display:block;position:absolute;right:0;top:35px;width:290px;padding:16px;border:1px solid #3a414d;border-radius:10px;box-shadow:0 20px 60px #0009;background:#1c1c20;z-index:100;margin:0}.project-backup button{margin:4px 2px;font-size:11px}.project-backup p{font-size:11px;color:var(--muted);line-height:1.6}.project-menu[open]>summary{margin:0}#autosaveStatus{font-size:10px;max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:#a8b49a;margin-left:auto}#autosaveStatus[data-state=error],.save-alert{color:#ffadad}.save-alert{padding:10px;background:#311f25;border:1px solid #6d343f;border-radius:8px}.editor-workbench header .save-alert{position:absolute;top:64px;left:12px;right:12px}#editorLibraryToggle{display:none}
/* Workbench: media / video canvas / contextual inspector */
.editor-workbench #studio>.heading,.editor-workbench .workflow,.editor-workbench .focus-edit,.editor-workbench .focus-preview-bar,.editor-workbench .stage-tag,.editor-workbench .cut-metrics>p{display:none}.editor-workbench #studio{padding-top:12px}.editor-workbench .studio-grid{display:grid;grid-template-columns:250px minmax(260px,1fr) 340px;gap:12px;align-items:stretch;height:clamp(360px,calc(100dvh - 340px),900px)}.library-dock,.editing-dock,.preview-dock{min-width:0;min-height:0}.library-dock{border:1px solid var(--line);background:var(--panel);border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.library-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:9px 10px;flex-shrink:0}.library-tabs button{border:0;background:transparent;color:#aaaab5;padding:10px 8px;font-size:11px;border-radius:6px;flex:1;white-space:nowrap}.library-tabs button[aria-selected=true]{color:#e5eaf2;background:#28282d}.library-tabs button:hover{color:#f2f4f7;background:#222225}.library-pane{padding:16px 13px;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#46464d transparent}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.library-heading h2{font-size:13px;margin:0}.library-note{font-size:11px;line-height:1.7;color:#a4a4af;margin:10px 0 18px}.library-tag{font-size:8px;letter-spacing:.8px;border:1px solid #3b3b42;color:#b5bfce;padding:4px 6px;border-radius:4px;white-space:nowrap}.source-asset{width:100%;text-align:left;border:1px solid #343c48;border-radius:9px;padding:7px;background:#1c1c20;color:#dbe1eb;display:block}.source-asset:disabled{opacity:.7}.source-asset strong,.source-asset small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 4px;font-size:11px}.source-asset small{font-size:9px;color:#a4a4af}.source-poster{display:block;position:relative;aspect-ratio:16/9;background:#0c0e12;border-radius:5px;overflow:hidden}.source-poster canvas{display:block;width:100%;height:100%;object-fit:contain}.source-poster>span{position:absolute;bottom:6px;right:6px;padding:3px 5px;border-radius:3px;background:#070a0ddd;color:#ecf2fa;font-size:8px;font-variant-numeric:tabular-nums}.media-add{margin:12px 0 0;width:100%;border:1px dashed #424b59;background:transparent;color:#bcbcc5;padding:13px;border-radius:7px;font-size:11px}.media-add:hover{background:#202730}.library-section-title{font-size:9px;letter-spacing:1.2px;color:#747f92;margin:26px 0 14px}.guided-draft{background:#1a211b;border:1px solid #3c4b32;border-radius:9px;padding:13px;display:block}.guided-draft h2{font-size:12px;margin:0 0 7px}.guided-draft p{font-size:10px;color:#a2b09b;line-height:1.65}.guided-draft>.primary{width:100%;font-size:11px;margin-top:7px}.guided-draft details{margin-top:10px;padding:9px;background:#141a15}.guided-draft summary{font-size:10px}.guided-draft .caption-actions button{font-size:10px}.recovery-panel{margin-top:18px;border:1px solid var(--line);border-radius:9px;padding:12px}.recovery-panel h3{font-size:12px;line-height:1.5;margin:0 0 10px}.recovery-panel p{font-size:10px;line-height:1.7;color:var(--muted)}.recovery-row{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0;border-top:1px solid var(--line)}.recovery-row>div{flex:1 1 100%;font-size:11px}.recovery-row b,.recovery-row small{display:block;overflow-wrap:anywhere}.recovery-row small{font-size:9px;line-height:1.6;margin-top:5px}.recovery-row button{font-size:10px;padding:6px 8px}.library-pane .rge-panel,.library-pane .edit-plan-tools{border:0;padding:0;background:none}.library-pane .rge-panel>summary,.library-pane .edit-plan-tools>summary{font-size:11px;color:var(--accent);padding-bottom:12px;border-bottom:1px solid var(--line)}.library-pane details details{padding:8px}.library-pane .field-label{font-size:8px;letter-spacing:.9px}.library-pane textarea{font-size:11px}.library-pane .caption-actions{gap:5px}.library-pane .caption-actions button{font-size:10px;flex:1;padding:7px}.library-pane #rgePrepare,.library-pane #rgePreview,.library-pane #reviewEditPlan,.library-pane #copyPlanBrief{width:100%;margin-top:10px;font-size:11px}.library-pane .hint{font-size:10px}.reference-cards{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:20px}.reference-empty{grid-column:1/-1;border:1px dashed #374253;border-radius:8px;padding:20px 14px;font-size:11px;line-height:1.7;color:#a0a0ac;margin:0;text-align:center}.reference-asset{padding:5px;border:1px solid #3b3b42;background:#202630;color:#d7dfea;border-radius:7px;text-align:left;overflow:hidden}.reference-asset img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px}.reference-asset strong,.reference-asset small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:7px 2px;font-size:9px}.reference-asset small{font-size:8px;color:#a0a0ac}.agent-connection-state{font-size:10px;line-height:1.6;color:#b9a5e7;background:#bba6ff0b;border:1px solid #bba6ff24;padding:10px;border-radius:7px;margin:0 0 20px}
/* Video surface */
.editor-workbench .preview-dock{display:flex;flex-direction:column;gap:0}.editor-workbench .preview-panel{height:100%;display:flex;flex-direction:column;padding:0;border:1px solid var(--line);border-radius:12px;background:#101012;overflow:hidden}.canvas-tools{min-height:49px;padding:0 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#151517;flex-shrink:0}.canvas-tools>div:first-child{display:flex;align-items:center;gap:8px;font-size:11px}.canvas-tools strong{font-size:11px;font-weight:500}.canvas-indicator{width:5px;height:5px;background:#a9bf87;border-radius:100%}.canvas-source-label{font-size:9px;color:#778396;border-left:1px solid #353d4b;padding-left:8px}.canvas-options{display:flex;align-items:center;gap:8px}.canvas-options select{font-size:10px;padding:5px 8px;border-color:transparent;background:transparent;width:auto}.canvas-options .icon-button{width:28px;height:28px;border-color:transparent;background:transparent;color:#94a0b3}.editor-workbench .panel-top{display:none}.editor-workbench .stage{flex:1;min-height:0;height:auto;background-color:#0b0c0d;background-image:radial-gradient(#717c8e25 .7px,transparent .7px);background-size:16px 16px;border:0;isolation:isolate}.editor-workbench .stage:before{display:none}.editor-workbench .stage video{position:relative;max-height:100%;height:100%;object-fit:contain;border:1px solid #303035;box-shadow:0 10px 40px #0007}.editor-workbench #captionPreview{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;max-width:100%;max-height:100%;object-fit:contain;z-index:3}.editor-workbench .transport{height:48px;flex-shrink:0;background:#151517;padding:9px 14px;border-top:1px solid var(--line);gap:12px}.editor-workbench .transport button{color:#11170a;background:var(--accent);width:29px;height:29px;border-radius:8px;flex-shrink:0}.editor-workbench .transport span{color:#c3c3cd;font-size:10px;font-variant-numeric:tabular-nums}.editor-workbench .transport input{height:3px}.editor-metrics{display:flex;justify-content:center;gap:20px;align-items:center;flex-shrink:0;min-height:32px;background:#131315;border-top:1px solid #222833}.editor-metrics>div{display:flex;align-items:center;gap:6px;font-size:9px}.editor-metrics span{color:#778396;font-size:8px;letter-spacing:.6px}.editor-metrics strong{font-size:10px;color:#bdc8da;font-weight:500}.editor-workbench .preview-mode{padding:9px 13px;font-size:10px;color:#d7c4ff;background:#292134;flex-shrink:0}.preview-review-bar{background:#252030;border-top:1px solid #514364;padding:12px 14px}.preview-review-bar strong{font-size:11px}.preview-review-bar p{font-size:10px;color:#b9aaca;margin:6px 0}.preview-review-bar .caption-actions{margin:8px 0 0}.editor-workbench .reviewing-join #video,.editor-workbench .reviewing-join #captionPreview{visibility:hidden}.editor-workbench #joinPlayer{position:absolute;inset:0;z-index:5;background:#080b10;margin:0;padding:0}.editor-workbench #joinPlayer video{width:100%!important;height:100%!important;max-height:none!important;border:0;object-fit:contain}.editor-workbench #joinPlayer>p{display:none}.editor-workbench .inline-join-actions{display:none}.editor-workbench .cut-boundary-options{margin-top:12px}.canvas-focus .library-dock,.canvas-focus .editing-dock{display:none!important}.canvas-focus .studio-grid{grid-template-columns:minmax(0,1fr)!important}.canvas-focus .preview-dock{grid-column:1/-1}.canvas-focus #editorFocus{background:#bba6ff22;color:var(--accent)}
/* Right-side editing inspector */
.editor-workbench .editing-dock{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#46464d transparent;position:relative}.editor-tabs{display:flex;gap:3px;padding:9px 9px 8px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:8;background:#171719}.editor-tab{border:0;background:transparent;color:#8e99ad;padding:11px 8px;font-size:11px;border-radius:6px;flex:1;white-space:nowrap}.editor-tab[aria-selected=true]{background:#2b313c;color:#edf2fa}.editor-tab:hover{background:#242b35}.task-pane{padding:19px 16px;outline-offset:-4px}.task-intro{margin:0 0 23px}.task-intro>.eyebrow{font-size:8px;color:#7e8ca3}.task-intro h2{font-size:17px;line-height:1.35;margin:9px 0}.task-intro p{font-size:11px;line-height:1.7;color:#a0a0ac;margin:0}.task-pane>.panel,.task-pane .panel{background:transparent;border:0;padding:0;border-radius:0}.word-panel .section-title{margin-top:14px}.word-panel>.hint{font-size:10px;line-height:1.7}.story-language{padding-top:3px}.language-options{padding:9px 11px;margin-bottom:16px}.language-options summary{font-size:10px;color:#a5afc0}.language-options .field-label{margin-top:10px}.task-pane .optional-cleanup{margin:22px 0 0;padding:12px}.optional-cleanup .speech-panel{margin-top:16px}.task-pane .finish-options{margin:15px 0;padding:12px}.task-pane #wordTranscript{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;margin:18px 0;max-height:330px;overflow-y:auto;padding:2px;scrollbar-width:thin}.transcript-word{border:1px solid #343e4d;background:#222a35;border-radius:5px;color:#e3e9f3;padding:7px 8px;font-size:12px;line-height:1.35;user-select:none}.transcript-word:hover{background:#36363d}.transcript-word[aria-pressed=true]{color:#172208;background:var(--accent);border-color:#e7ffab}.transcript-word.uncertain{border-bottom:1px dashed #d7bd83}.transcript-word.removed{color:#8e7079;text-decoration:line-through;border-style:dashed;background:#281e24}.transcript-word.speaking:not([aria-pressed=true]){border-color:#bba6ff;background:#372c49}.word-selection-actions{position:sticky;bottom:0;z-index:4;padding:9px 0;background:#141416ee}.task-pane #wordStatus{background:#1c1c20;border:1px solid #303845;border-radius:7px;padding:11px;color:#a5b1c3;font-size:10px}.next-step{padding:0 16px 18px;display:flex;flex-wrap:wrap;gap:8px}.next-step>p{font-size:10px;color:#8b98af;flex:1 1 100%;line-height:1.6}.next-step .primary{flex:1;font-size:11px}.next-step .secondary{font-size:10px}.finish-back{margin-top:16px}.caption-preferences,.automatic-caption-tools{margin:12px 0}.opening-caption{margin-top:18px}.cue-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:1px solid #343d4a;background:#1b212a;padding:12px;border-radius:8px;margin:10px 0}.cue-row label{font-size:9px;color:#a0acc0;min-width:0}.cue-row input{display:block;width:100%;margin-top:6px;font-size:11px}.cue-row textarea{grid-column:1/-1;font-size:11px}.cue-row button{font-size:9px;padding:7px}.transcription-box .section-title{display:none}.transcription-box>.hint{font-size:10px}#transcriptDraft{border:1px solid #576c3b;background:#1e271a;padding:12px;border-radius:8px}#transcriptDraftList>div{padding:10px 0;border-bottom:1px solid #384830}#captionCutWarnings{padding-left:17px;font-size:11px;line-height:1.7;color:#e0c99e}#captionCutsReviewed{flex-shrink:0}.export-panel{margin-top:20px!important;border-top:1px solid #303847!important;padding-top:20px!important}.export-quality h3{font-size:12px}.export-quality{margin-bottom:20px}.export-quality details{padding:10px}.export-quality ul{padding-left:16px;color:#b1bcce;font-size:11px;line-height:1.7}.export-panel>p{font-size:11px;color:#aab4c5;line-height:1.7}.export-panel .primary{margin-top:10px}.export-blocker{padding:12px;background:#34282a;color:#ebc0bb;border:1px solid #66504c;border-radius:8px;margin:12px 0;font-size:11px}.export-done{padding:12px;background:#25301c;border:1px solid #596a3b;border-radius:8px;font-size:11px}.export-done p{color:#afc198}.review-checklist{margin-top:18px}.coach-title{display:flex;align-items:center;gap:8px}.coach-icon,.coach-status{display:none}.coach-check{display:flex;gap:9px;margin:12px 0;font-size:10px}.coach-check>span{color:var(--accent)}.coach-check b{font-size:11px}.coach-check p{line-height:1.7;color:#9ba7ba}.coach-disclosure{font-size:10px;line-height:1.7;color:#8692a5}.signature{background:#222934;border-radius:8px}.signature small{color:#9cabc1}.signature b{color:#e3eaf4}.signature button{color:var(--accent)}.platforms button{background:#202732;border-color:#3b4656;color:#bdc9db}.platforms button.selected{color:#d8edb9;border-color:#829958;background:#273021}.color-row{color:#a4afc1}.review-checklist .connection-link{font-size:11px;color:var(--accent)}.pack-formats{padding:6px 0}
/* Persistent source timeline, real thumbnails and accepted cuts */
.workbench-timeline{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#14181f;overflow:hidden}.workbench-timeline>.cut-panel{margin:0;padding:12px 18px 10px;background:transparent;border:0;border-radius:0}.workbench-timeline .section-title,.workbench-timeline .timeline-label{display:none}.workbench-timeline .hint{font-size:9px;color:#7a899f;margin:8px 0 0}.editor-timeline-toolbar{display:flex;align-items:center;gap:12px;min-height:25px;padding-bottom:7px}.editor-timeline-toolbar strong{font-size:11px;font-weight:500}.editor-timeline-info{font-size:9px;color:#7f8da5;flex:1}.editor-timeline-clock{font-size:10px;color:#c5d4ea;font-variant-numeric:tabular-nums}.editor-timeline-ruler{position:relative;height:23px;color:#73839c;font-size:9px;font-variant-numeric:tabular-nums;margin:0 6px}.editor-timeline-tick{position:absolute;transform:translateX(-50%);white-space:nowrap;top:4px}.editor-timeline-tick:after{content:'';height:5px;position:absolute;width:1px;background:#4b586d;left:50%;top:14px}.editor-timeline-tick.first{transform:none}.editor-timeline-tick.last{transform:translateX(-100%)}.editor-timeline-surface{position:relative;touch-action:none;border-radius:6px;height:58px;margin:0 6px}.editor-timeline-surface .wave{display:flex;gap:0;height:58px;padding:0;border:1px solid #739151;background:#1d2731;overflow:hidden;border-radius:6px}.editor-timeline-surface .wave button{min-width:0;flex:1;padding:0;border:0;border-right:1px solid #1119;background:transparent;position:relative;height:100%;overflow:hidden}.editor-timeline-surface .wave canvas{width:100%;height:100%;object-fit:cover;display:block;opacity:.8}.editor-timeline-surface .wave button>span{position:absolute;bottom:3px;left:4px;color:#d0d9e8;font-size:8px;text-shadow:0 1px 4px #000}.editor-timeline-overlay{position:absolute;inset:0;pointer-events:none;border-radius:6px;overflow:visible}.editor-timeline-excluded{position:absolute;top:0;bottom:0;background:#05070ab3}.editor-timeline-selection{position:absolute;top:0;bottom:0;border:1px solid #c7adff;box-shadow:inset 0 0 0 1px #bba6ff20;border-radius:4px}.editor-timeline-removal{position:absolute;top:3px;bottom:3px;background:repeating-linear-gradient(135deg,#ed94b550 0,#ed94b550 3px,#5b263f85 3px,#5b263f85 7px);border:1px solid #da86aa88;border-radius:3px}.editor-timeline-playhead{position:absolute;top:-19px;bottom:-5px;width:1px;background:#f1e6ff;box-shadow:0 0 3px #000;z-index:5}.editor-timeline-playhead:before{content:'';position:absolute;left:-4px;top:0;width:9px;height:9px;border-radius:2px;background:#d8c6ef}.editor-timeline-handle{position:absolute;top:-1px;height:60px;width:12px;transform:translateX(-50%);background:#bba6ff;border:1px solid #e8ffac;border-radius:4px;pointer-events:auto;touch-action:none;padding:0;z-index:6;cursor:ew-resize;color:#263514;font-size:8px}.editor-timeline-handle:after{content:'⋮';position:absolute;left:2px;top:20px}.editor-timeline-handle:disabled{opacity:.45}.workbench-timeline .trim{margin-top:10px;justify-content:flex-start;gap:16px;color:#a4a4af;font-size:9px}.workbench-timeline .trim>span{margin-left:auto;font-size:9px}.workbench-timeline .trim input{font-size:10px;width:70px;padding:5px 7px}.editor-workbench #captionTrack{position:relative;height:20px;margin:8px 6px 0;background:#12161d;border-radius:4px;overflow:hidden}.editor-workbench #captionTrack button{position:absolute;top:2px;height:16px;background:#bba6ff2b;border:1px solid #bba6ff54;color:#c7b9e6;font-size:8px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-radius:3px;padding:0 5px}.workbench-status{display:flex;justify-content:space-between;gap:15px;align-items:center;height:33px;color:#697a95;font-size:9px}.workbench-status i{display:inline-block;width:4px;height:4px;background:#95b675;border-radius:100%;margin-right:6px}.status-separator{margin:0 10px;color:#3b485b}.editor-workbench footer{display:none}.draft-banner{margin:0 0 10px;display:flex;align-items:center;gap:12px;border:1px solid #4c5c35;padding:10px;background:#212a1b;border-radius:8px;font-size:11px}.draft-banner button{margin-left:auto;font-size:10px}
/* Empty workspace remains a tool, with working import and sample controls */
.editor-workbench .start-screen{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;overflow:auto;min-height:0}.start-upload{width:min(100%,420px)}.start-upload .upload-symbol{font-size:34px;color:var(--accent);width:62px;height:62px;border:1px dashed #55663d;border-radius:16px;display:grid;place-items:center;margin:0 auto 20px;background:#bba6ff08}.start-upload .eyebrow{font-size:8px;color:#70825d}.start-upload h2{font-size:27px;letter-spacing:-1px;font-weight:500;margin:13px 0}.start-upload p{font-size:12px;line-height:1.8;color:#a4a4af;max-width:340px;margin:0 auto 18px}.start-upload>.primary{margin:3px 0 14px;min-width:180px}.start-upload small{display:block;font-size:10px;color:#677b99}.start-privacy{font-size:9px;color:#72896c;margin-top:16px}.start-platform-note{font-size:9px!important;line-height:1.7!important;margin:12px auto!important;max-width:350px!important;color:#687b97!important}.start-guide{margin-top:23px;padding-top:17px;border-top:1px solid #27303d;max-width:340px}.start-guide .mini-film,.start-guide h3,.start-guide p{display:none}.start-guide .secondary{font-size:10px;background:transparent;border-color:#36363d;color:#99a8bd}.editor-workbench:not(.has-footage) #stage,.editor-workbench:not(.has-footage) .transport,.editor-workbench:not(.has-footage) .editor-metrics{display:none}.editor-workbench:not(.has-footage) .editing-dock{opacity:.7}.editor-workbench:not(.has-footage) .task-pane,.editor-workbench:not(.has-footage) .next-step{pointer-events:none}.editor-workbench:not(.has-footage) .workbench-timeline{opacity:.4;pointer-events:none}.editor-workbench:not(.has-footage) .canvas-source-label{display:none}
/* Dialogs and secondary views use the same editing language */
dialog{background:#1c1c20;color:#e4eaf3;border:1px solid #465166;border-radius:14px;box-shadow:0 35px 100px #000b;padding:26px;max-width:min(860px,calc(100vw - 32px));max-height:90dvh;overflow:auto;font-size:12px}dialog::backdrop{background:#030509bb;backdrop-filter:blur(5px)}dialog h2{margin:0 0 13px;font-size:20px}dialog video{width:100%;max-height:50dvh;background:#07090d;border-radius:8px}dialog audio{display:block;width:100%;margin:10px 0 20px}dialog .caption-actions{margin-bottom:0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.dialog-heading h2{font-size:16px;margin:0}.rge-frames{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0}.rge-frames figure{margin:0}.rge-frames img{display:block;width:100%;border-radius:5px;aspect-ratio:16/10;object-fit:contain;background:#0e1117}.rge-frames figcaption{font-size:9px;color:#a4a4af;margin:6px 0}.rge-dialog pre,.edit-plan-tools textarea{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;white-space:pre-wrap;word-break:break-word;background:#0d121b;padding:12px;color:#a7b8ce}.rge-cut{border:1px solid #3e4859;padding:9px;margin:9px 0;border-radius:7px;background:#1c1c20}.rge-cut .check{margin:0 0 9px}.rge-cut details{padding:7px}.rge-cut input[type=number]{width:90px}.rge-cut label{font-size:10px}.edit-plan-dialog ol{font-size:11px;line-height:1.8;padding-left:20px}.edit-plan-dialog li{margin-bottom:10px}.edit-plan-dialog li button{font-size:10px;padding:5px 8px}.edit-plan-dialog #editPlanCaptionWarning{color:#e9c891;border:1px solid #655236;padding:12px;background:#30291c;border-radius:7px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);background:#303b2a;color:#e4eed9;border:1px solid #647c4c;border-radius:9px;box-shadow:0 12px 45px #0009;z-index:500;padding:13px 20px;font-size:12px;line-height:1.5}.editor-workbench .view:not(#studio){padding:24px 16px 60px;max-width:1200px;margin:auto}.editor-workbench .view:not(#studio) .heading{margin:10px 0 30px}.editor-workbench .view:not(#studio) h1{font-size:30px;color:#e7edf6}.editor-workbench .view:not(#studio) h1 i{color:var(--accent)}.editor-workbench .view:not(#studio) .heading p{font-size:12px;color:#a4a4af;line-height:1.8}.provider-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.provider-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}.provider-card{background:#212936;border:1px solid #3a4556;color:#dbe5f3;border-radius:8px;padding:14px;text-align:left}.provider-card small{display:block;font-size:10px;color:#879ab4;margin-top:7px}.chatgpt-connect{margin-bottom:18px}.chatgpt-heading{display:flex;gap:15px}.chatgpt-heading p{font-size:12px;color:var(--muted);line-height:1.7}.chatgpt-mark{display:grid;place-items:center;min-width:42px;height:42px;background:#bba6ff11;color:var(--accent);border:1px solid #bba6ff22;border-radius:11px;font-size:20px}.signin-steps{display:flex;gap:20px;margin:20px 0;color:#8a9bb3;font-size:11px}.chatgpt-button{background:#252d38;border:1px solid #455164;color:#becbdd;padding:12px 18px;border-radius:8px}.availability-note{color:#9e8faa;font-size:11px;line-height:1.7}.connection-actions{display:flex;gap:8px;margin-top:18px}.subscription-info{margin-top:20px}.subscription-info p{font-size:11px;line-height:1.8;color:var(--muted)}#suggestionText{padding:17px;background:#222e1d;color:#d0e1bc;border-left:2px solid var(--accent);font-size:13px;line-height:1.8}.export-item{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line);color:#d0dbea;font-size:12px}.export-item>div{flex:1;min-width:0}.export-item small{display:block;margin-top:8px;font-size:10px;color:#8296b0}.export-item a{font-size:11px;text-decoration:none;color:var(--accent)}.export-item button{font-size:10px}.settings{max-width:650px}.privacy-panel ul,.privacy-panel p{font-size:12px;line-height:1.8;color:#b6c3d6}.settings .field-label{font-size:10px}
/* Narrow desktop windows retain every action. Mobile editing is still unsupported. */
@media(min-width:1600px){.editor-workbench .studio-grid{grid-template-columns:270px minmax(360px,1fr) 370px}.library-pane{padding:19px 17px}.task-pane{padding:23px 20px}}
@media(max-width:1190px){.editor-workbench .studio-grid{grid-template-columns:minmax(250px,1fr) 330px}.editor-workbench .library-dock{display:none;position:absolute;left:86px;top:79px;bottom:35px;width:275px;z-index:24;box-shadow:20px 0 70px #000b}.editor-workbench.library-open .library-dock{display:flex}.editor-workbench #editorLibraryToggle{display:block}.editor-workbench header #autosaveStatus{max-width:150px}.editor-workbench .editor-project strong{max-width:29vw}.editor-workbench.canvas-focus .library-dock{display:none!important}}
@media(max-width:800px){.editor-workbench main{margin-left:58px;padding:0 9px}.editor-workbench>aside{width:58px;padding:15px 3px}.editor-workbench .nav{width:48px}.rail-label{font-size:8px}.editor-workbench header{gap:8px;height:61px}.project-symbol{display:none}.editor-workbench .editor-project strong{font-size:11px;max-width:29vw}.editor-project div>span{font-size:8px}.editor-header-actions{gap:4px}.editor-header-actions button{font-size:10px;padding:8px}.editor-header-actions #editorUndo{display:none}.editor-workbench .editor-header-actions .project-menu>summary{font-size:10px;padding:8px 4px}.editor-workbench header #autosaveStatus{display:none}.editor-workbench .studio-grid{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);gap:10px}.editor-workbench .preview-dock{height:440px}.editor-workbench .editing-dock{max-height:560px;min-height:330px}.editor-workbench .library-dock{left:67px;top:73px;width:min(290px,calc(100vw - 80px));bottom:20px}.editor-workbench .task-pane{padding:17px}.editor-workbench .task-pane #wordTranscript{max-height:220px}.canvas-tools{padding:0 11px}.canvas-options select{font-size:9px}.editor-workbench .canvas-focus .preview-dock,.editor-workbench.canvas-focus .preview-dock{height:calc(100dvh - 310px);min-height:300px}.editor-workbench .workbench-timeline>.cut-panel{padding:12px 10px}.workbench-status{font-size:8px;height:39px}.workbench-status>span:last-child{display:none}.provider-layout{grid-template-columns:1fr}.signin-steps{flex-wrap:wrap;gap:9px}.editor-workbench .view:not(#studio){padding:20px 2px 45px}.rge-frames{grid-template-columns:repeat(2,minmax(0,1fr))}.export-item{flex-wrap:wrap;gap:12px}.export-item>div{flex:1 1 100%}}
@media(max-width:480px){.editor-workbench .editor-project strong{max-width:22vw}.editor-workbench .editor-project div>span{display:none}.editor-header-actions .project-menu{display:block}.editor-header-actions .primary{font-size:9px;padding:8px}.editor-workbench .preview-dock{height:390px}.start-upload h2{font-size:22px}.editor-workbench .start-screen{padding:20px 13px}.start-upload>p{font-size:11px}.start-upload .upload-symbol{margin-bottom:12px;width:45px;height:45px;font-size:27px}.start-upload .eyebrow,.start-platform-note{display:none}.start-guide{margin-top:18px}.editor-timeline-info{font-size:8px}.editor-timeline-clock{font-size:9px}.editor-timeline-toolbar{gap:7px}.workbench-timeline .trim{gap:9px}.workbench-timeline .trim input{width:56px}.workbench-timeline .trim>span{font-size:8px}.editor-workbench .transport{padding:8px 10px;gap:9px}.editor-workbench .transport .badge{display:none}dialog{padding:18px;max-width:calc(100vw - 20px)}.provider-cards{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.editor-timeline-handle>span{display:none}.editor-timeline-status{font-size:10px;line-height:1.6;color:#a5b992;margin:4px 0}.editor-timeline-status:empty{display:none}

.editor-workbench .nav{position:relative}.editor-workbench .nav #count{position:absolute;top:5px;right:5px;border-radius:6px;background:#303a24;color:#d6eab8;min-width:13px;padding:1px 3px;font-size:8px;font-style:normal;line-height:1.2}

.editor-workbench aside .storage-tool{margin-top:auto}#privacyPanel dl{font-size:12px;line-height:1.8;color:#aebcd0}#privacyPanel dt{margin-top:20px;font-weight:600;color:#e2eaf6}#privacyPanel dd{margin:7px 0 18px}

/* Two-sided editorial desk: assistant/tools left; video and timeline right. */
.editor-workbench .studio-grid{grid-template-columns:minmax(340px,.88fr) minmax(0,1.12fr);gap:14px;height:clamp(540px,calc(100dvh - 120px),1100px)}
.editor-workbench .preview-dock{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;height:auto;min-height:0;grid-column:2}
.editor-workbench .preview-dock>.preview-panel{min-height:280px;height:100%;border-radius:9px}
.editor-workbench .workbench-timeline{margin:0;border-radius:9px}
.editor-workbench .library-dock{display:flex;position:static;inset:auto;width:auto;height:100%;grid-column:1;box-shadow:none;border-radius:9px}
.editor-workbench #editorLibraryToggle{display:none!important}
.editor-workbench .library-tabs{padding:9px 12px;gap:5px;min-height:50px}
.editor-workbench .library-tabs button{font-size:11px;padding:9px 12px}
.editor-workbench #libraryPane-edit{padding:0;overflow:hidden;flex:1;display:flex;flex-direction:column}
.editor-workbench #libraryPane-edit>.editing-dock{border:0;border-radius:0;flex:1;min-height:0;max-height:none;background:transparent}
.editor-workbench .library-pane:not(#libraryPane-edit){padding:22px;flex:1}
.editor-workbench .editor-tabs{padding:9px 18px 11px;gap:15px;background:transparent}
.editor-workbench .editor-tab{flex:0 1 auto;padding:9px 10px;font-size:11px;border-radius:5px;color:#aaaab5}
.editor-workbench .editor-tab[aria-selected=true]{background:#ffffff08;color:#ededf0}
.editor-workbench .task-pane{padding:24px}
.editor-workbench .task-intro>.eyebrow{display:none}
.editor-workbench .task-intro h2{font-size:19px;font-weight:550;margin:0 0 9px}
.editor-workbench .task-intro{margin-bottom:22px}
.editor-workbench .next-step{padding:0 24px 22px}
.editor-workbench .word-panel .section-title>span{display:none}
.editor-workbench .word-panel>.hint{max-width:440px}
.editor-workbench .reference-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.editor-workbench .reference-asset img{aspect-ratio:16/10}
.editor-workbench .reference-asset strong{font-size:11px}.editor-workbench .reference-asset small{font-size:10px}
.editor-workbench .library-pane .rge-panel,.editor-workbench .library-pane .edit-plan-tools{max-width:none}
.editor-workbench .library-pane .hint{font-size:11px}
.editor-workbench .library-pane .caption-actions button{flex:0 1 auto;font-size:11px}
.editor-workbench .source-asset{max-width:350px}.editor-workbench .source-poster{max-height:180px}
.editor-workbench .media-add{max-width:350px}
.editor-workbench .canvas-tools{background:#141416}
.editor-workbench .preview-review-bar{max-height:180px;overflow:auto}
.editor-workbench .workbench-status{height:32px}
@media(min-width:1600px){.editor-workbench .studio-grid{grid-template-columns:minmax(430px,.85fr) minmax(0,1.15fr)}.editor-workbench .task-pane{padding:28px 30px}.editor-workbench .next-step{padding:0 30px 24px}}
@media(max-width:1100px) and (min-width:801px){.editor-workbench .studio-grid{grid-template-columns:minmax(330px,.95fr) minmax(0,1.05fr)}.editor-workbench .task-pane{padding:20px}.editor-workbench .library-pane:not(#libraryPane-edit){padding:18px}.editor-workbench .library-tabs button{padding:9px 8px;font-size:10px}.editor-workbench .editor-tabs{gap:5px;padding:9px 12px}.editor-workbench .preview-dock>.preview-panel{min-height:250px}.workbench-timeline .trim{gap:9px}.workbench-timeline .trim>span{font-size:8px}}
@media(max-width:800px){.editor-workbench .studio-grid{grid-template-columns:minmax(0,1fr);height:auto;gap:14px}.editor-workbench .preview-dock{grid-column:1;height:clamp(430px,75dvh,650px);grid-template-rows:minmax(0,1fr) auto}.editor-workbench .library-dock{grid-column:1;min-height:420px;height:560px;width:auto;position:static}.editor-workbench .library-pane:not(#libraryPane-edit){padding:18px}.editor-workbench .task-pane{padding:18px}.editor-workbench .next-step{padding:0 18px 20px}.editor-workbench .library-tabs button{padding:9px 7px;font-size:10px}.editor-workbench .editor-tabs{padding:9px 12px}.editor-workbench .reference-cards{gap:8px}.editor-workbench.canvas-focus .preview-dock{height:calc(100dvh - 120px);min-height:540px}}
@media(max-width:480px){.editor-workbench .preview-dock{height:clamp(430px,75dvh,610px)}.editor-workbench .library-dock{height:clamp(420px,75dvh,650px)}.editor-workbench .task-pane{padding:16px}.editor-workbench .library-tabs{padding:8px;gap:0}.editor-workbench .library-tabs button{padding:9px 6px;font-size:9px}.editor-workbench .task-intro h2{font-size:17px}}
.editor-workbench .editor-tab{background:transparent;border-bottom:1px solid transparent;border-radius:0}.editor-workbench .editor-tab[aria-selected=true]{background:transparent;color:#e1d4ff;border-bottom-color:#bba6ff}

/* Taste keeps editorial direction beside the footage, with optional tools tucked away. */
.editor-workbench #libraryPane-references .library-heading h2{font-size:19px;letter-spacing:-.5px;font-weight:550}
.editor-workbench #libraryPane-references>.library-note{max-width:390px;line-height:1.8;margin:10px 0 25px}
.taste-board>.field-label{font-size:9px;letter-spacing:1.3px;margin-bottom:9px}
.taste-board textarea,.taste-board input{width:100%;font-size:12px;line-height:1.7;background:#101012;border:1px solid #303035;color:#dfe5ee;border-radius:7px;padding:11px 12px;box-sizing:border-box;min-width:0}
.taste-board textarea{resize:vertical}.taste-board input::placeholder,.taste-board textarea::placeholder{color:#9696a3}
.taste-section-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:25px 0 12px}.taste-section-heading h3{font-size:12px;font-weight:550;margin:0}.taste-section-heading>span{color:#a1a1ad;font-size:9px}
.taste-link-form{display:grid;gap:8px}.taste-link-form>button{justify-self:start;font-size:10px;margin-top:2px}
.taste-links{display:grid;gap:10px;margin-top:16px}.taste-empty{font-size:11px;color:#a1a1ad;line-height:1.8;border:1px dashed #323237;border-radius:8px;padding:17px;margin:0}
.taste-reference{border:1px solid #323237;border-radius:8px;padding:12px;background:#1c1c20}.taste-reference-top{display:flex;align-items:center;gap:8px;margin-bottom:10px;min-width:0}.taste-reference-number{color:#bba6ff;font-size:9px}.taste-reference-url{color:#e0e6ef;font-size:11px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.taste-reference-url:hover{text-decoration:underline}.taste-reference-state{font-size:8px;color:#a1a1ad;white-space:nowrap;margin-left:auto}.taste-remove{padding:0 4px;border:0;background:transparent;color:#9ea9b8;font-size:18px;line-height:1;min-height:25px}.taste-reference textarea{font-size:11px;background:#131315;padding:8px 9px}
.taste-link-notice{font-size:10px;color:#a1a1ad;line-height:1.8;margin:13px 0 22px}#tasteLinkError:empty{display:none}#tasteLinkError{color:#e9c28c}
.taste-clips,.taste-preferences,.taste-backups,.taste-direct,.assistant-advanced{padding:0!important;border:0!important;border-top:1px solid #303035!important;border-radius:0!important;background:transparent!important;margin:14px 0!important}
.taste-clips>summary,.taste-preferences>summary,.taste-backups>summary,.taste-direct>summary,.assistant-advanced>summary{font-size:11px;color:#aeb8c6;padding:14px 0;cursor:pointer}.taste-direct>summary,.taste-backups>summary,.assistant-advanced>summary{font-size:10px;color:#a1a1ad}
.taste-clips>label{margin:9px 0}.taste-clips>input{font-size:10px;width:100%;max-width:100%}.taste-clips .reference-cards{margin-top:14px}
.taste-preferences .settings{padding:2px 0 12px;border:0;box-shadow:none;background:transparent;max-width:none}.taste-preferences .settings select,.taste-preferences .settings textarea{font-size:11px}.taste-preferences .settings>.field-label{margin:16px 0 8px}.taste-preferences .check{font-size:11px;line-height:1.8}.taste-preferences #saveStyle{font-size:10px}
.taste-primary-actions{margin-top:24px}.taste-primary-actions>.primary{width:100%;font-size:12px;padding:13px 12px}.taste-primary-actions .hint{font-size:9px;line-height:1.7;margin:11px 0 19px;color:#899879}
.taste-direct>.rge-panel{margin-top:8px;padding:12px;background:#11151b;border:1px solid #36363d;border-radius:8px}.taste-direct>.rge-panel>summary{font-size:11px}.assistant-advanced>button{margin:4px 0 12px;font-size:10px}
.editor-workbench #libraryPane-agent .agent-connection-state{font-size:10px;line-height:1.8}.editor-workbench #libraryPane-agent #copyPlanBrief,.editor-workbench #downloadEditorialBrief{font-size:10px;margin:0 8px 12px 0}
.editor-workbench #libraryPane-agent .edit-plan-tools>summary{font-size:12px}.editor-workbench #libraryPane-agent .edit-plan-tools>p{line-height:1.9}
@media(max-width:480px){.taste-reference-top{gap:6px}.taste-reference-state{font-size:7px}.taste-primary-actions>.primary{font-size:11px}}

.editor-workbench #libraryPane-references.taste-pane{display:flex;flex-direction:column;padding:0;overflow:hidden;min-height:0}.taste-content{padding:22px;overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#46464d transparent}.taste-content>.library-note{max-width:390px;line-height:1.8;margin:10px 0 25px}.taste-pane>.taste-primary-actions{flex-shrink:0;padding:14px 22px 0;margin:0;border-top:1px solid #303035;background:#141416}.taste-pane>.taste-primary-actions .hint{margin:9px 0 13px}.taste-pane>.taste-primary-actions>.primary{font-size:11px;padding:12px}.taste-content .taste-backups{margin-bottom:0!important}@media(max-width:1100px){.taste-content{padding:18px}.taste-pane>.taste-primary-actions{padding:12px 18px 0}}@media(max-width:480px){.taste-content{padding:16px}.taste-pane>.taste-primary-actions{padding:12px 16px 0}.taste-pane>.taste-primary-actions>.primary{font-size:10px}}

/* Prompt, compare, and choose within the existing assistant surface. */
#libraryPane-agent .rge-panel>summary{font-size:14px;font-weight:600}#libraryPane-agent .agent-connection-state{overflow-wrap:anywhere;margin-bottom:10px}#assistantManual{margin:0 0 18px}#assistantReferences,#rgeUseTaste{margin:7px 0 12px}#assistantReferenceState{overflow-wrap:anywhere}.assistant-model-settings{margin:14px 0;padding:12px;background:#14191f;border:1px solid var(--line);border-radius:8px}.assistant-model-settings select{max-width:100%}#rgeVariationChoices{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:16px 0}#rgeVariationChoices button{text-align:left;white-space:normal;min-height:44px;line-height:1.5;overflow-wrap:anywhere}#rgeVariationChoices button[aria-pressed=true]{border-color:var(--accent);background:#bba6ff12;color:#e5efd9}#libraryPane-agent #rgeIntent{min-height:105px;resize:vertical}#libraryPane-agent .edit-plan-tools{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}#libraryPane-agent #rgePreview{width:100%;margin-top:12px;white-space:normal}#rgeSelections input[type=number]{min-width:0;width:100%}#rgeSelections .caption-actions>label{min-width:0;flex:1 1 100px}

/* Reference fidelity: neutral charcoal, quiet violet and a media-first editing desk. */
body.editor-workbench{font-optical-sizing:auto;font-synthesis:none;-webkit-font-smoothing:antialiased;line-height:1.5}
.editor-workbench>aside{width:56px;padding:12px 4px;gap:5px;background:#101012}
.editor-workbench .logo{width:40px;height:28px;margin:0 0 17px}.editor-workbench .logo>span:first-child{font-size:25px;color:#e3ddf7}
.editor-workbench .nav{width:46px;min-height:52px;padding:7px 2px;gap:4px;border-radius:7px;color:#aaaab5;margin:1px 0}.editor-workbench .nav.active{background:#bba6ff0c;border-color:#bba6ff26;color:#c7b6ff}.editor-workbench .rail-icon{display:grid;place-items:center;width:22px;height:22px}.editor-workbench .rail-icon svg{width:20px;height:20px}.editor-workbench .rail-label{font-size:9px;letter-spacing:0;font-weight:450}
.editor-workbench main{margin-left:56px;padding:0 12px}.editor-workbench header{height:52px;gap:12px}.editor-project{gap:9px}.project-symbol{width:27px;height:28px;font-size:17px;border-radius:6px;color:#c7b6ff}.editor-project strong{font-size:12px;font-weight:550}.editor-project div>span{font-size:10px;margin-top:0;color:#a4a4af}.editor-header-actions{gap:6px}.editor-header-actions button{min-height:32px;padding:7px 11px;font-size:11px;border-radius:6px}.editor-header-actions .project-menu>summary{font-size:11px;padding:7px 9px}#autosaveStatus{font-size:10px;color:#a4a4af;max-width:220px}.editor-workbench header .save-alert{top:52px}
.editor-workbench #studio{padding-top:8px}.editor-workbench .studio-grid{grid-template-columns:minmax(360px,.88fr) minmax(0,1.12fr);gap:10px;height:clamp(540px,calc(100dvh - 94px),1200px)}
.editor-workbench .preview-dock{grid-template-rows:minmax(0,1fr) auto;gap:8px}.editor-workbench .preview-dock>.preview-panel,.editor-workbench .library-dock,.editor-workbench .workbench-timeline{border-radius:8px;border-color:#303035;box-shadow:none}
.editor-workbench .canvas-tools{min-height:38px;padding:0 12px;background:#141416}.canvas-tools>div:first-child{gap:7px}.canvas-tools strong{font-size:11px}.canvas-source-label{color:#aaaab5;border-color:#35353c}.canvas-indicator{background:#bba6ff;width:4px;height:4px}.canvas-options select{font-size:10px}.canvas-options .icon-button{width:28px;height:28px;color:#b8b8c2}
.editor-workbench .stage{background-color:#0d0d0f;background-image:radial-gradient(#74747c16 .65px,transparent .65px);background-size:18px 18px}.editor-workbench .stage video{border-color:#2d2d32;box-shadow:none;object-fit:contain}
.editor-workbench .transport{height:40px;padding:6px 12px;gap:10px;background:#141416}.editor-workbench .transport>#play{background:#242427;border:1px solid #414147;color:#f3f1f9;width:28px;height:28px;border-radius:50%;font-size:11px}.editor-workbench .transport span{font-size:10px;color:#c3c3cd}.editor-workbench .transport>#seek{min-width:30px;flex:1;accent-color:#bba6ff}.preview-volume{display:flex;align-items:center;gap:6px;flex-shrink:0}.editor-workbench .preview-volume #editorMute{width:28px;height:28px;padding:5px;background:transparent;border:0;border-radius:5px;color:#c7c7d2}.editor-workbench .preview-volume #editorMute svg{width:17px;height:17px}.editor-workbench .preview-volume #editorPreviewVolume{width:48px;height:3px;accent-color:#bba6ff}
.editor-workbench .editor-metrics{min-height:24px;gap:18px;background:#141416;border-color:#27272c}.editor-metrics span{font-size:8px;letter-spacing:.5px;color:#aaaab5}.editor-metrics strong{font-size:10px;color:#dddde5}
.editor-workbench .workbench-timeline{background:#141416}.editor-workbench .workbench-timeline>.cut-panel{padding:10px 14px 8px}.editor-timeline-toolbar{gap:8px;margin-bottom:3px}.editor-timeline-toolbar strong{font-size:10px;font-weight:550}.editor-timeline-info,.editor-timeline-clock{font-size:10px;color:#aaaab5}.editor-timeline-clock,.editor-timeline-tick,.editor-workbench .transport #time{font-family:ui-monospace,SFMono-Regular,monospace;font-variant-numeric:tabular-nums;letter-spacing:-.25px}.editor-timeline-ruler{height:20px;color:#aaaab5}.editor-timeline-tick{font-size:9px}.editor-timeline-tick:after{background:#494950;top:13px;height:4px}.editor-timeline-surface,.editor-timeline-surface .wave{height:44px}.editor-timeline-surface .wave{border-color:#9175d3;background:#332744}.editor-timeline-surface .wave canvas{opacity:.7}.editor-timeline-surface .wave button{border-right-color:#4c3a66}.editor-timeline-selection{border-color:#c7adff;box-shadow:inset 0 0 0 1px #bba6ff20}.editor-timeline-handle{height:46px;width:10px;border-color:#d6c4ff;background:#bba6ff;color:#3e2a66}.editor-timeline-handle:after{top:12px;left:1px}.editor-timeline-playhead{background:#eee5ff}.editor-timeline-playhead:before{background:#d1bdff}.editor-workbench .workbench-timeline .hint{font-size:9px;line-height:1.5;color:#a4a4af;margin:6px 0}.editor-workbench .editor-timeline-help{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workbench-timeline .trim{margin-top:7px;gap:12px;color:#aaaab5}.workbench-timeline .trim input{font-size:10px;padding:3px 6px;height:25px;width:66px;border-color:#37373e;color:#ededf0;background:#101012}.workbench-timeline .trim>span{font-size:9px;color:#aaaab5}.editor-workbench .workbench-status{height:26px;font-size:9px;color:#a4a4af}.workbench-status i{background:#bba6ff}.workbench-status .status-separator{color:#74747f}
.editor-workbench .library-tabs{min-height:42px;padding:6px 8px;gap:4px;background:#141416}.editor-workbench .library-tabs button{font-size:11px;font-weight:450;padding:7px 9px;min-height:29px;border-radius:5px;color:#aaaab5}.editor-workbench .library-tabs button[aria-selected=true]{background:#28282d;color:#f1edf9}.editor-workbench .library-tabs button:hover{background:#222225;color:#f1edf9}
.editor-workbench .editor-tabs{padding:6px 12px;gap:14px;background:#141416}.editor-workbench .editor-tab{font-size:11px;min-height:32px;padding:7px 7px;border-radius:0;font-weight:450;color:#aaaab5}.editor-workbench .editor-tab[aria-selected=true]{border-bottom-color:#bba6ff;color:#e1d4ff}.editor-workbench .task-pane{padding:20px}.editor-workbench .task-intro h2{font-size:16px;line-height:1.5;letter-spacing:-.4px;font-weight:550}.editor-workbench .task-intro p{font-size:11px;line-height:1.7;color:#a4a4af}.editor-workbench .task-intro{margin-bottom:20px}.editor-workbench .next-step{padding:0 20px 18px}.editor-workbench .transcript-word{font-size:12px;background:#232326;border-color:#3a3a41;color:#e6e6ee;box-shadow:none}.editor-workbench .transcript-word[aria-pressed=true]{background:#3b2f5b;border-color:#bba6ff;color:#f5f0ff}.editor-workbench .transcript-word.speaking{box-shadow:0 0 0 1px #bba6ff}.editor-workbench .language-options,.editor-workbench .optional-cleanup,.editor-workbench .finish-options{background:transparent;border-color:#303035;border-radius:6px}.editor-workbench .language-options>summary,.editor-workbench .optional-cleanup>summary{font-size:11px;color:#c3c3cd}
.editor-workbench #libraryPane-references .library-heading h2,.editor-workbench .library-heading h2{font-size:16px;font-weight:550;letter-spacing:-.4px}.library-tag{font-family:ui-monospace,SFMono-Regular,monospace;font-size:9px;letter-spacing:.4px;color:#aaaab5;border-color:#3a3a41}.editor-workbench .library-note{font-size:11px;line-height:1.7;color:#a4a4af}.taste-content{padding:18px}.taste-content>.library-note{margin:8px 0 18px}.taste-board>.field-label{font-size:9px;color:#aaaab5;letter-spacing:1px}.taste-board #tasteGoal{background:#1c1c20;border-color:#36363d;padding:10px 12px;font-size:12px;line-height:1.6;min-height:70px}.taste-section-heading{margin:20px 0 10px}.taste-section-heading h3{font-size:11px;font-weight:550}.taste-section-heading>span{font-size:10px}.taste-link-form{gap:7px}.taste-board input{font-size:11px;padding:9px 11px;border-radius:6px;min-height:36px}.taste-link-form>button{font-size:11px;min-height:32px;padding:6px 10px}.taste-links{margin-top:12px}.taste-empty{border:0;border-left:2px solid #47404f;background:#1a191e;border-radius:0 6px 6px 0;padding:11px 13px;font-size:11px;color:#aaaab5;line-height:1.7}.taste-reference{border-radius:9px;padding:12px;background:#1c1c20}.taste-reference-number{color:#c8b5ff;font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px}.taste-reference-state{font-size:9px;color:#aaaab5}.taste-reference-url{font-weight:500;color:#e2e2ea}.taste-reference textarea{background:#161618;border-color:#35353c}.taste-link-notice{font-size:10px;line-height:1.7;margin:12px 0 18px;color:#a4a4af}.taste-clips>summary,.taste-preferences>summary{font-size:11px;padding:12px 0;color:#c3c3cd}.taste-backups>summary,.taste-direct>summary,.assistant-advanced>summary{font-size:10px;color:#aaaab5}.taste-preferences .settings select{min-height:34px;background:#1c1c20;border-color:#36363d;color:#ededf0}.taste-preferences .settings>.field-label{color:#aaaab5}.taste-preferences .settings textarea{background:#1c1c20;border-color:#36363d;color:#ededf0}.taste-pane>.taste-primary-actions{padding:12px 18px 0;background:#141416}.taste-pane>.taste-primary-actions>.primary{font-size:11px;padding:9px 12px;min-height:36px;border-radius:6px}.taste-pane>.taste-primary-actions .hint{font-size:10px;line-height:1.5;color:#aaaab5;margin:8px 0 11px}.agent-connection-state{background:#bba6ff09;border-color:#bba6ff26;color:#c8b8e8}
@media(min-width:1600px){.editor-workbench .studio-grid{grid-template-columns:minmax(430px,.85fr) minmax(0,1.15fr)}}
@media(max-width:1100px) and (min-width:801px){.editor-workbench .studio-grid{grid-template-columns:minmax(330px,.95fr) minmax(0,1.05fr)}.editor-workbench .task-pane{padding:18px}.editor-workbench .library-tabs button{font-size:10px;padding:7px}.preview-volume #editorPreviewVolume{display:none}.editor-workbench .workbench-timeline>.cut-panel{padding:10px 12px 8px}}
@media(max-width:800px){.editor-workbench main{margin-left:52px;padding:0 9px}.editor-workbench>aside{width:52px;padding:12px 3px}.editor-workbench .nav{width:44px;min-height:52px}.editor-workbench header{height:52px}.editor-workbench .studio-grid{grid-template-columns:minmax(0,1fr);height:auto;gap:10px}.editor-workbench .preview-dock{height:clamp(430px,75dvh,650px)}.editor-workbench .library-dock{height:560px}.editor-workbench .transport{padding:6px 10px;gap:8px}.editor-workbench .preview-volume #editorPreviewVolume{display:none}.editor-workbench .preview-volume #editorMute{width:26px;height:26px}.editor-workbench .library-tabs button{font-size:10px}.taste-content{padding:16px}.taste-pane>.taste-primary-actions{padding:12px 16px 0}.editor-workbench .workbench-status{height:28px}.editor-workbench.canvas-focus .preview-dock{height:calc(100dvh - 98px)}}
@media(max-width:480px){.editor-workbench .editor-project strong{max-width:27vw}.editor-workbench .editor-header-actions button{padding:6px 8px;font-size:9px}.editor-workbench .editor-header-actions .project-menu>summary{font-size:10px;padding:6px}.editor-workbench .preview-dock{height:clamp(430px,75dvh,610px)}.editor-workbench .library-dock{height:560px}.editor-workbench .task-pane{padding:16px}.editor-workbench .library-tabs{padding:6px}.editor-workbench .library-tabs button{font-size:9px;padding:7px 5px}.editor-workbench .transport .badge{display:none}.workbench-timeline .trim{gap:8px}.workbench-timeline .trim input{width:55px}.editor-metrics span{font-size:7px}}

.editor-workbench.canvas-focus .preview-dock{grid-column:1/-1}

.editor-workbench .preview-panel.reviewing-join>.transport{display:none}
.editor-timeline-toolbar{padding:0;min-height:18px}.editor-workbench .workbench-timeline .cut-panel>p.hint:last-child{display:none}#toast{background:#252229;color:#ede9f4;border-color:#665578}
.editor-workbench h1,.editor-workbench h2,.editor-workbench h3,.editor-workbench h4,.editor-workbench .logo{font-family:inherit}

/* A focused composer stays beside the working video; proposed edits remain separate. */
#libraryPane-agent .rge-panel{padding:0;border:0;background:transparent;margin:14px 0 0}#libraryPane-agent .rge-panel>summary{display:none}
#libraryPane-agent .agent-connection-state{padding:9px 11px;font-size:10px;line-height:1.6;border-radius:6px;margin:12px 0}
#libraryPane-agent .assistant-model-settings{padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;margin:0 0 14px}#libraryPane-agent .assistant-model-settings>summary{padding:8px 0 12px;font-size:11px;cursor:pointer;color:#d0c3f6}#libraryPane-agent .assistant-model-settings .caption-actions{margin:8px 0 16px}#libraryPane-agent .assistant-model-settings select{margin-bottom:12px}
.assistant-taste-state{font-size:10px;color:#aaaab5;line-height:1.6;margin:0 0 10px;overflow-wrap:anywhere}.assistant-composer{border:1px solid #414048;border-radius:12px;padding:12px;background:#1b1b1f;box-shadow:0 4px 18px #00000016}.assistant-composer>.field-label{font-size:9px;letter-spacing:1px;margin:0 0 10px;color:#aaaab5}
#libraryPane-agent .assistant-composer #rgeIntent{border:0;padding:0;min-height:110px;background:transparent;font-size:13px;line-height:1.75;color:#ededf0;box-shadow:none}.assistant-composer:focus-within{border-color:#bba6ff}.assistant-composer-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}#libraryPane-agent .assistant-composer-tools>button{font-size:10px;padding:6px 9px;margin:0;border-radius:20px;background:#ffffff05;border-color:#424148;min-height:30px}
#libraryPane-agent .assistant-composer>.check{font-size:11px;margin:8px 0}.assistant-composer>.hint{font-size:10px!important;line-height:1.6;margin:5px 0 13px;color:#aaaab5}#libraryPane-agent #rgePrepare{width:100%;min-height:38px;font-size:12px;border-radius:7px}.assistant-scope{margin:10px 0}.assistant-scope>summary{font-size:10px;color:#aaaab5;cursor:pointer}.assistant-scope>.hint{font-size:10px!important;line-height:1.7}#assistantReferenceState{font-size:10px!important;line-height:1.6;margin:9px 0}#libraryPane-agent #assistantManual{font-size:10px;background:transparent;border:0;padding:4px 0;margin:8px 0;color:#c8b5ff;text-decoration:underline;text-underline-offset:3px}
#rgeVariationChoices .variation-card{display:flex;flex-direction:column;gap:5px;padding:12px 14px;background:#1c1c20;border:1px solid #39393f;border-radius:9px}#rgeVariationChoices .variation-card[aria-pressed=true]{border-color:#bba6ff;background:#bba6ff10;box-shadow:inset 3px 0 #bba6ff;color:#ededf0}.variation-name{font-size:12px;font-weight:550}.variation-metrics{font-size:10px;color:#cdbdff}.variation-description{font-size:11px;color:#aaaab5;line-height:1.6}.rge-cut{padding:12px 0;border-bottom:1px solid var(--line)}#rgeResult>h3{font-size:13px;margin:20px 0 8px}#rgeResult>.hint{line-height:1.7}#rgeSelections .rge-cut>details{margin-left:22px}#rgeSelections summary{font-size:10px;color:#aaaab5;cursor:pointer}#rgeAdjust{font-size:11px;margin-top:8px}#rgeStatus:empty{display:none}

/* Mirrored reference composition: the working video left, editorial nodes right. */
body.reference-composition{--bg:#0b0c0d;--panel:#111214;--panel-raised:#1d1e21;--line:#303137;--action:#6148ff;background:#0b0c0d;color:#dedee4}
.reference-composition>aside{width:44px;padding:9px 4px;background:#090a0b;border-right:1px solid #242529;gap:4px}.reference-composition .logo{width:34px;height:27px;margin:0 0 12px}.reference-composition .logo>span:first-child{font-size:20px}.reference-composition .nav{width:34px;min-height:36px;padding:6px;margin:1px 0;border-radius:5px}.reference-composition .rail-icon{width:20px;height:20px}.reference-composition .rail-icon svg{width:17px;height:17px}.reference-composition .rail-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.reference-composition .nav #count{font-size:7px;right:0;top:1px}.reference-composition main{margin-left:44px;padding:0 8px}.reference-composition header{height:44px;min-height:44px;border-bottom:1px solid #292a30;padding:0 4px;gap:9px;margin-bottom:6px}.reference-composition .editor-project{gap:7px;flex:1;min-width:0}.reference-composition .project-symbol{width:26px;height:26px;font-size:14px;border-radius:5px}.reference-composition .editor-project strong{font-size:11px;font-weight:450;max-width:25vw}.reference-composition .editor-project div>span{font-size:8px;margin-top:1px}.reference-composition #autosaveStatus{font-size:8px;color:#95959f;max-width:220px}.reference-composition .editor-header-actions{gap:5px}.reference-composition .editor-header-actions button{font-size:10px;padding:6px 10px;min-height:28px;border-radius:5px}.reference-composition .editor-header-actions .project-menu>summary{font-size:10px;padding:5px 8px}.reference-composition .editor-header-actions #editorFinish{background:#6148ff}.reference-composition .studio-grid{grid-template-columns:minmax(0,.94fr) minmax(490px,1.06fr);height:calc(100dvh - 84px);min-height:620px;max-height:1100px;gap:6px}.reference-composition .preview-dock{grid-column:1;grid-row:1;gap:5px}.reference-composition .library-dock{grid-column:2;grid-row:1;border-radius:5px;border-color:#303137;background:#111214;min-width:0}.reference-composition .library-tabs{min-height:34px;padding:3px 8px;gap:3px;background:#101113;border-bottom:1px solid #292a30}.reference-composition .library-tabs button{font-size:10px;min-height:26px;padding:5px 11px;border-radius:4px}.reference-composition .library-tabs button[aria-selected=true]{background:#25262a;color:#e4e1ed}.reference-composition #libraryPane-references.reference-pane,.reference-composition #libraryPane-agent.reference-pane{padding:0;display:flex;flex:1;min-height:0;overflow:hidden}.reference-composition .reference-pane[hidden]{display:none!important}
.reference-composition .preview-dock>.preview-panel{border-radius:5px;border-color:#303137;min-height:280px;background:#101113}.reference-composition .canvas-tools{height:34px;min-height:34px;padding:0 10px;background:#101113;border-bottom:1px solid #292a30}.reference-composition .canvas-tools strong{font-size:10px;font-weight:450}.reference-composition .canvas-source-label{font-size:8px}.reference-composition .canvas-options select{font-size:9px;background:#1d1e21;border:1px solid #303137;border-radius:4px;min-height:24px;padding:3px 6px}.reference-composition .stage{background:#101113}.reference-composition .transport{height:34px;min-height:34px;padding:5px 10px;gap:8px;border-color:#292a30}.reference-composition .transport #time{font-size:9px}.reference-composition .editor-metrics{min-height:20px;padding:4px 10px;background:#101113;border-top:1px solid #23242a}.reference-composition .editor-metrics span{font-size:7px}.reference-composition .workbench-timeline{border-radius:5px;border-color:#303137;background:#161719}.reference-composition .workbench-timeline>.cut-panel{padding:9px 11px 8px}.reference-composition .editor-timeline-track{height:50px;background:linear-gradient(180deg,#a070d7 0%,#b779e7 100%);border-radius:5px;border-color:#c29bdd}.reference-composition #wave{height:50px;min-height:50px;opacity:.42;mix-blend-mode:luminosity}.reference-composition .editor-timeline-selection{border-color:#cda6ed;background:#bf82ec15}.reference-composition .editor-timeline-playhead{background:#f5e8ff}.reference-composition .editor-timeline-handle{background:#e2c5f6}.reference-composition .editor-timeline-ruler{font-size:8px;color:#a4a4ae}.reference-composition .workbench-timeline .editor-timeline-help{font-size:8px;margin:4px 0}.reference-composition .workbench-timeline .trim{margin-top:5px}.reference-composition .workbench-status{height:22px;font-size:8px}.reference-composition .workbench-status>span:last-child{font-size:8px}
/* The cards are static editorial controls. Decorative paths express the brief's relationships. */
.reference-composition .reference-workspace{display:flex;flex-direction:column;flex:1;min-height:0;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden}.reference-workspace>summary{display:none!important}.editorial-workspace-layout{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.editorial-node-canvas{position:relative;flex:1;min-height:340px;overflow:auto;background:radial-gradient(ellipse at 50% 75%,#19151f55,transparent 70%),#111214;scrollbar-width:thin;scrollbar-color:#414148 transparent}.editorial-node-deck{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:54px;max-width:490px;margin:0 auto;padding:36px 28px 24px;min-height:390px;box-sizing:content-box}.editorial-node-column{display:flex;flex-direction:column;gap:24px;min-width:0;position:relative;z-index:1}.editorial-wires{position:absolute;inset:36px 28px 24px;pointer-events:none;z-index:0}.editorial-wires svg{width:100%;height:390px;overflow:visible;opacity:.6}.editorial-wires path{fill:none;stroke-width:1.2}.editorial-node{border:1px solid #34353b;border-radius:12px;background:#1d1e21;box-shadow:0 8px 24px #0000001a;min-width:0;position:relative;overflow:hidden}.editorial-node-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:33px;padding:7px 11px;background:#18191c;border-bottom:1px solid #303137}.editorial-node-heading h3{font:9px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.1px;color:#bdbdc7;margin:0;font-weight:450}.node-action{border:0;background:transparent;color:#a4a4ae;padding:0;min-width:21px;min-height:21px;font-size:15px;line-height:1;cursor:pointer}.node-action:hover{color:#eee8ff}.ideas-node #tasteGoal{background:transparent;border:0;box-shadow:none;color:#dedee4;border-radius:0;width:100%;padding:11px 12px 5px;font:11px/1.65 InterVariable,Inter,sans-serif;min-height:110px;resize:vertical}.ideas-node #tasteGoal::placeholder{color:#a4a4ae}.ideas-node #tasteGoal:focus{outline:0;box-shadow:inset 0 0 0 1px #bba6ff55}.node-direction{display:block;font-size:9px;line-height:1.4;border:0;background:transparent;color:#c9bbef;padding:6px 12px 10px;cursor:pointer;text-align:left}.references-node{border-color:#466367;box-shadow:0 0 0 2px #76c9cf08,0 8px 24px #00000022}.references-node>.editorial-node-heading{border-color:#3b4a4d}.references-node .reference-cards{display:grid;grid-template-columns:1fr;gap:8px;padding:9px;margin:0}.references-node .reference-asset{background:#24262a;border:1px solid #3d4248;border-radius:7px;overflow:hidden;padding:0;text-align:left}.references-node .reference-asset img{width:100%;aspect-ratio:1.3;max-height:150px;object-fit:contain;display:block;background:#101113}.references-node .reference-asset strong{display:block;font-size:9px;font-weight:450;padding:6px 7px 0;overflow-wrap:anywhere}.references-node .reference-asset small{font-size:8px;padding:3px 7px 6px;display:block}.references-node .reference-empty{display:flex;align-items:center;justify-content:center;text-align:center;min-height:110px;margin:0;background:#23262a;border:1px dashed #50595e;border-radius:7px;padding:12px;color:#aaaeb4;font-size:10px;line-height:1.7}.node-reference-count{display:block;font-size:8px;color:#a4a4ae;padding:0 10px 7px}.node-link-details,.references-node .taste-clips{margin:0!important;padding:0 10px!important;border-top:1px solid #343a3e!important;background:transparent!important}.node-link-details>summary,.references-node .taste-clips>summary{font-size:9px;color:#aaaeb4;padding:8px 0;cursor:pointer}.references-node input,.references-node textarea{font-size:10px!important;width:100%;min-width:0;box-sizing:border-box;padding:7px!important}.references-node .taste-link-form{display:grid;gap:5px;margin:5px 0}.references-node .taste-link-form>button{font-size:9px;min-height:26px;padding:5px 7px}.references-node .taste-reference{padding:8px;margin-bottom:6px}.references-node .taste-reference-top{gap:4px}.references-node .taste-reference-state{font-size:7px}.references-node .taste-reference-url{font-size:9px}.references-node .taste-link-notice{font-size:9px;line-height:1.6;margin:8px 0}.references-node .taste-clips input{font-size:8px!important;padding:3px!important}.references-node .taste-clips .hint{font-size:9px!important;line-height:1.6}.node-setting-row{display:grid;grid-template-columns:18px 36px minmax(0,1fr);align-items:center;gap:4px;padding:10px 9px;border-bottom:1px solid #303137}.node-setting-mark{font-size:15px;color:#d5a8da}.node-setting-row:nth-child(3) .node-setting-mark{color:#d6be72}.node-setting-row>.field-label{font-size:10px;letter-spacing:0;font-weight:450;margin:0;color:#c1c1cb}.node-setting-row select{font-size:10px!important;line-height:1.4;padding:5px 17px 5px 4px!important;border:0!important;background-color:#242529!important;border-radius:4px;color:#dedee4;width:100%;min-width:0;height:auto;min-height:28px}.settings-node>.check{font-size:10px!important;line-height:1.6;padding:10px;margin:0;gap:6px}.settings-node>.check input{width:12px;height:12px;min-width:12px}.node-notes{border-top:1px solid #303137;padding:0 10px}.node-notes>summary{font-size:9px;padding:8px 0;color:#a4a4ae;cursor:pointer}.node-notes .field-label{font-size:8px;margin:8px 0}.node-notes #notes{min-height:85px;max-height:180px;width:100%;font-size:10px;padding:7px}.node-notes>.hint{font-size:9px!important;line-height:1.6}.node-notes #saveStyle{font-size:9px;min-height:26px;padding:5px 9px;margin-bottom:8px}.model-node{border-radius:10px}.node-model-name{font-size:11px;font-weight:450;line-height:1.6;padding:12px 11px 0;margin:0;color:#ddd9e9;overflow-wrap:anywhere}.node-model-detail{font-size:8px;line-height:1.6;color:#a4a4ae;padding:3px 11px 9px;margin:0}.reference-composition .model-node .assistant-model-settings{padding:0 10px;margin:0!important;border:0!important;background:transparent!important}.reference-composition .model-node .assistant-model-settings>summary{font-size:9px;padding:4px 0 9px;color:#c3b3ef}.model-node .assistant-model-settings .caption-actions{gap:5px;margin:6px 0!important;flex-wrap:wrap}.model-node .assistant-model-settings .caption-actions button{font-size:9px;padding:5px 7px;min-height:26px}.model-node .assistant-model-settings>.field-label{font-size:8px;line-height:1.6;margin:7px 0}.model-node .assistant-model-settings select{font-size:10px;padding:6px;width:100%;max-width:100%;margin-bottom:8px!important}.node-connection-details{margin:0;padding:0 10px;border-top:1px solid #303137}.node-connection-details>summary{font-size:8px;line-height:1.6;padding:7px 0;color:#aaaab4;cursor:pointer}.reference-composition .node-connection-details .agent-connection-state{font-size:9px!important;line-height:1.7;background:transparent;border:0;margin:0;padding:0 0 8px}
/* Real prompting sits in the small tray under the board. */
.editorial-prompt-tray{flex-shrink:0;border-top:1px solid #34353b;background:#151619;max-height:45%;overflow:auto;scrollbar-width:thin;scrollbar-color:#414148 transparent}.editorial-prompt-tray>summary{display:flex;align-items:center;gap:7px;padding:9px 12px;font:9px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.4px;color:#bbb8c8;cursor:pointer;list-style:none;border-bottom:1px solid #292a30}.editorial-spark{font-size:14px;color:#d5c8ff}.prompt-tray-hint{font:8px/1.5 InterVariable,Inter,sans-serif;letter-spacing:0;margin-left:auto;color:#95959f}.reference-composition .editorial-prompt-tray .assistant-composer{padding:10px 12px 8px;border:0;border-radius:0;box-shadow:none;background:transparent;margin:0}.reference-composition .editorial-prompt-tray #rgeIntent{min-height:48px;max-height:150px;width:100%;font:11px/1.7 InterVariable,Inter,sans-serif;border:0!important;padding:0!important;background:transparent;resize:vertical;color:#dedee4}.reference-composition .editorial-prompt-tray #rgeIntent::placeholder{color:#a4a4ae}.editorial-prompt-tray .assistant-composer-tools{display:flex;gap:6px;align-items:center;margin:8px 0 0;flex-wrap:wrap}.reference-composition .editorial-prompt-tray .assistant-composer-tools>button{font-size:9px!important;min-height:27px;padding:5px 8px!important;border-radius:5px;margin:0!important}.reference-composition .editorial-prompt-tray #rgePrepare{width:auto!important;margin-left:auto!important;background:#6148ff;min-height:28px;font-size:10px!important;border:0}.editorial-request-options{padding:0 12px;border-top:1px solid #292a30}.editorial-request-options>summary{font-size:8px;line-height:1.5;padding:6px 0;color:#a4a4ae;cursor:pointer}.editorial-request-options .check{font-size:10px;line-height:1.6;margin:8px 0}.editorial-request-options .hint{font-size:9px!important;line-height:1.7}.editorial-request-options #assistantTasteState{font-size:9px;margin:8px 0}.editorial-prompt-tray #rgeStatus{font-size:9px!important;padding:0 12px;margin:0 0 6px;line-height:1.7;color:#aaaab5}.editorial-more{flex-shrink:0;max-height:55%;overflow:auto;padding:0 12px;border-top:1px solid #292a30;background:#141517;scrollbar-width:thin}.editorial-more>summary{font-size:8px;line-height:1.5;padding:7px 0;color:#9999a4;cursor:pointer}.editorial-more .hint,.editorial-more #tasteSaveStatus{font-size:9px!important;line-height:1.7}.editorial-more .edit-plan-tools,.editorial-more .assistant-advanced,.editorial-more .taste-backups{margin:7px 0!important;padding:9px 0!important}.editorial-more .edit-plan-tools>summary,.editorial-more .assistant-advanced>summary,.editorial-more .taste-backups>summary{font-size:10px!important}.editorial-workspace-layout>#rgeResult{overflow:auto;padding:0 18px 18px;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#414148 transparent}.editorial-workspace-layout.has-variations .editorial-node-canvas{display:none}.editorial-workspace-layout.has-variations .editorial-prompt-tray{order:2}.editorial-workspace-layout.has-variations .editorial-more{order:3}.reference-composition #rgeVariationChoices .variation-card{background:#1d1e21;border-radius:9px}.reference-composition #rgeSelections .rge-cut{font-size:11px}.reference-composition #rgeSelections .check{font-size:11px;line-height:1.7}.reference-composition #rgePreview{font-size:11px;min-height:34px}
@media(min-width:1600px){.reference-composition .studio-grid{grid-template-columns:minmax(0,.94fr) minmax(590px,1.06fr)}.editorial-node-deck{padding-top:55px;max-width:530px;gap:64px}.editorial-wires{top:55px}}
@media(max-width:1100px) and (min-width:801px){.reference-composition .studio-grid{grid-template-columns:minmax(0,.94fr) minmax(430px,1.06fr)}.editorial-node-deck{padding:28px 18px 18px;gap:34px}.editorial-wires{inset:28px 18px 18px}.node-setting-row{grid-template-columns:14px 30px minmax(0,1fr);gap:3px;padding:9px 7px}.node-setting-row>.field-label{font-size:9px}.node-setting-row select{font-size:9px!important}.reference-composition .editor-header-actions #editorUndo{font-size:9px}.reference-composition #autosaveStatus{max-width:150px}}
@media(max-width:800px){.reference-composition main{margin-left:44px;padding:0 6px}.reference-composition>aside{width:44px}.reference-composition header{height:44px}.reference-composition .studio-grid{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;gap:7px}.reference-composition .preview-dock{grid-column:1;grid-row:1;height:clamp(480px,75dvh,650px)}.reference-composition .library-dock{grid-column:1;grid-row:2;height:700px;min-height:0}.reference-composition .preview-dock>.preview-panel{min-height:280px}.editorial-node-deck{padding:30px 20px 22px;gap:35px;min-height:390px}.editorial-wires{inset:30px 20px 22px}.reference-composition .editor-project strong{max-width:30vw}.reference-composition .editor-header-actions #editorUndo{display:none}.reference-composition .editor-header-actions .project-menu>summary{font-size:9px;padding:5px}.reference-composition .editor-header-actions #editorFinish{font-size:9px;padding:6px 8px}.reference-composition.canvas-focus .preview-dock{height:calc(100dvh - 100px);min-height:540px}.reference-composition .workbench-status>span:last-child{display:none}}
@media(max-width:480px){.editorial-node-deck{gap:20px;padding:24px 12px 18px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.editorial-wires{inset:24px 12px 18px}.node-setting-row{display:flex;flex-wrap:wrap;gap:3px;padding:7px}.node-setting-row select{flex:1 1 100%}.node-setting-mark{font-size:12px}.node-setting-row>.field-label{font-size:9px}.editorial-node-heading{padding:6px 8px}.editorial-node-heading h3{font-size:8px;letter-spacing:.6px}.ideas-node #tasteGoal{font-size:10px;padding:9px;min-height:125px}.node-direction{font-size:8px;padding:5px 9px 9px}.settings-node>.check{font-size:9px!important;padding:8px}.references-node .reference-empty{font-size:9px;min-height:100px;padding:8px}.node-model-name{font-size:10px;padding:9px 8px 0}.node-model-detail{font-size:8px;padding:3px 8px 7px}.prompt-tray-hint{display:none}.reference-composition .editorial-prompt-tray .assistant-composer-tools>button{font-size:8px!important}.reference-composition .editor-project div>span{display:none}.reference-composition .project-symbol{display:none}.reference-composition .library-dock{height:740px}.reference-composition .workbench-timeline .trim input{width:48px}}

/* Bound the native details content to its pane and remove inherited form spacing. */
.reference-composition .reference-workspace{position:relative}.reference-composition .editorial-workspace-layout{position:absolute;inset:0;height:auto}
.reference-composition .reference-workspace details:not(.reference-workspace){border-radius:0;padding:0;background:transparent;margin:0;border:0;border-top:1px solid #303137}
.reference-composition .reference-workspace summary{margin:0}
.reference-composition .reference-workspace .editorial-prompt-tray{background:#151619;border-top:1px solid #34353b}
.reference-composition .reference-workspace .editorial-prompt-tray>summary{min-height:31px;height:31px;padding:7px 12px;font-size:9px}
.reference-composition .reference-workspace .editorial-request-options{padding:0 12px}
.reference-composition .reference-workspace .editorial-request-options>summary{padding:5px 0;font-size:8px}
.reference-composition .reference-workspace .editorial-more{padding:0 12px;background:#141517}
.reference-composition .reference-workspace .editorial-more>summary{padding:6px 0;font-size:8px}
.reference-composition .reference-workspace .node-notes,.reference-composition .reference-workspace .node-connection-details{padding:0 10px}
.reference-composition .reference-workspace .node-notes>summary{font-size:9px;padding:8px 0}.reference-composition .reference-workspace .node-connection-details>summary{font-size:8px;padding:7px 0}
.editorial-node-deck{max-width:420px;gap:56px;padding:34px 28px 20px}.editorial-wires{inset:34px 28px 20px}
@media(min-width:1600px){.editorial-node-deck{max-width:450px;gap:65px;padding-top:48px}.editorial-wires{top:48px}}
@media(max-width:1100px) and (min-width:801px){.editorial-node-deck{padding:28px 18px 18px;gap:34px}.editorial-wires{inset:28px 18px 18px}}
@media(max-width:800px){.editorial-node-deck{padding:30px 20px 22px;gap:35px}.editorial-wires{inset:30px 20px 22px}}
@media(max-width:480px){.editorial-node-deck{padding:24px 12px 18px;gap:20px}.editorial-wires{inset:24px 12px 18px}}
.reference-composition .preview-dock>.preview-panel{position:relative}.reference-composition .canvas-tools{position:absolute;inset:0 0 auto;z-index:4;background:linear-gradient(180deg,#101113de,#10111300);border:0}.reference-composition .editor-metrics{position:absolute;left:0;bottom:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);padding:0;border:0}.reference-composition .editor-timeline-help{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);padding:0;margin:0!important}
.editorial-workspace-layout.has-variations[data-mode=board] .editorial-node-canvas{display:block}.editorial-workspace-layout.has-variations[data-mode=board]>#rgeResult{display:none}.editorial-workspace-layout.has-variations[data-mode=board] .editorial-prompt-tray{order:0}.editorial-workspace-layout.has-variations[data-mode=board] .editorial-more{order:0}
.reference-composition .editorial-workspace-layout{position:static;inset:auto;flex:1;height:auto;width:100%}.node-model-detail{display:none}.node-model-name{display:table;width:auto;margin:11px 10px 8px;padding:4px 9px;font-size:10px;border:1px solid #414048;border-radius:16px;background:#222328}.node-model-name:before{content:'○';margin-right:6px;color:#aaa4bb}.has-selected-model .node-model-name:before{content:'✣';color:#c5b4fa}

/* A scoped assistant connection, separate from optional developer API access. */
.model-node #mcpConnect,.model-node #mcpManage{display:block;font-size:9px;line-height:1.5;min-height:25px;padding:4px 8px;margin:0 10px 8px;background:#2b253c;border-color:#514267;color:#ddcffb;border-radius:5px}.model-node #mcpConnect[hidden],.model-node #mcpManage[hidden]{display:none}.model-node .mcp-connection-fields>.hint{font-size:9px!important;line-height:1.7;margin:7px 0 9px}.model-node #assistantTransport{font-size:9px!important;max-width:100%}.model-node .mcp-api-fields .field-label{font-size:8px;line-height:1.6;margin:8px 0}.model-node .mcp-api-fields .caption-actions{display:flex;flex-wrap:wrap;gap:5px}.model-node .mcp-api-fields button{font-size:9px;padding:5px;min-height:26px}
.mcp-connection-dialog{width:min(680px,calc(100vw - 40px));max-height:85dvh;overflow:auto;border:1px solid #46414f;border-radius:12px;background:#17171c;color:#ededf0;padding:22px}.mcp-connection-dialog::backdrop{background:#0009}.mcp-connection-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.mcp-connection-dialog h2{font-size:18px;font-weight:550;margin:0}.mcp-connection-dialog p,.mcp-connection-dialog li{font-size:12px;line-height:1.8;color:#b9b6c5}.mcp-connection-dialog .field-label{font-size:9px;letter-spacing:.8px;margin:18px 0 8px}.mcp-connection-dialog select{font-size:12px;padding:9px;width:100%}.mcp-connection-dialog #mcpCreatePair{font-size:12px;margin-top:14px;min-height:36px}.mcp-connection-dialog #mcpPairConfig{font:10px/1.6 ui-monospace,SFMono-Regular,monospace;width:100%;min-height:155px;resize:vertical;background:#101014;border-color:#41404a;padding:10px;color:#d1c5ed}.mcp-connection-dialog button{font-size:11px}.mcp-connection-dialog>details{border-top:1px solid #37353d;margin:18px 0;padding-top:12px}.mcp-connection-dialog summary{font-size:11px;color:#cdbef0;cursor:pointer}.mcp-connection-dialog #mcpDisconnect{margin-top:14px}.mcp-request-state{padding:10px 12px;border-top:1px solid #40364d;background:#bba6ff09}.mcp-request-state>p{font-size:10px;line-height:1.7;color:#d2c6ee;margin:0 0 8px}.mcp-request-state>div{display:flex;gap:7px;flex-wrap:wrap}.mcp-request-state button{font-size:9px;min-height:27px;padding:5px 8px}.mcp-request-state[hidden],.mcp-connection-fields[hidden],.mcp-api-fields[hidden]{display:none}
.speech-setup-banner{display:flex;align-items:center;gap:16px;padding:14px 20px;background:#19171f;border-bottom:1px solid #34303e}.speech-setup-banner[hidden]{display:none}.speech-setup-banner>div{flex:1}.speech-setup-banner p{margin:5px 0}.speech-setup-banner button{flex-shrink:0}@media(max-width:760px){.speech-setup-banner{flex-wrap:wrap}}
