@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* The new editor's styles (editor-next/app.html).
   1. Tokens: generated from the VidClean Editor design system's tokens.json
      (https://claude.ai/artifact/U45aVR2NymCvYmPPGczp43). Dark only.
   2. Components: that system's components/bundle.css, verbatim.
   3. Editor shell: the Desktop page of the prototype canvas
      (https://claude.ai/artifact/DwFVJ5CYkTtvDkW9RsTmyh, project/editor.css), verbatim.
   4. This page's own rules: the gate states and filling the window.
   Copied Oct 13. Re-copy sections 1-3 rather than editing them here. */

/* ---- 1. Tokens ---- */
:root{
  --app-bg:#141414;--rail:#1A1A1A;--panel:#1E1E1E;--panel-raised:#262626;--control:#2A2A2A;--control-hover:#333333;--control-selected:#3A3A3A;--stage:#474747;--timeline-bg:#161616;--track-lane:#1B1B1B;--clip-video:#3A3A3A;--clip-audio:#313131;--clip-text:#2C2C2C;--clip-edge:#555555;--wave:#8C8C8C;--tooltip:#333333;--line:#2E2E2E;--line-control:#7A7A7A;--fg:#E8E8E8;--fg-muted:#ADADAD;--fg-disabled:#6E6E6E;--ink-inverse:#141414;--toggle-on:#E8E8E8;--focus:#E8E8E8;--playhead:#F2F2F2;--accent:#2F66D0;--accent-hover:#2A5CBD;--accent-pressed:#24509F;--on-accent:#F2F2F2;--success:#45C79A;--success-bg:#1A2B24;--success-line:#2F5A49;--warning:#E6A23C;--warning-bg:#2D2416;--warning-line:#5E4721;--error:#F2766B;--error-bg:#33201E;--error-line:#6B302B;--meter-track:#3A3A3A;--meter-fill:#BDBDBD;
  --font-sans:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space-2:2px;--space-4:4px;--space-6:6px;--space-8:8px;--space-12:12px;--space-16:16px;--space-24:24px;
  --radius-0:0px;--radius-1:2px;--radius-2:4px;--radius-3:6px;--radius-pill:999px;
  --size-icon:20px;--size-icon-sm:16px;--size-control:28px;--size-control-lg:32px;--size-touch:44px;--size-rail:64px;--size-strip:36px;--size-track:40px;
}

/* ---- 2. Components (bundle.css) ---- */
/* VidClean Editor components. Every value comes from tokens.css; nothing here defines a color. */

.vc-frame{margin:0;padding:var(--space-16);background:var(--app-bg);color:var(--fg);font-family:var(--font-sans);font-size:13px;line-height:18px;-webkit-font-smoothing:antialiased}
.vc-frame *{box-sizing:border-box}
.vc-num{font-variant-numeric:tabular-nums}
.vc-tc{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:11px;line-height:14px}
.vc-tc--md{font-size:13px;line-height:16px;font-weight:500}
.vc-muted{color:var(--fg-muted)}
.vc-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
.vc-stack{display:flex;flex-direction:column;gap:var(--space-8)}
.vc-caption{font-size:11px;line-height:14px;color:var(--fg-muted)}
.vc-frame :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.vc-frame button{font-family:inherit;cursor:pointer}
.vc-frame button:disabled{cursor:not-allowed}

/* Keys (shortcut hints) */
.vc-key{display:inline-block;min-width:16px;padding:0 var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-1);font-family:var(--font-mono);font-size:11px;line-height:14px;color:var(--fg-muted);text-align:center}

/* Spinner (respects reduced motion) */
.vc-spin{display:inline-block;flex:none;width:12px;height:12px;border:1.5px solid var(--meter-track);border-top-color:var(--fg);border-radius:var(--radius-pill);animation:vc-spin .8s linear infinite}
@keyframes vc-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.vc-spin{animation:none;border-top-color:var(--fg-muted)}}

/* Text button: icon + word. Split, Undo, Redo, Retry. */
.vc-btn{display:inline-flex;align-items:center;gap:var(--space-6);height:var(--size-control);padding:0 var(--space-8);border:0;border-radius:var(--radius-2);background:transparent;color:var(--fg);font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
.vc-btn:hover,.vc-btn.is-hover{background:var(--control-hover)}
.vc-btn:active{background:var(--control-selected)}
.vc-btn:disabled,.vc-btn[aria-disabled="true"]{background:transparent;color:var(--fg-disabled)}
.vc-btn--outline{border:1px solid var(--line-control);background:var(--control)}
.vc-btn--outline:hover{background:var(--control-hover)}
.vc-btn--danger{color:var(--error)}
.vc-btn .vc-key{margin-left:var(--space-2)}

/* Accent button: Export and the chat's Apply. Nothing else uses accent. */
.vc-primary{display:inline-flex;align-items:center;gap:var(--space-6);height:var(--size-control-lg);padding:0 var(--space-12);border:0;border-radius:var(--radius-2);background:var(--accent);color:var(--on-accent);font-size:13px;line-height:18px;font-weight:600;white-space:nowrap}
.vc-primary:hover,.vc-primary.is-hover{background:var(--accent-hover)}
.vc-primary:active,.vc-primary[aria-busy="true"]{background:var(--accent-pressed)}
.vc-primary[aria-busy="true"]{cursor:progress;font-variant-numeric:tabular-nums}
.vc-primary:disabled{background:var(--control);color:var(--fg-disabled)}
.vc-primary__meta{font-weight:500;font-family:var(--font-mono);font-size:11px}
.vc-primary .vc-spin{border-color:var(--accent-hover);border-top-color:var(--on-accent)}

/* Tooltip */
.vc-tooltip{display:inline-block;max-width:240px;padding:var(--space-4) var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--tooltip);color:var(--fg);font-size:12px;line-height:16px}

/* Left tool rail */
.vc-rail{display:flex;flex-direction:column;gap:var(--space-2);width:var(--size-rail);padding:var(--space-6) var(--space-4);background:var(--rail);border-right:1px solid var(--line)}
.vc-rail-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--space-4);width:100%;min-height:52px;padding:var(--space-8) var(--space-2) var(--space-6);border:0;border-radius:var(--radius-2);background:transparent;color:var(--fg-muted);font-size:11px;line-height:14px;font-weight:500;letter-spacing:.02em}
.vc-rail-item:hover{background:var(--control-hover);color:var(--fg)}
.vc-rail-item[aria-current="true"]{background:var(--control-selected);color:var(--fg);font-weight:600}
.vc-rail-item:disabled{background:transparent;color:var(--fg-disabled)}
.vc-rail-item__badge{position:absolute;top:var(--space-6);right:var(--space-8);display:flex}
.vc-rail-item__dot{width:6px;height:6px;border-radius:var(--radius-pill);background:var(--error)}
.vc-rail-item__badge .vc-spin{width:10px;height:10px}

/* Content panel */
.vc-panel{display:flex;flex-direction:column;width:300px;max-width:100%;background:var(--panel);border-left:1px solid var(--line);border-right:1px solid var(--line)}
.vc-panel__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);height:40px;padding:0 var(--space-4) 0 var(--space-12);border-bottom:1px solid var(--line)}
.vc-panel__title{margin:0;font-size:14px;line-height:20px;font-weight:600}
.vc-panel__body{display:flex;flex-direction:column;gap:var(--space-12);padding:var(--space-12)}
.vc-panel__section{display:flex;flex-direction:column;gap:var(--space-8);padding-bottom:var(--space-12);border-bottom:1px solid var(--line)}
.vc-panel__section:last-child{padding-bottom:0;border-bottom:0}
.vc-field{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);min-height:var(--size-control)}
.vc-field__label{font-size:12px;line-height:16px;font-weight:500;color:var(--fg-muted)}
.vc-pro{display:inline-flex;align-items:center;gap:var(--space-2);padding:0 var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-1);font-size:10px;line-height:14px;font-weight:600;letter-spacing:.06em;color:var(--fg)}

/* Segmented toggle: pressed = toggle-on fill + ink-inverse; unpressed = control + fg-muted */
.vc-seg{display:inline-flex;gap:var(--space-2);padding:var(--space-2);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control)}
.vc-seg button{height:22px;padding:0 var(--space-8);border:0;border-radius:var(--radius-1);background:transparent;color:var(--fg-muted);font-size:12px;line-height:16px;font-weight:500}
.vc-seg button:hover{background:var(--control-hover);color:var(--fg)}
.vc-seg button[aria-pressed="true"]{background:var(--toggle-on);color:var(--ink-inverse);font-weight:600}

/* On/off switch: always shows its word too */
.vc-switch{display:inline-flex;align-items:center;gap:var(--space-8);border:0;background:transparent;color:var(--fg-muted);font-size:12px;line-height:16px;font-weight:500;padding:0}
.vc-switch__track{position:relative;width:30px;height:18px;border:1px solid var(--line-control);border-radius:var(--radius-pill);background:var(--control)}
.vc-switch__knob{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:var(--radius-pill);background:var(--fg-muted)}
.vc-switch[aria-checked="true"]{color:var(--fg)}
.vc-switch[aria-checked="true"] .vc-switch__track{background:var(--toggle-on);border-color:var(--toggle-on)}
.vc-switch[aria-checked="true"] .vc-switch__knob{left:14px;background:var(--ink-inverse)}

/* Floating clip toolbar (sits under the preview, over the stage) */
.vc-cliptoolbar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);padding:var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-3);background:var(--panel-raised)}
.vc-cliptoolbar__label{display:flex;align-items:baseline;gap:var(--space-6);padding:0 var(--space-8);font-size:12px;line-height:16px;font-weight:500}
.vc-sep{width:1px;height:20px;margin:0 var(--space-4);background:var(--line)}
.vc-stage{display:flex;flex-direction:column;align-items:center;gap:var(--space-12);padding:var(--space-16);background:var(--stage)}
.vc-video{width:100%;max-width:360px;aspect-ratio:16/9;background:var(--app-bg)}

/* Timeline */
.vc-timeline{background:var(--timeline-bg);border-top:1px solid var(--line)}
.vc-ruler{position:relative;height:24px;margin-left:96px;border-bottom:1px solid var(--line);background-image:repeating-linear-gradient(to right,var(--line-control) 0 1px,transparent 1px 10%);background-size:100% 6px;background-repeat:no-repeat;background-position:bottom}
.vc-ruler__n{position:absolute;top:var(--space-4);transform:translateX(-50%);color:var(--fg-muted)}
.vc-track{display:grid;grid-template-columns:96px minmax(0,1fr);height:var(--size-track);border-bottom:1px solid var(--line)}
.vc-track--short{height:28px}
.vc-track__head{display:flex;align-items:center;gap:var(--space-6);padding:0 var(--space-8);background:var(--panel);border-right:1px solid var(--line);color:var(--fg-muted);font-size:11px;line-height:14px;font-weight:500;letter-spacing:.02em}
.vc-track__lane{position:relative;background:var(--track-lane);overflow:hidden}
.vc-clip{position:absolute;top:var(--space-4);bottom:var(--space-4);display:flex;align-items:center;gap:var(--space-6);min-width:0;padding:0 var(--space-6);border:1px solid var(--clip-edge);border-radius:var(--radius-1);background:var(--clip-video);color:var(--fg);font-size:11px;line-height:14px;font-weight:500;white-space:nowrap;overflow:hidden}
.vc-clip__name{overflow:hidden;text-overflow:ellipsis}
.vc-clip__dur{margin-left:auto;color:var(--fg-muted)}
.vc-clip--audio{background:var(--clip-audio)}
.vc-clip--audio::before{content:"";position:absolute;inset:6px 4px;background:repeating-linear-gradient(to right,var(--wave) 0 2px,transparent 2px 4px);-webkit-mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 70%,transparent 100%);mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 70%,transparent 100%);opacity:.9;z-index:0}
.vc-clip--audio>*{position:relative;z-index:1}
.vc-clip--text{background:var(--clip-text)}
.vc-clip.is-selected{outline:2px solid var(--fg);outline-offset:-1px}
/* The selected clip's handles are drawn by .nx-trim (Nov 2026 clip-handle design). */
.vc-clip--uploading{background:repeating-linear-gradient(135deg,var(--clip-video) 0 6px,var(--control) 6px 12px)}
.vc-clip--failed{border:1px dashed var(--error);background:var(--error-bg)}
.vc-clip--failed .vc-icon{color:var(--error)}
.vc-clip--expired{border:1px dashed var(--line-control);background:var(--track-lane);color:var(--fg-muted)}
.vc-cut{position:absolute;top:0;bottom:0;width:2px;background:var(--fg-muted)}

/* Playhead */
.vc-playhead{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--playhead);pointer-events:none;z-index:3}
.vc-playhead__flag{position:absolute;top:0;left:50%;width:12px;height:14px;transform:translateX(-50%);background:var(--playhead);border-radius:var(--radius-1) var(--radius-1) 0 0;clip-path:polygon(0 0,100% 0,100% 64%,50% 100%,0 64%)}
.vc-readout{display:inline-flex;align-items:baseline;gap:var(--space-6);color:var(--fg)}
.vc-readout .vc-muted{font-weight:400}

/* Save-status line */
.vc-save{display:inline-flex;align-items:center;gap:var(--space-6);min-height:var(--size-control);font-size:12px;line-height:16px;font-weight:500;color:var(--fg-muted)}
.vc-save--saved .vc-icon{color:var(--success)}
.vc-save--unsaved{color:var(--fg)}
.vc-save__dot{width:6px;height:6px;border-radius:var(--radius-pill);background:var(--fg)}
.vc-save--failed{color:var(--error)}

/* Chat */
.vc-chat{display:flex;flex-direction:column;gap:var(--space-16);width:340px;max-width:100%;padding:var(--space-12);background:var(--panel)}
.vc-msg{display:flex;flex-direction:column;gap:var(--space-4);max-width:100%}
.vc-msg__who{font-size:11px;line-height:14px;font-weight:500;color:var(--fg-muted)}
.vc-msg__text{margin:0;font-size:13px;line-height:18px}
.vc-msg--user{align-self:flex-end;align-items:flex-end;max-width:85%}
.vc-msg--user .vc-msg__text{padding:var(--space-6) var(--space-12);border-radius:var(--radius-3);background:var(--control)}
.vc-msg--busy .vc-msg__text{display:flex;align-items:center;gap:var(--space-8);color:var(--fg-muted)}
.vc-composer{display:flex;align-items:flex-end;gap:var(--space-6);padding:var(--space-6);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control)}
.vc-composer textarea{flex:1;min-width:0;min-height:36px;border:0;background:transparent;color:var(--fg);font:400 16px/20px var(--font-sans);resize:none;padding:var(--space-2) var(--space-4)}
.vc-composer textarea::placeholder{color:var(--fg-muted)}
.vc-composer textarea:focus-visible{outline:none}
.vc-composer:focus-within{outline:2px solid var(--focus);outline-offset:2px}

/* Plan card with checkable steps */
.vc-plan{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius-3);background:var(--panel-raised)}
.vc-plan__head{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-12) var(--space-12) var(--space-8)}
.vc-plan__title{margin:0;font-size:14px;line-height:20px;font-weight:600}
.vc-plan__summary{margin:0;font-size:12px;line-height:16px;color:var(--fg-muted)}
.vc-plan__steps{list-style:none;margin:0;padding:0 var(--space-4)}
.vc-step{position:relative;display:grid;grid-template-columns:auto 40px minmax(0,1fr);align-items:start;gap:var(--space-8);padding:var(--space-6) var(--space-8);border-top:1px solid var(--line);font-size:13px;line-height:18px;cursor:pointer}
.vc-step__time{padding-top:2px;color:var(--fg-muted)}
.vc-step__note{color:var(--fg-muted)}
.vc-step input{position:absolute;opacity:0;pointer-events:none}
.vc-check{display:inline-grid;place-items:center;width:16px;height:16px;margin-top:1px;border:1px solid var(--line-control);border-radius:var(--radius-1);background:var(--control);color:var(--ink-inverse)}
.vc-check .vc-icon{width:14px;height:14px;opacity:0}
.vc-step input:checked+.vc-check{background:var(--toggle-on);border-color:var(--toggle-on)}
.vc-step input:checked+.vc-check .vc-icon{opacity:1}
.vc-step input:focus-visible+.vc-check{outline:2px solid var(--focus);outline-offset:2px}
.vc-step input:not(:checked)~.vc-step__text{color:var(--fg-muted);text-decoration:line-through}
.vc-step--na{cursor:default}
.vc-plan__foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);padding:var(--space-12);border-top:1px solid var(--line)}
.vc-plan__done{display:inline-flex;align-items:center;gap:var(--space-6);font-size:12px;line-height:16px;font-weight:500;color:var(--success)}

/* Usage meter line */
.vc-usage{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);font-size:12px;line-height:16px;font-weight:500;color:var(--fg-muted);font-variant-numeric:tabular-nums}
.vc-meter{position:relative;flex:none;width:48px;height:4px;border-radius:var(--radius-pill);background:var(--meter-track);overflow:hidden}
.vc-meter__fill{position:absolute;inset:0 auto 0 0;background:var(--meter-fill);border-radius:var(--radius-pill)}
.vc-usage--low .vc-meter__fill{background:var(--warning)}
.vc-usage--low .vc-usage__text{color:var(--warning)}
.vc-usage--out .vc-usage__text{color:var(--fg)}

/* Suggestion chip */
.vc-chip{display:inline-flex;align-items:center;gap:var(--space-6);height:var(--size-control);padding:0 var(--space-12);border:1px solid var(--line-control);border-radius:var(--radius-pill);background:transparent;color:var(--fg);font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
.vc-chip:hover{background:var(--control-hover)}
.vc-chip[aria-pressed="true"]{background:var(--toggle-on);border-color:var(--toggle-on);color:var(--ink-inverse);font-weight:600}
.vc-chip:disabled{border-color:var(--line);color:var(--fg-disabled);background:transparent}

/* Notices: error, refused by a limit, Pro, paused. Full 1px border, never a colored side bar. */
.vc-notice{display:grid;grid-template-columns:16px minmax(0,1fr);gap:var(--space-2) var(--space-8);padding:var(--space-8) var(--space-12);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised);font-size:12px;line-height:16px}
.vc-notice>.vc-icon{margin-top:1px;color:var(--fg-muted)}
.vc-notice__title{margin:0;font-size:13px;line-height:18px;font-weight:600;color:var(--fg)}
.vc-notice__body{grid-column:2;margin:0;color:var(--fg)}
.vc-notice__actions{grid-column:2;display:flex;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-4);margin-left:calc(var(--space-8) * -1)}
.vc-notice--error{border-color:var(--error-line);background:var(--error-bg)}
.vc-notice--error>.vc-icon,.vc-notice--error .vc-notice__title{color:var(--error)}
.vc-notice--limit{border-color:var(--warning-line);background:var(--warning-bg)}
.vc-notice--limit>.vc-icon,.vc-notice--limit .vc-notice__title{color:var(--warning)}
.vc-notice--success{border-color:var(--success-line);background:var(--success-bg)}
.vc-notice--success>.vc-icon,.vc-notice--success .vc-notice__title{color:var(--success)}

/* Collapsed strip */
.vc-strip{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);width:var(--size-strip);padding:var(--space-6) 0;background:var(--rail);border-left:1px solid var(--line)}
.vc-strip__btn{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:var(--radius-2);background:transparent;color:var(--fg-muted)}
.vc-strip__btn:hover{background:var(--control-hover);color:var(--fg)}
.vc-strip__label{writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;line-height:16px;font-weight:500;color:var(--fg-muted);white-space:nowrap}
.vc-strip--h{flex-direction:row;width:auto;height:var(--size-strip);padding:0 var(--space-6) 0 var(--space-12);border-left:0;border-top:1px solid var(--line)}
.vc-strip--h .vc-strip__label{writing-mode:horizontal-tb;transform:none;color:var(--fg)}
.vc-strip__meta{font-size:12px;line-height:16px;color:var(--fg-muted)}

/* Phones: every control reaches the touch size */
@media (pointer:coarse){
  .vc-btn,.vc-chip,.vc-strip__btn{min-height:var(--size-touch)}
  .vc-primary{min-height:var(--size-touch)}
  .vc-rail-item{min-height:var(--size-touch)}
  .vc-step{padding-block:var(--space-12)}
}
/* Icons: one 20px line set, 1.5px stroke, drawn as masks so they take the text color (currentColor). */
.vc-icon{display:inline-block;flex:none;width:var(--size-icon);height:var(--size-icon);background-color:currentColor;-webkit-mask:var(--vc-i) center/contain no-repeat;mask:var(--vc-i) center/contain no-repeat}
.vc-icon--sm{width:var(--size-icon-sm);height:var(--size-icon-sm)}
.vc-icon--media{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2214%22 height=%2212%22 rx=%221.5%22/%3E%3Cpath d=%22M8.5 7.5v5l4-2.5z%22/%3E%3C/svg%3E")}
.vc-icon--text{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 5h10M10 5v10M8 15h4%22/%3E%3C/svg%3E")}
.vc-icon--captions{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%222.5%22 y=%224.5%22 width=%2215%22 height=%2211%22 rx=%221.5%22/%3E%3Cpath d=%22M5.5 8.5h2.5M9.5 8.5h5M5.5 11.5h5M12 11.5h2.5%22/%3E%3C/svg%3E")}
.vc-icon--elements{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%227%22 cy=%227%22 r=%223.5%22/%3E%3Crect x=%2210.5%22 y=%2210.5%22 width=%226%22 height=%226%22 rx=%221%22/%3E%3C/svg%3E")}
.vc-icon--audio{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 15V5.5l8-1.5v9%22/%3E%3Ccircle cx=%226.25%22 cy=%2215%22 r=%221.75%22/%3E%3Ccircle cx=%2214.25%22 cy=%2213%22 r=%221.75%22/%3E%3C/svg%3E")}
.vc-icon--transcript{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224.5%22 y=%223%22 width=%2211%22 height=%2214%22 rx=%221.5%22/%3E%3Cpath d=%22M7.5 7h5M7.5 10h5M7.5 13h3%22/%3E%3C/svg%3E")}
.vc-icon--format{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%226.5%22 y=%222.5%22 width=%227%22 height=%2215%22 rx=%221.5%22/%3E%3Cpath d=%22M9 14.5h2%22/%3E%3C/svg%3E")}
.vc-icon--chat{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5.5A1.5 1.5 0 0 1 5.5 4h9A1.5 1.5 0 0 1 16 5.5v6a1.5 1.5 0 0 1-1.5 1.5H9l-3.5 3v-3h0A1.5 1.5 0 0 1 4 11.5z%22/%3E%3C/svg%3E")}
.vc-icon--split{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 2.5v15%22/%3E%3Crect x=%222.5%22 y=%226.5%22 width=%225%22 height=%227%22 rx=%221%22/%3E%3Crect x=%2212.5%22 y=%226.5%22 width=%225%22 height=%227%22 rx=%221%22/%3E%3C/svg%3E")}
.vc-icon--undo{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7.5 5.5 4 9l3.5 3.5%22/%3E%3Cpath d=%22M4 9h8a4 4 0 0 1 0 8h-2%22/%3E%3C/svg%3E")}
.vc-icon--redo{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12.5 5.5 16 9l-3.5 3.5%22/%3E%3Cpath d=%22M16 9H8a4 4 0 0 0 0 8h2%22/%3E%3C/svg%3E")}
.vc-icon--delete{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.5 6h11M8 6V4.5h4V6M6 6l.7 10.5h6.6L14 6%22/%3E%3C/svg%3E")}
.vc-icon--speed{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.5 14.5a6.5 6.5 0 1 1 13 0%22/%3E%3Cpath d=%22M10 14.5l3.5-4%22/%3E%3C/svg%3E")}
.vc-icon--crop{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 2.5V14h11.5M2.5 6H14v11.5%22/%3E%3C/svg%3E")}
.vc-icon--punch{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%229%22 r=%225.5%22/%3E%3Cpath d=%22M13 13l4 4M9 6.5v5M6.5 9h5%22/%3E%3C/svg%3E")}
.vc-icon--cut{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%226%22 r=%222.5%22/%3E%3Ccircle cx=%226%22 cy=%2214%22 r=%222.5%22/%3E%3Cpath d=%22M8 7.5 16.5 15M8 12.5 16.5 5%22/%3E%3C/svg%3E")}
.vc-icon--zoom{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%229%22 r=%225.5%22/%3E%3Cpath d=%22M13 13l4 4M9 6.5v5M6.5 9h5%22/%3E%3C/svg%3E")}
.vc-icon--sticker{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210%22 cy=%2210%22 r=%227%22/%3E%3Cpath d=%22M7 12c1.5 1.7 4.5 1.7 6 0%22/%3E%3Cpath d=%22M7.5 8h.01M12.5 8h.01%22/%3E%3C/svg%3E")}
.vc-icon--graphic{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2214%22 height=%2214%22 rx=%221.5%22/%3E%3Cpath d=%22M6.5 13.5v-3M10 13.5v-7M13.5 13.5v-5%22/%3E%3C/svg%3E")}
.vc-icon--sound{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 8v4h3l4 3.5v-11L7 8z%22/%3E%3Cpath d=%22M14 7.5a3.5 3.5 0 0 1 0 5%22/%3E%3C/svg%3E")}
.vc-icon--music{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 15V4.5l8-1.5V13%22/%3E%3Ccircle cx=%226%22 cy=%2215%22 r=%222%22/%3E%3Ccircle cx=%2214%22 cy=%2213%22 r=%222%22/%3E%3C/svg%3E")}
.vc-icon--export{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 3v9M6.5 6.5 10 3l3.5 3.5%22/%3E%3Cpath d=%22M4 12v3.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V12%22/%3E%3C/svg%3E")}
.vc-icon--play{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6.5 4.5v11l9-5.5z%22/%3E%3C/svg%3E")}
.vc-icon--pause{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7.5 5v10M12.5 5v10%22/%3E%3C/svg%3E")}
.vc-icon--check{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 10.5l3 3 7-7%22/%3E%3C/svg%3E")}
.vc-icon--warning{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 3.5 17 16H3z%22/%3E%3Cpath d=%22M10 8.5V12M10 14.25v.01%22/%3E%3C/svg%3E")}
.vc-icon--error{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210%22 cy=%2210%22 r=%227%22/%3E%3Cpath d=%22M7.5 7.5l5 5M12.5 7.5l-5 5%22/%3E%3C/svg%3E")}
.vc-icon--limit{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210%22 cy=%2210%22 r=%227%22/%3E%3Cpath d=%22M10 6.5V10l2.5 1.5%22/%3E%3C/svg%3E")}
.vc-icon--lock{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%229%22 width=%2210%22 height=%228%22 rx=%221.5%22/%3E%3Cpath d=%22M7 9V7a3 3 0 0 1 6 0v2%22/%3E%3C/svg%3E")}
.vc-icon--send{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 16V4M5.5 8.5 10 4l4.5 4.5%22/%3E%3C/svg%3E")}
.vc-icon--close{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5.5 5.5l9 9M14.5 5.5l-9 9%22/%3E%3C/svg%3E")}
.vc-icon--chevron-left{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12.5 5 7.5 10l5 5%22/%3E%3C/svg%3E")}
.vc-icon--chevron-right{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7.5 5l5 5-5 5%22/%3E%3C/svg%3E")}
.vc-icon--chevron-up{--vc-i:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22 width=%2220%22 height=%2220%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5 10 7.5l5 5%22/%3E%3C/svg%3E")}

/* ---- 3. Editor shell (prototype editor.css) ---- */
.ed{position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--app-bg);color:var(--fg);font-family:var(--font-sans);font-size:13px;line-height:18px;-webkit-font-smoothing:antialiased}
.ed *{box-sizing:border-box}
.ed button{font-family:inherit;cursor:pointer}
.ed button:disabled{cursor:not-allowed}
.ed :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ed p,.ed h1,.ed h2,.ed h3,.ed ol{margin:0}

/* Header: name, save status, Export always visible */
.ed-head{flex:none;display:flex;align-items:center;gap:var(--space-12);height:48px;padding:0 var(--space-12) 0 var(--space-16);background:var(--rail);border-bottom:1px solid var(--line)}
.ed-mark{font-size:14px;line-height:20px;font-weight:600}
.ed-divider{flex:none;width:1px;height:20px;background:var(--line)}
.ed-project{min-width:0;font-size:13px;line-height:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-head__end{margin-left:auto;display:flex;align-items:center;gap:var(--space-12)}

/* Four zones: rail + panel | preview | settings, timeline below; chat full height on the right */
.ed-body{position:relative;flex:1;min-height:0;display:flex}
.ed-work{flex:1;min-width:0;display:flex;flex-direction:column}
.ed-upper{position:relative;flex:1;min-height:0;display:flex}
.ed .vc-rail{flex:none;width:72px;position:relative;z-index:21}
.ed .vc-panel{flex:none;min-height:0;border-left:0}
.ed .vc-panel.ed-settings{width:240px;border-left:1px solid var(--line);border-right:0}
.ed .vc-strip{flex:none}
.ed-panel-scroll{flex:1;min-height:0;overflow:auto}

/* 1280 with the chat open: the content panel is a drawer over the preview */
.ed .vc-panel.ed-drawer{position:absolute;top:0;bottom:0;left:72px;z-index:20;border-right:1px solid var(--line-control)}
.ed-scrim{position:absolute;inset:0 0 0 72px;z-index:15;border:0;padding:0;background:transparent;cursor:default}

/* Preview */
.ed-stage{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:var(--space-12);padding:var(--space-16);background:var(--stage)}
.ed-video{flex:1 1 0;min-height:0;width:100%;display:flex;justify-content:center}
.ed-frame{position:relative;height:100%;aspect-ratio:9/16;overflow:hidden;container-type:size;background:var(--app-bg)}
.ed-frame>svg{position:absolute;inset:0;width:100%;height:100%}
.ed-transport{display:flex;align-items:center;gap:var(--space-8);color:var(--fg)}
.ed-transport .vc-key{color:var(--fg);border-color:var(--fg)}
.ed-total{font-weight:400}
.ed-cap{position:absolute;left:7%;right:7%;bottom:16%;display:flex;justify-content:center;text-align:center}
.ed-cap span{padding:.6cqh 2cqh;border-radius:.8cqh;background:rgba(0,0,0,.62);color:#F5F5F5;font:600 3.8cqh/1.3 var(--font-sans)}
.ed-sticker{position:absolute}
.ed-sticker svg{display:block;width:100%;height:auto}
.ed-counter{position:absolute;top:6%;left:50%;transform:translateX(-50%) rotate(-3deg);padding:.7cqh 2cqh;border:.5cqh solid #FFFFFF;border-radius:1.2cqh;background:#F6C343;color:#1B1B1B;font:700 3.2cqh/1.2 var(--font-sans);white-space:nowrap}

/* Content panel lists */
.ed-list{display:flex;flex-direction:column;gap:var(--space-2)}
.ed-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:var(--space-8);padding:var(--space-6);border-radius:var(--radius-2)}
.ed-row:hover{background:var(--control-hover)}
.ed-thumb{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-1);background:var(--control);color:var(--fg-muted);overflow:hidden}
.ed-thumb svg{display:block}
.ed-row__text{display:flex;flex-direction:column;min-width:0}
.ed-row__name{font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-row__meta{font-size:11px;line-height:14px;color:var(--fg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-upload{width:100%;justify-content:center;height:var(--size-control-lg)}
.ed-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}
.ed-stk{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);padding:var(--space-8) var(--space-4) var(--space-6);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--control);color:var(--fg-muted);font-size:11px;line-height:14px;font-weight:500}
.ed-stk:hover{background:var(--control-hover);color:var(--fg)}
.ed-stk svg{width:44px;height:44px}
.ed-slider{display:flex;align-items:center;gap:var(--space-8)}
.ed-tool-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-8)}
.ed-search{width:100%;height:var(--size-control);padding:0 var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px/18px var(--font-sans)}
.ed-search::placeholder{color:var(--fg-muted)}
.ed-lines{display:flex;flex-direction:column;gap:var(--space-2)}
.ed-line{display:grid;grid-template-columns:36px minmax(0,1fr);gap:var(--space-8);padding:var(--space-4) var(--space-6);border:0;border-radius:var(--radius-2);background:transparent;color:var(--fg);font-size:13px;line-height:18px;text-align:left}
.ed-line .vc-tc{padding-top:2px;color:var(--fg-muted)}
.ed-line:hover{background:var(--control-hover)}
.ed-line[aria-current="true"]{background:var(--control-selected);font-weight:600}

/* Range input (volume, zoom) */
.ed-range{-webkit-appearance:none;appearance:none;width:96px;height:4px;margin:0;border-radius:var(--radius-pill);background:var(--meter-track)}
.ed-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;border:0;border-radius:var(--radius-pill);background:var(--fg)}
.ed-range::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:var(--radius-pill);background:var(--fg)}

/* Clip volume in dB (Nov 5, item 4; ui/dbslider.js): track meter-track, fill meter-fill, thumb fg, the 0 dB tick brighter */
.nx-db{align-self:stretch}
.nx-db__head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-8);width:100%}
.nx-db__read{color:var(--fg);font-size:12px;line-height:16px;white-space:nowrap}
.nx-db__suf{color:var(--fg-muted)}
.nx-db__row{display:flex;align-items:flex-start;gap:var(--space-8);width:100%}
.nx-db__wrap{position:relative;flex:1;min-width:0;padding-bottom:20px}
.nx-db__track{position:relative;height:20px;cursor:pointer;touch-action:none;border-radius:var(--radius-1)}
.nx-db__rail,.nx-db__fill{position:absolute;left:0;top:8px;height:4px;border-radius:var(--radius-pill)}
.nx-db__rail{right:0;background:var(--meter-track)}
.nx-db__fill{background:var(--meter-fill)}
.nx-db__tick{position:absolute;top:4px;width:2px;height:12px;margin-left:-1px;border-radius:1px;background:var(--fg)}
.nx-db__ticklabel{position:absolute;top:26px;transform:translateX(-50%);font-size:10px;line-height:12px;color:var(--fg-muted);white-space:nowrap;pointer-events:none}
.nx-db__thumb{position:absolute;top:4px;width:12px;height:12px;margin-left:-6px;border-radius:var(--radius-pill);background:var(--fg)}
.nx-db__track:focus-visible{outline:2px solid var(--fg);outline-offset:2px}
.nx-db.is-disabled .nx-db__track{cursor:default}
.nx-db.is-disabled .nx-db__fill,.nx-db.is-disabled .nx-db__thumb,.nx-db.is-disabled .nx-db__tick{background:var(--fg-disabled)}
.nx-db.is-disabled .nx-db__read{color:var(--fg-disabled)}
.nx-db__box{flex:none;width:56px;height:24px;padding:0 var(--space-6);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 12px/16px var(--font-mono);text-align:right}
.nx-db__box:disabled{color:var(--fg-disabled)}
.nx-db__louder{color:var(--warning)}

/* Timeline: captions row, free overlay rows, the main video track, shared audio rows */
.ed-tl{flex:none;display:flex;flex-direction:column;background:var(--timeline-bg);border-top:1px solid var(--line)}
.ed-tl__bar{flex:none;display:flex;align-items:center;gap:var(--space-2);height:40px;padding:0 var(--space-8);border-bottom:1px solid var(--line)}
.ed-tl__end{margin-left:auto;display:flex;align-items:center;gap:var(--space-8)}
.ed-tl__group{display:flex;align-items:center;gap:var(--space-8)}
.ed-tracks{position:relative;overflow:hidden}
.ed .vc-ruler{margin-left:84px;background-image:repeating-linear-gradient(to right,var(--line-control) 0 1px,transparent 1px calc(100% / 14))}
.ed .vc-track{grid-template-columns:84px minmax(0,1fr)}
.ed .ed-row--captions{height:24px}
.ed .ed-row--overlay{height:26px}
.ed .ed-row--main{height:44px}
.ed .ed-row--audio{height:28px}
.ed .vc-clip{min-width:6px;top:3px;bottom:3px}
.ed .ed-row--main .vc-clip{top:4px;bottom:4px}
.ed .ed-ci{width:12px;height:12px;color:var(--fg-muted)}
.ed button.vc-clip{text-align:left;font-size:11px;line-height:14px;font-weight:500}
.ed button.vc-clip:hover{border-color:var(--line-control)}

/* Plan and change markers */
.ed-changes{display:grid;grid-template-columns:84px minmax(0,1fr);height:18px;border-bottom:1px solid var(--line)}
.ed-changes__head{display:flex;align-items:center;padding:0 var(--space-8);background:var(--panel);border-right:1px solid var(--line);color:var(--fg-muted);font-size:11px;line-height:14px;font-weight:500;letter-spacing:.02em}
.ed-changes__lane{position:relative}
.ed-tag{position:absolute;top:1px;display:inline-flex;align-items:center;gap:var(--space-4);height:15px;padding:0 var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-1);background:var(--panel-raised);color:var(--fg);font-size:11px;line-height:13px;font-weight:500;white-space:nowrap;transform:translateX(-50%)}
.ed-tag .vc-icon{width:12px;height:12px}
.ed-tag--start{transform:none}
/* Stage 27: the editing agent's pins (one per action, merged with a count when close) */
.nx-pin{position:absolute;top:1px;width:16px;height:16px;margin-left:-8px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--success-line);border-radius:var(--radius-pill);background:var(--success-bg);color:var(--success);cursor:pointer;z-index:1}
.nx-pin::before{content:"";position:absolute;inset:-1px -6px}
.nx-pin .vc-icon{width:12px;height:12px}
.nx-pin:hover,.nx-pin[aria-expanded="true"]{border-color:var(--success);background:var(--panel-raised)}
.nx-pin:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.nx-pin--many{width:auto;min-width:16px;padding:0 var(--space-4);margin-left:0;transform:translateX(-50%)}
.nx-pin__n{font-size:10px;line-height:12px;font-weight:600}
.nx-pintip{position:fixed;z-index:60;max-width:min(320px,calc(100vw - 16px));padding:var(--space-8);background:var(--tooltip);border:1px solid var(--line-control);border-radius:var(--radius-2);color:var(--fg);font-size:12px;line-height:16px;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.nx-pintip__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-4)}
.nx-pintip__row{display:flex;align-items:center;gap:var(--space-8)}
.nx-pintip__row>.vc-icon{flex:none;color:var(--success)}
.nx-pintip__text{flex:1;min-width:0}
.nx-pintip__undo{flex:none}
.nx-agent-one{margin:0 var(--space-12) var(--space-8)}
.nx-agent-one__head{cursor:pointer;color:var(--fg-muted)}
.nx-agent-one__list{list-style:none;margin:var(--space-4) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--space-4)}
.nx-agent-one__row{display:flex;align-items:center;gap:var(--space-8)}
.nx-agent-one__text{flex:1;min-width:0}
.nx-agent-one__undo{flex:none}
.nx-cuts[aria-pressed="true"]{border-color:var(--fg);background:var(--panel-raised)}
.ed-layer{position:absolute;top:0;bottom:0;left:84px;right:0;pointer-events:none}
.ed-band{position:absolute;top:42px;bottom:0;z-index:2}
.ed-band::before{content:"";position:absolute;inset:0}
.ed-band--proposed{border-left:1px dashed var(--line-control);border-right:1px dashed var(--line-control)}
.ed-band--hover{border:1px solid var(--fg)}
.ed-band--hover::before{background:repeating-linear-gradient(135deg,var(--fg) 0 1px,transparent 1px 6px);opacity:.3}

/* Chat column: the only way to use the editing agent */
.ed-chat{flex:none;width:360px;min-height:0;display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line)}
.ed-chat__head{flex:none;display:flex;align-items:center;gap:var(--space-8);height:40px;padding:0 var(--space-4) 0 var(--space-12);border-bottom:1px solid var(--line)}
.ed-chat__head h2{flex:1;font-size:14px;line-height:20px;font-weight:600}
.ed-pinned{flex:none;display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-8) var(--space-12) var(--space-12);border-bottom:1px solid var(--line)}
.ed-pinned .vc-msg--user{max-width:92%}
.ed-chat__scroll{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:var(--space-16);padding:var(--space-12)}
.ed-chat__foot{flex:none;display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-12);border-top:1px solid var(--line)}
.ed-chips{display:flex;flex-wrap:wrap;gap:var(--space-6)}
.ed .vc-step.is-hover{background:var(--control-hover)}
.ed .vc-plan__foot.ed-applied{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:var(--space-8)}
/* Stage 26q: a column that wraps (the base foot's flex-wrap) made columns of its lines, so a failed graphic's long second line pushed Accept and Undo this turn past the card's edge; no wrap, no 100% basis, long words break */
.ed .vc-plan__foot.ed-applied>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ed .vc-plan__foot.ed-applied>.vc-caption{flex-basis:auto}
.ed-applied__actions{display:flex;flex-wrap:wrap;gap:var(--space-6);margin-left:calc(var(--space-8) * -1)}
.ed .ed-applied__actions .vc-btn--outline{margin-left:var(--space-8)}
.ed-history{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:var(--space-2) var(--space-8);padding:var(--space-4) var(--space-4) var(--space-4) var(--space-12);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised)}
.ed-history>.vc-icon{color:var(--fg-muted)}
.ed-history__text{font-size:13px;line-height:18px;font-weight:600}
.ed-history .vc-caption{grid-column:2 / 4;padding-bottom:var(--space-4)}

/* ---- 4. This page ---- */
html,body{margin:0;height:100%}
body{background:var(--app-bg);color:var(--fg);font-family:var(--font-sans);font-size:13px;line-height:18px}
[hidden]{display:none !important}
.nx-gate{display:flex;align-items:center;justify-content:center;height:100%;color:var(--fg-muted)}
.nx-gate p{margin:0;color:var(--fg)}
.nx-restore{display:flex;flex-direction:column;align-items:center;gap:var(--space-12)}
.nx-restore__acts{display:flex;gap:var(--space-8)}
.vc-save .nx-save__act{margin-left:var(--space-4)}
.nx-dialog{width:400px;max-width:calc(100vw - 32px);padding:var(--space-24);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised);color:var(--fg)}
.nx-dialog::backdrop{background:rgba(0,0,0,.5)}
.nx-dialog__title{margin:0 0 var(--space-12);font-size:16px;line-height:22px;font-weight:600}
.nx-dialog__input{display:block;width:100%;box-sizing:border-box;margin:var(--space-6) 0 var(--space-8);min-height:var(--size-control);padding:0 var(--space-8);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel);color:var(--fg);font:inherit}
.nx-dialog__note{margin:0 0 var(--space-12);font-size:12px;line-height:16px;color:var(--fg-muted)}
.nx-dialog__err{display:block;margin:0 0 var(--space-12)}
.nx-dialog__err[hidden]{display:none}
.nx-dialog__acts{display:flex;justify-content:flex-end;gap:var(--space-8)}
.ed.nx-app{width:100vw;height:100vh;min-width:1280px}
.nx-empty{color:var(--fg-muted)}

/* Stage 5: the project open in the layout */
.nx-title{min-width:0;margin:0;display:flex}
.ed .nx-name{width:280px;max-width:100%;height:var(--size-control);padding:0 var(--space-6);margin-left:calc(var(--space-6) * -1);border:1px solid transparent;border-radius:var(--radius-2);background:transparent;color:var(--fg);font:inherit;font-size:13px;line-height:18px;font-weight:500;text-overflow:ellipsis}
.ed .nx-name:hover{border-color:var(--line)}
.ed .nx-name:focus{border-color:var(--line-control);background:var(--control);outline:none}
.nx-shape{position:relative;display:flex;align-items:center;gap:var(--space-8)}
/* Stage 26r: the shape/crop notice never takes the preview's room (ui/layout.js placeFollow):
   beside a 9:16 frame, or at the top of a timeline that keeps its height while the rows scroll */
.ed-stage>.nx-follow--side{position:absolute;z-index:4;box-sizing:border-box;margin:0;overflow:auto}
.ed-tl>.nx-follow--tl{flex:none;box-sizing:border-box;margin:var(--space-8) var(--space-16) 0;overflow:auto}
.ed:not(.ph) .ed-tl.has-follow .ed-tracks{flex:1 1 0;min-height:0;max-height:none}
.ed .nx-follow--out{position:absolute;left:0;top:0}
/* Move and Dismiss stay in view while a long notice scrolls; in a narrow column their words wrap */
.ed:not(.ph) .nx-follow>.vc-notice__actions{position:sticky;bottom:calc(var(--space-8) * -1);margin-bottom:calc(var(--space-8) * -1);padding-bottom:var(--space-8);background:linear-gradient(var(--warning-bg),var(--warning-bg)),var(--panel-raised)}
.ed-stage>.nx-follow--side .vc-btn{white-space:normal;height:auto;min-height:var(--size-control);text-align:left}
.nx-crop{display:flex;align-items:center;gap:var(--space-8);min-width:0}
.nx-crop__label{white-space:nowrap}
.ed .nx-crop .vc-seg button{white-space:nowrap;padding:0 var(--space-6)}
@media (max-width:1439px){.nx-crop__label{display:none}}
.ed .nx-shape__btn .vc-icon{transform:rotate(180deg)}
.ed .nx-shape__btn[aria-expanded="true"] .vc-icon{transform:none}
.nx-menu{position:absolute;top:calc(100% + var(--space-4));right:0;z-index:30;display:flex;flex-direction:column;min-width:180px;padding:var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-3);background:var(--panel-raised)}
.ed .nx-menu__item{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:var(--space-8);height:var(--size-control);padding:0 var(--space-8);border:0;border-radius:var(--radius-1);background:transparent;color:var(--fg);font-size:13px;line-height:18px;text-align:left}
.ed .nx-menu__item:hover{background:var(--control-hover)}
.nx-menu__check{display:flex}
.nx-strip-icons{display:flex;flex-direction:column;gap:10px;padding:var(--space-4) 0;color:var(--fg-muted)}
/* The frame takes the project's shape (--nx-ar, set by the page) inside the stage. */
.ed .ed-video{align-items:center;container-type:size}
.ed .ed-frame{aspect-ratio:auto;width:min(100cqw, calc(100cqh * var(--nx-ar, .5625)));height:min(100cqh, calc(100cqw / var(--nx-ar, .5625)))}
/* The timeline scrolls both ways; the labels and the ruler stay put. */
.ed .ed-tracks{overflow:auto;max-height:42vh}
.ed:not(.ph) .ed-tracks{max-height:clamp(132px,24vh,190px)}
/* the "new row" drop strip: room under the last row inside the scrolling box */
.ed:not(.ph) .nx-tl-inner{padding-bottom:max(var(--nx-sb-room,14px),30px)}
/* Stage 26q: the rows scroll inside this cap (the ruler stays at the top), so added text, sticker, image and sound rows never squeeze the preview. */
/* Room under the last row for the timeline's horizontal scrollbar: where scrollbars are drawn over the content (macOS, Chrome's overlay bars), it covered the lower half of the bottom row's clips (Stage 9). */
.nx-tl-inner{position:relative;min-width:100%;padding-bottom:var(--nx-sb-room,14px)}
.nx-ruler-row{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:84px minmax(0,1fr);background:var(--timeline-bg)}
.nx-corner{position:sticky;left:0;z-index:5;background:var(--panel);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.ed .nx-ruler{margin-left:0;overflow:hidden;background-image:repeating-linear-gradient(to right,var(--line-control) 0 1px,transparent 1px var(--nx-tick, 10%))}
.ed .nx-tl-inner .vc-track__head{position:sticky;left:0;z-index:4}

/* Stage 6: the preview. Bottom to top: the storyline's videos, overlay picture
   rows, captions (the export draws text over every track picture, Test C1).
   Black behind them, as the export letterboxes in black. */
.nx-pv-story,.nx-pv-layers,.nx-pv-captions{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.nx-pv-story{z-index:1;background:#000}
.nx-pv-story video{position:absolute;inset:0;width:100%;height:100%}
.nx-pv-layers{z-index:2}
.nx-pv-layers video,.nx-pv-layers img{position:absolute;inset:0;width:100%;height:100%;display:none}
.nx-pv-captions{z-index:3}
/* Motion Batch 8: the floating card's canvas (preview/card.js), inside the picture-row host: above the rows
   that replace the picture (z auto), under placed stills (z 2 while the edit has a card) and the graphics. */
.nx-pv-card{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;display:none}
/* Motion Batch 9: the spotlight veil / pointer (preview/spot.js), above the picture rows, the card and placed stills */
.nx-pv-spot{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;display:none}
.nx-pv-story{transition:none}
.nx-pv-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Scrubbing: the ruler and the playhead's flag take a drag; the flag's hit
   area is wider than its 12 px drawing. The snap line marks a cut it landed on. */
.ed .nx-ruler{cursor:ew-resize;touch-action:none}
.nx-tl-inner .vc-playhead__flag{pointer-events:auto;cursor:ew-resize;touch-action:none}
.nx-tl-inner .vc-playhead__flag::after{content:"";position:absolute;inset:-4px -8px}
.ed-tracks.is-scrubbing,.ed-tracks.is-scrubbing *{cursor:ew-resize !important;user-select:none}
.nx-snap{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:var(--playhead);pointer-events:none;z-index:2}
.nx-snap::before{content:"";position:absolute;top:22px;left:-4px;border:4.5px solid transparent;border-top:6px solid var(--playhead);border-bottom:0}
.nx-pv-speed{white-space:nowrap;align-self:center;width:auto;height:28px;font-variant-numeric:tabular-nums}
.nx-pv-speed.is-off{border-color:var(--fg)}
/* Stage 9: trim handles (hit areas; the design's bars are .is-selected's own), at most a quarter of the clip so its middle always selects; the bar's message line */
/* Clip handles (Nov 2026 design, artifact "Clip handles"). The grab zone is 8px (at most a
   quarter of the clip) inside each edge. Nothing is drawn at rest; hovering a clip hints both
   edges in line-control gray; hovering an edge, or selecting the clip, draws the 8px fg handle
   with two grip ticks; the edge being dragged turns playhead white. */
.nx-trim{position:absolute;top:0;bottom:0;width:min(8px,25%);z-index:2;cursor:ew-resize;touch-action:none;display:flex;align-items:center;justify-content:center;gap:2px}
.nx-trim--l{left:0}
.nx-trim--r{right:0}
.nx-trim::before,.nx-trim::after{content:"";width:1px;height:12px;background:var(--ink-inverse);opacity:0}
.ed .vc-clip:not(.is-selected):hover>.nx-trim{background:linear-gradient(var(--line-control),var(--line-control)) no-repeat;background-size:3px calc(100% - 6px)}
.ed .vc-clip:not(.is-selected):hover>.nx-trim--l{background-position:3px 3px}
.ed .vc-clip:not(.is-selected):hover>.nx-trim--r{background-position:calc(100% - 3px) 3px}
.ed .vc-clip>.nx-trim:hover,.vc-clip.is-selected>.nx-trim{background:var(--fg);background-size:auto}
.ed .vc-clip>.nx-trim:hover::before,.ed .vc-clip>.nx-trim:hover::after,.vc-clip.is-selected>.nx-trim::before,.vc-clip.is-selected>.nx-trim::after{opacity:1}
.ed .vc-clip>.nx-trim--l:hover,.vc-clip.is-selected>.nx-trim--l{border-radius:var(--radius-1) 0 0 var(--radius-1)}
.ed .vc-clip>.nx-trim--r:hover,.vc-clip.is-selected>.nx-trim--r{border-radius:0 var(--radius-1) var(--radius-1) 0}
.ed-tracks.is-trimming[data-trim-side="l"] .vc-clip.is-selected>.nx-trim--l,.ed-tracks.is-trimming[data-trim-side="r"] .vc-clip.is-selected>.nx-trim--r{background:var(--playhead)}
.ed-tracks.is-trimming .vc-clip.is-selected .vc-clip__dur{display:none}
.vc-clip>.vc-clip__name{min-width:0}
/* A clip too thin for two handles draws them just outside its edges once selected. */
.ed .vc-clip.nx-clip--thin.is-selected{overflow:visible;z-index:3}
.ed .vc-clip.nx-clip--thin.is-selected>.nx-trim{width:5px}
.ed .vc-clip.nx-clip--thin.is-selected>.nx-trim--l{left:-6px}
.ed .vc-clip.nx-clip--thin.is-selected>.nx-trim--r{right:-6px}
.ed .vc-clip.nx-clip--thin.is-selected>.nx-trim::before,.ed .vc-clip.nx-clip--thin.is-selected>.nx-trim::after{display:none}
.ed-tracks.is-trimming,.ed-tracks.is-trimming *{cursor:ew-resize !important;user-select:none}
/* Nov 2026: a left-handle trim leaves the part being cut in place, hatched, until release; the clip whose edge moves draws over its neighbour when footage is added; the readout rides above the grabbed edge. */
.vc-clip.nx-ghost{background:repeating-linear-gradient(135deg,var(--control) 0 2px,var(--track-lane) 2px 6px);border:1px dashed var(--clip-edge);border-right:0;padding:0;pointer-events:none}
.vc-clip.is-leading{z-index:3}
.nx-trim-tip{position:absolute;top:2px;transform:translateX(-50%);padding:4px 8px;background:var(--tooltip);border:1px solid var(--line-control);border-radius:var(--radius-2,4px);color:var(--fg);font-size:11px;line-height:14px;white-space:nowrap;pointer-events:none;z-index:6}
.nx-trim-tip__n{color:var(--fg-muted);font-family:var(--font-sans)}
.nx-tl-note{margin-left:var(--space-8);color:var(--fg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ed .vc-clip.nx-clip--thin{padding:0}
.ed .vc-clip.nx-clip--thin>:not(.nx-trim){display:none}
/* Stage 9: cut markers (display only), the I/O snap guides, the reorder drop line, a clip being dragged, the delete confirm, the clip toolbar slot, the shortcuts panel */
.nx-cut{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--error);opacity:.7;pointer-events:none;z-index:1}
.nx-cut.is-current{width:4px;margin-left:-2px;opacity:1;box-shadow:0 0 0 1px var(--fg)}
.nx-io{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed var(--fg-muted);pointer-events:none}
.nx-io-region{position:absolute;top:0;bottom:0;background:var(--fg);opacity:.06;pointer-events:none}
.nx-drop{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--fg);pointer-events:none;z-index:2}
.ed .vc-clip.is-dragging{opacity:.75;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.ed-tracks.is-dragging,.ed-tracks.is-dragging *{cursor:grabbing !important;user-select:none}
.nx-confirm{position:fixed;z-index:50;display:flex;align-items:center;gap:var(--space-8);padding:var(--space-8) var(--space-12);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised);color:var(--fg);font-size:13px;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.nx-confirm{border-color:var(--error);box-shadow:0 0 0 2px rgba(229,72,77,.45),0 6px 20px rgba(0,0,0,.5)}
.is-asking{outline:2px solid var(--error);outline-offset:-2px;background-image:linear-gradient(rgba(229,72,77,.28),rgba(229,72,77,.28))}
.nx-cliptools{display:flex;justify-content:center}
.nx-cliptools[hidden]{display:none}
.nx-keys{width:920px}
.nx-keys__head{display:flex;align-items:center;justify-content:space-between}
.nx-keys__body{column-count:3;column-gap:var(--space-24);max-height:calc(100vh - 140px);overflow:auto}
.nx-keys__group{break-inside:avoid;margin-bottom:var(--space-16)}
.nx-keys__group h3{margin:0 0 var(--space-6)}
.nx-keys__row{display:flex;align-items:center;gap:var(--space-8);padding:2px 0;font-size:12px;line-height:16px}
.nx-keys__row .vc-key{min-width:56px;justify-content:center;text-align:center}
/* Stage 10a: the Clip settings panel. Its slot takes no box of its own (the panel or the strip is the flex child); the six speeds sit in a 3 x 2 grid (one row doesn't fit 240 px); a label above its control */
.nx-settings{display:contents}
.ed .vc-seg.nx-seg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.nx-set-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4)}
.nx-set-field>.ed-slider{align-self:stretch}
.nx-set-field>.nx-seg-grid{align-self:stretch}
.nx-set-val{min-width:44px;text-align:right}
.ed-settings .vc-field .vc-field__label{flex:1;min-width:0}
/* Stage 10a: with the settings panel open the preview column is narrower; the clip toolbar stays one line and a long name shortens instead of pushing Delete to a second line */
.nx-cliptools{max-width:100%;min-width:0}
.nx-cliptools .vc-cliptoolbar{flex-wrap:nowrap;max-width:100%;min-width:0}
.nx-cliptools .vc-cliptoolbar>.vc-btn,.nx-cliptools .vc-cliptoolbar>.vc-sep{flex:none}
.nx-cliptools .vc-cliptoolbar__label{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap}
.nx-cliptools .vc-cliptoolbar__label>.vc-tc{flex:none}
.nx-cliptools__name{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Stage 10b: texts on the preview (classic .ed-ov recipe: centred box, pre-wrap, 92% wide at most), its 44 px tap area, the selection outline and handles (corners resize, the rest move), the snapping guide lines */
.nx-pv-graphics{position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none}
/* Motion Batch 6 (smooth_motion): circle-to-zoom. Armed, the preview takes the stroke (a crosshair);
   the stroke is drawn over the graphics layer as it goes. */
.nx-circling{cursor:crosshair}
.nx-circling .nx-pv-graphics{pointer-events:auto}
.nx-circle-stroke{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.nx-circle-stroke path{fill:none;stroke:var(--accent);stroke-width:3px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.nx-circle-zoom{display:flex;margin-top:var(--space-4)}
.nx-circle-zoom .vc-btn[aria-pressed="true"]{border-color:var(--accent);color:var(--fg);background:var(--control-selected)}
.nx-tx{position:absolute;pointer-events:auto;cursor:move;line-height:1.15;white-space:pre-wrap;text-align:center;user-select:none;-webkit-user-select:none;touch-action:none;max-width:92%;display:none}
.nx-pv-behind{position:absolute;pointer-events:none;display:block}
.nx-tx.is-selected{outline:1px dashed rgba(255,255,255,.9);outline-offset:3px}
.nx-tx__hit{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% + 44px);height:calc(100% + 44px);min-width:44px;min-height:44px;background:transparent}
.nx-tx__text{position:relative}
.nx-tx__h{position:absolute;width:10px;height:10px;background:#fff;border:1px solid var(--accent);border-radius:2px;display:none;z-index:2;pointer-events:auto}
.nx-tx.is-selected .nx-tx__h{display:block}
.nx-tx__h--nw{left:-5px;top:-5px;cursor:nwse-resize}.nx-tx__h--n{left:calc(50% - 5px);top:-5px;cursor:move}
.nx-tx__h--ne{right:-5px;top:-5px;cursor:nesw-resize}.nx-tx__h--e{right:-5px;top:calc(50% - 5px);cursor:move}
.nx-tx__h--se{right:-5px;bottom:-5px;cursor:nwse-resize}.nx-tx__h--s{left:calc(50% - 5px);bottom:-5px;cursor:move}
.nx-tx__h--sw{left:-5px;bottom:-5px;cursor:nesw-resize}.nx-tx__h--w{left:-5px;top:calc(50% - 5px);cursor:move}
.nx-guide{position:absolute;pointer-events:none;background:var(--accent);z-index:5;display:none}
.nx-guide--x{top:0;bottom:0;width:1px;margin-left:-.5px}
.nx-guide--y{left:0;right:0;height:1px;margin-top:-.5px}
/* Stage 10b: text settings (the box, four fonts in a row, colour swatches, the timing fields) */
.nx-set-textbox{align-self:stretch;min-height:64px;resize:vertical;padding:var(--space-6) var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px/18px var(--font-sans)}
.ed .vc-seg.nx-seg-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Motion Batch 9: the Spotlight choice, two by two (Follow face needs the room) */
.ed .vc-seg.nx-seg-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.nx-swatches{display:flex;flex-wrap:wrap;gap:var(--space-6);align-items:center}
.nx-swatch{width:24px;height:24px;padding:0;border:1px solid var(--line-control);border-radius:var(--radius-pill)}
.nx-swatch[aria-pressed="true"]{outline:2px solid var(--fg);outline-offset:2px}
.nx-swatch--pick{background:var(--control);cursor:pointer}
.nx-set-timerow{display:flex;gap:var(--space-8);align-self:stretch}
.nx-set-tf{display:flex;flex-direction:column;gap:var(--space-2);flex:1;min-width:0}
.nx-set-time{width:100%;height:var(--size-control);padding:0 var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px/18px var(--font-mono)}
.nx-textpanel{display:flex;flex-direction:column;gap:var(--space-12)}
/* Stage 10c: stickers on the preview (classic EL_CSS: the box, its image, the tint canvas, a missing asset hidden, the ghost), and the selected ones' frames: corner handles scale, side handles stretch a shape, the knob above rotates; several selected or locked = no handles */
.nx-el{position:absolute;pointer-events:auto;cursor:move;touch-action:none;user-select:none;-webkit-user-select:none;transform-origin:50% 50%;box-sizing:border-box;display:none}
.nx-el.is-locked{cursor:default}
.nx-el.is-ghost{opacity:.45;pointer-events:none}
.nx-el.is-missing{visibility:hidden;pointer-events:none}
.nx-el__img{position:absolute;inset:0;background-repeat:no-repeat;background-size:100% 100%;background-position:center;pointer-events:none}
.nx-el__tint{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.nx-el__trk,.nx-el__bar{position:absolute;inset:0;background-repeat:no-repeat;background-size:100% 100%;pointer-events:none}
.nx-pv-frames{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.nx-elf{position:absolute;outline:1px dashed rgba(255,255,255,.95);box-shadow:0 0 0 1px rgba(15,23,42,.35);pointer-events:none;transform-origin:50% 50%;box-sizing:border-box}
.nx-elf.is-multi{outline-color:#93C5FD}
.nx-elf.is-locked{outline-style:dotted}
.nx-elf__h{position:absolute;width:10px;height:10px;background:#fff;border:1px solid var(--accent);border-radius:2px;box-sizing:border-box;pointer-events:auto;touch-action:none}
.nx-elf__h::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
.nx-elf__h--nw{left:-5px;top:-5px;cursor:nwse-resize}.nx-elf__h--ne{right:-5px;top:-5px;cursor:nesw-resize}
.nx-elf__h--se{right:-5px;bottom:-5px;cursor:nwse-resize}.nx-elf__h--sw{left:-5px;bottom:-5px;cursor:nesw-resize}
.nx-elf__rot{position:absolute;left:calc(50% - 6px);top:-30px;width:12px;height:12px;border-radius:50%;background:#fff;border:1px solid var(--accent);box-sizing:border-box;cursor:grab;pointer-events:auto;touch-action:none}
.nx-elf__rot::before{content:"";position:absolute;left:4.5px;top:11px;width:1px;height:19px;background:rgba(255,255,255,.95);pointer-events:none}
.nx-elf__rot::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:50%}
.nx-elf.is-rotbelow .nx-elf__rot{top:auto;bottom:-30px}
.nx-elf.is-rotbelow .nx-elf__rot::before{top:auto;bottom:11px}
.nx-elf.is-locked .nx-elf__h,.nx-elf.is-locked .nx-elf__rot,.nx-elf.is-multi .nx-elf__h,.nx-elf.is-multi .nx-elf__rot{display:none}
.nx-elf__s{display:none}
/* Nov 13: the selected image's frame (preview/stillframe.js) uses the sticker frame's look; a finger on an image drags it */
.ed-frame.nx-has-still{touch-action:none}
.nx-elf.is-shape:not(.is-locked):not(.is-multi):not(.is-thin) .nx-elf__h--n,.nx-elf.is-shape:not(.is-locked):not(.is-multi):not(.is-thin) .nx-elf__h--s,.nx-elf.is-shape:not(.is-locked):not(.is-multi):not(.is-narrow) .nx-elf__h--e,.nx-elf.is-shape:not(.is-locked):not(.is-multi):not(.is-narrow) .nx-elf__h--w{display:block}
.nx-elf__h--n{left:calc(50% - 5px);top:-5px;cursor:ns-resize}.nx-elf__h--s{left:calc(50% - 5px);bottom:-5px;cursor:ns-resize}
.nx-elf__h--e{right:-5px;top:calc(50% - 5px);cursor:ew-resize}.nx-elf__h--w{left:-5px;top:calc(50% - 5px);cursor:ew-resize}
.nx-elf-angle{position:absolute;transform:translate(-50%,-100%);background:rgba(15,23,42,.88);color:#fff;font:600 11px/1 var(--font-sans);padding:4px 6px;border-radius:4px;white-space:nowrap;pointer-events:none;display:none}
.nx-elf-angle.is-on{display:block}
/* Stage 10c: the Stickers panel (the design's .ed-stickers grid of tiles, classic's library: a star per tile, the Pro mark, the animated badge, the dark well for white stickers, category tiles) */
.nx-stkpanel{display:flex;flex-direction:column;gap:var(--space-12)}
.nx-stk-body{display:flex;flex-direction:column;gap:var(--space-8)}
.nx-stk-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);flex-wrap:wrap}
.nx-stk-credits{padding:0;height:auto;color:var(--fg-muted);text-decoration:underline}
.nx-credits{width:640px}
.nx-credits__text{margin:var(--space-12) 0 0;max-height:60vh;overflow:auto;white-space:pre-wrap;font:400 11px/16px var(--font-mono);color:var(--fg-muted)}
.nx-stk-sec{margin-top:var(--space-4)}
.nx-stk-grid,.nx-stk-groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}
.nx-stk-cell{position:relative}
.nx-stk-tile{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;padding:var(--space-6);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--control);color:var(--fg-muted)}
.nx-stk-tile:hover{background:var(--control-hover)}
.nx-stk-tile.is-tint,.nx-stk-th.is-tint{background-color:#2B2B2B}
.nx-stk-th{display:block;width:40px;height:40px;background-repeat:no-repeat;background-position:center;background-size:contain}
.nx-stk-pro{position:absolute;left:3px;bottom:3px}
.nx-stk-anim{position:absolute;right:3px;bottom:3px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:rgba(15,23,42,.72);color:#fff}
.nx-stk-anim .vc-icon{width:10px;height:10px}
.nx-stk-star{position:absolute;top:2px;right:2px;width:22px;height:22px;padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--fg-disabled);font-size:13px;line-height:22px}
.nx-stk-star[aria-pressed="true"]{color:#F6C343}
.nx-stk-star:hover{color:var(--fg)}
.nx-stk-gtile{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);width:100%;padding:var(--space-8) var(--space-4) var(--space-6);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font-size:11px;line-height:14px;font-weight:500}
.nx-stk-gtile:hover{background:var(--control-hover)}
.nx-stk-gtile__l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx-stk-head{display:flex;align-items:center;gap:var(--space-8)}
.nx-stk-subs{flex-wrap:wrap}
.nx-stk-chips{display:flex;flex-wrap:wrap;gap:var(--space-6)}
/* Stage 10c: a made sticker's placeholder (the agent's custom graphic; Stage 18 draws it) */
.nx-el.is-made{outline:1px dashed rgba(255,255,255,.8);background:rgba(20,20,20,.45);display:grid;place-items:center;overflow:hidden}
.nx-el__made{display:none;padding:2px 4px;color:#fff;font:600 11px/14px var(--font-sans);text-align:center;pointer-events:none}
.nx-el.is-made .nx-el__made{display:block}
/* Stage 18b: a made sticker being made (a labelled box with a soft shimmer) or failed (a chip); classic elGenCss */
.nx-el-gen{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:6px;pointer-events:none}
.nx-el.is-pending .nx-el-gen{border:2px dashed rgba(255,255,255,.85);background-color:rgba(15,23,42,.55);background-image:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.22) 50%,transparent 70%);background-repeat:no-repeat;background-size:200% 100%;animation:nx-elgen-shim 1.6s linear infinite}
@keyframes nx-elgen-shim{from{background-position:150% 0}to{background-position:-50% 0}}
@media (prefers-reduced-motion:reduce){.nx-el.is-pending .nx-el-gen{animation:none}}
.nx-el.is-failed .nx-el-gen{border:2px dashed #F87171;background:rgba(15,23,42,.55)}
.nx-el-gen__l{color:#fff;font:600 12px/1.25 var(--font-sans);text-align:center;padding:2px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.nx-el-gen__chip{display:flex;flex-direction:column;align-items:center;gap:4px;background:rgba(15,23,42,.92);border-radius:6px;padding:6px 8px;pointer-events:auto;cursor:default}
.nx-el-gen__acts{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.nx-el-gen__acts button{border:1px solid rgba(255,255,255,.6);background:transparent;color:#fff;border-radius:4px;font:600 11px/1 var(--font-sans);min-height:26px;padding:0 8px;white-space:nowrap;cursor:pointer}
.nx-el-gen__acts button:hover{background:rgba(255,255,255,.15)}
.nx-el-gen__acts button:disabled{opacity:.5;cursor:default}
@media (pointer:coarse){.nx-el-gen__acts button{min-height:36px}}
.nx-genedit{display:flex;flex-direction:column;gap:6px}
/* Motion Batch 2 (Nov 18): a scene being built says its stage and time left; a premium one carries the PRO badge; a failed premium scene's chip says its unit came back */
.nx-el-gen__pro{position:absolute;top:6px;left:6px}
.nx-el-gen__note{max-width:220px;color:#fff;font:400 11px/14px var(--font-sans);text-align:center;white-space:normal}
/* the ready notice ("Your scene is ready" [Show me]), above everything but dialogs */
/* Nov 18: no longer bottom-right (it covered the agent's chat box): inside the preview stage's top-right corner (readynote.js notePlace sets left/top), else top centre of the window */
.nx-ready{position:fixed;z-index:50;top:64px;left:50%;transform:translateX(-50%);width:360px;max-width:calc(100vw - 32px);box-sizing:border-box;background:var(--panel-raised);box-shadow:0 6px 20px rgba(0,0,0,.45)}
.nx-ready--placed{transform:none}
.nx-ready__see{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
/* the side-by-side the free-user line opens */
.nx-dialog.nx-sample{width:760px}
.nx-sample__names{display:grid;grid-template-columns:1fr 1fr;margin:0 0 var(--space-6);font:600 12px/16px var(--font-sans);color:var(--fg-muted)}
.nx-sample__vid{display:block;width:100%;aspect-ratio:1280/330;margin:0 0 var(--space-8);border-radius:var(--radius-2);background:#000}
/* the agent card's scenes: the count, a line per scene (press = playhead to it), the premium allowance */
/* the spinner beside the count ("2 scenes designing", "Making 2 graphics"), never over its number */
.nx-agent-making--b2{display:flex;align-items:center;gap:var(--space-4)}
.nx-agent-scenes__list{list-style:none;margin:var(--space-4) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--space-2)}
.nx-agent-scene{justify-content:flex-start;gap:var(--space-6);height:auto;min-height:28px;text-align:left;white-space:normal}
.nx-agent-scene__note{margin:var(--space-2) 0 var(--space-4) var(--space-8)}
.nx-agent-premium{margin:var(--space-4) 0 0}
/* Nov 22: scenes still being built that no applied card lists (a block in the chat), and [Export without it] */
.nx-agent-wait{padding:var(--space-8);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised)}
.nx-agent-without{margin:var(--space-4) 0 0;height:auto;min-height:28px;max-width:100%;white-space:normal;text-align:left}
.nx-genedit .nx-set-tf input{width:100%;box-sizing:border-box}
/* Stage 10d: sticker settings (classic's element inspector in the design's parts): "No color" swatch, the shape menu, the points stepper, button rows, pressed toggles, the emoji note's button; the Stickers panel's replace bar */
.nx-swatch--none{position:relative;background:var(--control);overflow:hidden}
.nx-swatch--none::after{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:2px;margin-left:-1px;background:#FF3B30;transform:rotate(45deg)}
.nx-set-select{align-self:stretch;height:var(--size-control);padding:0 var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px/18px var(--font-sans)}
.nx-set-stepper{display:flex;align-items:center;gap:var(--space-8)}
.nx-set-stepper .vc-btn{min-width:32px;justify-content:center}
.nx-set-btnrow{display:flex;flex-wrap:wrap;gap:var(--space-6)}
.nx-set-btnrow .vc-btn[aria-pressed="true"]{background:var(--control-hover);border-color:var(--fg);color:var(--fg)}
.nx-set-emoji{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-6)}
.nx-set-emoji[hidden]{display:none}
.nx-stk-replace{display:flex;align-items:center;gap:var(--space-8)}
.nx-stk-replace[hidden]{display:none}
.nx-stk-replace .vc-notice__body{flex:1}
/* Stage 11a: adding footage. The empty frame (choose or drop a video, the sample), the status line over the transport (classic's stage pill), the Media panel's drop state and a failed row */
.nx-empty{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-8);padding:var(--space-16);text-align:center;background:var(--surface-sunken,#111)}
.nx-empty[hidden]{display:none}
.nx-empty__title{margin:0;font:600 15px/20px var(--font-sans);color:var(--fg)}
.nx-txstatus{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-8);padding:var(--space-4) var(--space-8);font:400 12px/16px var(--font-sans);color:var(--fg-muted);white-space:nowrap}
.nx-txstatus[hidden]{display:none}
.nx-txstatus.is-note{white-space:normal}
.nx-txstatus.is-error .nx-txstatus__text{color:var(--danger,#F87171)}
.nx-txstatus .vc-queue-upsell{color:var(--fg);text-decoration:underline}
.nx-mediapanel{display:flex;flex-direction:column;gap:var(--space-8);border-radius:var(--radius-2)}
.nx-mediapanel.is-drop{outline:2px dashed var(--line-control);outline-offset:4px}
.nx-waitline .vc-notice__body{color:var(--fg-muted)}
.nx-waitline .vc-notice__body+.vc-notice__body{margin-top:var(--space-2)}
.nx-waitline .vc-queue-upsell,.nx-agent-qoffer .vc-queue-upsell,.nx-xp-qoffer .vc-queue-upsell{color:var(--fg);text-decoration:underline}
.vc-msg--busy .nx-agent-qoffer{display:block;margin-top:var(--space-4);font-size:12px;line-height:16px}
.nx-agent-waitacts{display:flex;flex-wrap:wrap;gap:var(--space-6);margin-top:var(--space-8)}
.nx-row-error{color:var(--danger,#F87171)}
/* The media bin (Stage 11b) */
/* The name keeps a readable minimum: when the status + buttons don't fit beside it (es "En la línea de tiempo" +
   "Añadir otra vez", pt-br too) they drop to a second line, right-aligned, instead of squeezing the name to nothing */
.nx-bin-row{display:flex;flex-wrap:wrap}
.nx-bin-row .ed-row__text{flex:1 1 96px}
.nx-bin-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:var(--space-4);min-width:0;margin-left:auto}
.nx-bin-img{display:block;width:40px;height:40px;object-fit:cover}
.nx-bin-row[draggable="true"]{cursor:grab}
/* Nov 13 (bug 2): the first-time hint above the Media list */
.nx-bin-hint{margin:0 0 var(--space-4)}
.nx-bin-hint .vc-btn{grid-column:2;justify-self:start}
.nx-bin-row.is-expired .ed-row__name{text-decoration:line-through}
.nx-bin-row.is-expired .ed-thumb,.nx-bin-row.is-expired .ed-row__text{opacity:.7}
.nx-bin-del{padding:0;width:var(--size-control,28px);justify-content:center}
.nx-bin-usage{margin-top:var(--space-4)}
.nx-bin-usage .vc-meter{width:64px}
.nx-drop-label{position:absolute;top:2px;margin-left:6px;padding:1px 6px;border-radius:var(--radius-1);background:var(--panel-raised);border:1px solid var(--line);white-space:nowrap;pointer-events:none;z-index:3}
.nx-drop-label.is-blocked{color:var(--warning)}

/* Stage 11c: the Audio panel (your sound files, the sound effects library) */
.nx-audiopanel{display:flex;flex-direction:column;gap:var(--space-8);border-radius:var(--radius-2)}
.nx-audiopanel.is-drop{outline:2px dashed var(--line-control);outline-offset:4px}
.nx-audiopanel .ed-list[hidden],.nx-audiopanel .vc-field__label[hidden]{display:none}
.nx-sfx-title{margin-top:var(--space-8)}
.nx-sfx-search{position:relative;display:flex;align-items:center}
.nx-sfx-search .ed-search{padding-right:32px}
.nx-sfx-search .ed-search::-webkit-search-cancel-button{display:none}
.nx-sfx-clear{position:absolute;right:2px;padding:0;width:28px;height:28px;justify-content:center}
.nx-sfx-clear[hidden]{display:none}
.nx-sfx-body{display:flex;flex-direction:column;gap:var(--space-8)}
.nx-sfx-sect{margin-top:var(--space-4)}
.nx-sfx-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6)}
.nx-sfx-tile{display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);width:100%;min-height:36px;padding:var(--space-6) var(--space-8);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:500 12px/16px var(--font-sans);text-align:left}
.nx-sfx-tile:hover{background:var(--control-hover)}
.nx-sfx-tile__l{min-width:0;overflow:hidden;text-overflow:ellipsis}
.nx-sfx-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.nx-sfx-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:var(--space-8);padding:var(--space-4) 0;border-radius:var(--radius-2)}
.nx-sfx-row:hover{background:var(--control-hover)}
.nx-sfx-play{padding:0;width:28px;height:28px;justify-content:center;border-radius:var(--radius-pill)}
.nx-sfx-play.is-playing{background:var(--accent);color:var(--on-accent)}
.nx-sfx-meta{display:flex;flex-direction:column;min-width:0}
.nx-sfx-meta .ed-row__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx-sfx-pro{margin-left:var(--space-4);vertical-align:1px}
.nx-sfx-add{height:28px}
.nx-sfx-widen{align-self:flex-start}
.nx-sfx-page{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);padding-top:var(--space-6)}
.nx-sfx-h:focus{outline:none}
/* Stage 12: the Transcript panel */
.nx-txpanel{display:flex;flex-direction:column;gap:var(--space-8)}
.nx-txpanel [hidden]{display:none!important}
.nx-tx-find{display:flex;align-items:center;gap:var(--space-2)}
.nx-tx-find .ed-search{flex:1;min-width:0}
.nx-tx-find .vc-btn{padding:0 var(--space-6)}
.nx-tx-count{min-width:44px;text-align:right;white-space:nowrap}
.nx-tx-down .vc-icon{transform:rotate(180deg)}
.nx-tx-actions{display:flex}
.ed-line.nx-tx-para{user-select:none;-webkit-user-select:none}
.ed-line.nx-tx-para:hover{background:transparent}
.nx-tx-ts{align-self:start;padding:2px 0 0;border:0;background:none;color:var(--fg-muted);text-align:left;cursor:pointer}
.nx-tx-ts:hover{color:var(--fg);text-decoration:underline}
.ed-line .vc-tc.is-cut{color:var(--fg-disabled)}
.nx-tx-w{border-radius:3px;cursor:pointer}
.nx-tx-w:hover{background:var(--control-hover)}
.nx-tx-w.is-filler{color:var(--warning)}
.nx-tx-w.is-cut{color:var(--fg-disabled);text-decoration:line-through}
.nx-tx-w.is-match{box-shadow:inset 0 -2px 0 var(--warning)}
.nx-tx-w.is-current{background:var(--warning-bg);box-shadow:inset 0 0 0 1px var(--warning)}
.nx-tx-w.is-playing{background:var(--control-selected);color:var(--fg)}
.nx-tx-w.is-sel{background:var(--accent);color:var(--on-accent)}
.nx-tx-gap{font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)}
.nx-tx-wait{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-6)}
.nx-tx-wait__title{margin:0;font-size:13px;line-height:18px;color:var(--fg)}
/* Stage 12: the Tools panel */
.nx-toolspanel{display:flex;flex-direction:column;gap:var(--space-12)}
.nx-toolspanel [hidden]{display:none!important}
.nx-tool-go{align-self:flex-start}
.nx-tool-confirm{display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--panel-raised)}
.nx-tool-q{font-size:13px;line-height:18px;color:var(--fg)}
.nx-tool-confirm__actions{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.nx-tool-custom{flex-direction:column;align-items:flex-start;gap:var(--space-4)}
.nx-tool-len{width:120px}
/* Stage 12: on the timeline, an armed pass's cuts and the transcript's selected words */
.nx-pending,.nx-txsel{position:absolute;top:0;bottom:0;pointer-events:none;z-index:1}
.nx-pending{background:color-mix(in srgb,var(--error) 38%,transparent);box-shadow:inset 1px 0 0 var(--error),inset -1px 0 0 var(--error)}
.nx-txsel{background:color-mix(in srgb,var(--accent) 40%,transparent);box-shadow:inset 0 0 0 1px var(--accent)}
/* Stage 13: the Captions panel */
.nx-cappanel{display:flex;flex-direction:column;gap:var(--space-12)}
.nx-cappanel [hidden]{display:none!important}
.nx-cap-gen{align-self:flex-start}
.nx-cap-tabs{align-self:flex-start}
.nx-cap-style,.nx-cap-lines{display:flex;flex-direction:column;gap:var(--space-8)}
.nx-cap-masknote{margin:0}
.ed-line.nx-capline{grid-template-columns:44px minmax(0,1fr);align-items:start;padding:var(--space-2) var(--space-4)}
.ed-line.nx-capline:hover{background:transparent}
.ed-line.nx-capline.is-picked,.ed-line.nx-capline.is-picked:hover{background:var(--control-selected)}
.nx-cap-ts{align-self:start;padding:7px 0 0;border:0;background:none;color:var(--fg-muted);text-align:left;cursor:pointer}
.nx-cap-ts:hover{color:var(--fg);text-decoration:underline}
.nx-capline__main{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.nx-cap-notes{display:flex;flex-wrap:wrap;gap:var(--space-4)}
.nx-cap-notes:empty{display:none}
.nx-cap-note{display:inline-flex;align-items:center;padding:0 var(--space-4);border-radius:var(--radius-1);background:var(--control);color:var(--fg-muted);font-size:11px;line-height:16px;font-weight:600;cursor:default}
.nx-cap-note.is-cut,.nx-cap-note.is-long{color:var(--warning)}
/* Stage 13: the caption box on the preview (classic .ed-capbox): first in the
   graphics layer, so a text or sticker over it wins the press; raised when selected */
.nx-capbox{position:absolute;display:none;z-index:0;pointer-events:auto;cursor:move;touch-action:none;user-select:none;-webkit-user-select:none}
.nx-capbox.is-selected{z-index:1000;outline:1px dashed rgba(255,255,255,.9);outline-offset:3px}
.nx-capbox__hit{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% + 16px);height:calc(100% + 16px);min-width:44px;min-height:44px}
.nx-capbox__h{position:absolute;width:10px;height:10px;background:#fff;border:1px solid var(--accent);border-radius:2px;display:none;z-index:1;touch-action:none}
.nx-capbox.is-selected .nx-capbox__h{display:block}
.nx-capbox__h--nw{left:-5px;top:-5px;cursor:nwse-resize}.nx-capbox__h--ne{right:-5px;top:-5px;cursor:nesw-resize}
.nx-capbox__h--se{right:-5px;bottom:-5px;cursor:nwse-resize}.nx-capbox__h--sw{left:-5px;bottom:-5px;cursor:nesw-resize}
@media (pointer:coarse){.nx-capbox__h::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}}
.nx-capguides{position:absolute;inset:0;z-index:4;pointer-events:none;display:none}
.nx-capguides.is-on{display:block}
.nx-capguide{position:absolute;box-sizing:border-box;border:1px dashed rgba(255,255,255,.85);background:rgba(15,23,42,.18)}
.vc-clip[data-cap]{cursor:pointer}
/* Stage 13: the shared caption picker (js/caption-picker.js, unmodified) in the
   editor's dark panel. Its own sheet is for the light site pages; these rules
   only re-colour and re-size it with the design system's tokens. */
.nx-cap-picker .vcc-picker{gap:var(--space-12)}
.nx-cap-picker .vcc-tiles{gap:var(--space-6)}
.nx-cap-picker .vcc-tile{min-height:44px;border:1px solid var(--line-control);border-radius:var(--radius-2);background:#0f1722;font-size:12px}
.nx-cap-picker .vcc-tile.vcc-tile-pro{padding-top:20px}
/* A style name stays whole in the 3-tile column ("Cinematográfico" broke to "Cinemato-gráfico" in pt-br/es):
   no hyphenation, tighter side padding and a 10.5px label, which the picker's own 13px editor rule (loaded later) needs the extra class to beat */
.nx-cap-picker .vcc-picker-editor .vcc-tile{font-size:10.5px;padding-left:1px;padding-right:1px;hyphens:none;overflow-wrap:normal}
.nx-cap-picker .vcc-tile[aria-checked="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent) inset}
.nx-cap-picker .vcc-tile:focus-visible,.nx-cap-picker .vcc-opt:focus-visible,.nx-cap-picker .vcc-sw:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.nx-cap-picker .vcc-pro{top:3px;right:3px;padding:0 var(--space-4);border:1px solid var(--line-control);border-radius:var(--radius-1);background:var(--panel);color:var(--fg);font:600 10px/14px var(--font-sans);letter-spacing:.06em}
.nx-cap-picker .vcc-label{font:500 12px/16px var(--font-sans);color:var(--fg-muted)}
.nx-cap-picker .vcc-opts{gap:var(--space-2)}
.nx-cap-picker .vcc-opt{min-height:24px;min-width:0;padding:0 var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg-muted);font:500 12px/16px var(--font-sans)}
.nx-cap-picker .vcc-opt:hover{background:var(--control-hover);color:var(--fg)}
.nx-cap-picker .vcc-opt[aria-checked="true"]{background:var(--toggle-on);border-color:var(--toggle-on);color:var(--ink-inverse);font-weight:600}
.nx-cap-picker .vcc-sw{width:24px;height:24px;border:1px solid var(--line-control)}
.nx-cap-picker .vcc-sw[aria-checked="true"]{box-shadow:0 0 0 2px var(--panel),0 0 0 4px var(--toggle-on)}
.nx-cap-picker .vcc-select{min-height:var(--size-control);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px var(--font-sans)}
.nx-cap-picker .vcc-note{font:400 11px/14px var(--font-sans);color:var(--fg-muted)}
.nx-cap-picker .vcc-custom>summary{font:600 12px/16px var(--font-sans);color:var(--fg)}
.nx-cap-picker .vcc-check{min-height:var(--size-control);font:500 12px/16px var(--font-sans);color:var(--fg)}
.nx-cap-picker .vcc-check input{width:16px;height:16px;accent-color:var(--accent)}
.nx-cap-picker .vcc-range{min-height:24px;accent-color:var(--accent)}
@media (pointer:coarse){.nx-cap-picker .vcc-opt,.nx-cap-picker .vcc-select,.nx-cap-picker .vcc-check{min-height:var(--size-touch)}}
/* ---- Export (Stage 14): the button's place, its status, the dialog, the done card ---- */
.nx-xp-slot{position:relative;display:flex;align-items:center}
.nx-xp-status{position:absolute;top:calc(100% + var(--space-8));right:0;z-index:30;width:320px;box-sizing:border-box}
.nx-xp-status[hidden]{display:none}
.nx-xp-status>.vc-spin{margin-top:2px}
.nx-xp-status .vc-notice__actions{margin-top:var(--space-2)}
.nx-xp-status .nx-xp-offer{margin-top:var(--space-4);color:var(--fg-muted)}
.nx-xp-mail{grid-column:2;margin-top:var(--space-4)}
.nx-xp-mail[hidden],.nx-xp-mail [hidden]{display:none}
.nx-xp-mail__open{margin-left:calc(var(--space-8) * -1)}
.nx-xp-mail__row{display:flex;gap:var(--space-6);align-items:center}
.nx-xp-mail__row .nx-dialog__input{margin:0;flex:1;min-width:0}
.nx-xp-mail__msg{margin:var(--space-4) 0 0;color:var(--fg)}
.nx-xp{width:420px}
.nx-xp-field{display:flex;flex-direction:column;gap:var(--space-6);margin:0 0 var(--space-12)}
.ed .vc-seg.nx-xp-seg,.nx-xp .vc-seg.nx-xp-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.nx-xp-seg button:disabled{opacity:.45;cursor:not-allowed}
.nx-xp-pro{margin-left:var(--space-4)}
.nx-xp-switches{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-12);margin:var(--space-4) 0 var(--space-12)}
.nx-xp-note{margin-top:calc(var(--space-6) * -1)}
.nx-xp-note--warn{color:var(--warning)}
.nx-xp-block{display:block;margin:0 0 var(--space-12)}
.nx-xp-done__head{display:flex;align-items:center;gap:var(--space-8);margin-bottom:var(--space-8)}
.nx-xp-done__head .nx-dialog__title{margin:0}
.nx-xp-done__head>.vc-icon{color:var(--success)}
.nx-xp-done__name{color:var(--fg)}
.nx-xp-done__notes{margin:0 0 var(--space-12)}
.nx-xp-done__notes .nx-dialog__note{margin:0 0 var(--space-4);color:var(--warning)}
/* Stage 15: the Pro walls (the Pro notice: lock icon, outline Get Pro), the
   resolution card's side-by-side frame, the done card's email and Pro line. */
.nx-wall .vc-notice__title .vc-pro{margin-left:var(--space-4);vertical-align:1px}
.nx-wall .vc-notice__body+.vc-notice__body{margin-top:var(--space-4)}
.nx-wall__note,.nx-wall__after{color:var(--fg-muted)}
.nx-wall__after{margin-top:var(--space-4)}
.nx-wall__err{margin-top:var(--space-8)}
.nx-xp .nx-wall,.nx-xp-done .nx-wall{margin:0 0 var(--space-12)}
.nx-xp .nx-wall+.nx-wall__err,.nx-xp-done .nx-wall+.nx-wall__err{margin:calc(var(--space-4) * -1) 0 var(--space-12)}
/* Nov 13, the offer block: Get Pro (filled, the price in it), the yearly line,
   the caption, then the wall's own buttons; full width at phone width. */
.nx-offer{grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4);margin-top:var(--space-8)}
.nx-offer__buy{max-width:100%;white-space:normal;text-align:left;justify-content:center}
.nx-offer--first .nx-offer__buy{min-height:var(--size-control-lg);height:auto;padding-block:var(--space-4)}
.nx-offer__yearly{padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:12px;line-height:16px;text-align:left;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.nx-offer__yearly:hover{color:var(--accent-hover)}
.nx-offer__yearly:disabled{color:var(--fg-disabled);text-decoration:none;cursor:default}
.nx-offer__caption,.nx-offer__note{margin:0}
.nx-wall .nx-offer__own{margin-left:0;margin-top:var(--space-8)}
.nx-wall .nx-offer+.nx-offer__own{margin-top:var(--space-4)}
.nx-wall .nx-offer__own+.nx-offer{margin-top:var(--space-8)}
html.nx-phone .nx-offer{align-items:stretch}
html.nx-phone .nx-offer__buy{width:100%;min-height:var(--size-touch)}
html.nx-phone .nx-offer__yearly{min-height:var(--size-touch)}
.nx-wall-dlg{width:380px}
.nx-wall-dlg .nx-wall__err{margin-top:var(--space-12)}
.nx-rc{grid-column:2;margin:var(--space-4) 0}
.nx-rc__row{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-8)}
.nx-rc__pane{margin:0}
.nx-rc__pane canvas{display:block;width:100%;aspect-ratio:4/3;border:1px solid var(--line);border-radius:var(--radius-1);background:var(--control)}
.nx-rc__pane figcaption{margin-top:var(--space-2);font-size:11px;line-height:14px;color:var(--fg-muted)}
.nx-rc__pane.is-pro figcaption{color:var(--fg)}
.nx-rc__cap{margin:var(--space-4) 0 0;font-size:11px;line-height:14px;color:var(--fg-muted)}
.nx-rc.is-loading canvas{opacity:.4}
.nx-xp-email{margin:0 0 var(--space-12);padding-top:var(--space-12);border-top:1px solid var(--line)}
.nx-xp-email__t{margin:0 0 var(--space-2)}
.nx-xp-email__row{display:flex;gap:var(--space-8);align-items:center}
.nx-xp-email__row[hidden]{display:none}
.nx-xp-email__row .nx-dialog__input{margin:0;flex:1}
.nx-xp-email .nx-dialog__note{margin:var(--space-4) 0}
.nx-xp-email__opt{display:flex;align-items:center;gap:var(--space-6);font-size:12px;line-height:16px;color:var(--fg-muted)}
.nx-xp-email__msg{margin:var(--space-6) 0 0;color:var(--fg)}
.nx-xp-email__msg[hidden]{display:none}
/* Stage 17: the editing agent column. The Plan lane stays under the ruler
   while the rows scroll; the bands sit over the rows (their top is set
   from the ruler and lane's height). The column's notices, question round,
   D1 slot and links in the design system's parts. */
.nx-changes{position:sticky;top:24px;z-index:2;background:var(--timeline-bg)}
.nx-changes .ed-changes__head{position:sticky;left:0;z-index:5}
.nx-changes .ed-changes__lane{overflow:hidden}
.nx-plan-bands{position:absolute;inset:0;pointer-events:none}
.ed-chat .ed-pinned[hidden]{display:none}
.ed-chat .vc-plan__foot .vc-caption{flex-basis:100%}
.nx-agent-style{color:var(--fg)}
.nx-agent-changes{margin:6px 0 0}
.nx-agent-changes__head{font-weight:600;color:var(--fg)}
.nx-agent-changes__list{margin:2px 0 0;padding:0 0 0 16px}
.nx-agent-changes__list li{margin:2px 0;overflow-wrap:anywhere}
/* Nov 15: the plan self-check. A suggestion comes unticked: muted, never struck through. */
.vc-step--suggest input:not(:checked)~.vc-step__text{text-decoration:none}
/* A warning chip on a planned cut's row: an atomic inline box (no strike-through
   from its row), wraps under the line on a narrow column. */
.nx-agent-warns{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);max-width:100%;margin:var(--space-2) 0 0 var(--space-6);vertical-align:top}
.nx-agent-warn{display:inline-flex;align-items:center;gap:var(--space-4);max-width:100%;min-height:20px;margin:0;padding:1px var(--space-6);border:1px solid var(--warning-line);border-radius:var(--radius-pill);background:var(--warning-bg);color:var(--fg);font:500 11px/16px var(--font-sans);text-align:left;cursor:pointer}
.nx-agent-warn:hover{border-color:var(--warning)}
.nx-agent-warn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.nx-agent-warn .vc-icon{width:12px;height:12px;color:var(--warning)}
.nx-agent-warn__text{min-width:0;overflow-wrap:anywhere}
.nx-agent-warn__more{font:500 11px/16px var(--font-sans);color:var(--fg-muted);font-variant-numeric:tabular-nums}
@media (pointer:coarse){.nx-agent-warn{min-height:28px;padding-inline:var(--space-8)}}
.nx-agent-q__item{display:flex;flex-direction:column;gap:var(--space-6);padding:var(--space-8) var(--space-12);border-top:1px solid var(--line)}
.nx-agent-q__text{margin:0;font-size:13px;line-height:18px}
.nx-agent-qtext{width:100%;min-height:36px;padding:var(--space-6) var(--space-8);border:1px solid var(--line-control);border-radius:var(--radius-2);background:var(--control);color:var(--fg);font:400 13px/18px var(--font-sans);resize:vertical}
.nx-agent-qtext::placeholder{color:var(--fg-muted)}
.nx-agent-link{color:var(--fg);text-decoration:underline}
.nx-agent-slot:empty{display:none}
/* Stage 26l (S7): the chat box's character counter, under the box. */
.nx-agent-composer{display:flex;flex-direction:column;gap:var(--space-4)}
.nx-agent-count{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.nx-agent-count[hidden]{display:none}
.nx-agent-count[data-level=warn]{color:var(--warning)}
.nx-agent-count[data-level=over]{color:var(--error)}
.nx-agent-q__item .nx-agent-count{text-align:left}
.ed-chat .vc-msg--busy .vc-msg__text .vc-btn{margin-left:auto}
.nx-changes[hidden]{display:none}
/* Stage 18: the applied card's questions (Undo this turn, Replace, Revert),
   its "check placement" list, the history line's question, and "Learn from
   my edits" at the column's foot (the design system's switch, which shows
   its word). */
.nx-agent-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-6)}
.nx-agent-confirm>.vc-caption{flex-basis:100%;color:var(--fg)}
.ed-history .nx-agent-confirm{grid-column:2 / 4;padding-bottom:var(--space-4);color:var(--fg)}
.nx-agent-crowded{margin:var(--space-4) 0 0;padding:0;list-style:none}
.nx-agent-learn{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8)}
.nx-agent-learn .vc-switch[aria-disabled="true"]{opacity:.6}
.nx-agent-learn-slot:empty{display:none}
/* Stage 23a: J and L cuts. A glyph on each join in the clips' own Audio row (with the cut markers), the tint bar of what ships along the row's foot, and the "Audio across the cut" box */
.nx-seam{position:absolute;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;padding:0;border:1px solid var(--line-control);border-radius:var(--radius-1);background:var(--panel-raised);color:var(--fg-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.nx-seam:hover{color:var(--fg);background:var(--control-hover)}
.nx-seam.is-set{color:var(--fg);border-color:var(--accent)}
.nx-seam.is-blocked{color:var(--warning);border-color:var(--warning-line)}
.nx-seam.is-current{box-shadow:0 0 0 2px var(--focus)}
.nx-seam__ico{width:14px;height:14px}
.nx-seam-bar{position:absolute;bottom:2px;height:4px;border-radius:2px;background:var(--accent);opacity:.85;pointer-events:none;z-index:1}
.nx-jl{position:fixed;z-index:50;width:264px;display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-8) var(--space-12) var(--space-12);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised);color:var(--fg);font-size:13px;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.nx-jl__head{display:flex;align-items:center;justify-content:space-between;font-weight:600}
.nx-jl__seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.nx-jl__seg button:disabled{color:var(--fg-disabled);cursor:not-allowed;background:transparent}
.nx-jl__note{margin:0}
.nx-jl__note.is-warn{color:var(--warning)}
.nx-jl__foot{display:flex;justify-content:flex-end}
/* Stage 23a: the header's Projects link, Sign in (signed out) and Save (never-saved work, or another tab holds the save lock) */
.ed-head .nx-projects,.ed-head .nx-signin{text-decoration:none}
.nx-signin-slot:empty,.nx-savebtn-slot:empty{display:none}
/* Stage 23b: the free style read's card at the chat's end (free and signed-out viewers): the example, the read's line and Apply, the drafted cuts' review card and the Pro card */
.nx-taste{flex-shrink:0;display:flex;flex-direction:column;gap:var(--space-8);padding:var(--space-12);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel-raised)}
.nx-taste[hidden]{display:none}
.nx-taste h3{margin:0}
.nx-taste__invite{display:flex;flex-direction:column;gap:var(--space-8);align-items:flex-start}
.nx-taste__invite>.vc-caption,.nx-taste__hint{margin:0}
.nx-taste-eg{display:flex;flex-direction:column;gap:var(--space-6);width:100%;padding:var(--space-8);border:1px solid var(--line);border-radius:var(--radius-2);background:var(--panel)}
.nx-taste-eg__row{display:flex;flex-direction:column;gap:2px;margin:0}
.nx-taste-eg__text{font-size:13px;line-height:18px;color:var(--fg)}
.nx-taste-eg__cut{color:var(--fg-muted);text-decoration:line-through}
.nx-taste__row{display:flex;align-items:center;gap:var(--space-8)}
.nx-taste__row .vc-caption{flex:1;min-width:0}
.nx-taste>*,.nx-draft>*,.nx-draft-list>*{flex-shrink:0}
.nx-taste .nx-draft{margin:0}
.nx-draft .vc-plan__head .vc-caption{margin:0}
.nx-draft-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.nx-draft-grp{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-6);padding:var(--space-8) var(--space-12);border-bottom:1px solid var(--line);font-size:13px}
.nx-draft-grp.is-excluded .nx-draft-grp__n{color:var(--fg-muted)}
.nx-draft-grp__actions{display:flex;flex-wrap:wrap;gap:var(--space-4)}
.nx-draft-cuts{margin:0;padding:0 var(--space-12) var(--space-8);list-style:none;max-height:240px;overflow-y:auto}
.nx-draft-cut{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8);padding:var(--space-4) 0;border-bottom:1px solid var(--line)}
.nx-draft-cut.is-excluded .nx-draft-cut__tc{color:var(--fg-muted);text-decoration:line-through}
.nx-draft-cut>.vc-btn:last-of-type{margin-left:auto}
/* Stage 23b review: drafted cuts waiting while the chat is out of sight: a dot on the collapsed strip's button and on the phone's Chat tab */
.vc-strip__btn[data-chat-open],[data-ph-tab="chat"]{position:relative}
.nx-mark-dot{position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:var(--radius-pill);background:var(--error);pointer-events:none}
/* Stage 24: Spanish and Portuguese rail labels ("Transcripción", "Herramientas", "Ferramentas") are wider than
   English's; the rail (and the drawer and scrim that start at its edge) widens to fit them instead of cutting a word */
.ed:lang(es) .vc-rail,.ed:lang(pt) .vc-rail{width:84px}
.ed:lang(es) .vc-rail-item,.ed:lang(pt) .vc-rail-item{letter-spacing:0}
.ed:lang(es) .vc-panel.ed-drawer,.ed:lang(pt) .vc-panel.ed-drawer{left:84px}
.ed:lang(es) .ed-scrim,.ed:lang(pt) .ed-scrim{inset:0 0 0 84px}
/* Stage 26k: when the timeline grows (more rows, up to 42vh) the rail no longer
   fits above it; it scrolls inside its own column instead of drawing its last
   label over the timeline's Split bar (trial screenshot 13) */
.ed .vc-rail{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ed .vc-rail-item{flex:none}
/* 26m lane C: the transcript's search and buttons stay at the top while the lines scroll (the panel body's 12 px padding is taken back so no line shows above it); two buttons side by side; no long-press callout over the words */
.nx-tx-head{position:sticky;top:calc(var(--space-12) * -1);z-index:2;display:flex;flex-direction:column;gap:var(--space-8);margin:calc(var(--space-12) * -1) calc(var(--space-12) * -1) 0;padding:var(--space-12) var(--space-12) var(--space-8);background:var(--panel);border-bottom:1px solid var(--line)}
.nx-tx-actions{gap:var(--space-8);flex-wrap:wrap}
.nx-tx-w{-webkit-touch-callout:none}
/* Stage 26q: free rows carry a label; a long one (es/pt) cuts with an ellipsis, its full word in the title. */
.ed .vc-track__head{min-width:0;overflow:hidden}
.nx-head__t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed .vc-track__head .vc-icon{flex:none}
/* Stage 26q: the rail's labels never cut. es/pt words ("Transcripción", "Herramientas") are set a half point smaller, so the real Inter fits the 84 px rail; anything still wider ends in an ellipsis. On a short window the items tighten, so all seven (Tools last) show without the rail scrolling. */
.vc-rail-item>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed:lang(es) .vc-rail-item,.ed:lang(pt) .vc-rail-item{font-size:10.5px}
@media (max-height:680px) and (pointer:fine){
  .ed .vc-rail{gap:0}
  .ed .vc-rail-item{min-height:44px;padding-block:var(--space-4)}
}
/* Stage 26q: a caption line is a wrapping box that grows to its whole text (it was one 32 px line that cut long ones) */
textarea.ed-search.nx-cap-text{display:block;height:auto;min-height:var(--size-control);padding:6px var(--space-8);resize:none;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;box-sizing:border-box}
.ed .vc-track__head{gap:var(--space-4);padding:0 var(--space-6)}
.ed:lang(es) .vc-track__head,.ed:lang(pt) .vc-track__head{letter-spacing:0;font-size:10px}
/* a two-word es/pt row name ("Audio extra") takes two short lines rather than an ellipsis */
.ed:lang(es) .nx-head__t,.ed:lang(pt) .nx-head__t{white-space:normal;overflow-wrap:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:12px}
/* A clip's punch-in on the timeline ("Zoom 150%"): a small tag before its length, shrinking before the length is cut; a thin clip drops it */
.nx-zoomtag{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;padding:0 var(--space-4);border:1px solid var(--accent);border-radius:var(--radius-1);color:var(--fg);font-size:10px;line-height:14px}
/* The toolbar's Crop lights the Frame section of Clip settings for a moment (settings.js flash) */
/* (an outer ring 6 px out, over a tint, so the ring never touches the section's words) */
@keyframes nx-flash{0%,40%{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 14%,transparent),0 0 0 8px var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}100%{box-shadow:0 0 0 6px transparent,0 0 0 8px transparent;background:transparent}}
.ed-settings .nx-flash{animation:nx-flash 1.6s ease-out;border-radius:var(--radius-1)}
@media (prefers-reduced-motion:reduce){.ed-settings .nx-flash{animation:none;box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 14%,transparent),0 0 0 8px var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}}
.ed-settings .nx-flash-note{margin:0;color:var(--fg)}

/* Nov 2026: preview builds only (header.js isPreviewHost): the signed-out note beside Sign in. */
.nx-signin-wrap{display:inline-flex;align-items:center;gap:var(--space-8)}
.nx-preview-note{color:var(--warning);font-size:12px;line-height:16px;white-space:nowrap}
/* Motion Batch 8: the brand kit (ui/brand.js): the Tools panel section and its dialog. */
.nx-brand__head{display:flex;align-items:center;gap:var(--space-6)}
.nx-brand__row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-6);margin:var(--space-8) 0}
.nx-brand__acts{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-bottom:var(--space-8)}
.nx-brand-sw{display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid var(--line)}
.nx-brand-sw.is-empty{background:repeating-linear-gradient(45deg,transparent 0 3px,var(--line) 3px 4px)}
.nx-brand__fonts{white-space:nowrap}
.nx-brand__logo{height:24px;max-width:72px;object-fit:contain;border-radius:4px;background:repeating-conic-gradient(var(--line) 0 25%,transparent 0 50%) 0 0/8px 8px}
.nx-brand__logo--big{height:40px;max-width:120px}
.nx-brand-dlg{width:440px}
.nx-brand-color{margin-bottom:var(--space-8)}
.nx-brand-dlg .nx-set-field{margin-bottom:var(--space-8)}
.nx-brand-color__in{display:flex;align-items:center;gap:var(--space-8)}
.nx-brand-pick{width:36px;height:32px;padding:0;border:1px solid var(--line);border-radius:var(--radius-2);background:none;cursor:pointer}
.nx-brand-hex{width:96px;margin:0;font-variant-numeric:tabular-nums}
.nx-brand-logo-row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-8);margin:var(--space-12) 0}
.nx-brand-sample{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-8);margin:var(--space-12) 0;padding:var(--space-12);border-radius:var(--radius-2);background:#3a3a3f}
.nx-brand-sample__card{padding:.12em .4em;font-size:20px;line-height:1.2}
.nx-brand-sample__cap{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.nx-brand-del{margin-right:auto}

/* Nov 21: the partner offer card at the bottom of Media and the phone's Add media sheet (ui/partner.js, design D2).
   A quiet bordered text card, one text link, the "Paid link" chip right after it: bold 12 px, full-contrast, outlined, always visible. */
.vc-po{margin-top:var(--space-4);padding:10px var(--space-12);border:1px solid var(--line-control);border-radius:var(--radius-3);background:var(--panel-raised);color:var(--fg);font-size:13px;line-height:18px}
.vc-po[hidden]{display:none}
.vc-po p{margin:0}
.vc-po .vc-po__row{margin-top:var(--space-6);display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-6)}
.vc-po__link{color:#8FB4FF;font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.vc-po__link:hover{color:#B5CDFF}
.vc-po__link:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--radius-1)}
.vc-po__chip{display:inline-block;padding:0 5px;border:1.5px solid var(--fg);border-radius:var(--radius-2);color:var(--fg);font-size:12px;line-height:16px;font-weight:700;white-space:nowrap}
/* No room: a phone on its side (the sheet is a few lines tall) shows no card. */
@media (max-height:500px){.vc-po{display:none}}
