/* Video Studio uses the same type, surfaces and buttons as PV Lab. */
.video-frame-thumb,.video-frame-label{display:none}
#main:has(>#app.video-studio-active){max-width:none;padding:0 12px}
#app.video-studio-active{--video-preview-height:clamp(240px,calc(100dvh - 175px),1000px);font-family:'DM Sans',Arial,sans-serif}
#app.video-studio-active .tool-switch{padding-inline:12px}
#app.video-studio-active>.workspace.video-layout{grid-template-columns:310px minmax(0,1fr) 235px;gap:10px;border:0;border-radius:0;background:#101114;height:calc(100dvh - 108px);min-height:540px}
#app.video-studio-active .workspace.video-layout>.controls{border:1px solid #292b30;border-radius:16px;background:#151619}
#app.video-studio-active .workspace.video-layout .controls-body{display:flex;flex-direction:column;gap:12px;padding:17px 14px 14px;scrollbar-width:none}
#app.video-studio-active .workspace.video-layout .controls-body::-webkit-scrollbar{width:0}
#app.video-studio-active .controls-body>.mode{order:0;margin:0 0 1px;color:#eee;font-size:16px;font-weight:500;letter-spacing:-.02em;text-transform:none}
#app.video-studio-active #engine-name{display:none}
#app.video-studio-active #video-modes{order:1;flex-shrink:0;display:flex;gap:4px;border:0;border-bottom:1px solid #303137;border-radius:0;background:transparent;margin:0;padding:0 0 8px;overflow:visible}
#app.video-studio-active #video-modes .mode-tab{flex:1;padding:8px 5px;min-height:34px;border:0!important;border-radius:7px;background:transparent;color:#999da5;font:500 12px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:0}
#app.video-studio-active #video-modes .mode-tab.active{background:#292b30;color:#f4f3ef;box-shadow:none}
#app.video-studio-active #start-mode,#app.video-studio-active #reference-mode{order:2;margin:0}
#app.video-studio-active .frame-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
#app.video-studio-active #start-mode .upload-heading,#app.video-studio-active #start-mode .filemeta{display:none}
#app.video-studio-active #drop,#app.video-studio-active #last-drop{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;height:138px;min-height:138px;padding:12px;border:1px dashed #414349;border-radius:12px;background:#1e2024;overflow:hidden}
#app.video-studio-active #drop:before,#app.video-studio-active #last-drop:before{content:'↥';font-size:26px;font-weight:400;color:#a9acb3;line-height:1;margin-bottom:4px}
#app.video-studio-active #drop>span:not(.video-frame-label),#app.video-studio-active #last-drop>span:not(.video-frame-label),#app.video-studio-active #drop>small,#app.video-studio-active #last-drop>small{display:none}
#app.video-studio-active .video-frame-label{display:block;color:#bfc1c8;font:500 13px 'DM Sans',Arial,sans-serif;letter-spacing:0}
#app.video-studio-active #last-drop:after{content:'Optional';position:absolute;top:8px;right:8px;padding:3px 6px;border-radius:5px;background:#2c2e34;color:#a4a7ae;font-size:9px}
#app.video-studio-active .video-frame-thumb:not([hidden]){display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0;padding:8px}
#app.video-studio-active .has-frame:before{display:none}
#app.video-studio-active .has-frame .video-frame-label{position:absolute;bottom:7px;left:8px;z-index:1;padding:4px 7px;border-radius:5px;background:#111b;color:#f1f1f4;font-size:10px}
#app.video-studio-active #prompt-label{order:3;margin:2px 0 -5px;font-size:12px;font-weight:500;color:#a8abb3;letter-spacing:0;text-transform:none}
#app.video-studio-active .workspace.video-layout .controls textarea#prompt{order:4;min-height:155px;height:155px;max-height:360px;margin:0;padding:13px;border:1px solid #303238;border-radius:12px;background:#1e2024;color:#eceef2;font:400 14px/1.55 'DM Sans',Arial,sans-serif;letter-spacing:0;resize:vertical}
#app.video-studio-active #prompt::placeholder{color:#80858e}
#app.video-studio-active #video-model-control{order:5;margin:0;padding:10px 11px;border:1px solid #303238;border-radius:10px;background:#1e2024}
#app.video-studio-active #video-model-control .label{margin:0 0 2px;color:#9398a1;font-size:11px}
#app.video-studio-active #video-engine{min-height:28px;height:28px;padding:0 20px 0 0;border:0;border-radius:0;background:transparent;font-size:14px;font-weight:500;color:#f0f0f4}
#app.video-studio-active #video-model-control .model-details{margin:3px 0 0;font-size:11px}
#app.video-studio-active .controls-body>.parameter-grid{order:6;display:flex;flex-wrap:wrap;gap:8px;margin:0}
#app.video-studio-active .controls-body>.parameter-grid>label{flex:1;min-width:65px;margin:0;padding:8px 9px;border:1px solid #303238;border-radius:9px;background:#1e2024}
#app.video-studio-active .workspace.video-layout .label{font:500 11px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:0;text-transform:none;color:#a4a8b0;margin:0 0 3px}
#app.video-studio-active select,#app.video-studio-active input,#app.video-studio-active button{font-family:'DM Sans',Arial,sans-serif;letter-spacing:0;text-transform:none}
#app.video-studio-active .controls-body>.parameter-grid select{height:27px;min-height:27px;padding:0;border:0;background:transparent;color:#eee;font-size:13px}
#app.video-studio-active #video-utilities{order:7;margin:0;padding:6px 0;border:0}
#app.video-studio-active .switch-row strong{font-size:12px;font-weight:500}
#app.video-studio-active .switch-row small{display:none}
#app.video-studio-active .switch{width:32px;height:19px}
#app.video-studio-active .switch i{border:1px solid #50535c;border-radius:20px;background:#30333b}
#app.video-studio-active .switch i:after{border-radius:50%}
#app.video-studio-active .seed-settings{margin-top:10px}
#app.video-studio-active .seed-settings summary{font-size:11px;letter-spacing:0;text-transform:none;color:#91959e}
#app.video-studio-active .workspace.video-layout .generate-zone{padding:12px 14px;border-top:1px solid #2c2e34;background:#151619}
#app.video-studio-active .workspace.video-layout #generate{width:100%;height:52px;min-height:52px;border:1px solid #edece5;border-radius:12px;box-shadow:0 3px 14px #0002;font:650 15px 'DM Sans',Arial,sans-serif;background:#edece5;color:#181a18}
#app.video-studio-active .workspace.video-layout #generate:not(:disabled){background:#edece5!important;border-color:#edece5!important;color:#181a18!important}
#app.video-studio-active .workspace.video-layout #generate:hover:not(:disabled){background:#fff!important;border-color:#fff!important;box-shadow:0 4px 18px #0003;transform:none}
#app.video-studio-active .workspace.video-layout #generate:focus-visible{outline:2px solid #edece5!important;outline-offset:3px}
#app.video-studio-active .workspace.video-layout #generate:disabled{background:#303238!important;border-color:#3a3d43!important;color:#868a94!important}
#app.video-studio-active #generation-help{display:none}
#app.video-studio-active #save{width:auto;display:block;margin:8px auto 0;padding:5px 10px;min-height:26px;background:transparent;border:0;font:400 11px 'DM Sans',Arial,sans-serif;color:#9599a3}
#app.video-studio-active #save:disabled{display:none}
#app.video-studio-active .video-feed-center{padding:0 0 18px;background:#101114;scrollbar-width:thin;scrollbar-color:#2c2f35 transparent;overscroll-behavior:auto}
#app.video-studio-active .video-feed-center>.stage{height:var(--video-preview-height);border:1px solid #292b30;border-radius:15px;background:#121316;grid-template-rows:43px minmax(0,1fr) 40px}
#app.video-studio-active .video-feed-center .stagehead,#app.video-studio-active .video-feed-center .stagefoot{background:#121316;border:0;padding:0 13px;font:400 12px 'DM Sans',Arial,sans-serif;letter-spacing:0;text-transform:none}
#app.video-studio-active .stagehead .eyebrow{font:500 12px 'DM Sans',Arial,sans-serif;letter-spacing:0;text-transform:none;color:#b0b4bc}
#app.video-studio-active .video-feed-center .canvas{padding:0;background:#0d0e10}
#app.video-studio-active #download,#app.video-studio-active #clear{font:500 11px 'DM Sans',Arial,sans-serif;border:1px solid #32353b;border-radius:7px;background:#202228;color:#cccfd6;min-height:28px;padding:5px 9px}
#app.video-studio-active .empty-title{font:500 26px/1.15 'DM Sans',Arial,sans-serif;letter-spacing:-.03em}
#app.video-studio-active .empty-description{font:400 13px/1.6 'DM Sans',Arial,sans-serif;color:#969ba5}
#app.video-studio-active .canvas-import,#app.video-studio-active .canvas-secondary{font:500 12px 'DM Sans',Arial,sans-serif;border-radius:8px}
#app.video-studio-active .video-feed-center .archivehead h2{font:500 14px 'DM Sans',Arial,sans-serif;letter-spacing:0}
#app.video-studio-active .video-feed-center #history{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#app.video-studio-active .video-feed-center #history .card[data-kind="video"]{border-color:#2e3036;border-radius:10px;background:#191b20}
#app.video-studio-active .workspace.video-layout>.video-inspector{align-self:start;height:var(--video-preview-height);border:1px solid #292b30;border-radius:15px;background:#151619;overflow:hidden}
#app.video-studio-active .video-inspector-heading{min-height:43px;padding:0 14px;border-bottom:1px solid #292b30;font:500 13px 'DM Sans',Arial,sans-serif}
#app.video-studio-active .video-inspector-body{padding:16px 14px}
#app.video-studio-active .video-detail-model{padding:5px 8px;border-color:#36383f;border-radius:7px;background:#202227;font:500 11px 'DM Sans',Arial,sans-serif}
#app.video-studio-active .video-detail-prompt{font:400 14px/1.6 'DM Sans',Arial,sans-serif;letter-spacing:0;color:#aeb3bd;margin:18px 0}
#app.video-studio-active .video-detail-data{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0;border-color:#292b30}
#app.video-studio-active .video-detail-data>div{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #2d3036;border-radius:6px;background:#202228;font:400 11px 'DM Sans',Arial,sans-serif}
#app.video-studio-active .video-detail-data dt{color:#888e99;font-size:10px}
#app.video-studio-active .video-detail-data dd{font-size:11px;margin:0;font-weight:500;color:#d1d4db}
#app.video-studio-active .video-detail-data>div:last-child{width:100%;border:0;background:transparent;padding:8px 0}
#app.video-studio-active .video-inspector-actions{padding:12px;border-top:1px solid #292b30;gap:7px;background:#151619}
#app.video-studio-active .video-inspector-actions button{min-height:36px;padding:8px 10px;border:1px solid #34373e;border-radius:8px;background:#202228;color:#c5c9d1;font:500 12px 'DM Sans',Arial,sans-serif}
#app.video-studio-active #video-detail-watch{display:none}
#app.video-studio-active #video-detail-reuse{background:#e9e8e3;border-color:#e9e8e3;color:#171718}
#app.video-studio-active #video-detail-delete{background:transparent;color:#9c9296}
#app.video-studio-active [hidden]{display:none!important}
@media(min-width:1700px){#app.video-studio-active>.workspace.video-layout{grid-template-columns:325px minmax(0,1fr) 250px}}
@media(max-width:1160px){#app.video-studio-active>.workspace.video-layout{grid-template-columns:300px minmax(0,1fr)}#app.video-studio-active .workspace.video-layout>.video-inspector{display:none!important}}
@media(max-width:820px){#main:has(>#app.video-studio-active){padding:0 10px}#app.video-studio-active>.workspace.video-layout{display:flex!important;height:auto;min-height:0;overflow:visible;gap:12px}#app.video-studio-active .workspace.video-layout>.controls{height:auto;min-height:0;width:100%}#app.video-studio-active .workspace.video-layout .controls-body{overflow:visible;padding:16px;gap:12px}#app.video-studio-active .workspace.video-layout .generate-zone{padding:12px 16px}#app.video-studio-active .controls textarea#prompt{height:130px;min-height:130px}#app.video-studio-active .video-feed-center{height:auto;overflow:visible;padding:0}#app.video-studio-active .video-feed-center>.stage{height:clamp(320px,58dvh,600px)}#app.video-studio-active .workspace.video-layout>.video-inspector{display:flex!important;height:auto;border:1px solid #292b30;border-radius:12px}#app.video-studio-active .video-inspector-body{overflow:visible}#app.video-studio-active .video-feed-center #history{grid-template-columns:1fr}#app.video-studio-active .tool-switch{padding-inline:0}}
/* Model first, then a focused references or continuation workspace. */
.video-model-kicker{display:none}
#app.video-studio-active #video-model-control{order:1;position:relative;min-height:124px;padding:55px 14px 12px;background:linear-gradient(0deg,#080a0be8,#080a0b40),url('../assets/optimized/video/fashion-after-fabric/artists/elorian/multionetwo-poster.webp') center 35%/cover;border:0;border-radius:12px;isolation:isolate}
#app.video-studio-active .video-model-kicker{display:block;font-size:19px;line-height:1.1;font-weight:600;letter-spacing:-.04em;color:#f2f0e9;margin-bottom:5px}
#app.video-studio-active #video-model-control>label>.label{display:none}
#app.video-studio-active #video-engine{font-size:14px;color:#fff;text-shadow:0 1px 4px #000;background:#1118;border-radius:4px;padding-left:5px}
#app.video-studio-active .model-details{display:none}
#app.video-studio-active #video-task-switch{order:2;display:flex;gap:4px;padding:5px;background:#202124;border-radius:10px}
#app.video-studio-active #video-task-switch button{flex:1;min-height:36px;border:0;border-radius:7px;background:transparent;color:#a7a8ac;font:500 13px 'DM Sans',sans-serif}
#app.video-studio-active #video-task-switch button[aria-selected="true"]{background:#353639;color:#fff}
#app.video-studio-active #video-modes{order:3;border:0;padding:0;margin:0}
#app.video-studio-active #video-modes .mode-tab{font-size:11px;min-height:28px;padding:6px 4px;background:transparent}
#app.video-studio-active #video-modes .mode-tab.active{background:#242629}
#app.video-studio-active #start-mode,#app.video-studio-active #reference-mode{order:4}
#app.video-studio-active #prompt-label{order:5}
#app.video-studio-active .workspace.video-layout .controls textarea#prompt{order:6;min-height:130px;height:130px;border-radius:10px}
#app.video-studio-active .controls-body>.parameter-grid{order:7}
#app.video-studio-active #video-utilities{order:8}
#app.video-studio-active #reference-mode{padding:12px;border:1px dashed #393b40;border-radius:12px;background:#1c1e21}
#app.video-studio-active #reference-drop{min-height:60px;padding:10px;border:0;background:#27292d;border-radius:9px;font-size:12px}
#app.video-studio-active #reference-drop small{font-size:10px}
#app.video-studio-active #reference-list{display:flex;flex-wrap:wrap;gap:8px;max-height:none;overflow:visible;padding:0;margin:8px 0}
#app.video-studio-active .reference-item{display:flex;flex-wrap:wrap;gap:4px;width:72px;padding:0;border:0;background:transparent}
#app.video-studio-active .reference-item img{width:72px;height:72px;object-fit:cover;border-radius:9px}
#app.video-studio-active .reference-fields{display:none}
#app.video-studio-active .reference-actions{display:flex;gap:2px;flex-wrap:wrap}
#app.video-studio-active .reference-actions button{font-size:9px;padding:3px 4px;border-radius:4px;min-width:0}
#app.video-studio-active #reference-help,#app.video-studio-active .pack-bar,#app.video-studio-active #reference-media>p{display:none}
#app.video-studio-active #reference-media{margin-top:10px}
#app.video-studio-active #reference-media .upload-heading{margin:10px 0 5px}
#app.video-studio-active #reference-media .drop{min-height:48px;padding:9px;border-radius:8px;font-size:11px}
#app.video-studio-active #reference-media .drop small{font-size:9px}
#app.video-studio-active .reference-media-list{max-height:none;overflow:visible;margin:6px 0}
#app.video-studio-active .reference-media-item{padding:7px;border-radius:8px}
#app.video-studio-active .reference-media-item strong{font-size:10px}
#app.video-studio-active .reference-media-item video{max-height:145px;border-radius:6px}
#app.video-extend-active #reference-mode>.upload-heading,#app.video-extend-active #reference-drop,#app.video-extend-active #reference-list,#app.video-extend-active #reference-progress,#app.video-extend-active .audio-media-heading,#app.video-extend-active .audio-media-drop,#app.video-extend-active #audio-reference-list{display:none!important}
#app.video-extend-active #extend-help{font:400 12px/1.5 'DM Sans',sans-serif;color:#b8bbc1;margin:0 0 12px}
#app.video-extend-active #video-media-drop{min-height:94px!important}
#app.video-studio-active [hidden]{display:none!important}

#app.video-extend-active .reference-media-item input,#app.video-extend-active .reference-actions button:first-child{display:none}
#app.video-extend-active .reference-media-item video{max-height:110px}
#app.video-extend-active.extension-loaded #extend-help{display:none}
#app.video-extend-active.extension-loaded #video-media-drop{min-height:38px!important;padding:8px}
#app.video-extend-active.extension-loaded #video-media-drop small{display:none}
#app.video-extend-active #reference-mode{padding:10px}
