/* Creator workspace: script, preview and one shared transport. */
.creator-workbench {
  --cs-panel:var(--surface,#fff);--cs-bg:var(--bg,#f6f7f8);--cs-soft:var(--sunken,#f3f5f4);
  --cs-border:var(--line,#e5e7e8);--cs-ink:var(--ink,#202824);--cs-muted:var(--ink-2,#68716d);
  --cs-accent:var(--accent-text,#446500);--cs-tint:var(--accent-soft,#eff6df);--cs-preview:#f4f5f3;
  --cs-action:#d4ff4b;--cs-action-hover:#e0ff80;--cs-action-ink:#111807;
  --cs-control-border:var(--line-strong,#8a8a8a);--cs-clip:#536f1e;--cs-clip-ink:#fff;--cs-warning:#86510b;
  --cs-kept:#f2e5c9;--cs-kept-ink:#735621;
  background:var(--cs-panel);border:1px solid var(--cs-border);border-radius:18px;color:var(--cs-ink);
  box-shadow:0 8px 36px #19362906;overflow:hidden;margin-block:12px 40px;font-size:14px;
}
.creator-workbench * {box-sizing:border-box}
.creator-workbench [hidden] {display:none!important}
.creator-workbench svg {width:17px;height:17px;flex-shrink:0;vertical-align:middle}
.creator-workbench button,.creator-workbench input,.creator-workbench select,.creator-workbench textarea {font:inherit}
.creator-workbench button {cursor:pointer;color:inherit}
.creator-workbench button:disabled {cursor:default;opacity:.45}
.creator-workbench :is(button,a,input,textarea,select,summary):focus-visible {outline:2px solid var(--cs-accent);outline-offset:4px}
.creator-workbench .btn {white-space:nowrap;border-radius:8px;font-size:12px;min-height:36px;padding:9px 15px}
.creator-workbench .btn-primary {background:var(--cs-action);border-color:var(--cs-action);color:var(--cs-action-ink)}
.creator-workbench .btn-primary:hover {background:var(--cs-action-hover)}
.creator-icon-button {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border:0;background:transparent;border-radius:6px;text-decoration:none;color:var(--cs-ink)}
.creator-icon-button:hover {background:var(--cs-soft)}
.creator-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Compact project bar. Playback comparison stays in view while editing. */
.creator-topbar {display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(145px,1fr);align-items:center;gap:20px;min-height:76px;padding:16px 24px;position:relative;z-index:5;border-bottom:1px solid var(--cs-border)}
.creator-project-title {display:flex;align-items:center;gap:10px;min-width:0}
.creator-back {margin-inline-start:-8px}
.creator-breadcrumb {display:flex;gap:10px;color:var(--cs-muted);font-size:12px;white-space:nowrap}
.creator-breadcrumb>span {opacity:.6}
.creator-project-title h2 {font-size:15px;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.5;letter-spacing:-.01em}
.creator-project-duration {color:var(--cs-muted);font-size:11px;font-variant-numeric:tabular-nums;direction:ltr;white-space:nowrap}
.creator-listen {display:flex;align-items:center;gap:11px;min-width:0}
.creator-listen>span {font-size:11px;color:var(--cs-muted)}
.creator-ab {display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--cs-control-border);border-radius:24px;min-width:0}
.creator-ab button {background:transparent;border:0;border-radius:20px;padding:8px 13px;white-space:nowrap;font-size:11px;color:var(--cs-muted);line-height:1.3}
.creator-ab button[aria-pressed=true] {background:var(--cs-tint);color:var(--cs-accent);font-weight:600;box-shadow:inset 0 0 0 1px var(--cs-accent)}
.creator-ab button:hover {color:var(--cs-ink)}
.creator-exports {display:flex;justify-content:flex-end;gap:14px;align-items:center}
.creator-publication {display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;min-height:50px;padding:6px 24px;border-bottom:1px solid var(--cs-border);font-size:12px;color:var(--cs-muted)}
.creator-publication .btn {min-height:36px}
.creator-status {display:flex;gap:5px;align-items:center;font-size:10px;color:var(--cs-accent);white-space:nowrap}
.creator-status svg {width:13px;height:13px}
.creator-status.is-warning {color:var(--cs-warning)}
.creator-export-menu {position:relative}
.creator-export-menu>summary {display:flex;align-items:center;gap:8px;background:var(--cs-action);color:var(--cs-action-ink);cursor:pointer;padding:9px 15px;list-style:none;border-radius:24px;font-size:12px;user-select:none}
.creator-export-menu>summary:hover {background:var(--cs-action-hover)}
.creator-export-menu>summary::-webkit-details-marker {display:none}
.creator-export-menu>summary>svg:last-child {width:13px;height:13px;margin-inline-start:4px}
.creator-export-list {position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:270px;max-width:85vw;padding:9px;background:var(--cs-panel);border:1px solid var(--cs-border);border-radius:12px;box-shadow:0 12px 38px #15281f20;z-index:10}
.creator-export-list>span {display:block;padding:8px 10px;font-size:9px;letter-spacing:.1em;color:var(--cs-muted)}
.creator-export-list a {display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:var(--cs-ink);padding:11px 10px;border-radius:6px;font-size:12px}
.creator-export-list a:hover {background:var(--cs-soft)}
.creator-export-list small {display:block;font-size:10px;color:var(--cs-muted);margin-top:3px}
.creator-export-list b {font-size:9px;color:var(--cs-muted);font-weight:500;border:1px solid var(--cs-border);padding:3px 5px;border-radius:4px}
.creator-export-list a.creator-export-all {margin-top:5px;padding-top:14px;border-top:1px solid var(--cs-border);border-radius:0 0 6px 6px}
.creator-languagebar {display:flex;gap:6px;align-items:center;min-height:49px;padding:8px 24px;flex-wrap:wrap;border-bottom:1px solid var(--cs-border);font-size:11px;position:relative;z-index:4}
.creator-languagebar>span:first-child {color:var(--cs-muted);margin-inline-end:10px}
.creator-language-current,.creator-language-link {padding:6px 11px;border-radius:6px;text-decoration:none;white-space:nowrap}
.creator-language-current {color:var(--cs-accent);background:var(--cs-tint);font-weight:600}
.creator-language-link {color:var(--cs-muted)}
.creator-language-link:hover {background:var(--cs-soft);color:var(--cs-ink)}
.creator-languagebar button {display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:6px 9px;color:var(--cs-muted);font-size:11px}
.creator-languagebar button svg {width:13px;height:13px}
.creator-add-language {position:relative}
.creator-language-choice {position:absolute;z-index:20;inset-inline-start:0;top:calc(100% + 6px);width:260px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--cs-control-border);border-radius:9px;background:var(--cs-panel);box-shadow:0 14px 34px rgba(0,0,0,.16)}
.creator-language-choice>p {margin:2px 6px 8px;font-size:10px;line-height:1.6;color:var(--cs-muted)}
.creator-language-options {max-height:280px;overflow:auto;overscroll-behavior:contain}
.creator-language-options label {display:flex;align-items:center;gap:9px;padding:7px 6px;border-radius:6px;color:var(--cs-ink);font-size:12px;cursor:pointer}
.creator-language-options label:hover {background:var(--cs-soft)}
.creator-language-options label:has(input:disabled) {cursor:default;background:transparent}
.creator-language-options input {flex-shrink:0;width:15px;height:15px;margin:0;accent-color:var(--cs-accent);cursor:pointer}
.creator-language-options input:disabled+span {opacity:.45}
.creator-language-options small {margin-inline-start:auto;font-size:10px;color:var(--cs-muted)}
.creator-language-options .creator-language-all {font-weight:600;border-bottom:1px solid var(--cs-border);border-radius:6px 6px 0 0;margin-bottom:4px}
.creator-languagebar .creator-language-continue {display:flex;justify-content:center;width:100%;margin-top:8px;padding:10px 12px;border-radius:7px;background:var(--cs-action);color:var(--cs-action-ink);font-size:12px;font-weight:600}
.creator-languagebar .creator-language-continue:hover:not(:disabled) {background:var(--cs-action-hover)}
.creator-languagebar .creator-language-continue:disabled {opacity:.45;cursor:default}
.creator-private {margin-inline-start:auto;display:flex;align-items:center;gap:5px;color:var(--cs-muted);font-size:10px}
.creator-private svg {width:12px;height:12px}
.creator-recovery {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 24px;background:var(--cs-tint);border-bottom:1px solid var(--cs-border);font-size:12px;line-height:1.6}

/* The script is the working surface; preview has its own quiet canvas. */
.creator-main {display:grid;grid-template-columns:minmax(330px,.95fr) minmax(0,1.4fr);height:clamp(480px,58vh,680px);min-width:0}
.creator-script {min-width:0;display:flex;flex-direction:column;border-inline-end:1px solid var(--cs-border);background:var(--cs-panel);overflow:hidden}
.creator-script-top {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px;flex-shrink:0;min-height:58px;border-bottom:1px solid var(--cs-border)}
.creator-script-tabs {display:flex;gap:20px;align-self:stretch;min-width:0}
.creator-script-tabs button {position:relative;border:0;background:transparent;padding:0;white-space:nowrap;font-size:11px;color:var(--cs-muted)}
.creator-script-tabs button span {margin-inline-start:5px;font-size:10px;color:var(--cs-muted);font-variant-numeric:tabular-nums}
.creator-script-tabs button[aria-pressed=true] {color:var(--cs-ink);font-weight:600}
.creator-script-tabs button[aria-pressed=true]::after {content:'';position:absolute;bottom:0;inset-inline:0;height:2px;background:var(--cs-ink)}
.creator-search {display:flex;gap:8px;align-items:center;padding:8px 15px 8px 24px;border-bottom:1px solid var(--cs-border);color:var(--cs-muted);flex-shrink:0}
.creator-search>svg {width:14px;height:14px}
.creator-search input {background:transparent;color:var(--cs-ink);border:0;min-width:0;width:100%;font-size:11px;padding:6px 0;outline-offset:2px!important}
.creator-script-list {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--cs-border) transparent}
.creator-script-row {position:relative;border-bottom:1px solid var(--cs-border);border-inline-start:2px solid transparent}
.creator-script-row.is-selected {background:var(--cs-soft);border-inline-start-color:var(--cs-accent)}
.creator-line-select {display:flex;gap:18px;align-items:flex-start;border:0;background:transparent;width:100%;text-align:start;padding:20px 23px;color:var(--cs-ink);min-width:0}
.creator-line-select:hover {background:color-mix(in srgb,var(--cs-soft) 60%,transparent)}
.creator-line-time {font-size:10px;line-height:19px;direction:ltr;font-variant-numeric:tabular-nums;flex:0 0 33px;color:var(--cs-muted)}
.creator-line-body {display:block;min-width:0;flex:1}
.creator-line-meta {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;min-height:19px}
.creator-line-speaker {display:inline-flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}
.creator-line-speaker>i {width:8px;height:8px;border-radius:50%;background:var(--cs-accent);box-shadow:0 0 0 4px var(--cs-tint);margin-inline:3px}
.creator-line-speaker.is-kept {color:var(--cs-kept-ink)}
.creator-line-speaker.is-kept>svg {width:14px;height:14px}
.creator-line-duration {display:inline-flex;align-items:center;gap:5px;direction:ltr;white-space:nowrap;color:var(--cs-muted);font-size:9px;font-variant-numeric:tabular-nums}
.creator-line-duration svg {width:12px;height:12px}
.creator-line-duration.is-warning {color:var(--cs-warning)}
.creator-line-copy {display:grid;gap:10px}
.creator-source-text,.creator-target-text {display:flex;align-items:baseline;gap:12px;min-width:0}
.creator-source-text>small,.creator-target-text>small {width:18px;flex-shrink:0;color:var(--cs-muted);font-size:9px;font-weight:400;direction:ltr}
.creator-source-text>span,.creator-target-text>span {display:block;flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.75;font-size:14px}
.creator-source-text {color:var(--cs-muted)}
.creator-target-text>span {font-size:15px;line-height:1.8}
.creator-source-text>span[lang=ar] {font-family:"Noto Sans Arabic","Segoe UI",sans-serif;font-size:15px;line-height:1.95}
.creator-script-row.is-editing .creator-line-copy {display:none}
.creator-script-row.is-editing .creator-line-meta {margin:0}
.creator-script-row.is-editing .creator-line-select {padding-bottom:10px}
/* Listen and edit sit as icons under the line's time, beside its text. */
.creator-row-actions {display:none;position:absolute;inset-inline-start:21px;top:48px;flex-direction:column;gap:6px}
.creator-script-row.is-selected {min-height:128px}
.creator-script-row.is-selected .creator-row-actions {display:flex}
.creator-row-actions button {display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;background:var(--cs-panel);border:1px solid var(--cs-border);color:var(--cs-muted)}
.creator-row-actions button:hover {color:var(--cs-ink);border-color:var(--cs-control-border)}
.creator-row-actions button[aria-expanded=true] {background:var(--cs-action);border-color:transparent;color:var(--cs-action-ink)}
.creator-row-actions button svg {width:13px;height:13px}
.creator-kept-note {display:none;margin-block:-8px 17px;margin-inline:74px 22px;font-size:9px;color:var(--cs-kept-ink)}
.creator-script-row.is-selected .creator-kept-note {display:block}
.creator-row-note {display:flex;gap:7px;align-items:flex-start;color:var(--cs-muted);font-size:10px;line-height:1.65;margin:0 22px 17px 74px;padding-inline-start:10px;border-inline-start:2px solid #c79b45}
.creator-row-note>svg {width:12px;height:12px;margin-top:2px;color:var(--cs-warning)}
.creator-script-row:not(.is-selected) .creator-row-note,.creator-script-row.is-editing .creator-row-note {display:none}
.creator-script-row.is-playing .creator-line-time {color:var(--cs-accent);font-weight:650}
.creator-empty {text-align:center;padding:40px 24px;font-size:12px;color:var(--cs-muted)}
.creator-inspector {padding:0 22px 20px 74px;display:grid;gap:14px}
.creator-inspector-title {display:flex;justify-content:space-between;gap:10px;color:var(--cs-muted);font-size:9px;letter-spacing:.03em}
.creator-text-field {display:grid;gap:6px;min-width:0}
.creator-text-field>span {font-size:10px;font-weight:600;display:flex;justify-content:space-between;gap:8px}
.creator-text-field small {font-size:9px;font-weight:400;color:var(--cs-muted)}
.creator-inspector textarea {resize:vertical;width:100%;border:1px solid var(--cs-control-border);border-radius:7px;padding:9px 11px;background:var(--cs-panel);color:var(--cs-ink);font-size:12px;line-height:1.8;min-height:68px}
.creator-inspector textarea[lang=ar] {font-size:14px;line-height:1.9}
.creator-keep.online-check {margin:0!important;gap:8px;font-size:11px;line-height:1.6}
.creator-keep input {width:15px;height:15px;margin-top:2px}
.creator-keep small {display:block;font-size:9px;color:var(--cs-muted);margin-top:2px}
.creator-line-details>summary {font-size:10px;color:var(--cs-muted);cursor:pointer;padding-block:3px}
.creator-boundaries {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.creator-boundaries label {display:grid;gap:5px;font-size:9px;color:var(--cs-muted)}
.creator-boundaries input {width:100%;border:1px solid var(--cs-control-border);background:var(--cs-panel);color:var(--cs-ink);border-radius:5px;padding:7px;font-size:11px;direction:ltr}
.creator-line-warning {padding-inline-start:9px;border-inline-start:2px solid #c79b45;color:var(--cs-muted);font-size:10px;line-height:1.65}
.creator-raw {font-size:10px;line-height:1.8;color:var(--cs-muted);margin-top:10px;overflow-wrap:anywhere}
.creator-preview-pane {min-width:0;min-height:0;background:var(--cs-preview);padding:32px;display:flex;flex-direction:column;justify-content:center;gap:22px;overflow:hidden}
.creator-preview {position:relative;aspect-ratio:16/9;flex-shrink:1;min-width:0;min-height:0;overflow:hidden;border-radius:12px;background:#16201c;width:100%;box-shadow:0 1px 3px #00000006}
.creator-preview video {display:block;width:100%;height:100%;max-height:none!important;object-fit:contain;background:#16201c;border-radius:0!important}
.creator-preview audio {display:none}
.creator-preview-play {display:none}
.creator-preview-chrome {position:absolute;z-index:3;inset:14px 14px auto;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}
.creator-preview-label {min-width:0;font-size:10px;line-height:1.4;padding:7px 10px;border-radius:20px;color:#fff;background:#101914ab;backdrop-filter:blur(8px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-caption {position:absolute;bottom:18px;inset-inline:7%;width:fit-content;max-width:86%;margin-inline:auto;border-radius:7px;padding:7px 13px;color:#fff;background:#101914bb;font-size:14px;line-height:1.65;text-align:center;pointer-events:none;max-height:40%;overflow:hidden}
.creator-caption:empty,.creator-caption[hidden] {display:none}
.creator-preview-tools {display:flex;flex-shrink:0;gap:6px;align-items:center;pointer-events:auto}
.creator-preview .creator-cc,.creator-preview .creator-player-language {display:inline-flex;align-items:center;gap:5px;height:30px;border:0;border-radius:20px;padding:0 10px;color:#fff;background:#101914ab;backdrop-filter:blur(8px);font-size:11px;cursor:pointer}
.creator-cc svg,.creator-player-language svg {width:16px;height:16px;flex:none}
.creator-preview .creator-cc[aria-pressed=false] {opacity:.55}
.creator-cc[aria-pressed=false] svg {stroke-dasharray:3 2}
.creator-cc:focus-visible,.creator-player-language:focus-within {outline:2px solid var(--cs-accent);outline-offset:2px}
.creator-preview .creator-player-language {position:relative;padding:0}
.creator-player-language svg {position:absolute;inset-inline-start:10px;pointer-events:none}
.creator-player-language select {appearance:none;height:100%;max-width:132px;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;cursor:pointer;text-overflow:ellipsis;padding:0 10px;padding-inline-start:31px}
.creator-player-language select option {color:#111;background:#fff}
.creator-preview-footer {display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--cs-muted);flex-wrap:wrap;flex-shrink:0}
.creator-preview-footer>div {display:flex;gap:6px;align-items:center;color:var(--cs-accent)}
.creator-preview-footer svg {width:14px;height:14px}
.creator-selection-note {font-size:11px;line-height:1.8;color:var(--cs-muted);border-inline-start:2px solid #c79b45;padding-inline-start:12px;max-height:100px;overflow:auto}
.creator-audio-art {position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;color:var(--cs-ink);background:var(--cs-tint)}
.creator-audio-icon {display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--cs-panel);color:var(--cs-accent);margin-bottom:15px}
.creator-audio-icon svg {width:27px;height:27px}
.creator-audio-eyebrow {color:var(--cs-muted);font-size:8px;letter-spacing:.16em}
.creator-audio-art h3 {margin:9px 0;max-width:90%;font-size:20px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.creator-audio-art p {margin:0;color:var(--cs-muted);font-size:10px}
.creator-audio-art p>span {margin-inline:6px}
.creator-audio-art canvas {max-width:100%;margin-top:22px}
.creator-preview.is-audio .creator-preview-label {background:var(--cs-panel);color:var(--cs-accent);backdrop-filter:none}

/* Playback and timeline occupy one continuous lower deck. */
.creator-timeline {border-top:1px solid var(--cs-border);background:var(--cs-panel);padding-bottom:19px;min-width:0}
.creator-transport {display:flex;justify-content:flex-end;align-items:center;gap:20px;min-height:46px;padding:8px 23px}
.creator-player-controls {flex-shrink:0}
.creator-player-seek {display:block;appearance:none;width:100%;height:28px;margin:0;padding:0;border:0;background:transparent;cursor:pointer;touch-action:pan-y;--creator-seek-track:linear-gradient(to right,var(--cs-accent) var(--creator-played,0%),var(--cs-control-border) var(--creator-played,0%))}
.creator-player-seek:disabled {opacity:.55;cursor:default}
.creator-player-seek::-webkit-slider-runnable-track {height:5px;border-radius:6px;background:var(--creator-seek-track)}
.creator-player-seek::-moz-range-track {height:5px;border-radius:6px;background:var(--creator-seek-track)}
.creator-player-seek::-webkit-slider-thumb {appearance:none;width:14px;height:14px;margin-top:-4.5px;border:0;border-radius:50%;background:var(--cs-accent)}
.creator-player-seek::-moz-range-thumb {width:14px;height:14px;border:0;border-radius:50%;background:var(--cs-accent)}
.creator-player-bar {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
.creator-player-bar>.creator-clock {justify-self:start}
.creator-clock {font-size:12px;font-variant-numeric:tabular-nums;direction:ltr;white-space:nowrap}
.creator-clock>[data-clock-total] {color:var(--cs-muted);font-weight:400}
.creator-clock>[data-clock-total]::before {content:' / '}
.creator-playback-buttons {display:flex;gap:10px;align-items:center;direction:ltr}
.creator-play {display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--cs-ink);color:var(--cs-panel)!important}
.creator-play>svg {width:19px;height:19px}
.creator-speed {justify-self:end;max-width:100%}
.creator-speed select {border:0;border-radius:6px;background:var(--cs-soft);color:var(--cs-ink);font-size:11px;cursor:pointer;padding:5px;max-width:100%}
.creator-speed option {color:var(--cs-ink);background:var(--cs-panel)}
.creator-zoom {display:flex;gap:5px;align-items:center;justify-self:end;font-size:10px}
.creator-zoom>button:first-child {background:transparent;border:0;font-size:10px;color:var(--cs-muted);padding:6px 7px}
.creator-zoom input {width:85px;height:3px;accent-color:var(--cs-accent)}
.creator-zoom .creator-icon-button {width:26px;height:26px}
.creator-zoom svg {width:14px;height:14px}
.creator-timeline-tracks {display:flex;direction:ltr;min-width:0}
.creator-track-labels {width:142px;flex-shrink:0;padding:30px 15px 0 23px;color:var(--cs-muted);font-size:11px}
.creator-track-label {display:flex;gap:9px;align-items:center;height:60px;white-space:nowrap}
.creator-track-label>svg {width:15px;height:15px;color:var(--cs-muted)}
.creator-track-label span {display:flex;gap:7px;align-items:center}
.creator-track-label small {font-size:9px;color:var(--cs-muted)}
.creator-track-label.is-dub {height:76px;color:var(--cs-accent)}
.creator-track-label.is-dub>svg {color:var(--cs-accent)}
.creator-track-label.is-background {height:28px;font-size:10px}
.creator-timeline-scroll {overflow-x:auto;overflow-y:hidden;min-width:0;flex:1;margin-inline-end:23px;scrollbar-width:thin;scrollbar-color:var(--cs-border) transparent}
.creator-timeline-content {position:relative;min-width:100%;padding-top:30px;cursor:crosshair}
.creator-ruler {position:absolute;inset:0 0 auto;height:22px;pointer-events:none;font-size:9px;color:var(--cs-muted);font-variant-numeric:tabular-nums}
.creator-ruler span {position:absolute;top:0;white-space:nowrap;transform:translateX(2px)}
.creator-ruler span:last-child {transform:translateX(-100%)}
.creator-ruler span::after {content:'';position:absolute;top:21px;left:-2px;width:1px;height:170px;background:var(--cs-border);opacity:.55;pointer-events:none}
.creator-lane {position:relative;margin-bottom:12px;min-width:0}
.creator-original-lane {height:48px}
.creator-original-lane canvas {display:block;position:absolute;inset:0;opacity:.7}
.creator-dub-lane {height:64px}
.creator-clips {position:absolute;inset:0}
.creator-clip {position:absolute;inset-block:0;min-width:2px;overflow:hidden;border:1px solid var(--cs-panel);border-radius:7px;text-align:start;padding:10px;font-size:11px;line-height:1.6;background:var(--cs-clip);color:var(--cs-clip-ink)!important}
.creator-clip>span {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.creator-clip>small {display:block;font-size:8px;opacity:.75;margin-top:6px;white-space:nowrap;pointer-events:none}
.creator-clip.original {background:transparent!important;color:transparent!important;border:0;border-radius:0;border-bottom:2px solid var(--cs-accent);padding:0}
.creator-clip.original>span {display:none}
.creator-clip.is-kept {background:var(--cs-kept);color:var(--cs-kept-ink)!important}
.creator-clip.original.is-kept {border-bottom-color:#ba9a4f}
.creator-clip.is-selected {outline:2px solid var(--cs-clip-ink);outline-offset:-2px;z-index:1}
.creator-clip.original.is-selected {outline:0;border-bottom-width:3px}
.creator-background {height:28px;margin-bottom:0}
.creator-background-bed {height:100%;border-radius:5px;background:var(--cs-soft);border:1px solid var(--cs-border);color:var(--cs-muted);padding:5px 10px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.creator-playhead {position:absolute;top:17px;bottom:-1px;width:1px;background:var(--cs-ink);pointer-events:none;z-index:3}
.creator-playhead i {display:block;position:absolute;top:0;left:-3px;width:7px;height:7px;border-radius:50%;background:var(--cs-ink)}
.creator-footer {display:flex;align-items:center;justify-content:space-between;gap:22px;padding:17px 23px;border-top:1px solid var(--cs-border);background:var(--cs-panel)}
.creator-footer-message {min-width:0;flex:1}
.creator-autosave {font-size:10px;color:var(--cs-muted)}
.creator-footer-message p {font-size:10px;line-height:1.7;color:var(--cs-muted);margin:4px 0 0;max-width:540px;overflow-wrap:anywhere}
.creator-footer-message p.error {color:var(--danger,#b44838)}
.creator-footer-actions {display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.creator-footer-actions>small {max-width:200px;color:var(--cs-muted);font-size:9px;line-height:1.7}
.creator-footer-actions .online-check {margin:0;font-size:10px;max-width:215px;gap:7px}
.creator-footer-actions .online-check input {width:15px;height:15px;margin-top:1px}

/* Shared upload choices stay outside the editor. */
.creator-input-choice {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.creator-input-choice label {padding:16px;border:1px solid var(--line,#dce1dc);border-radius:9px;cursor:pointer}
.creator-input-choice label:has(input:checked) {border-color:var(--accent-text);background:var(--accent-soft)}
.creator-input-choice small {display:block;font-size:.75rem;margin-top:5px;color:var(--ink-2,#708175)}
.creator-stem-inputs {display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0}
.creator-stem-inputs label {min-width:0}
.creator-stem-inputs input {width:100%}
.online-editor-layout {max-width:none!important;padding-block:4px}
.online-editor-layout>.online-heading,.online-editor-layout>.online-intro {display:none}
.online-editor-layout>[data-note]:empty {display:none}

@media(min-width:1000px) {
  .online-studio-page main:has(.online-editor-layout) {max-width:1680px;padding-inline:28px}
  .online-studio:has(.creator-workbench) {max-width:none}
}
@media(max-width:1150px) {
  .creator-topbar {grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .creator-listen {grid-row:2;grid-column:1/-1;justify-content:center}
  .creator-exports {grid-column:2;grid-row:1}
  .creator-main {grid-template-columns:minmax(310px,1fr) minmax(0,1.15fr);height:540px}
  .creator-preview-pane {padding:24px}
  .creator-breadcrumb {display:none}
}
@media(max-width:760px) {
  .creator-workbench {margin-top:6px;border-radius:12px}
  .creator-topbar {padding:12px 16px;gap:12px}
  .creator-publication {padding-inline:16px}
  .creator-project-title {gap:7px}
  .creator-project-title h2 {font-size:12px}
  .creator-project-duration,.creator-status {display:none}
  .creator-export-menu>summary {padding:8px 11px;font-size:11px}
  .creator-export-menu>summary>svg:last-child {display:none}
  .creator-listen {gap:6px;justify-content:flex-start;overflow-x:auto}
  .creator-listen>span {display:none}
  .creator-ab {max-width:100%;overflow:auto}
  .creator-ab button {padding:7px 10px;font-size:10px}
  .creator-languagebar {padding:8px 14px;gap:3px}
  .creator-languagebar>span:first-child {display:none}
  .creator-private {font-size:9px}
  .creator-add-language {position:static}
  .creator-language-choice {inset-inline:14px;width:auto;max-width:none}
  .creator-main {height:auto;display:flex;flex-direction:column-reverse}
  .creator-preview-pane {padding:16px;gap:10px;overflow:visible}
  .creator-preview {border-radius:8px}
  .creator-preview-play {display:grid;place-items:center;position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;border:1px solid #ffffff55;background:#122219c9;color:#fff!important}
  .creator-preview-play.is-playing {left:auto;top:auto;inset-inline-end:10px;bottom:10px;transform:none;width:32px;height:32px}
  .creator-preview.is-audio .creator-preview-play {left:auto;top:auto;inset-inline-end:12px;bottom:12px;transform:none;width:36px;height:36px}
  .creator-preview-chrome {inset:6px 6px auto;gap:4px}
  .creator-preview-label {padding:5px 8px;font-size:9px}
  .creator-preview .creator-cc,.creator-preview .creator-player-language {height:44px}
  .creator-preview .creator-cc {width:44px;justify-content:center;padding:0}
  .creator-player-language select {max-width:113px}
  .creator-caption {bottom:10px;font-size:11px;padding:5px 9px;max-height:50%}
  .creator-preview-footer {font-size:9px;gap:6px}
  .creator-preview-footer>span {display:none}
  .creator-script {border-inline-end:0;border-top:1px solid var(--cs-border)}
  .creator-script-top {padding-inline:16px;min-height:50px}
  .creator-script-tabs {gap:21px}
  .creator-script-list {height:360px;flex:auto}
  .creator-line-select {padding:18px 17px;gap:12px}
  .creator-line-time {flex-basis:29px}
  .creator-source-text>span {font-size:12px}
  .creator-target-text>span {font-size:13px}
  .creator-row-actions {inset-inline-start:15px;top:45px}
  .creator-kept-note {margin-inline:58px 16px}
  .creator-row-note {margin-inline:58px 16px}
  .creator-inspector {padding-inline:58px 16px}
  .creator-search {padding-inline:17px 10px}
  .creator-transport {gap:10px;padding:8px 15px;min-height:40px}
  .creator-player-seek {height:38px}
  .creator-playback-buttons {gap:3px}
  .creator-playback-buttons button {width:44px;height:44px}
  .creator-speed select {min-height:44px}
  .creator-zoom {justify-self:end}
  .creator-zoom input {width:75px}
  .creator-clock {font-size:11px}
  .creator-track-labels {width:91px;padding-inline:14px 6px;font-size:9px}
  .creator-track-label {gap:6px}
  .creator-track-label>svg {width:12px;height:12px}
  .creator-track-label span {gap:4px;flex-wrap:wrap;line-height:1.4}
  .creator-track-label small {font-size:8px}
  .creator-timeline-scroll {margin-inline-end:14px}
  .creator-footer {flex-direction:column;align-items:stretch;padding:15px;gap:15px}
  .creator-footer-actions {justify-content:flex-start;gap:10px}
  .creator-footer-actions>small {max-width:none;flex:1;font-size:9px}
  .creator-footer-actions .online-check {max-width:none;flex:1;min-width:170px}
  .creator-footer-message p {max-width:none}
  .creator-audio-art {padding:22px 12px}
  .creator-audio-icon {width:37px;height:37px;margin-bottom:7px}
  .creator-audio-icon svg {width:21px;height:21px}
  .creator-audio-art h3 {font-size:15px;margin:6px 0;max-height:44px;overflow:hidden}
  .creator-audio-eyebrow {font-size:7px}
  .creator-audio-art canvas {margin-top:10px;height:30px!important}
  .creator-input-choice,.creator-stem-inputs {grid-template-columns:1fr}
}
@media(max-width:380px) {
  .creator-clock>[data-clock-total] {display:block}
  .creator-clock>[data-clock-total]::before {content:none}
  .creator-speed select {font-size:10px;padding-inline:3px}
}
.creator-workbench[dir=rtl] .creator-back svg {transform:scaleX(-1)}
.creator-workbench[dir=rtl] .creator-row-note {margin-inline:74px 22px}
.creator-workbench[dir=rtl] .creator-inspector {padding-inline:74px 22px}
.creator-workbench[dir=rtl] .creator-line-time {text-align:right}
.creator-workbench[dir=rtl] .creator-source-text>span {font-size:14px;line-height:1.9}
:root[data-theme=dark] .creator-workbench {
  --cs-muted:#c8d0bf;--cs-border:#485140;--cs-control-border:#7b876f;--cs-soft:#20271d;--cs-preview:#1b2119;
  --cs-clip:#c6e977;--cs-clip-ink:#111807;--cs-warning:#f3c76d;--cs-kept:#4b4029;--cs-kept-ink:#f0dca4;
}
@media(max-width:760px) {
  .creator-workbench[dir=rtl] .creator-row-note {margin-inline:58px 16px}
  .creator-workbench[dir=rtl] .creator-inspector {padding-inline:58px 16px}
}
@media(prefers-reduced-motion:reduce) {.creator-workbench * {scroll-behavior:auto!important}}
