/* Candidate video studio: a scrollable results feed with a bottom composer. */
.app-shell--topnav .page-content:has(.video-studio--stacked){overflow:hidden;padding:10px 16px 14px;background:#edf1f0}
.app-shell--topnav .main-area:has(.video-studio--stacked){display:flex;flex-direction:column;min-height:0}
.app-shell--topnav .page-content:has(.video-studio--stacked){height:100%;min-height:0;flex:1}
.video-studio--stacked{position:relative;width:100%;height:100%;min-height:0;display:block;overflow:hidden;color:#263336}
.video-studio--stacked .video-output-pane{position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
.video-feed-heading{z-index:2;flex:0 0 auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:7px clamp(8px,1.8vw,24px) 11px;background:linear-gradient(#edf1f0 78%,#edf1f000)}
.video-feed-kicker,.video-create-kicker{display:block;color:#73847f;font-size:9px;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.video-feed-heading h1{margin:3px 0 1px;color:#233237;font-size:20px;font-weight:720;letter-spacing:-.04em}
.video-feed-heading p{margin:0;color:#73817e;font-size:10px;line-height:1.45}
.video-feed-toolbar{display:flex;align-items:center;gap:16px}
.video-feed-stats{color:#72817e;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.video-studio--stacked .video-output-tabs{height:36px;flex:0 0 auto;display:flex;align-items:stretch;gap:15px;padding:0;border:0}
.video-studio--stacked .video-output-tabs button{font-size:10px;color:#83908d}
.video-studio--stacked .video-output-tabs button.is-active{color:#25373a}
.video-studio--stacked .video-output-tabs button.is-active:after{height:2px;background:#168c83}
.video-studio--stacked .video-output-tabs button span{background:#e1e9e6;color:#53645f}
.video-studio--stacked .video-output-content{flex:1;min-height:0;overflow:auto;padding:0 clamp(8px,1.8vw,24px) calc(min(52vh,470px) + 32px);overscroll-behavior:contain;scrollbar-color:#b9c7c2 transparent;scrollbar-width:thin}
.video-result-list{width:min(100%,1240px);margin:0 auto;display:grid;gap:15px;padding:4px 0 16px}
.video-studio--stacked .video-result-detail{height:auto;min-height:0;display:flex;gap:11px;padding:15px;border:1px solid #dce5e1;border-radius:15px;background:#fff;box-shadow:0 8px 26px #263b3210;transition:border-color .18s ease,box-shadow .18s ease}
.video-studio--stacked .video-result-detail.is-focused{border-color:#8ccbc1;box-shadow:0 9px 28px #27776b17}
.video-studio--stacked .video-result-heading{align-items:center;gap:14px}
.video-result-title{display:block;max-width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}
.video-result-title h2{margin:0;color:#263437;font-size:13px;font-weight:680;letter-spacing:-.015em;overflow-wrap:anywhere}
.video-result-title:hover h2{color:#187d76}
.video-studio--stacked .video-result-heading p{margin-top:4px;color:#87938f;font-size:9px;line-height:1.45}
.video-studio--stacked .video-result-state{align-items:flex-end;gap:5px}
.video-studio--stacked .video-result-status{padding:5px 9px;background:#eaf2ef;color:#526862;font-size:9px;font-weight:650}
.video-studio--stacked .video-result-detail--complete .video-result-status{background:#e3f6f0;color:#087d70}
.video-studio--stacked .video-result-detail--failed .video-result-status,.video-studio--stacked .video-result-detail--query-error .video-result-status{background:#fff0ec;color:#a64f43}
.video-studio--stacked .video-result-stage{position:relative;flex:0 0 auto;width:min(100%,var(--video-result-width,1120px));height:auto;min-height:0;aspect-ratio:var(--video-result-ratio,16 / 9);align-self:center;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#131c1f}
.video-studio--stacked .video-result-player{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#131c1f}
.video-studio--stacked .video-result-player video{width:100%;height:100%;object-fit:contain}
.video-studio--stacked .video-result-processing{width:min(100%,440px);padding:18px;color:#c0ceca}
.video-studio--stacked .video-result-processing h3{color:#e4eeeb}
.video-studio--stacked .video-result-processing p{color:#a9bab5}
.video-studio--stacked .video-result-processing .video-spinner{border-color:#435257;border-top-color:#62d8cb}
.video-studio--stacked .video-result-error{max-width:calc(100% - 28px);border-color:#754a45;background:#2b2020;color:#f1b4a8}
.video-studio--stacked .video-result-error h3,.video-studio--stacked .video-result-error p{color:#f0c3b9}
.video-studio--stacked .video-result-footer{align-items:center;gap:10px}
.video-studio--stacked .video-result-footer>p{color:#657572;font-size:10px}
.video-studio--stacked .video-result-footer>p b{color:#8b9995}
.video-studio--stacked .video-result-footer>p span{-webkit-line-clamp:2}
.video-studio--stacked .video-download-group{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.video-studio--stacked .video-download-status{color:#637670;font-size:9px;text-align:right}
.video-studio--stacked .video-download{border-color:#d6e3de;background:#f4f8f6;color:#35544e}
.video-studio--stacked .video-download:hover{border-color:#8ccbc1;background:#eaf7f3;color:#116b62}
.video-studio--stacked .video-tail-frame{border-color:#d6e3de;background:#f4f8f6;color:#35544e}
.video-studio--stacked .video-output-empty--feed{width:min(100%,560px);min-height:230px;margin:5vh auto 0;padding:40px 24px;display:grid;justify-items:center;align-content:center;border:1px dashed #c7d4cf;border-radius:18px;background:#f7faf8;text-align:center;color:#788884}
.video-empty-orbit{width:52px;height:52px;margin-bottom:12px;display:grid;place-items:center;border:1px solid #cfe2dc;border-radius:17px;background:#e5f3ef;color:#19877b}
.video-empty-orbit .icon{width:23px;height:23px}
.video-studio--stacked .video-output-empty--feed h2{color:#334745;font-size:15px;font-weight:650}
.video-studio--stacked .video-output-empty--feed p{max-width:350px;color:#7b8a85;font-size:10px}

.video-studio--stacked .video-create-pane{position:absolute;z-index:12;right:0;bottom:12px;left:0;width:min(1160px,calc(100% - 40px));max-height:min(470px,54vh);margin:0 auto;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4c50;border-radius:17px;background:linear-gradient(145deg,#202d31,#1a2528);box-shadow:0 16px 55px #101d1c40,0 3px 12px #10201c1c;color:#eaf3f0}
.video-studio--stacked .video-create-heading{height:48px;min-height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #344448;background:transparent}
.video-studio--stacked .video-create-heading h2{margin:2px 0 0;color:#eff7f4;font-size:13px;font-weight:650;letter-spacing:-.02em}
.video-studio--stacked .video-create-kicker{color:#83a29c;font-size:8px;letter-spacing:.12em}
.video-studio--stacked .video-create-heading button{height:30px;display:inline-flex;align-items:center;gap:5px;padding:0 10px;border:1px solid #43565a;border-radius:8px;background:#29383c;color:#c7d7d3;font-size:10px}
.video-studio--stacked .video-create-heading button:hover{border-color:#62d8cb;color:#79e1d5}
.video-studio--stacked .video-create-heading button .icon{width:14px;height:14px}
.video-studio--stacked .video-create-scroll{min-height:0;flex:1;overflow:auto;padding:11px 14px 12px;overscroll-behavior:contain;scrollbar-color:#45595d transparent;scrollbar-width:thin}
.video-studio--stacked .video-composer{min-height:0;margin:0;padding:10px 11px;border:1px solid #35474b;border-radius:12px;background:#253337;box-shadow:inset 0 1px #ffffff04}
.video-studio--stacked .composer-topline{height:21px;margin:0 0 7px;display:flex;align-items:center;justify-content:space-between}
.video-studio--stacked .prompt-limit{color:#9aafaa;font-size:9px}
.video-studio--stacked .composer-tools{gap:3px}
.video-studio--stacked .composer-tools button{width:26px;height:25px;border:0;border-radius:7px;background:transparent;color:#a8bbb6;font-size:14px}
.video-studio--stacked .composer-tools button:hover,.video-studio--stacked .composer-tools button.active{background:#34484b;color:#77ded2}
.video-composer-body{min-width:0;display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:stretch}
.video-reference-column{min-width:0;display:flex;align-items:stretch}
.video-studio--stacked .video-create-pane .reference-dropzone{width:100%;min-width:0;margin:0;padding:8px;border:1px dashed #43565a;border-radius:9px;background:#202c2f}
.video-studio--stacked .video-create-pane .reference-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex-wrap:initial;overflow:visible;padding:0 0 6px}
.video-studio--stacked .video-create-pane .reference-tile{width:100%;height:58px;min-width:0;flex:initial;border:1px solid #394b4f;border-radius:8px;background:#29383b;color:#aabbb7}
.video-studio--stacked .video-create-pane .reference-thumb{height:32px;background:#334448;color:#74d8cd}
.video-studio--stacked .video-create-pane .reference-tile b{padding:3px 1px 0;color:#c1ceca;font-size:8px}
.video-studio--stacked .video-create-pane .reference-drop-hint{color:#74d8cd}
.video-studio--stacked .video-create-pane .reference-files{max-height:42px;overflow:auto}
.video-studio--stacked .video-create-pane .reference-file{height:30px;max-width:100%;padding:3px 5px;border:1px solid #3b4e51;border-radius:7px;background:#2a393d;color:#d9e7e3}
.video-studio--stacked .video-create-pane .reference-preview{width:22px;height:22px;flex-basis:22px}
.video-studio--stacked .video-create-pane .reference-name{max-width:110px;font-size:9px}
.video-studio--stacked .video-create-pane .reference-actions{margin-top:3px;color:#90a49f;font-size:8px}
.video-studio--stacked .video-create-pane .clear-references{color:#f09c8c;font-size:8px}
.video-prompt-column{min-width:0;display:flex;flex-direction:column}
.video-studio--stacked .video-create-pane .mention-field{min-height:0;flex:1}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:100%;min-height:75px;max-height:135px;padding:0;border:0;border-radius:8px;background:#202c2f;box-shadow:none}
.video-studio--stacked .video-create-pane .prompt-editor>.prompt-highlights,.video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea{padding:10px 12px;color:#e6f0ed;font-size:12px;line-height:1.65}
.video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea{caret-color:#62d8cb}
.video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea::placeholder{color:#879c97}
.video-studio--stacked .video-create-pane .prompt-editor:focus-within{box-shadow:0 0 0 1px #509b91}
.video-studio--stacked .video-create-pane .prompt-reference{background:#34574f;color:#9af0df}
.video-studio--stacked .video-create-pane .composer-footer{min-height:23px;padding-top:4px}
.video-studio--stacked .video-create-pane .char-count{color:#91a49f;font-size:8px}
.video-studio--stacked .video-create-pane .write-prompt{padding:3px 4px;color:#6fddd0;font-size:9px}
.video-studio--stacked .video-create-pane .write-prompt .icon{width:12px;height:12px}
.video-studio--stacked .video-create-pane .mention-menu{border-color:#42565a;background:#192629;color:#e1eeea;box-shadow:0 10px 28px #07131380}
.video-studio--stacked .video-create-pane .mention-option{background:#192629;color:#e1eeea}
.video-studio--stacked .video-create-pane .mention-option:hover,.video-studio--stacked .video-create-pane .mention-option:focus{background:#2c4243}
.video-studio--stacked .video-create-pane .mention-option-icon{background:#304548;color:#82ddd2}
.video-studio--stacked .video-create-pane .mention-option small{color:#a0b3ae}
.video-studio--stacked .generation-settings{width:100%;grid-template-columns:minmax(180px,1.7fr) repeat(3,minmax(110px,1fr));gap:7px;margin:9px 0 7px}
.video-studio--stacked .video-settings-grid .setting-select{height:54px;min-height:54px;padding:7px 9px;gap:8px;border-color:#3c5054;border-radius:9px;background:#253337;color:#e5efec}
.video-studio--stacked .video-settings-grid .model-setting{grid-column:auto}
.video-studio--stacked .video-settings-grid .setting-icon{width:30px;height:30px;flex-basis:30px;border-color:#405356;border-radius:8px;background:#304044;color:#78d9ce;font-size:15px}
.video-studio--stacked .video-settings-grid .setting-icon .icon{width:16px;height:16px}
.video-studio--stacked .video-settings-grid .setting-copy small{margin:0 0 2px;color:#90a39e;font-size:8px}
.video-studio--stacked .video-settings-grid .settings-trigger{min-height:20px;padding:0;border:0;background:transparent;color:#edf5f2;font-size:10px;font-weight:620}
.video-studio--stacked .video-settings-grid .settings-trigger .icon{width:12px;height:12px;color:#93aaa4}
.video-studio--stacked .video-image-controls{grid-template-columns:auto minmax(100px,1fr) auto minmax(100px,1fr);gap:6px 8px;margin:0 0 7px;padding:7px 9px;border-color:#34464a;border-radius:8px;background:#202d31;color:#a9bbb6;font-size:9px}
.video-studio--stacked .video-image-controls select{min-width:0;padding:6px 8px;border-color:#3d5054;border-radius:7px;background:#2a393d;color:#e5efec;font-size:9px}
.video-studio--stacked .video-image-controls p{grid-column:1/-1;color:#93a9a3;font-size:8px;line-height:1.4}
.video-studio--stacked .video-image-controls .is-error{color:#ffad9d}
.video-studio--stacked .video-advanced{margin:0 0 7px;border-color:#34464a;border-radius:8px;background:#202d31;color:#c5d2ce;font-size:9px}
.video-studio--stacked .video-advanced summary{padding:7px 9px}
.video-studio--stacked .video-advanced p{color:#9aada8}
.video-studio--stacked .video-generate-row{display:flex;align-items:center;gap:12px}
.video-studio--stacked .generation-action{flex:0 0 min(270px,30%);gap:6px}
.video-studio--stacked .generate-button{width:100%;min-height:43px;padding:8px 13px;border-radius:9px;background:#62d8cb;color:#0b2926;font-size:11px;font-weight:740}
.video-studio--stacked .generate-button span{color:#27504b;font-size:8px}
.video-studio--stacked .generate-button:hover:not(:disabled){background:#7ce4d7}
.video-studio--stacked .generate-button:disabled,.video-studio--stacked .generate-button:disabled span{background:#3a4b4e;color:#91a39e}
.video-studio--stacked .generation-action.is-counting .generate-button{background:#62d8cb;color:#0b2926}
.video-studio--stacked .generation-action.is-counting .generate-button span{color:inherit}
.video-studio--stacked .generation-cancel{border-color:#53676a;border-radius:8px;background:#28383b;color:#e4efeb;font-size:9px}
.video-studio--stacked .video-generate-row .prototype-note{flex:1;width:auto;margin:0;color:#9caeaa;font-size:8px;line-height:1.45}
.video-studio--stacked .video-api-status{margin:6px 2px 0;color:#a3b5b0;font-size:8px;line-height:1.45}
.video-studio--stacked .video-api-status.is-error{color:#ffad9d}
.video-studio--stacked .video-queue-rail{display:none}
.video-studio--stacked .video-create-pane.composer-expanded{z-index:50;right:12px;bottom:12px;left:12px;width:auto;max-height:calc(100dvh - 94px);margin:0;padding:0;inset:auto 12px 12px;}

:root[data-theme=dark] .app-shell--topnav .page-content:has(.video-studio--stacked){background:#10191b}
:root[data-theme=dark] .video-studio--stacked{color:#dce9e5}
:root[data-theme=dark] .video-feed-heading{background:linear-gradient(#10191b 78%,#10191b00)}
:root[data-theme=dark] .video-feed-heading h1{color:#e5f1ed}
:root[data-theme=dark] .video-feed-heading p,:root[data-theme=dark] .video-feed-kicker{color:#9bafaa}
:root[data-theme=dark] .video-feed-stats{color:#9eb2ad}
:root[data-theme=dark] .video-studio--stacked .video-output-tabs button.is-active{color:#e1efea}
:root[data-theme=dark] .video-studio--stacked .video-output-tabs button span{background:#263638;color:#b7cbc5}
:root[data-theme=dark] .video-studio--stacked .video-result-detail{border-color:#304244;background:#192528;box-shadow:0 8px 26px #0002}
:root[data-theme=dark] .video-studio--stacked .video-result-detail.is-focused{border-color:#4a837b;box-shadow:0 9px 28px #2b93831c}
:root[data-theme=dark] .video-result-title h2{color:#e2eeea}
:root[data-theme=dark] .video-result-title:hover h2{color:#76ddd1}
:root[data-theme=dark] .video-studio--stacked .video-result-heading p,:root[data-theme=dark] .video-studio--stacked .video-result-footer>p{color:#a3b5b0}
:root[data-theme=dark] .video-studio--stacked .video-result-footer>p b{color:#91a6a0}
:root[data-theme=dark] .video-studio--stacked .video-result-status{background:#293a3d;color:#c7d7d3}
:root[data-theme=dark] .video-studio--stacked .video-result-detail--complete .video-result-status{background:#194b43;color:#a3eadb}
:root[data-theme=dark] .video-studio--stacked .video-result-detail--failed .video-result-status,:root[data-theme=dark] .video-studio--stacked .video-result-detail--query-error .video-result-status{background:#4b302d;color:#ffc2b4}
:root[data-theme=dark] .video-studio--stacked .video-download,:root[data-theme=dark] .video-studio--stacked .video-tail-frame{border-color:#3b5555;background:#223438;color:#b9e6de}
:root[data-theme=dark] .video-studio--stacked .video-download:hover{border-color:#62d8cb;background:#2a4547;color:#a2f2e6}
:root[data-theme=dark] .video-studio--stacked .video-output-empty--feed{border-color:#3b5050;background:#172325;color:#a5b8b3}
:root[data-theme=dark] .video-studio--stacked .video-output-empty--feed h2{color:#d6e6e1}
:root[data-theme=dark] .video-studio--stacked .video-output-empty--feed p{color:#9bafaa}
:root[data-theme=dark] .video-empty-orbit{border-color:#3b5a56;background:#203b39;color:#80dfd3}

@media(max-width:980px){
 .video-studio--stacked .video-create-pane{width:min(100% - 24px,840px);max-height:min(480px,57vh)}
 .video-studio--stacked .video-create-scroll{padding:9px 11px 10px}
 .video-studio--stacked .generation-settings{grid-template-columns:repeat(4,minmax(0,1fr))}
 .video-studio--stacked .video-settings-grid .setting-select{padding-inline:6px;gap:5px}
 .video-studio--stacked .video-settings-grid .setting-icon{width:25px;height:25px;flex-basis:25px}
 .video-studio--stacked .video-settings-grid .settings-trigger{font-size:9px}
}
@media(max-width:760px){
 .app-shell--topnav .page-content:has(.video-studio--stacked){padding:7px 8px 9px}
 .video-studio--stacked .video-feed-heading{min-height:69px;padding:5px 7px 9px;align-items:flex-start}
 .video-feed-heading h1{font-size:17px}
 .video-feed-heading p{max-width:235px;font-size:9px}
 .video-feed-toolbar{align-items:flex-end;flex-direction:column-reverse;gap:3px;padding-top:4px}
 .video-feed-stats{font-size:8px}
 .video-studio--stacked .video-output-tabs{height:29px;gap:11px}
 .video-studio--stacked .video-output-tabs button{font-size:9px}
 .video-studio--stacked .video-output-content{padding:0 4px calc(min(52vh,430px) + 24px)}
 .video-result-list{gap:10px}
 .video-studio--stacked .video-result-detail{gap:8px;padding:10px;border-radius:12px}
 .video-studio--stacked .video-result-heading{align-items:flex-start;gap:7px}
 .video-result-title h2{font-size:11px}
 .video-studio--stacked .video-result-heading p{max-width:235px;font-size:8px}
 .video-studio--stacked .video-result-state{align-items:flex-end}
 .video-studio--stacked .video-result-state .video-timing-record{max-width:148px;justify-content:flex-end;font-size:7px}
 .video-studio--stacked .video-result-stage{width:min(100%,var(--video-result-width,1120px));border-radius:8px}
 .video-studio--stacked .video-result-processing{padding:8px}
 .video-studio--stacked .video-result-processing p{font-size:9px}
 .video-studio--stacked .video-result-processing .video-phase-timers{gap:4px;margin:10px 0 3px}
 .video-studio--stacked .video-result-processing .video-phase-timers>span{gap:4px;padding:6px 3px;font-size:8px}
 .video-studio--stacked .video-result-processing .video-phase-timers b{font-size:11px}
 .video-studio--stacked .video-result-footer{align-items:flex-start;gap:6px}
 .video-studio--stacked .video-result-footer>p{font-size:9px}
 .video-studio--stacked .video-download{height:28px;padding:0 8px;font-size:9px}
 .video-studio--stacked .video-result-empty--feed{margin-top:4vh}
 .video-studio--stacked .video-create-pane{right:0;bottom:7px;left:0;width:calc(100% - 12px);max-height:min(470px,56dvh);border-radius:14px}
 .video-studio--stacked .video-create-heading{height:41px;min-height:41px;flex-basis:41px;padding:0 11px}
 .video-studio--stacked .video-create-heading h2{font-size:11px}
 .video-studio--stacked .video-create-heading button{height:27px;font-size:9px}
 .video-studio--stacked .video-create-scroll{padding:7px 8px 8px}
 .video-studio--stacked .video-composer{padding:7px;border-radius:10px}
 .video-studio--stacked .composer-topline{height:18px;margin-bottom:5px}
 .video-composer-body{grid-template-columns:126px minmax(0,1fr);gap:7px}
 .video-studio--stacked .video-create-pane .reference-dropzone{padding:5px}
 .video-studio--stacked .video-create-pane .reference-cards{gap:3px;padding-bottom:4px}
 .video-studio--stacked .video-create-pane .reference-tile{height:51px}
 .video-studio--stacked .video-create-pane .reference-thumb{height:28px}
 .video-studio--stacked .video-create-pane .reference-tile b{font-size:7px}
 .video-studio--stacked .video-create-pane .reference-file{height:25px;padding:2px 3px}
 .video-studio--stacked .video-create-pane .reference-preview{width:19px;height:19px;flex-basis:19px}
 .video-studio--stacked .video-create-pane .reference-name{max-width:56px;font-size:8px}
 .video-studio--stacked .video-create-pane .reference-actions{gap:3px;font-size:7px}
 .video-studio--stacked .video-create-pane .clear-references{font-size:7px}
 .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{min-height:67px;max-height:96px}
 .video-studio--stacked .video-create-pane .prompt-editor>.prompt-highlights,.video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea{padding:7px 8px;font-size:11px}
 .video-studio--stacked .video-create-pane .composer-footer{min-height:18px;padding-top:2px}
 .video-studio--stacked .generation-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:6px 0}
 .video-studio--stacked .video-settings-grid .setting-select{height:43px;min-height:43px;padding:5px 6px;gap:5px;border-radius:7px}
 .video-studio--stacked .video-settings-grid .setting-icon{width:23px;height:23px;flex-basis:23px;border-radius:6px}
 .video-studio--stacked .video-settings-grid .setting-copy small{font-size:7px}
 .video-studio--stacked .video-settings-grid .settings-trigger{font-size:9px}
 .video-studio--stacked .video-image-controls{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:4px;padding:6px;font-size:8px}
 .video-studio--stacked .video-image-controls select{padding:5px;font-size:8px}
 .video-studio--stacked .video-generate-row{align-items:center;gap:7px}
 .video-studio--stacked .generation-action{flex-basis:40%}
 .video-studio--stacked .generate-button{min-height:38px;padding:6px;font-size:9px}
 .video-studio--stacked .generate-button span{font-size:7px}
 .video-studio--stacked .video-generate-row .prototype-note{font-size:7px}
 .video-studio--stacked .video-api-status{margin-top:4px;font-size:7px}
}

/* Compact option cards use the same soft mint palette as the daytime workspace. */
.settings-dropdown--video-candidate{width:min(294px,calc(100vw - 24px))!important;padding:12px!important;border-radius:12px!important;background:#f8fbf9!important;border-color:#d9e8e1!important;color:#29443f!important;box-shadow:0 16px 42px #20302726!important}
.settings-dropdown--video-candidate .settings-panel-header{margin-bottom:10px}
.settings-dropdown--video-candidate .settings-panel-header h2{font-size:12px;color:#29443f}
.settings-dropdown--video-candidate .settings-close{width:23px;height:23px;color:#71877f;font-size:18px}
.settings-dropdown--video-candidate .settings-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.settings-dropdown--video-candidate .settings-options--ratios{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.settings-dropdown--video-candidate .settings-choice{min-height:34px;padding:7px 6px;border:1px solid #d6e5de;border-radius:7px;background:#fff;color:#64786f;font-size:10px}
.settings-dropdown--video-candidate .settings-choice:hover{border-color:#82c2b4;background:#f0f8f4;color:#31584f}
.settings-dropdown--video-candidate .settings-choice.is-selected{border-color:#55aa9d;background:#e5f4ef;color:#246b61}
.settings-dropdown--video-candidate .settings-choice-check{right:-5px;top:-6px;width:17px;height:17px;border-width:1px;background:#45b3a5;color:#fff;font-size:10px}
.settings-dropdown--video-candidate .settings-choice-check{border-color:#f8fbf9}
.settings-dropdown--video-candidate .settings-options--ratios .settings-choice{min-height:65px;padding:5px 2px;font-size:9px}
.settings-dropdown--video-candidate .settings-ratio-preview{height:29px}
.settings-dropdown--video-candidate .settings-ratio-frame{width:min(var(--ratio-width),23px);height:min(var(--ratio-height),23px);border-width:1px;border-radius:3px;font-size:7px}
.settings-dropdown--video-candidate .settings-ratio-frame--adaptive{width:auto!important;height:auto!important;padding:3px 5px}
.settings-dropdown--video-candidate .settings-section{margin-top:12px}
.settings-dropdown--video-candidate .settings-section h3{margin-bottom:7px;font-size:11px;color:#64786f}
.settings-dropdown--video-candidate .settings-section .settings-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-dropdown--video-candidate .settings-panel-note{margin:10px 0 0;padding-top:8px;border-color:#e0ebe5;color:#82958d;font-size:8px}

:root[data-theme=dark] .settings-dropdown--video-candidate{background:#1e2b2f!important;border-color:#40575b!important;color:#e3efeb!important;box-shadow:0 16px 42px #07141466!important}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-panel-header h2{color:#e3efeb}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-close{color:#9db1ad}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-choice{border-color:#3c5558;background:#26383c;color:#abc0ba}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-choice:hover{border-color:#79cfc3;background:#30484b;color:#e4f1ed}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-choice.is-selected{border-color:#62d8cb;background:#264e4b;color:#c9fff3}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-choice-check{border-color:#1e2b2f;background:#62d8cb;color:#0b2926}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-section h3{color:#abc0ba}
:root[data-theme=dark] .settings-dropdown--video-candidate .settings-panel-note{border-color:#32484b;color:#829a94}

@media(max-width:760px){.settings-dropdown--video-candidate{width:min(278px,calc(100vw - 18px))!important;padding:10px!important}.settings-dropdown--video-candidate .settings-choice{min-height:31px;font-size:9px}}
@media(max-width:430px){
 .video-composer-body{grid-template-columns:112px minmax(0,1fr);gap:5px}
 .video-studio--stacked .video-create-pane .reference-tile b{font-size:6px}
 .video-studio--stacked .video-create-pane .clear-references{font-size:6px}
 .video-studio--stacked .video-create-pane .reference-actions span{font-size:6px}
 .video-studio--stacked .video-result-state{max-width:42%}
 .video-studio--stacked .video-result-status{padding:4px 6px;font-size:8px}
 .video-studio--stacked .video-result-state .video-timing-record{max-width:120px;font-size:6px}
}
@media(prefers-reduced-motion:reduce){.video-studio--stacked *{scroll-behavior:auto!important;transition:none!important}}

/* Compact composer arrangement requested for the next visual pass. */
.video-studio--stacked .video-composer-body{grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:start}
.video-studio--stacked .video-reference-column{align-items:flex-start}
.video-studio--stacked .video-upload-dropzone{width:58px;height:100%;min-height:82px;padding:0!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;border:0!important;background:transparent!important}
.video-studio--stacked .video-upload-button{width:52px;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 3px;border:1px solid #405457;border-radius:11px;background:#2b3b3f;color:#c9dbd6;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.video-studio--stacked .video-upload-button:hover{transform:translateY(-1px);border-color:#62d8cb;background:#30494a;color:#8be7dc}
.video-studio--stacked .video-upload-button>span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#365053;color:#73ded2}
.video-studio--stacked .video-upload-button .icon{width:16px;height:16px}
.video-studio--stacked .video-upload-button b{font-size:8px;font-weight:620;white-space:nowrap}
.video-studio--stacked .video-upload-list{width:100%;min-width:0;display:grid;justify-items:center;gap:2px}
.video-studio--stacked .video-upload-list .reference-files{width:100%;max-height:42px;display:flex;flex-direction:column;align-items:center;gap:3px;overflow:auto}
.video-studio--stacked .video-upload-list .reference-file{width:52px;height:29px;justify-content:center;padding:3px;border-radius:7px}
.video-studio--stacked .video-upload-list .reference-name{display:none}
.video-studio--stacked .video-upload-list .reference-file button[data-insert-ref]{width:18px;height:18px;min-width:18px;padding:0;border-radius:5px;font-size:9px}
.video-studio--stacked .video-upload-list .reference-file button[data-remove-ref]{width:16px;height:16px;min-width:16px;padding:0;font-size:11px}
.video-studio--stacked .video-upload-list .reference-actions{width:100%;justify-content:center;gap:3px;margin:2px 0 0}
.video-studio--stacked .video-upload-list .reference-actions span{display:none}
.video-studio--stacked .video-upload-list .clear-references{padding:2px 0;font-size:7px}
.video-studio--stacked .video-upload-dropzone.is-dragging{border:1px dashed #62d8cb!important;border-radius:9px;background:#25413f!important}
.video-studio--stacked .video-upload-dropzone.is-dragging .reference-drop-hint{position:absolute;inset:0;z-index:5;display:grid;place-items:center;border-radius:9px;background:#1d3030ed;color:#8de5d8;font-size:8px;text-align:center}
.video-prompt-column{min-width:0}
.video-prompt-submit-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:9px;align-items:stretch}
.video-prompt-submit-row>.mention-field{min-width:0}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:85px;min-height:85px;max-height:120px}
.video-submit-side{display:flex;align-items:stretch;justify-content:center}
.video-submit-side .generation-action{width:46px;flex:0 0 46px;align-items:stretch;gap:4px}
.video-submit-side .generate-button--icon{width:46px;height:46px;min-height:46px;flex:0 0 46px;padding:0;border:0;border-radius:13px;background:#62d8cb;color:#0b2926;font-size:21px;font-weight:700;box-shadow:0 4px 12px #62d8cb2a}
.video-submit-side .generate-button--icon:hover:not(:disabled){background:#7ce4d7;transform:translateY(-1px)}
.video-submit-side .generate-button--icon:disabled{background:#35474a;color:#829894;box-shadow:none}
.video-submit-side .generation-action.is-counting{position:absolute;top:0;right:0;z-index:4;width:min(230px,calc(100vw - 130px));min-width:185px;display:flex;box-shadow:0 8px 24px #07161666}
.video-submit-side .generation-action.is-counting .generate-button{width:auto;height:50px;min-height:50px;flex:1;padding:7px 9px;border-radius:9px;font-size:10px}
.video-submit-side .generation-action.is-counting .generate-button .countdown-number{font-size:23px}
.video-submit-side .generation-action.is-counting .countdown-copy b{font-size:10px}
.video-submit-side .generation-action.is-counting .countdown-copy small{font-size:8px}
.video-submit-side .generation-cancel{min-width:45px;flex:0 0 45px;border-radius:8px;font-size:9px}
.video-studio--stacked .video-settings-grid{grid-template-columns:minmax(155px,1.55fr) repeat(4,minmax(95px,1fr));gap:7px;margin:8px 0 7px}
.video-studio--stacked .video-settings-grid .setting-select{height:49px;min-height:49px;padding:6px 8px;gap:7px}
.video-studio--stacked .video-settings-grid .setting-icon{width:27px;height:27px;flex-basis:27px}
.video-studio--stacked .video-settings-grid .setting-copy small{font-size:7px}
.video-studio--stacked .video-settings-grid .settings-trigger{min-height:19px;font-size:9px}
.video-studio--stacked .video-extra-settings{margin:0;border:1px solid #34464a;border-radius:8px;background:#202d31;color:#c5d2ce;font-size:8px}
.video-studio--stacked .video-extra-settings>summary{padding:7px 9px;color:#9db1ab;cursor:pointer}
.video-studio--stacked .video-extra-settings[open]{padding-bottom:7px}
.video-studio--stacked .video-extra-settings .video-image-controls{margin:0 7px 7px}
.video-studio--stacked .video-extra-settings .video-advanced{margin:0 7px 7px}
.video-studio--stacked .video-api-status{margin-top:5px}
:root[data-theme=dark] .video-studio--stacked .video-upload-button{border-color:#405457;background:#293a3d;color:#c9dbd6}
:root[data-theme=dark] .video-studio--stacked .video-upload-button>span{background:#365053;color:#73ded2}
@media(max-width:980px){
 .video-studio--stacked .video-settings-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 .video-studio--stacked .video-settings-grid .setting-select{padding-inline:5px;gap:4px}
 .video-studio--stacked .video-settings-grid .setting-icon{width:22px;height:22px;flex-basis:22px}
 .video-studio--stacked .video-settings-grid .settings-trigger{font-size:8px}
}
@media(max-width:760px){
 .app-shell--topnav .video-studio--stacked{height:100%;min-height:0;display:block;overflow:hidden}
 .video-studio--stacked .video-composer-body{grid-template-columns:45px minmax(0,1fr);gap:6px}
 .video-studio--stacked .video-upload-dropzone{width:45px;min-height:68px}
 .video-studio--stacked .video-upload-button{width:43px;min-height:51px;gap:3px;border-radius:9px}
 .video-studio--stacked .video-upload-button>span{width:22px;height:22px}
 .video-studio--stacked .video-upload-button b{font-size:7px}
 .video-studio--stacked .video-upload-list .reference-file{width:42px;height:24px;padding:2px}
 .video-studio--stacked .video-upload-list .reference-preview{width:18px;height:18px;flex-basis:18px}
 .video-studio--stacked .video-upload-list .reference-file button[data-insert-ref]{width:15px;height:15px;min-width:15px;font-size:8px}
 .video-studio--stacked .video-upload-list .reference-file button[data-remove-ref]{width:13px;height:13px;min-width:13px;font-size:9px}
 .video-prompt-submit-row{grid-template-columns:minmax(0,1fr) 39px;gap:5px}
 .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:72px;min-height:72px;max-height:94px}
 .video-submit-side .generation-action{width:39px;flex-basis:39px}
 .video-submit-side .generate-button--icon{width:39px;height:42px;min-height:42px;flex-basis:39px;border-radius:11px;font-size:18px}
 .video-submit-side .generation-action.is-counting{width:min(210px,calc(100vw - 98px));min-width:175px}
 .video-studio--stacked .video-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:6px 0}
 .video-studio--stacked .video-settings-grid .setting-select{height:41px;min-height:41px;padding:4px;gap:4px}
 .video-studio--stacked .video-settings-grid .setting-icon{width:19px;height:19px;flex-basis:19px;font-size:11px}
 .video-studio--stacked .video-settings-grid .setting-icon .icon{width:12px;height:12px}
 .video-studio--stacked .video-settings-grid .setting-copy small{font-size:6px}
 .video-studio--stacked .video-settings-grid .settings-trigger{font-size:8px}
 .video-studio--stacked .video-extra-settings>summary{padding:6px 8px;font-size:7px}
}
@media(max-width:430px){
 .video-studio--stacked .video-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .video-studio--stacked .video-settings-grid .setting-select{gap:3px}
 .video-studio--stacked .video-settings-grid .setting-icon{width:17px;height:17px;flex-basis:17px}
 .video-studio--stacked .video-settings-grid .settings-trigger{font-size:7px}
}

/* Keep the composer at the marked size; fold its former lower settings area inside. */
.video-studio--stacked .video-create-pane{height:min(190px,25vh);max-height:min(190px,25vh);padding:0;border:0;background:transparent;box-shadow:none}
.video-studio--stacked .video-create-scroll{min-height:0;flex:1;display:flex;overflow:auto;padding:0}
.video-studio--stacked .video-composer{width:100%;height:100%;min-height:0;flex:1;display:flex;flex-direction:column;gap:0;margin:0;padding:10px;border:1px solid #3a4c50;border-radius:15px;background:#202d31;box-shadow:0 15px 44px #101d1c35}
.video-studio--stacked .composer-topline{height:19px;flex:0 0 19px;margin:0 0 5px}
.video-studio--stacked .video-composer-body{min-height:0;flex:1;grid-template-columns:58px minmax(0,1fr);gap:9px;align-items:stretch}
.video-studio--stacked .video-prompt-column{min-height:0}
.video-studio--stacked .video-prompt-submit-row{min-height:0;flex:1}
.video-studio--stacked .video-create-pane .mention-field{height:100%;min-height:0;flex:1}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{height:100%;min-height:70px;max-height:none;border:1px solid #537175;border-radius:9px;background:#1c292c;box-shadow:0 0 0 1px #62d8cb24}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor:focus-within{border-color:#62d8cb;box-shadow:0 0 0 2px #62d8cb55}
.video-studio--stacked .video-create-pane .composer-footer{min-height:20px;flex:0 0 20px;padding-top:2px}
.video-studio--stacked .video-create-pane .generation-settings{width:100%;flex:0 0 auto;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:3px 0 2px}
.video-studio--stacked .video-create-pane .video-settings-grid .setting-select{height:34px;min-height:34px;padding:3px 7px;gap:5px;border-color:#3a4c50;border-radius:8px;background:#263538}
.video-studio--stacked .video-create-pane .video-settings-grid .setting-icon,.video-studio--stacked .video-create-pane .video-settings-grid .setting-chevron{display:none}
.video-studio--stacked .video-create-pane .video-settings-grid .setting-copy small{margin:0;color:#8ea49e;font-size:7px;line-height:1.1}
.video-studio--stacked .video-create-pane .video-settings-grid .settings-trigger{min-height:16px;padding:0;border:0;background:transparent;color:#dce9e5;font-size:9px;font-weight:620}
.video-studio--stacked .video-create-pane .video-settings-grid .settings-trigger .icon{width:10px;height:10px;color:#8ea9a2}
.video-studio--stacked .video-duration-compact{min-width:0;height:34px;padding:3px 7px;display:flex;flex-direction:column;justify-content:center;gap:1px;border:1px solid #3a4c50;border-radius:8px;background:#263538;color:#dce9e5}
.video-studio--stacked .video-duration-compact>span{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;line-height:1}
.video-studio--stacked .video-duration-compact small{color:#8ea49e;font-size:7px}
.video-studio--stacked .video-duration-compact output{color:#e1ece8;font-size:8px;font-weight:620;font-variant-numeric:tabular-nums}
.video-studio--stacked .video-duration-compact input[type=range]{display:block;width:100%;height:12px;margin:0;padding:0;border:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y;--range-progress:4%}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,#62d8cb 0 var(--range-progress),#526367 var(--range-progress) 100%)}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-track{height:3px;border-radius:4px;background:#526367}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-progress{height:3px;border-radius:4px;background:#62d8cb}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-thumb{width:10px;height:10px;margin-top:-3.5px;border:2px solid #202d31;border-radius:50%;background:#8be6db;appearance:none;-webkit-appearance:none}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-thumb{width:9px;height:9px;border:2px solid #202d31;border-radius:50%;background:#8be6db}
.video-studio--stacked .video-duration-compact input[type=range]:focus-visible{outline:1px solid #62d8cb;outline-offset:2px;border-radius:5px}
.video-studio--stacked .video-extra-settings{flex:0 0 auto;height:auto;min-height:25px;margin:0;border:0;background:transparent;color:#9db1ab;font-size:8px}
.video-studio--stacked .video-extra-settings>summary{width:max-content;max-width:100%;padding:4px 3px;color:#8ea49e;font-size:8px;cursor:pointer}
.video-studio--stacked .video-extra-settings[open]{padding-bottom:4px}
.video-studio--stacked .video-extra-settings .video-image-controls{margin:0 0 5px}
.video-studio--stacked .video-extra-settings .video-advanced{margin:0 0 5px}
.video-studio--stacked .video-api-status.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
:root[data-theme=dark] .video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,#62d8cb 0 var(--range-progress),#526367 var(--range-progress) 100%)}
@media(max-width:760px){
 .video-studio--stacked .video-create-pane{height:min(236px,30dvh);max-height:min(236px,30dvh)}
 .video-studio--stacked .video-composer{padding:7px;border-radius:12px}
 .video-studio--stacked .video-composer-body{grid-template-columns:45px minmax(0,1fr);gap:6px}
 .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{min-height:58px}
 .video-studio--stacked .video-create-pane .generation-settings{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:5px 0 3px}
 .video-studio--stacked .video-create-pane .video-settings-grid .setting-select,.video-studio--stacked .video-duration-compact{height:31px;min-height:31px;padding:2px 5px;border-radius:7px}
 .video-studio--stacked .video-create-pane .video-settings-grid .setting-copy small,.video-studio--stacked .video-duration-compact small{font-size:6px}
 .video-studio--stacked .video-create-pane .video-settings-grid .settings-trigger{min-height:14px;font-size:8px}
 .video-studio--stacked .video-duration-compact output{font-size:7px}
 .video-studio--stacked .video-duration-compact input[type=range]{height:11px}
 .video-studio--stacked .video-extra-settings{min-height:21px}
 .video-studio--stacked .video-extra-settings>summary{padding:3px;font-size:7px}
}

/* Keep the compact composer usable: the six generation controls must remain in view. */
.video-studio--stacked .video-create-pane{
 height:min(330px,38dvh);
 max-height:min(330px,38dvh);
}
.video-studio--stacked .video-create-scroll{
 overflow-y:auto;
 overflow-x:hidden;
 padding:8px 12px 10px;
}
.video-studio--stacked .video-composer{
 height:auto;
 min-height:0;
 flex:0 0 auto;
}
.video-studio--stacked .video-composer-body,
.video-studio--stacked .video-prompt-submit-row{
 flex:0 0 auto;
}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{
 height:86px;
 min-height:86px;
 max-height:86px;
}
.video-studio--stacked .video-create-pane .generation-settings{
 display:grid!important;
 visibility:visible;
 position:relative;
 z-index:2;
}

:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane{
 border:1px solid #dbe8e2;
 background:#f7fbf9;
 box-shadow:0 14px 40px #35534918;
 color:#263b38;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-composer{
 border-color:#dce9e3;
 background:#f8fbf9;
 box-shadow:0 10px 28px #35534912;
}
:root:not([data-theme="dark"]) .video-studio--stacked .prompt-limit,
:root:not([data-theme="dark"]) .video-studio--stacked .char-count{
 color:#71867f;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{
 border-color:#cbded6;
 background:#fff;
 box-shadow:0 0 0 1px #6ab7aa22;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor:focus-within{
 border-color:#53a99d;
 box-shadow:0 0 0 2px #53a99d35;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .prompt-editor>.prompt-highlights,
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea{
 color:#263b38;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea{
 caret-color:#168c83;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .prompt-editor>.prompt-textarea::placeholder{
 color:#8b9e97;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .video-settings-grid .setting-select,
:root:not([data-theme="dark"]) .video-studio--stacked .video-duration-compact{
 border-color:#d4e3dc;
 background:#f1f7f4;
 color:#29443f;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .video-settings-grid .setting-copy small,
:root:not([data-theme="dark"]) .video-studio--stacked .video-duration-compact small{
 color:#71877f;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .video-settings-grid .settings-trigger,
:root:not([data-theme="dark"]) .video-studio--stacked .video-duration-compact output{
 color:#29443f;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-upload-button{
 border-color:#cfe2da;
 background:#edf6f2;
 color:#35544e;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-upload-button>span{
 background:#d8eee7;
 color:#168c83;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-upload-button:hover{
 border-color:#7fc5b9;
 background:#e4f4ef;
 color:#14776e;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-menu{
 border-color:#d7e5df;
 background:#fff;
 color:#304844;
 box-shadow:0 10px 28px #2030271d;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-option{
 background:#fff;
 color:#304844;
}
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-option:hover,
:root:not([data-theme="dark"]) .video-studio--stacked .video-create-pane .mention-option:focus{
 background:#f1f7f4;
}

/* Give the prompt room while keeping all six controls visible in a compact row. */
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{
 height:116px;
 min-height:116px;
 max-height:116px;
}
.video-studio--stacked .video-prompt-submit-row{position:relative}
.video-studio--stacked .video-submit-side{position:relative;z-index:8}
.video-studio--stacked .video-settings-grid .setting-select,
.video-studio--stacked .video-duration-compact{
 height:28px;
 min-height:28px;
 padding:2px 6px;
 gap:4px;
 border-radius:7px;
}
.video-studio--stacked .video-settings-grid .setting-copy small,
.video-studio--stacked .video-duration-compact small{font-size:6px;line-height:1}
.video-studio--stacked .video-settings-grid .settings-trigger{min-height:14px;font-size:8px;line-height:1.1}
.video-studio--stacked .video-settings-grid .settings-trigger>.icon{width:9px;height:9px;flex-basis:9px}
.video-studio--stacked .video-duration-compact output{font-size:7px}
.video-studio--stacked .video-duration-compact input[type=range]{height:10px}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-runnable-track{height:2px}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-track,
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-progress{height:2px}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-thumb{width:8px;height:8px;margin-top:-3px}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-thumb{width:8px;height:8px}
.video-submit-side .generate-button--icon{
 border:1px solid #89c7ba;
 background:linear-gradient(145deg,#d8f0e8,#bfe6da);
 color:#216e63;
 box-shadow:0 5px 14px #4a9e8c25;
 transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.video-submit-side .generate-button--icon:hover:not(:disabled){
 background:linear-gradient(145deg,#c8ebe0,#aee0d2);
 color:#145c52;
 box-shadow:0 7px 18px #4a9e8c36;
}
.video-submit-side .generate-button--icon:disabled{
 border-color:#d9e4df;
 background:#e8eeeb;
 color:#9aa9a2;
 box-shadow:none;
}
.video-submit-side .generation-action.is-counting{
 position:absolute;
 top:0;
 right:0;
 z-index:20;
 width:min(245px,calc(100vw - 100px));
 min-width:min(190px,calc(100vw - 100px));
 display:flex;
 flex-direction:row;
 gap:5px;
 padding:4px;
 border:1px solid #bcd9ce;
 border-radius:12px;
 background:#f8fcfa;
 box-shadow:0 10px 28px #28473b30;
}
.video-submit-side .generation-action.is-counting .generate-button{
 width:auto;
 height:46px;
 min-height:46px;
 flex:1;
 justify-content:center;
 border-radius:9px;
 background:linear-gradient(110deg,#bfe8dc,#d7f1e8);
 color:#28594f;
 box-shadow:none;
}
.video-submit-side .generation-action.is-counting .generate-button .countdown-number{font-size:24px}
.video-submit-side .generation-action.is-counting .countdown-copy b{font-size:10px}
.video-submit-side .generation-action.is-counting .countdown-copy small{font-size:8px}
.video-submit-side .generation-action.is-counting .generation-cancel{
 min-width:45px;
 height:46px;
 flex:0 0 45px;
 border:1px solid #d7e5df;
 border-radius:9px;
 background:#fff;
 color:#60766d;
}
:root[data-theme=dark] .video-submit-side .generation-action.is-counting{
 border-color:#40575b;
 background:#1e2b2f;
 box-shadow:0 10px 28px #07141488;
}
:root[data-theme=dark] .video-submit-side .generation-action.is-counting .generate-button{
 background:linear-gradient(110deg,#28514e,#2f625a);
 color:#d9fff5;
}
:root[data-theme=dark] .video-submit-side .generation-action.is-counting .generation-cancel{
 border-color:#40575b;
 background:#26383c;
 color:#d4e4df;
}

/* Expanded editing opens as a large focused sheet; toolbar controls keep their compact size. */
body:has(.video-create-pane.composer-expanded),body:has(.image-composer.composer-expanded){overflow:hidden}
.video-studio--stacked .video-create-pane.composer-expanded{
 z-index:120;
 inset:16px;
 width:auto;
 height:auto;
 max-height:calc(100dvh - 32px);
 border:1px solid #d6e6de;
 border-radius:18px;
 background:#f7fbf9;
 box-shadow:0 0 0 100vmax #0b191477,0 22px 90px #0b191466;
}
.video-studio--stacked .video-create-pane.composer-expanded .video-create-scroll{height:100%;padding:14px}
.video-studio--stacked .video-create-pane.composer-expanded .video-composer{height:100%;min-height:0;display:flex;flex-direction:column}
.video-studio--stacked .video-create-pane.composer-expanded .video-composer-body{flex:1;min-height:0}
.video-studio--stacked .video-create-pane.composer-expanded .video-prompt-submit-row{flex:1;min-height:0}
.video-studio--stacked .video-create-pane.composer-expanded .mention-field:has(.video-prompt) .prompt-editor{height:100%;min-height:220px;max-height:none}
:root[data-theme=dark] .video-studio--stacked .video-create-pane.composer-expanded{
 border-color:#40575b;
 background:#1e2b2f;
 box-shadow:0 0 0 100vmax #010705c9,0 22px 90px #010705b3;
}
:root[data-theme=dark] .settings-ratio-frame>b{background:#1e2b2f;color:#d8e7e1}
:root[data-theme=dark] .settings-choice.is-selected .settings-ratio-frame>b{color:#bff3e8}

@media(max-width:760px){
 .video-studio--stacked .video-create-pane{
  height:min(340px,44dvh);
  max-height:min(340px,44dvh);
 }
 .video-studio--stacked .video-create-scroll{padding:7px 8px 9px}
 .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor{
  height:72px;
  min-height:72px;
  max-height:72px;
 }
 .video-studio--stacked .video-create-pane:not(.composer-expanded) .mention-field:has(.video-prompt) .prompt-editor{
  height:92px;
  min-height:92px;
  max-height:92px;
 }
 .video-studio--stacked .video-create-pane .video-settings-grid .setting-select,
 .video-studio--stacked .video-create-pane .video-duration-compact{height:27px;min-height:27px;padding:2px 4px}
 .video-submit-side .generation-action.is-counting{width:min(218px,calc(100vw - 88px));min-width:min(185px,calc(100vw - 88px))}
 .video-studio--stacked .video-create-pane.composer-expanded{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px)}
 .video-studio--stacked .video-create-pane.composer-expanded .mention-field:has(.video-prompt) .prompt-editor{height:100%;min-height:180px;max-height:none}
}

/* Shared video/image composer: compact rounded tray with a full-width submit row. */
.video-studio--stacked .video-create-pane,
.image-workspace--stacked .image-composer{
 width:min(1160px,calc(100% - 40px));
 height:auto;
 min-height:0;
 max-height:min(420px,58dvh);
 padding:14px 16px;
 overflow:visible;
 border:0;
 border-radius:18px;
 background:#f7fbf9;
 box-shadow:0 14px 40px #35534918;
 color:#263b38;
}
.video-studio--stacked .video-create-pane{bottom:12px}
.video-studio--stacked .video-create-scroll{
 min-height:0;
 flex:0 1 auto;
 overflow:visible;
 padding:0;
}
.video-studio--stacked .video-composer,
.image-workspace--stacked .image-composer{
 display:flex;
 flex-direction:column;
 gap:8px;
 margin:0;
 padding:0;
 border:0;
 border-radius:0;
 background:transparent;
 box-shadow:none;
}
.video-studio--stacked .composer-topline,
.image-workspace--stacked .composer-topline{
 height:22px;
 min-height:22px;
 flex:0 0 22px;
 margin:0;
}
.video-studio--stacked .video-composer-body,
.image-workspace--stacked .image-composer-body{
 min-height:0;
 flex:0 0 auto;
 grid-template-columns:64px minmax(0,1fr);
 gap:10px;
 align-items:stretch;
}
.video-studio--stacked .video-reference-column,
.image-workspace--stacked .image-reference-column{
 align-items:flex-start;
}
.video-studio--stacked .shared-reference-picker,
.image-workspace--stacked .shared-reference-picker{
 position:relative;
 width:58px;
 min-width:58px;
 min-height:58px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:flex-start;
 gap:5px;
 overflow:visible;
}
.video-studio--stacked .shared-reference-picker button,
.image-workspace--stacked .shared-reference-picker button{
 cursor:pointer;
}
.video-studio--stacked .video-prompt-column,
.image-workspace--stacked .image-prompt-column{
 position:relative;
 min-width:0;
 min-height:0;
 display:flex;
 flex-direction:column;
 gap:5px;
 overflow:visible;
}
.video-studio--stacked .video-prompt-submit-row,
.image-workspace--stacked .image-prompt-submit-row{
 position:relative;
 width:100%;
 min-width:0;
 height:116px;
 min-height:116px;
 max-height:116px;
 flex:0 0 116px;
 display:block;
}
.video-studio--stacked .video-prompt-submit-row>.mention-field,
.image-workspace--stacked .image-prompt-submit-row>.mention-field{
 width:100%;
 height:100%;
 min-width:0;
 min-height:0;
}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor,
.image-workspace--stacked .image-prompt-submit-row .prompt-editor{
 width:100%;
 height:116px;
 min-height:116px;
 max-height:116px;
 padding:0;
 overflow:hidden;
 border:1px solid #cbded6;
 border-radius:11px;
 background:#fff;
 box-shadow:0 0 0 1px #6ab7aa22;
}
.video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor:focus-within,
.image-workspace--stacked .image-prompt-submit-row .prompt-editor:focus-within{
 border-color:#53a99d;
 box-shadow:0 0 0 2px #53a99d35;
}
.video-studio--stacked .video-composer .prompt-editor>.prompt-highlights,
.video-studio--stacked .video-composer .prompt-editor>.prompt-textarea,
.image-workspace--stacked .image-composer .prompt-editor>.prompt-highlights,
.image-workspace--stacked .image-composer .prompt-editor>.prompt-textarea{
 padding:11px 13px;
 color:#263b38;
 font-size:12px;
 line-height:1.65;
}
.video-studio--stacked .video-composer .prompt-editor>.prompt-textarea,
.image-workspace--stacked .image-composer .prompt-editor>.prompt-textarea{caret-color:#168c83}
.video-studio--stacked .video-composer .prompt-editor>.prompt-textarea::placeholder,
.image-workspace--stacked .image-composer .prompt-editor>.prompt-textarea::placeholder{color:#8b9e97}
.video-studio--stacked .video-composer .prompt-reference,
.image-workspace--stacked .image-composer .prompt-reference{background:#d8eee7;color:#176f65}
.video-studio--stacked .video-composer .composer-footer,
.image-workspace--stacked .image-composer .composer-footer{
 min-height:17px;
 flex:0 0 17px;
 padding:0;
}
.video-studio--stacked .composer-tools button,
.image-workspace--stacked .composer-tools button{width:26px;height:25px}
.video-studio--stacked .video-settings-grid,
.image-workspace--stacked .image-settings-grid{
 width:100%;
 min-width:0;
 flex:0 0 auto;
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:6px;
 margin:1px 0 0;
}
.image-workspace--stacked .image-settings-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.video-studio--stacked .video-settings-grid .setting-select,
.video-studio--stacked .video-duration-compact,
.image-workspace--stacked .image-settings-grid .setting-select,
.image-workspace--stacked .image-inline-select{
 width:100%;
 height:34px;
 min-width:0;
 min-height:34px;
 padding:4px 8px;
 gap:3px;
 border:1px solid #d4e3dc;
 border-radius:8px;
 background:#f1f7f4;
 color:#29443f;
}
.video-studio--stacked .video-settings-grid .setting-icon,
.video-studio--stacked .video-settings-grid .setting-chevron,
.image-workspace--stacked .image-settings-grid .setting-icon,
.image-workspace--stacked .image-settings-grid .setting-chevron{display:none}
.video-studio--stacked .video-settings-grid .setting-copy,
.image-workspace--stacked .image-settings-grid .setting-copy{min-width:0;width:100%}
.video-studio--stacked .video-settings-grid .setting-copy small,
.image-workspace--stacked .image-settings-grid .setting-copy small,
.image-workspace--stacked .image-inline-select>small,
.video-studio--stacked .video-duration-compact small{
 display:block;
 margin:0 0 2px;
 color:#71877f;
 font-size:7px;
 line-height:1;
}
.video-studio--stacked .video-settings-grid .settings-trigger,
.image-workspace--stacked .image-settings-grid .settings-trigger,
.image-workspace--stacked .image-inline-select select{
 width:100%;
 min-width:0;
 min-height:15px;
 padding:0;
 border:0;
 outline:0;
 appearance:none;
 background:transparent;
 color:#29443f;
 font-size:9px;
 font-weight:620;
 line-height:1.2;
 text-overflow:ellipsis;
 white-space:nowrap;
 overflow:hidden;
}
.image-workspace--stacked .image-inline-select{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 justify-content:center;
}
.video-studio--stacked .video-duration-compact{display:flex;flex-direction:column;justify-content:center}
.video-studio--stacked .video-duration-compact>span{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;line-height:1}
.video-studio--stacked .video-duration-compact output{color:#29443f;font-size:8px;font-weight:620;font-variant-numeric:tabular-nums;white-space:nowrap}
.video-studio--stacked .video-duration-compact input[type=range]{display:block;width:100%;height:11px;margin:1px 0 0;padding:0;border:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,#4ca89b 0 var(--range-progress),#cad9d2 var(--range-progress) 100%)}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-track{height:3px;border-radius:4px;background:#cad9d2}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-progress{height:3px;border-radius:4px;background:#4ca89b}
.video-studio--stacked .video-duration-compact input[type=range]::-webkit-slider-thumb{width:9px;height:9px;margin-top:-3px;border:1.5px solid #f7fbf9;border-radius:50%;background:#2d9184;appearance:none;-webkit-appearance:none}
.video-studio--stacked .video-duration-compact input[type=range]::-moz-range-thumb{width:9px;height:9px;border:1.5px solid #f7fbf9;border-radius:50%;background:#2d9184}
.video-studio--stacked .composer-submit-row,
.image-workspace--stacked .composer-submit-row{
 position:relative;
 width:100%;
 min-height:42px;
 flex:0 0 auto;
 display:flex;
 justify-content:flex-end;
 align-items:center;
 margin:0;
 padding:0 0 0;
}
.video-studio--stacked .composer-submit-row .generation-action,
.image-workspace--stacked .composer-submit-row .generation-action{
 position:relative!important;
 inset:auto!important;
 width:min(260px,100%);
 min-width:0;
 max-width:100%;
 flex:0 0 auto;
 display:flex;
 flex-direction:row;
 align-items:stretch;
 gap:7px;
 padding:0;
 border:0;
 border-radius:0;
 background:transparent;
 box-shadow:none;
}
.video-studio--stacked .composer-submit-row .generate-button,
.image-workspace--stacked .composer-submit-row .generate-button{
 position:relative;
 width:100%;
 height:42px;
 min-height:42px;
 flex:1 1 auto;
 padding:8px 14px;
 border:0;
 border-radius:11px;
 background:linear-gradient(135deg,#197e72,#259b8c);
 color:#fff;
 font-size:11px;
 font-weight:700;
 box-shadow:0 5px 15px #2d948522;
 transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.video-studio--stacked .composer-submit-row .generate-button:hover:not(:disabled),
.image-workspace--stacked .composer-submit-row .generate-button:hover:not(:disabled){transform:translateY(-1px);background:linear-gradient(135deg,#176f66,#218c7e);box-shadow:0 7px 19px #2d948536}
.video-studio--stacked .composer-submit-row .generate-button:disabled,
.image-workspace--stacked .composer-submit-row .generate-button:disabled{background:#dce8e3;color:#85958e;box-shadow:none}
.video-studio--stacked .composer-submit-row .generate-button span,
.image-workspace--stacked .composer-submit-row .generate-button span{color:inherit;font-size:9px}
.video-studio--stacked .composer-submit-row .generate-button--icon::before{content:none}
.video-studio--stacked .composer-submit-row .generate-button--icon{font-size:11px}
.video-studio--stacked .composer-submit-row .generation-action.is-counting,
.image-workspace--stacked .composer-submit-row .generation-action.is-counting{
 position:relative!important;
 top:auto!important;
 right:auto!important;
 z-index:2;
 width:min(330px,100%);
 min-width:0;
 max-width:100%;
 padding:3px;
 border:1px solid #c9ded5;
 border-radius:13px;
 background:#f8fcfa;
 box-shadow:0 7px 20px #28473b24;
}
.video-studio--stacked .composer-submit-row .generation-action.is-counting .generate-button,
.image-workspace--stacked .composer-submit-row .generation-action.is-counting .generate-button{
 width:auto;
 height:42px;
 min-height:42px;
 flex:1 1 auto;
 border-radius:9px;
 background:linear-gradient(110deg,#bfe8dc,#d7f1e8);
 color:#28594f;
 box-shadow:none;
}
.video-studio--stacked .composer-submit-row .generation-action.is-counting .generate-button span,
.image-workspace--stacked .composer-submit-row .generation-action.is-counting .generate-button span{color:inherit}
.video-studio--stacked .composer-submit-row .countdown-number,
.image-workspace--stacked .composer-submit-row .countdown-number{font-size:22px;font-weight:750}
.video-studio--stacked .composer-submit-row .countdown-copy,
.image-workspace--stacked .composer-submit-row .countdown-copy{display:grid;gap:2px;text-align:left}
.video-studio--stacked .composer-submit-row .countdown-copy b,
.image-workspace--stacked .composer-submit-row .countdown-copy b{font-size:10px}
.video-studio--stacked .composer-submit-row .countdown-copy small,
.image-workspace--stacked .composer-submit-row .countdown-copy small{font-size:8px}
.video-studio--stacked .composer-submit-row .generation-cancel,
.image-workspace--stacked .composer-submit-row .generation-cancel{
 height:42px;
 min-width:54px;
 flex:0 0 54px;
 border:1px solid #d7e5df;
 border-radius:9px;
 background:#fff;
 color:#60766d;
 font-size:10px;
}
.video-studio--stacked .video-api-status,
.image-workspace--stacked .image-api-status{margin:0}
.video-studio--stacked .image-size-note,
.image-workspace--stacked .image-size-note{margin:0;font-size:8px;line-height:1.3}
.video-studio--stacked .video-create-pane .mention-menu,
.image-workspace--stacked .image-composer .mention-menu{z-index:140}
:root[data-theme=dark] .video-studio--stacked .video-create-pane,
:root[data-theme=dark] .image-workspace--stacked .image-composer{background:#192528;color:#dce9e5;box-shadow:0 14px 40px #0004}
:root[data-theme=dark] .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor,
:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor{border-color:#405457;background:#1c292c;box-shadow:0 0 0 1px #62d8cb24}
:root[data-theme=dark] .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor:focus-within,
:root[data-theme=dark] .image-workspace--stacked .image-prompt-submit-row .prompt-editor:focus-within{border-color:#62d8cb;box-shadow:0 0 0 2px #62d8cb55}
:root[data-theme=dark] .video-studio--stacked .video-composer .prompt-editor>.prompt-highlights,
:root[data-theme=dark] .video-studio--stacked .video-composer .prompt-editor>.prompt-textarea,
:root[data-theme=dark] .image-workspace--stacked .image-composer .prompt-editor>.prompt-highlights,
:root[data-theme=dark] .image-workspace--stacked .image-composer .prompt-editor>.prompt-textarea{color:#e6f0ed}
:root[data-theme=dark] .video-studio--stacked .video-composer .prompt-editor>.prompt-textarea,
:root[data-theme=dark] .image-workspace--stacked .image-composer .prompt-editor>.prompt-textarea{caret-color:#62d8cb}
:root[data-theme=dark] .video-studio--stacked .video-settings-grid .setting-select,
:root[data-theme=dark] .video-studio--stacked .video-duration-compact,
:root[data-theme=dark] .image-workspace--stacked .image-settings-grid .setting-select,
:root[data-theme=dark] .image-workspace--stacked .image-inline-select{border-color:#3a4c50;background:#263538;color:#dce9e5}
:root[data-theme=dark] .video-studio--stacked .video-settings-grid .setting-copy small,
:root[data-theme=dark] .video-studio--stacked .video-duration-compact small,
:root[data-theme=dark] .image-workspace--stacked .image-settings-grid .setting-copy small,
:root[data-theme=dark] .image-workspace--stacked .image-inline-select>small{color:#a4b5a8}
:root[data-theme=dark] .video-studio--stacked .video-settings-grid .settings-trigger,
:root[data-theme=dark] .video-studio--stacked .video-duration-compact output,
:root[data-theme=dark] .image-workspace--stacked .image-settings-grid .settings-trigger,
:root[data-theme=dark] .image-workspace--stacked .image-inline-select select{color:#dce9e5}
:root[data-theme=dark] .video-studio--stacked .composer-submit-row .generate-button,
:root[data-theme=dark] .image-workspace--stacked .composer-submit-row .generate-button{background:linear-gradient(135deg,#26988a,#38ad9d);color:#f1fffb}
:root[data-theme=dark] .video-studio--stacked .composer-submit-row .generate-button:disabled,
:root[data-theme=dark] .image-workspace--stacked .composer-submit-row .generate-button:disabled{background:#344447;color:#849b95}
:root[data-theme=dark] .video-studio--stacked .composer-submit-row .generation-action.is-counting,
:root[data-theme=dark] .image-workspace--stacked .composer-submit-row .generation-action.is-counting{border-color:#40575b;background:#1e2b2f;box-shadow:0 10px 28px #07141488}
:root[data-theme=dark] .video-studio--stacked .composer-submit-row .generation-action.is-counting .generate-button,
:root[data-theme=dark] .image-workspace--stacked .composer-submit-row .generation-action.is-counting .generate-button{background:linear-gradient(110deg,#28514e,#2f625a);color:#d9fff5}
:root[data-theme=dark] .video-studio--stacked .composer-submit-row .generation-cancel,
:root[data-theme=dark] .image-workspace--stacked .composer-submit-row .generation-cancel{border-color:#40575b;background:#26383c;color:#d4e4df}
.video-studio--stacked .video-create-pane.composer-expanded,
.image-workspace--stacked .image-composer.composer-expanded{
 position:fixed;
 z-index:120;
 inset:14px;
 width:auto;
 height:auto;
 max-height:calc(100dvh - 28px);
 display:flex;
 overflow:visible;
 padding:20px 24px;
 border:0;
 border-radius:20px;
 background:#f7fbf9;
 box-shadow:0 0 0 100vmax #0b191477,0 22px 90px #0b191466;
}
.video-studio--stacked .video-create-pane.composer-expanded .video-create-scroll{height:100%;flex:1;overflow:visible}
.video-studio--stacked .video-create-pane.composer-expanded .video-composer,
.image-workspace--stacked .image-composer.composer-expanded{height:100%;min-height:0;flex:1;gap:12px}
.video-studio--stacked .video-create-pane.composer-expanded .video-composer-body,
.image-workspace--stacked .image-composer.composer-expanded .image-composer-body{flex:1;min-height:0}
.video-studio--stacked .video-create-pane.composer-expanded .video-prompt-submit-row,
.image-workspace--stacked .image-composer.composer-expanded .image-prompt-submit-row{height:auto;min-height:180px;max-height:none;flex:1 1 auto}
.video-studio--stacked .video-create-pane.composer-expanded .mention-field:has(.video-prompt) .prompt-editor,
.image-workspace--stacked .image-composer.composer-expanded .image-prompt-submit-row .prompt-editor{height:100%;min-height:180px;max-height:none}
:root[data-theme=dark] .video-studio--stacked .video-create-pane.composer-expanded,
:root[data-theme=dark] .image-workspace--stacked .image-composer.composer-expanded{background:#1e2b2f;box-shadow:0 0 0 100vmax #010705c9,0 22px 90px #010705b3}
@media(max-width:760px){
 .video-studio--stacked .video-create-pane,
 .image-workspace--stacked .image-composer{width:calc(100% - 12px);bottom:7px;max-height:min(430px,62dvh);padding:10px;border-radius:14px}
 .video-studio--stacked .video-composer-body,
 .image-workspace--stacked .image-composer-body{grid-template-columns:48px minmax(0,1fr);gap:6px}
 .video-studio--stacked .shared-reference-picker,
 .image-workspace--stacked .shared-reference-picker{width:44px;min-width:44px}
 .video-studio--stacked .video-prompt-submit-row,
 .image-workspace--stacked .image-prompt-submit-row,
 .video-studio--stacked .video-create-pane .mention-field:has(.video-prompt) .prompt-editor,
 .image-workspace--stacked .image-prompt-submit-row .prompt-editor{height:92px;min-height:92px;max-height:92px;flex-basis:92px}
 .video-studio--stacked .video-settings-grid,
 .image-workspace--stacked .image-settings-grid{gap:4px}
 .video-studio--stacked .video-settings-grid .setting-select,
 .video-studio--stacked .video-duration-compact,
 .image-workspace--stacked .image-settings-grid .setting-select,
 .image-workspace--stacked .image-inline-select{height:31px;min-height:31px;padding:3px 4px}
 .video-studio--stacked .video-settings-grid .setting-copy small,
 .video-studio--stacked .video-duration-compact small,
 .image-workspace--stacked .image-settings-grid .setting-copy small,
 .image-workspace--stacked .image-inline-select>small{font-size:6px}
 .video-studio--stacked .video-settings-grid .settings-trigger,
 .image-workspace--stacked .image-settings-grid .settings-trigger,
 .image-workspace--stacked .image-inline-select select{font-size:7px}
 .video-studio--stacked .composer-submit-row .generation-action,
 .image-workspace--stacked .composer-submit-row .generation-action{width:min(245px,100%)}
 .video-studio--stacked .composer-submit-row .generate-button,
 .image-workspace--stacked .composer-submit-row .generate-button{height:39px;min-height:39px;padding:6px 9px;font-size:10px}
 .video-studio--stacked .composer-submit-row .generation-action.is-counting .generate-button,
 .image-workspace--stacked .composer-submit-row .generation-action.is-counting .generate-button{height:39px;min-height:39px}
 .video-studio--stacked .composer-submit-row .generation-cancel,
 .image-workspace--stacked .composer-submit-row .generation-cancel{height:39px;min-width:48px;flex-basis:48px}
 .video-studio--stacked .video-create-pane.composer-expanded,
 .image-workspace--stacked .image-composer.composer-expanded{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px);padding:14px;border-radius:15px}
}

/* The shared reference shelf opens as a horizontal strip above the prompt area. */
.video-studio--stacked .composer-input-area,
.image-workspace--stacked .composer-input-area{position:relative;min-width:0}
.creative-reference-shelf[hidden]{display:none!important}
.creative-reference-shelf.is-expanded{
 position:absolute;
 z-index:135;
 right:0;
 bottom:calc(100% + 8px);
 left:0;
 width:min(100%,960px);
 max-width:calc(100vw - 48px);
 min-height:76px;
 padding:8px;
 display:flex;
 align-items:center;
 gap:8px;
 overflow-x:auto;
 overflow-y:hidden;
 border:1px solid #d6e6df;
 border-radius:12px;
 background:#f8fcfa;
 box-shadow:0 12px 34px #20382f28;
 scrollbar-width:thin;
 scrollbar-color:#c3d3cc transparent;
}
.creative-reference-shelf.is-expanded>*{flex:0 0 auto}
.creative-reference-shelf.is-expanded img,
.creative-reference-shelf.is-expanded video{max-width:92px;max-height:62px;object-fit:cover;border-radius:7px}
.shared-reference-picker .is-expanded{z-index:140}
.shared-reference-picker.is-expanded{z-index:136}
.shared-reference-picker [data-shared-reference-toggle][aria-expanded="true"]{border-color:#69b8ab;background:#e4f4ef;color:#14776e}
:root[data-theme=dark] .creative-reference-shelf.is-expanded{border-color:#40575b;background:#1e2b2f;box-shadow:0 12px 34px #0007}
@media(max-width:760px){
 .creative-reference-shelf.is-expanded{max-width:calc(100vw - 28px);min-height:68px;padding:6px}
}

.video-studio--stacked .video-create-pane,
.image-workspace--stacked .image-composer{padding:14px 16px 44px}
.video-studio--stacked .video-composer .video-api-status,
.image-workspace--stacked .image-composer .image-api-status,
.image-workspace--stacked .image-composer .image-size-note,
.image-workspace--stacked .image-composer .image-composer-note{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.shared-reference-picker{isolation:isolate}
.shared-reference-upload-button{
 position:relative;
 width:58px;
 min-width:58px;
 min-height:58px;
 padding:5px 3px 4px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:3px;
 border:1px solid #cfe2da;
 border-radius:11px;
 background:#edf6f2;
 color:#35544e;
 transition:background .16s,border-color .16s,transform .16s;
}
.shared-reference-upload-button:hover{transform:translateY(-1px);border-color:#7fc5b9;background:#e4f4ef;color:#14776e}
.shared-reference-upload-button .shared-reference-plus{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#d8eee7;color:#168c83}
.shared-reference-upload-button .shared-reference-plus .icon{width:14px;height:14px}
.shared-reference-upload-button>b{font-size:8px;font-weight:650;line-height:1;white-space:nowrap}
.shared-reference-upload-button>small{position:absolute;right:3px;top:3px;color:#71867f;font-size:6px;line-height:1}
.shared-reference-mini-stack{position:absolute;right:-4px;bottom:-5px;width:29px;height:25px;pointer-events:none}
.shared-reference-mini{position:absolute;left:calc(var(--stack-order)*3px);top:calc(var(--stack-order)*2px);width:23px;height:19px;display:grid;place-items:center;overflow:hidden;border:1px solid #fff;border-radius:5px;background:#d8e9e2;box-shadow:0 1px 3px #18332b35;transform:rotate(calc((var(--stack-order) - 1)*7deg));transform-origin:center}
.shared-reference-mini img,.shared-reference-mini video{width:100%;height:100%;object-fit:cover}
.shared-reference-mini-icon{display:grid;place-items:center;width:100%;height:100%;color:#168c83;background:#d8eee7}
.shared-reference-mini-icon .icon{width:12px;height:12px}
.shared-reference-mini-count{position:absolute;right:-3px;top:-5px;min-width:13px;height:13px;padding:0 2px;display:grid;place-items:center;border-radius:8px;background:#167c70;color:white;font-size:7px;line-height:1}
.shared-reference-expand{width:23px;height:19px;padding:0;border:0;border-radius:5px;background:transparent;color:#71867f;font-size:12px;line-height:1;cursor:pointer}
.shared-reference-expand:hover{background:#e8f2ee;color:#168c83}
.shared-reference-picker.is-dragging .shared-reference-upload-button{border-color:#168c83;background:#dff3eb;box-shadow:0 0 0 3px #168c8330}
.shared-reference-direct-drop{position:absolute;inset:-4px;z-index:3;display:none;place-items:center;border:1px dashed #168c83;border-radius:12px;background:#eaf7f2ed;color:#168c83;font-size:8px;text-align:center;pointer-events:none}
.shared-reference-picker.is-dragging .shared-reference-direct-drop{display:grid}
.creative-reference-shelf{
 box-sizing:border-box;
 width:100%;
 overflow:hidden;
 border:1px solid #d6e6df;
 border-radius:12px;
 background:#f8fcfa;
 box-shadow:0 12px 34px #20382f28;
 color:#29443f;
}
.creative-reference-shelf header{height:28px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3eee8;color:#71867f;font-size:8px}
.creative-reference-shelf header>div{display:flex;align-items:center;gap:5px}
.creative-reference-shelf header button{padding:3px 6px;border:0;border-radius:5px;background:transparent;color:#688078;font-size:8px;cursor:pointer}
.creative-reference-shelf header button:hover:not(:disabled){background:#e7f2ed;color:#168c83}
.creative-reference-shelf header button:disabled{opacity:.45;cursor:not-allowed}
.creative-reference-track{min-height:77px;padding:7px;display:flex;align-items:stretch;gap:7px;overflow:auto hidden;scrollbar-width:thin;scrollbar-color:#c3d3cc transparent}
.creative-reference-item{position:relative;width:86px;min-width:86px;min-height:72px;padding:4px;display:flex;flex-direction:column;gap:3px;border:1px solid #dce9e3;border-radius:8px;background:#fff;color:#38564f}
.creative-reference-preview{width:100%;height:42px;min-height:42px;padding:0;display:grid;place-items:center;overflow:hidden;border:0;border-radius:5px;background:#edf4f0;color:#168c83;cursor:pointer}
.creative-reference-preview img,.creative-reference-preview video{width:100%;height:100%;object-fit:cover}
.creative-reference-preview:hover{outline:2px solid #70bfb2;outline-offset:1px}
.creative-reference-audio-icon,.creative-reference-file-icon{display:grid;place-items:center;width:100%;height:100%;background:#e6f3ee;color:#168c83}
.creative-reference-audio-icon .icon,.creative-reference-file-icon .icon{width:17px;height:17px}
.creative-reference-name{display:block;overflow:hidden;color:#536c64;font-size:7px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.creative-reference-actions{position:absolute;top:2px;right:2px;display:flex;gap:2px}
.creative-reference-actions button{width:17px;height:17px;padding:0;display:grid;place-items:center;border:1px solid #dce9e3;border-radius:5px;background:#ffffffed;color:#60766d;font-size:10px;line-height:1;cursor:pointer}
.creative-reference-actions button:hover{border-color:#70bfb2;background:white;color:#14776e}
.creative-reference-actions button .icon{width:10px;height:10px}
.creative-reference-empty{margin:auto;color:#81938b;font-size:9px}
:root[data-theme=dark] .shared-reference-upload-button{border-color:#405457;background:#293a3d;color:#c9dbd6}
:root[data-theme=dark] .shared-reference-upload-button:hover{border-color:#62d8cb;background:#2b4646;color:#d9fff5}
:root[data-theme=dark] .shared-reference-upload-button .shared-reference-plus{background:#365053;color:#73ded2}
:root[data-theme=dark] .shared-reference-upload-button>small{color:#a4b5a8}
:root[data-theme=dark] .shared-reference-mini{border-color:#263739;background:#304446}
:root[data-theme=dark] .shared-reference-mini-icon{background:#365053;color:#73ded2}
:root[data-theme=dark] .shared-reference-expand{color:#a4b5a8}
:root[data-theme=dark] .shared-reference-expand:hover{background:#263b3d;color:#73ded2}
:root[data-theme=dark] .creative-reference-shelf{border-color:#40575b;background:#1e2b2f;color:#dce9e5}
:root[data-theme=dark] .creative-reference-shelf header{border-color:#304244;color:#a4b5a8}
:root[data-theme=dark] .creative-reference-shelf header button{color:#b9cdc6}
:root[data-theme=dark] .creative-reference-shelf header button:hover:not(:disabled){background:#263f40;color:#73ded2}
:root[data-theme=dark] .creative-reference-item{border-color:#405457;background:#263538;color:#dce9e5}
:root[data-theme=dark] .creative-reference-preview{background:#304446;color:#73ded2}
:root[data-theme=dark] .creative-reference-audio-icon,:root[data-theme=dark] .creative-reference-file-icon{background:#365053;color:#73ded2}
:root[data-theme=dark] .creative-reference-name{color:#b9cdc6}
:root[data-theme=dark] .creative-reference-actions button{border-color:#405457;background:#1e2b2f;color:#c9dbd6}
:root[data-theme=dark] .creative-reference-actions button:hover{border-color:#62d8cb;color:#a2f2e6}
@media(max-width:760px){
 .video-studio--stacked .video-create-pane,
 .image-workspace--stacked .image-composer{padding:10px 10px 38px}
 .shared-reference-upload-button{width:44px;min-width:44px;min-height:50px}
 .shared-reference-upload-button .shared-reference-plus{width:19px;height:19px}
 .shared-reference-upload-button>b{font-size:7px}
 .shared-reference-mini-stack{right:-5px;bottom:-5px;transform:scale(.84);transform-origin:bottom right}
 .shared-reference-expand{width:20px;height:17px}
 .creative-reference-track{min-height:67px;padding:6px;gap:5px}
 .creative-reference-item{width:76px;min-width:76px;min-height:62px;padding:3px}
 .creative-reference-preview{height:36px;min-height:36px}
}
.image-workspace--stacked .image-options .model-setting.settings-field-wrapper{grid-column:auto!important;display:flex;gap:0;min-width:0;padding:4px 8px}
.video-studio--stacked .video-settings-grid .model-setting.settings-field-wrapper{grid-column:auto!important;min-width:0}
.image-workspace--stacked .image-settings-grid .model-setting .setting-icon{display:none}
.image-workspace--stacked .image-settings-grid .model-setting .setting-copy{min-width:0;width:100%}
.image-workspace--stacked .image-settings-grid .model-setting .setting-copy>small{margin:0 0 2px;color:#71877f;font-size:7px;line-height:1}
.image-workspace--stacked .image-settings-grid .model-setting .settings-trigger{min-height:15px;font-size:9px;line-height:1.2}
.video-studio--stacked .video-settings-grid .model-setting .setting-copy>small{margin:0 0 2px;font-size:7px;line-height:1}
.video-studio--stacked .video-settings-grid .model-setting .settings-trigger{min-height:15px;font-size:9px;line-height:1.2}
:root[data-theme=dark] .image-workspace--stacked .image-settings-grid .model-setting .setting-copy>small{color:#a4b5a8}
@media(max-width:760px){
 .image-workspace--stacked .image-options .model-setting.settings-field-wrapper{padding:3px 4px}
 .image-workspace--stacked .image-settings-grid .model-setting .settings-trigger,
 .video-studio--stacked .video-settings-grid .model-setting .settings-trigger{font-size:7px}
}
.video-studio--stacked .composer-input-area,
.image-workspace--stacked .composer-input-area{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.video-studio--stacked .video-advanced-inline{
 display:flex;align-items:center;gap:6px;width:100%;min-height:25px;margin:3px 0 1px;padding:2px 1px;
 overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#536a69 transparent;
 white-space:nowrap;color:#a9bbb6;font-size:8px;
}
.video-studio--stacked .video-advanced-inline .video-option-check{display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;min-height:20px;padding:0 3px;color:var(--color-text);font-size:8px;white-space:nowrap;cursor:pointer}
.video-studio--stacked .video-advanced-inline .video-option-check input{width:11px;height:11px;margin:0;accent-color:var(--color-accent)}
.video-studio--stacked .video-advanced-inline .video-option-field{display:inline-flex;flex:0 0 auto;align-items:center;gap:4px;min-height:20px;padding:0 5px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-raised);color:var(--color-muted);font-size:8px;white-space:nowrap}
.video-studio--stacked .video-advanced-inline .video-option-field select,.video-studio--stacked .video-advanced-inline .video-option-field input{height:18px;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--color-text);font:inherit;font-size:8px}
.video-studio--stacked .video-advanced-inline .video-option-field select{width:54px}
.video-studio--stacked .video-advanced-inline .video-option-number input{width:25px;text-align:center;font-variant-numeric:tabular-nums}
.video-studio--stacked .video-advanced-inline .video-draft-source select{width:130px}
.creative-reference-shelf.is-expanded{
 position:absolute;
 right:0;
 bottom:calc(100% + 8px);
 left:0;
 width:100%;
 max-width:calc(100vw - 48px);
 min-height:0;
 padding:0;
 display:block;
 gap:0;
 overflow:hidden;
 border:1px solid #d6e6df;
 border-radius:12px;
 background:#f8fcfa;
 box-shadow:0 12px 34px #20382f28;
}
.image-workspace--stacked .image-composer .image-size-note{position:relative!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important;overflow-wrap:anywhere!important;clip:auto!important;white-space:normal!important;border:0!important;color:#71867f;font-size:8px;line-height:1.3}
.image-workspace--stacked .image-composer .image-api-status:not(.is-error){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.image-workspace--stacked .image-composer .image-api-status.is-error{position:relative!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important;overflow-wrap:anywhere!important;clip:auto!important;white-space:normal!important;border:0!important;color:#a64f43;font-size:8px;line-height:1.3}
:root[data-theme=dark] .image-workspace--stacked .image-composer .image-size-note{color:#a4b5a8}
:root[data-theme=dark] .image-workspace--stacked .image-composer .image-api-status.is-error{color:#ffad9d}
:root[data-theme=dark] .creative-reference-shelf.is-expanded{border-color:#40575b;background:#1e2b2f;box-shadow:0 12px 34px #0007}
@media(max-width:760px){.creative-reference-shelf.is-expanded{max-width:calc(100vw - 28px)}}
@media(max-width:760px){
 .video-studio--stacked .video-advanced-inline{gap:4px;min-height:23px;margin:2px 0;padding-bottom:2px}
 .video-studio--stacked .video-advanced-inline .video-option-check,.video-studio--stacked .video-advanced-inline .video-option-field{min-height:19px;padding-inline:3px;font-size:7px}
}
.video-studio--stacked .composer-submit-row .generate-button--icon[data-action-state="ready"]::before{content:'立即生成视频';font-size:11px;font-weight:700}
.video-studio--stacked .composer-submit-row .generate-button--icon[data-action-state="ready"]>span[aria-hidden="true"]{display:none}

/* Keep the project/episode navigation in normal flow and give the composer the
   remaining viewport height; 100% on the studio previously added the nav height. */
.app-shell--topnav .main-area:has(.video-studio--stacked),
.app-shell--topnav .main-area:has(.image-workspace--stacked){
 display:flex;
 flex:1 1 auto;
 flex-direction:column;
 height:auto;
 min-height:0;
 overflow:hidden;
}
.app-shell--topnav .page-content:has(.video-studio--stacked),
.app-shell--topnav .page-content:has(.image-workspace--stacked){
 box-sizing:border-box;
 display:flex;
 flex:1 1 auto;
 flex-direction:column;
 height:auto;
 min-height:0;
 overflow:hidden;
}
.app-shell--topnav .page-content:has(.video-studio--stacked)>.episode-workspace-nav,
.app-shell--topnav .page-content:has(.image-workspace--stacked)>.episode-workspace-nav{flex:0 0 auto}
.app-shell--topnav .video-studio--stacked,
.app-shell--topnav .image-workspace--stacked{
 flex:1 1 0;
 height:auto;
 min-height:0;
}
@media(max-width:760px){
 .app-shell--topnav .page-content:has(.video-studio--stacked),
 .app-shell--topnav .page-content:has(.image-workspace--stacked){overflow:hidden}
 .app-shell--topnav .video-studio--stacked,
 .app-shell--topnav .image-workspace--stacked{flex:1 1 0;height:auto;min-height:0}
}

/* The image stylesheet has a more specific compact padding rule; match the
   video tray so the submit row has the same breathing room at the bottom. */
.app-shell--topnav .image-workspace--stacked .image-composer{padding:14px 16px 44px}
@media(max-width:760px){
 .app-shell--topnav .image-workspace--stacked .image-composer{padding:10px 10px 38px}
}

/* Results and composer share the workspace height instead of covering each other. */
.video-studio--stacked,
.image-workspace--stacked{
 display:flex;
 flex-direction:column;
 gap:10px;
}
.video-studio--stacked .video-output-pane,
.image-workspace--stacked .image-output{
 position:relative;
 inset:auto;
 z-index:auto;
 flex:1 1 0;
 width:100%;
 height:auto;
 min-height:0;
 overflow:hidden;
}
.video-studio--stacked .video-output-content,
.image-workspace--stacked .image-output{
 padding-bottom:12px;
}
.app-shell--topnav .image-workspace--stacked .image-output{
 overflow-x:hidden;
 overflow-y:auto;
}
.video-studio--stacked .video-create-pane,
.image-workspace--stacked .image-composer{
 position:relative;
 inset:auto;
 z-index:12;
 align-self:center;
 flex:0 0 auto;
 width:min(1160px,calc(100% - 40px));
 height:auto;
 min-height:0;
 max-height:min(330px,38dvh);
 margin:0 auto;
 overflow:hidden;
}
.video-studio--stacked .video-create-scroll,
.image-workspace--stacked .image-composer{
 min-height:0;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
.video-studio--stacked .video-create-pane .video-composer{
 flex:0 0 auto;
}
.video-studio--stacked .video-output-content{
 scrollbar-gutter:stable;
}

@media(max-width:760px){
 .app-shell--topnav .video-studio--stacked{
  display:flex;
  flex:1 1 0;
  flex-direction:column;
  height:auto;
  min-height:0;
  overflow:hidden;
 }
 .app-shell--topnav .video-studio--stacked .video-output-pane{
  position:relative;
  inset:auto;
  flex:1 1 0;
  height:auto;
  min-height:0;
  max-height:none;
  overflow:hidden;
 }
 .app-shell--topnav .video-studio--stacked .video-output-content{
  min-height:0;
  flex:1 1 0;
  overflow:auto;
  padding-bottom:12px;
 }
 .app-shell--topnav .image-workspace--stacked .image-output{
  overflow-x:hidden;
  overflow-y:auto;
 }
 .video-studio--stacked .video-create-pane,
 .image-workspace--stacked .image-composer{
  width:calc(100% - 8px);
  max-height:min(310px,42dvh);
 }
 .video-studio--stacked .video-output-pane{
  height:auto;
  max-height:none;
  min-height:0;
 }
}
