/* Stable editor viewport: async cards/toasts cannot determine the shell width or height. */
html,body,#root{width:100%;min-width:0;max-width:100%;margin:0;background:#111214}
#root>div:has(:is(.recreate-v5,.quick-studio,.video-batch-page,.sx-image,.face-workspace)){display:flex!important;width:100%!important;max-width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
#root>div:has(:is(.recreate-v5,.quick-studio,.video-batch-page,.sx-image,.face-workspace))>div.flex-1{flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:none!important;min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:hidden!important}
:is(.recreate-v5,.quick-studio,.video-batch-page,.sx-image,.face-workspace){box-sizing:border-box!important;width:100%!important;max-width:none!important;align-self:stretch!important;flex:1 1 0%!important;min-height:0!important;height:100%!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important;isolation:isolate}
:is(.recreate-v5,.quick-studio,.video-batch-page,.sx-image,.face-workspace)>:is(aside,section){min-width:0;min-height:0;max-height:100%}
.recreate-v5-results{position:relative;overflow:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;overflow-anchor:none;contain:inline-size}.recreate-v5-controls,.recreate-settings{overflow:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}.recreate-result-header{position:sticky;top:-16px;background:#141518;z-index:4;margin:-1px -1px 12px;padding:5px 0 12px;border-bottom:1px solid #ffffff0b;gap:10px}.recreate-result-header>.sx-row{flex-wrap:wrap;justify-content:flex-end}.recreate-result-actions{min-height:43px}.recreate-v5-results>.recreate-notice,.recreate-v5-results>.sx-error{position:fixed!important;right:24px;bottom:24px;z-index:110;width:min(360px,calc(100vw - 48px));max-height:160px;overflow:auto;margin:0!important;box-shadow:0 8px 28px #0006;border:1px solid #bba6ef38;border-radius:10px;padding:12px 14px;background:#24232df5;color:#d3c5e8;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.recreate-v5-results>.sx-error{bottom:90px;color:#efb5ae;border-color:#e58c7d40}.recreate-v5-grid{align-items:start;grid-auto-rows:auto}.recreate-v5-card{min-width:0;overflow:hidden;align-self:start;contain:inline-size}.recreate-v5-image{position:relative;aspect-ratio:3/4;flex:none;min-height:0}.recreate-v5-image>button{position:absolute;inset:0;width:100%;height:100%}.recreate-v5-image img{object-fit:contain}.recreate-v5-image>p{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:15px;text-align:center}.recreate-v5-card>.batch-status{white-space:nowrap;min-height:18px}.recreate-v5-card>.sx-row{min-height:32px;flex-wrap:wrap}
.recreate-v5[data-view-size=small] .recreate-v5-grid{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr))!important}.recreate-v5[data-view-size=medium] .recreate-v5-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))!important}.recreate-v5[data-view-size=large] .recreate-v5-grid{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))!important}
.studio-view-size{display:flex;align-items:center;gap:3px;border:1px solid #ffffff16;border-radius:8px;background:#101115;padding:3px;flex-shrink:0}.studio-view-size button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:29px;padding:5px 8px;border:1px solid transparent;border-radius:5px;background:none;color:#92929f;font-size:10px;cursor:pointer}.studio-view-size button.active{color:#d7c5f1;background:#bba6ef15;border-color:#bba6ef30}.studio-view-size button:focus-visible{outline:2px solid #bba6ef;outline-offset:2px}.view-size-icon{display:block;border:1px solid currentColor;aspect-ratio:1;border-radius:2px;width:11px}.view-size-icon.small{width:8px}.view-size-icon.large{width:14px}
@media(max-width:1000px) and (min-width:701px){:is(.recreate-v5,.quick-studio,.video-batch-page,.face-workspace){grid-template-columns:240px minmax(0,1fr)!important;grid-template-rows:minmax(440px,70dvh) auto!important;overflow:auto!important;align-content:start!important}.studio-settings,.face-settings{grid-column:1/-1;max-height:none!important}.recreate-v5-controls,.recreate-v5-results,.quick-compose,.quick-output,.video-batch-page .batch-results,.video-batch-page .batch-composer,.face-sidebar,.face-stage-panel{height:100%!important;max-height:none!important;min-height:0!important}.sx-image{overflow:auto!important;grid-template-rows:minmax(440px,70dvh) auto!important}}
@media(max-width:700px){:is(.recreate-v5,.quick-studio,.video-batch-page,.sx-image,.face-workspace){overflow:auto!important;display:flex!important;flex-direction:column!important;height:100%!important;flex:1 1 0%!important;align-content:start}.recreate-v5-controls,.recreate-settings,.studio-settings,.face-sidebar,.face-settings,.quick-compose,.batch-composer,.sx-composer-panel,.image-preset-panel{flex:none!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}.recreate-v5-results{flex:none!important;height:75dvh!important;min-height:420px!important}.quick-output,.face-stage-panel,.sx-main{flex:none!important;height:65dvh!important;min-height:380px!important}.video-batch-page .batch-results{flex:none!important;height:75dvh!important;min-height:420px!important}.recreate-result-header{top:-16px}.studio-view-size button{padding:5px 6px}.recreate-v5[data-view-size=small] .recreate-v5-grid{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr))!important}}
/* Panels never use transitions or scroll anchoring when async results arrive. */
.recreate-v5,.recreate-v5-results,.recreate-v5-grid,.recreate-v5-card,.recreate-v5-image,.recreate-v5-controls,.recreate-settings{transition:none!important;animation:none!important;overflow-anchor:none!important}.recreate-v5{grid-template-columns:290px minmax(0,1fr) 260px!important}.recreate-v5.gallery-only{grid-template-columns:minmax(0,1fr)!important}.recreate-v5-results{overscroll-behavior:contain;contain:layout inline-size}.recreate-v5-results>.recreate-notice{pointer-events:none}.recreate-v5-grid{contain:layout;min-width:0}.recreate-v5-card .sx-error{height:44px;max-height:44px;overflow:auto}.concept-strength{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.concept-strength button{border:1px solid #ffffff17;background:#111216;color:#aca2bb;border-radius:7px;padding:10px 2px;font-size:11px;cursor:pointer}.concept-strength .active{border-color:#bba6ef70;background:#bba6ef18;color:#e0d0f7}.concept-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:12px;color:#cbc0dc}.concept-toggle input{accent-color:#bba6ef}.concept-master{display:flex;align-items:center;gap:9px;width:100%;border:1px solid #ffffff17;background:#111216;border-radius:8px;padding:8px;color:#cdc0df;text-align:left;cursor:pointer}.concept-master img{width:48px;height:55px;object-fit:contain;border-radius:4px}.concept-master span{font-size:11px}.concept-master small{display:block;font-size:9px;color:#938a9f;margin-top:5px}.concept-mood{display:flex;flex-direction:column;gap:9px}.concept-mood textarea{min-height:85px!important;font-size:11px!important}.recreate-advanced-locks summary{cursor:pointer;color:#a99bb9;font-size:11px;padding:12px 0;list-style-position:inside}.recreate-advanced-locks>.recreate-section{margin-top:4px}.concept-quick>.sx-hint{font-size:10px}
@media(max-width:1000px) and (min-width:701px){.recreate-v5{grid-template-columns:240px minmax(0,1fr)!important}}@media(max-width:700px){.recreate-v5{grid-template-columns:1fr!important}}
.concept-product-lock{display:flex;flex-direction:column;gap:7px;padding:11px;border:1px solid #9ed2b433;border-radius:8px;background:#9ed2b408}.concept-product-lock strong{color:#bed8ca;font-size:11px;font-weight:500}.concept-product-lock small{font-size:10px;line-height:1.6;color:#9caaa4}
.concept-inspiration{display:flex;flex-direction:column;gap:7px}.concept-inspiration button{text-align:left;padding:11px;border:1px solid #ffffff17;border-radius:8px;background:#111216;color:#aba0ba;cursor:pointer}.concept-inspiration strong{display:block;font-size:11px;font-weight:500}.concept-inspiration small{display:block;font-size:9px;line-height:1.6;margin-top:4px;color:#93899f}.concept-inspiration .active{border-color:#bba6ef60;background:#bba6ef12;color:#ddcef2}
/* v19: a single sequential work panel and a permanent submit footer. */
.recreate-v5{grid-template-columns:360px minmax(0,1fr)!important;gap:12px!important}.recreate-v5.gallery-only{grid-template-columns:minmax(0,1fr)!important}.recreate-work-panel{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;border:1px solid #ffffff12;border-radius:14px;background:#191a1e;overflow:hidden!important}.recreate-work-scroll{flex:1 1 0%;min-height:0;min-width:0;overflow:auto;overflow-x:hidden;padding:18px;scrollbar-width:thin;scrollbar-color:#45434f transparent;overscroll-behavior:contain;overflow-anchor:none}.recreate-work-scroll>header{padding:0 0 16px}.recreate-work-scroll>header h1{font-size:23px;margin:8px 0}.recreate-work-scroll>header p{display:none}.recreate-work-scroll .recreate-section{border:0;border-top:1px solid #ffffff0c;border-radius:0;background:none;padding:17px 0;margin:0;gap:12px}.recreate-work-scroll .recreate-source-preview{height:150px}.recreate-work-scroll .recreate-source-card>.sx-row{flex-wrap:wrap}.recreate-work-scroll .recreate-source-card>.sx-row .sx-btn{flex:1;font-size:11px}.recreate-work-scroll .recreate-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recreate-work-scroll .recreate-mode-grid button{min-height:70px;padding:9px 5px}.recreate-work-scroll .recreate-selected-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:185px}.recreate-work-scroll .recreate-selected-grid>div{height:72px}.recreate-work-scroll .sx-row{flex-wrap:wrap}.recreate-work-settings .concept-strength{gap:7px}.recreate-work-settings .concept-strength button{min-height:38px}.recreate-work-settings .sx-control,.recreate-work-settings .sx-textarea{width:100%}.recreate-work-settings .sx-textarea{min-height:90px}.recreate-work-settings .recreate-section>label{font-size:11px}.recreate-work-footer{flex:none;padding:13px 17px 15px;border-top:1px solid #bba6ef25;background:#1c1b22;display:flex;flex-direction:column;gap:10px;z-index:5;box-shadow:0 -8px 20px #0002}.recreate-work-footer>.sx-btn-primary{height:44px!important;min-height:44px!important;width:100%;justify-content:center;font-size:13px!important;border-radius:9px}.recreate-submit-summary{display:flex;flex-direction:column;gap:4px}.recreate-submit-summary strong{font-size:11px;font-weight:500;color:#d7c8e9}.recreate-submit-summary small{font-size:10px;line-height:1.5;color:#9991a6}.recreate-work-scroll .concept-inspiration{display:grid;grid-template-columns:1fr 1fr;gap:7px}.recreate-work-scroll .concept-master img{height:47px}.recreate-work-scroll .concept-toggle{padding:7px 0}.recreate-work-settings .recreate-background-options{display:grid;gap:7px}.recreate-work-scroll .recreate-locks label,.recreate-work-scroll .recreate-background-options label{font-size:11px;min-height:36px}.recreate-work-scroll .recreate-advanced-locks{border-top:1px solid #ffffff0c}.recreate-v5-results{scrollbar-gutter:stable}.recreate-result-header{gap:8px}
@media(min-width:1700px){.recreate-v5{grid-template-columns:380px minmax(0,1fr)!important}}
@media(max-width:1000px) and (min-width:701px){.recreate-v5{grid-template-columns:310px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}.recreate-work-panel,.recreate-v5-results{height:100%!important;min-height:0!important}.recreate-work-scroll{padding:14px}.recreate-work-scroll .recreate-selected-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.recreate-v5{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(330px,50dvh) minmax(350px,1fr)!important;overflow:hidden!important}.recreate-work-panel{height:100%!important;max-height:100%!important;min-height:0!important}.recreate-work-scroll{padding:13px}.recreate-work-footer{padding:9px 13px;gap:7px}.recreate-submit-summary{display:none}.recreate-work-footer>.sx-btn-primary{min-height:40px!important;height:40px!important}.recreate-v5-results{height:100%!important;min-height:0!important;overflow:auto!important}.recreate-work-scroll .recreate-source-preview{height:120px}.recreate-work-scroll .recreate-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recreate-v5.gallery-only{grid-template-rows:minmax(0,1fr)!important}}
/* v20: overlay nodes never participate in the app flex row, including global completion notices. */
body #root .monday-notifications{position:fixed!important;inset:auto 20px 20px auto!important;width:min(360px,calc(100vw - 40px))!important;max-width:360px!important;max-height:45vh!important;display:flex!important;flex-direction:column!important;gap:8px!important;z-index:130!important;pointer-events:none!important;flex:none!important;contain:layout style;overflow:auto!important;background:transparent!important;border:0!important;padding:0!important}.monday-notifications .monday-notice{pointer-events:auto;padding:12px 14px;border:1px solid #bba6ef30;background:#24232df5;border-radius:10px;display:flex;gap:9px;color:#ccc0dc;box-shadow:0 8px 24px #0004;font-size:11px}.monday-notice-icon{width:17px;height:17px;flex:none}.monday-notice-content{flex:1;min-width:0;overflow-wrap:anywhere}.monday-notice-content p{font-size:10px;line-height:1.6;margin:4px 0}.monday-notice-close{flex:none;width:23px;height:23px;background:none;color:#aca1bb;border:0}.monday-notice-action{border:1px solid #bba6ef30;background:#bba6ef12;color:#d5c4ec;border-radius:5px;padding:5px 8px;font-size:10px}
body #root>div:has(.monday-editor-shell){display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}body.has-asset-picker .monday-navigation,body:has(.asset-picker-backdrop) .monday-navigation{z-index:10!important}body.has-asset-picker .monday-editor-shell,body:has(.asset-picker-backdrop) .monday-editor-shell{position:relative!important;z-index:99999!important}body.has-asset-picker .asset-picker-backdrop,body:has(.asset-picker-backdrop) .asset-picker-backdrop,.asset-picker-backdrop{position:fixed!important;inset:0!important;z-index:999999!important;background:rgba(0,0,0,0.8)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}body #root .monday-editor-shell{grid-column:2;grid-row:1;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}body #root .monday-navigation{grid-column:1;grid-row:1;height:100%!important;min-height:0!important;max-width:320px}body #root .monday-editor-shell>.recreate-v5{width:100%!important;height:100%!important;min-height:0!important;flex:1 1 0%!important;max-width:none!important}
.recreate-v5-card{display:grid!important;grid-template-rows:22px auto 20px 34px 26px;gap:7px!important;align-content:start}.recreate-v5-card>.sx-error{position:absolute;left:8px;right:8px;bottom:4px;z-index:2;margin:0;font-size:9px;background:#231e22e8;height:37px;max-height:37px}.recreate-v5-card{position:relative}.recreate-v5-card>.recreate-card-footer{min-height:24px;margin:0!important}.recreate-v5-card>.sx-row{overflow:hidden;white-space:nowrap;flex-wrap:nowrap!important;gap:5px}.recreate-v5-card .recreate-icon-action{width:29px!important;min-height:29px!important;height:29px!important}.recreate-v5-card>.sx-row>.sx-btn{font-size:10px!important;padding:0 6px!important}.batch-video-thumb{display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;overflow:hidden}.batch-video-thumb img,.batch-video-thumb video{width:100%;height:100%;object-fit:cover;pointer-events:none}.batch-video-thumb:disabled{cursor:default;opacity:.7}.batch-video-thumb:focus-visible{outline:2px solid #bba6ef}
.home-cover-actions{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.home-cover-actions .sx-btn{font-size:11px;min-height:32px}.home-cover-actions label{display:flex;align-items:center;gap:6px;color:#9991a5;font-size:10px;line-height:1.5}.home-cover-actions input{accent-color:#bba6ef}.native-cover{position:relative;min-height:320px}.home-cover-slide{animation:home-cover-in .5s ease-out}@keyframes home-cover-in{from{opacity:.4}to{opacity:1}}.quick-canvas{position:relative}.quick-task-float{position:absolute;z-index:3;right:14px;bottom:14px;background:#24232df5;border:1px solid #bba6ef35;border-radius:9px;padding:10px 12px;display:flex;gap:12px;align-items:center;font-size:11px;color:#c7b7dd}.quick-task-float button{border:1px solid #ffffff20;border-radius:6px;color:#cbbbde;background:#ffffff06;padding:5px 9px;font-size:10px;cursor:pointer}@media(prefers-reduced-motion:reduce){.home-cover-slide{animation:none}}
/* Override earlier flex width:0 rules after switching shell to CSS grid. */
body #root>div:has(.monday-editor-shell)>div.monday-editor-shell{width:100%!important;min-width:0!important;max-width:none!important;grid-column:2!important;grid-row:1!important;justify-self:stretch!important;align-self:stretch!important;flex:none!important;background:#111214!important}body #root>div:has(.monday-editor-shell){background:#111214!important}
/* v21: guided workspaces, isolated tabs and two-column video production. */
.guided-root{display:flex;flex-direction:column;flex:1 1 0%;height:100%;width:100%;min-height:0;min-width:0;overflow:hidden}.guided-root>.recreate-v5{flex:1 1 0%;min-height:0;height:100%;width:100%}.guided-tabs{display:flex;gap:8px;padding:12px 16px 0;flex:none;background:#111214}.guided-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 22px;min-height:44px;border-radius:11px;border:1px solid #ffffff12;background:#1a1b20;color:#a7a3af;font-size:13px;cursor:pointer}.guided-tabs button svg{width:18px;height:18px}.guided-tabs button[aria-selected=true]{background:#18181c;border-color:rgba(255,255,255,0.3);color:#ffffff}.guided-explanation{font-size:12px;line-height:1.75;padding:12px;border:1px solid rgba(255,255,255,0.08);border-radius:10px;background:#141418;color:#a1a1aa;min-height:78px;margin:0}.guided-notes>.sx-textarea{width:100%;min-height:85px}.guided-root .recreate-work-scroll>header p{display:block;font-size:12px;line-height:1.7;color:#a29baa}.guided-root .recreate-work-scroll .recreate-mode-grid button{min-height:64px;font-size:12px}.guided-root .recreate-work-scroll .recreate-selected-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.guided-root .recreate-source-empty{min-height:110px}.guided-root .recreate-work-scroll .recreate-source-preview{height:135px}.guided-root .recreate-work-scroll .recreate-section{padding:14px 0}.guided-root .recreate-work-scroll .recreate-source-card>.sx-row .sx-btn{min-height:35px}.guided-root .recreate-v5{grid-template-columns:370px minmax(0,1fr)!important}.guided-root .recreate-v5.gallery-only{grid-template-columns:1fr!important}
body #root .video-batch-page{display:grid!important;grid-template-columns:minmax(320px,400px) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:14px!important;min-height:0!important;height:100%!important;overflow:hidden!important}.video-batch-page>.batch-composer{display:flex!important;flex-direction:column!important;gap:12px!important;overflow:auto!important;min-height:0!important;min-width:0!important;scrollbar-width:thin;padding-right:3px;overscroll-behavior:contain}.video-batch-page .batch-composer>.video-settings{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;max-width:none!important;min-width:0!important;overflow:visible!important;height:auto!important;flex:none!important;padding:0!important;border:0!important}.video-batch-page .batch-composer>.sx-panel{flex:none}.video-batch-page>.batch-results{grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important;overflow:auto!important}.video-batch-page .batch-composer>.sx-panel:last-child{position:sticky;bottom:0;z-index:4;box-shadow:0 -8px 25px #0007;background:#1b1b22}.video-batch-page .batch-video-prompts{min-height:150px!important}.video-batch-page .studio-settings .sx-panel{width:100%;box-sizing:border-box}
@media(max-width:1000px){.guided-root .recreate-v5{grid-template-columns:320px minmax(0,1fr)!important}body #root .video-batch-page{grid-template-columns:320px minmax(0,1fr)!important}}
@media(max-width:700px){.guided-tabs{gap:5px;padding:8px}.guided-tabs button{padding:9px;flex:1;font-size:11px}.guided-root .recreate-v5{grid-template-columns:1fr!important}body #root .video-batch-page{grid-template-columns:1fr!important;grid-template-rows:minmax(300px,45%) minmax(300px,1fr)!important;overflow:auto!important}.video-batch-page>.batch-results{grid-column:1!important;grid-row:2!important}}
.guided-root .recreate-selected-grid:empty{min-height:52px;height:52px;position:relative}.guided-root .recreate-selected-grid:empty::after{content:'Kéo thả ảnh mẫu vào đây';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#928b9c;font-size:11px;border:1px dashed #ffffff20;border-radius:8px}.guided-root .recreate-work-scroll .recreate-source-empty{min-height:90px}.guided-root .recreate-work-scroll>header{padding-bottom:10px}
/* v24: one workspace per medium; common, comfortable controls. */
.muse-workspace-tabs{display:flex;align-items:center;gap:6px;flex:none;padding:8px 16px;background:#09090b;border-bottom:1px solid rgba(255,255,255,0.06)}.muse-workspace-tabs button{min-height:34px;padding:6px 16px;border:1px solid transparent;border-radius:7px;background:transparent;color:#a1a1aa;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.muse-workspace-tabs button[aria-selected=true]{color:#ffffff;background:#18181c;border-color:rgba(255,255,255,0.12);box-shadow:0 1px 3px rgba(0,0,0,0.3);font-weight:600}.muse-workspace-tabs button:hover:not([aria-selected=true]){color:#ffffff;background:rgba(255,255,255,0.04)}.muse-workspace-tabs button:focus-visible{outline:2px solid rgba(255,255,255,0.25);outline-offset:1px}
body #root .quick-studio{display:grid!important;grid-template-columns:370px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;flex:1 1 0%!important;height:100%!important;min-height:0!important;overflow:hidden!important}.quick-studio>.quick-compose{display:flex!important;flex-direction:column!important;overflow:auto!important;min-height:0!important;max-height:none!important;height:100%!important;padding:18px!important;gap:16px!important;scrollbar-width:thin;overscroll-behavior:contain}.quick-compose>.quick-settings{display:flex!important;flex-direction:column!important;gap:14px!important;padding:16px 0!important;border:0!important;border-top:1px solid #ffffff12!important;border-radius:0!important;background:transparent!important;overflow:visible!important;width:100%!important;flex:none!important;min-height:0!important;max-width:none!important}.quick-compose>.quick-settings>header{display:none}.quick-settings .quick-advanced,.quick-settings .quick-footnote{display:none}.quick-studio>.quick-output{min-width:0!important;min-height:0!important;height:100%!important;max-height:none!important}.quick-compose>.quick-submit{position:sticky!important;bottom:0;flex:none!important;min-height:48px!important;font-size:14px!important;box-shadow:0 -8px 20px #191a1e}.quick-compose .quick-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-compose .quick-options label:only-child{grid-column:1/-1}.quick-reference-strip .quick-add-image{min-height:72px!important}.quick-compose .quick-prompt-label textarea{min-height:145px!important;font-size:14px!important;line-height:1.65}
:where(.quick-compose,.recreate-work-scroll,.batch-composer,.sx-composer-panel,.image-preset-panel) :where(.sx-control,select){min-height:42px!important;font-size:13px!important}:where(.quick-compose,.recreate-work-scroll,.batch-composer) .sx-btn{min-height:40px!important;font-size:12px!important;padding:9px 13px!important}:where(.guided-tabs,.recreate-mode-grid,.image-preset-grid) button{min-height:62px!important;font-size:13px!important}.guided-tabs button{min-height:44px!important}.recreate-work-scroll .recreate-mode-grid{gap:10px}.recreate-work-scroll .recreate-mode-grid strong{font-size:13px!important;font-weight:500}.recreate-work-scroll .recreate-mode-grid svg{width:22px!important;height:22px!important}.guided-explanation{font-size:13px;line-height:1.7}.guided-root .recreate-work-scroll .recreate-source-card>.sx-row .sx-btn{min-height:40px!important;font-size:12px!important}.recreate-work-footer>.sx-btn-primary{height:48px!important;min-height:48px!important;font-size:14px!important}.recreate-work-scroll .sx-textarea{font-size:13px!important;line-height:1.65}.guided-tabs{padding-top:6px}.recreate-v5-card .recreate-icon-action,.quick-history button{transition:background .15s}.recreate-v5-card .recreate-icon-action{width:32px!important;height:32px!important;min-height:32px!important}.video-batch-page .batch-composer>.sx-panel:last-child .sx-btn-primary{min-height:44px!important}.studio-view-size button{min-height:34px!important;font-size:11px!important}.monday-navigation button{min-height:44px}.quick-output>header h2,.recreate-result-header h2,.batch-queue-head h2{font-size:16px!important}
@media(max-width:1000px){body #root .quick-studio{grid-template-columns:320px minmax(0,1fr)!important}}
@media(max-width:700px){.muse-workspace-tabs{padding:8px 10px;gap:6px}.muse-workspace-tabs button{flex:1;padding:8px 10px;font-size:12px}body #root .quick-studio{grid-template-columns:1fr!important;grid-template-rows:minmax(320px,50%) minmax(320px,1fr)!important;overflow:auto!important}.quick-studio>.quick-output{grid-row:2;min-height:320px!important}}
.muse-recovery{border:1px solid #e5b66b35;background:#d8a34b0a;border-radius:10px;padding:12px;color:#d4c6b0;font-size:12px;min-width:0;white-space:normal}.muse-recovery>strong{font-size:12px}.muse-recovery p{margin:7px 0;line-height:1.65;overflow-wrap:anywhere}.muse-recovery-actions{display:flex;gap:8px;flex-wrap:wrap}.muse-recovery button{border:1px solid #ffffff20;border-radius:8px;background:#ffffff08;color:#e3dbea;min-height:36px;padding:8px 12px;font-size:12px;cursor:pointer}.muse-recovery button:disabled{opacity:.5;cursor:default}.muse-recovery-backdrop{position:fixed;inset:0;z-index:220;background:#0009;display:flex;align-items:center;justify-content:center;padding:24px}.muse-recovery-dialog{width:min(680px,100%);max-height:85dvh;overflow:auto;background:#1c1d22;border:1px solid #ffffff25;border-radius:16px;padding:22px;box-shadow:0 20px 70px #0008;color:#d5d1dc;font-size:13px}.muse-recovery-dialog header,.muse-recovery-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.muse-recovery-dialog h2{font-size:19px;margin:0}.muse-recovery-dialog label{display:block;margin:16px 0 8px}.muse-recovery-dialog textarea{display:block;width:100%;box-sizing:border-box;min-height:160px;margin-top:9px;padding:12px;border-radius:9px;border:1px solid #ffffff24;background:#101115;color:#e1dce8;font:inherit;line-height:1.65;resize:vertical}.muse-recovery-dialog small{display:block;color:#a29baa;line-height:1.7}.muse-recovery-dialog footer{justify-content:flex-end;margin-top:18px}.muse-recovery-dialog footer button{min-height:42px}.muse-recovery-detail{max-height:170px;overflow:auto;white-space:pre-wrap;background:#101115;border-radius:8px;padding:12px;font-size:12px}.recreate-v5-card:has(.muse-recovery){grid-template-rows:22px auto 20px auto 34px 26px}.recreate-v5-card .muse-recovery{padding:9px;font-size:11px}.recreate-v5-card .muse-recovery-actions button{width:100%;font-size:11px}.quick-recent-failures{display:grid;gap:8px;max-height:210px;overflow:auto;flex:none}.quick-recent-failures:empty{display:none}
.video-motion-panel{display:flex;flex-direction:column;gap:10px}.video-motion-panel>strong{font-size:13px}.video-motion-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.video-motion-grid button{min-height:42px;padding:9px 8px;border:1px solid #ffffff20;border-radius:8px;background:#202127;color:#b8b2c4;font-size:12px;cursor:pointer}.video-motion-grid button[aria-pressed=true]{background:#222226;border-color:rgba(255,255,255,0.35);color:#ffffff}.video-motion-panel p,.video-motion-panel small{font-size:11px;color:#aba1b8;line-height:1.6;margin:0}.video-motion-panel select{width:100%}.video-motion-panel label{font-size:12px}
.video-preset-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px}.video-preset-tabs button{min-height:42px;background:#18191e;border:1px solid #ffffff1d;border-radius:9px;color:#aaa3b8;font-size:12px;padding:8px;cursor:pointer}.video-preset-tabs button[aria-selected=true]{background:#222226;border-color:rgba(255,255,255,0.35);color:#ffffff}.video-motion-grid button{display:flex;align-items:center;gap:9px;text-align:left;min-height:46px}.video-motion-grid button>small{color:#8e849f;font-size:10px}.video-camera-lock{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px;border:1px solid rgba(255,255,255,0.1);border-radius:9px;font-size:12px}.video-camera-lock input{width:17px;height:17px;accent-color:#ffffff}.video-preset-detail{font-size:11px;color:#a99dbb}.video-preset-detail p{white-space:pre-wrap;padding:10px;background:#111216;border-radius:8px;max-height:220px;overflow:auto;line-height:1.7}
/* Fixed stage; intrinsic video ratio always fits without cropping or stretching. */
.quick-output:has(.quick-video-stage){display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important}.quick-output>.quick-video-stage{position:relative!important;flex:1 1 0%!important;min-height:180px!important;height:auto!important;max-height:none!important;overflow:hidden!important;display:block!important;margin:0!important;background:#0c0d10!important;contain:layout size;isolation:isolate}.quick-output>.quick-video-stage>video{position:absolute!important;inset:20px!important;width:calc(100% - 40px)!important;height:calc(100% - 40px)!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;background:transparent!important;border-radius:6px}.quick-video-stage>.quick-empty{position:absolute;inset:20px;display:flex;align-items:center;justify-content:center;flex-direction:column}.quick-output:has(.quick-video-stage)>.quick-history{flex:0 0 64px!important;height:64px!important;min-height:64px!important;overflow-x:auto!important;overflow-y:hidden!important}.quick-output:has(.quick-video-stage)>.quick-download{flex:none}.quick-output:has(.quick-video-stage)>header{flex:none;min-height:52px}.quick-output:has(.quick-video-stage)>.quick-recent-failures{max-height:130px}.batch-video-row details>video{display:block;width:100%;height:min(52dvh,480px);object-fit:contain;background:#0c0d10;border-radius:9px}.monday-video-preview video{object-fit:contain!important;max-height:75dvh!important}
.quick-output>.quick-video-stage>video{inset:0!important;margin:auto!important;width:calc(100% - 40px)!important;height:calc(100% - 40px)!important;max-width:860px!important;max-height:560px!important}.quick-output>.quick-video-stage{container-type:size}.quick-output>.quick-video-stage>video{max-height:min(560px,calc(100cqh - 40px))!important;max-width:min(860px,calc(100cqw - 40px))!important}
/* Prevent legacy light-theme selectors from repainting isolated workspaces. */
html.light body #root :is(.quick-studio,.video-batch-page,.guided-root,.wf-app){color-scheme:dark;background:#111214!important;color:#d9d5e2!important}html.light body #root :is(.quick-compose,.quick-output,.batch-results,.batch-composer .sx-panel,.recreate-work-panel,.recreate-v5-card){background:#191a1e!important;border-color:#ffffff18!important;color:#d9d5e2!important}html.light body #root :is(.quick-studio,.video-batch-page,.guided-root,.wf-app) :is(input,textarea,select){background:#111216!important;color:#d9d5e2!important;border-color:#ffffff24!important}html.light body #root :is(.quick-studio,.video-batch-page,.guided-root,.wf-app) button{color:inherit}html.light body #root .sx-btn-primary{color:#17151c!important}body #root .wf-app{min-width:0;overflow:hidden}
.video-motion-grid button{flex-direction:column;align-items:stretch;gap:7px;padding:8px;min-height:98px}.motion-thumb{height:46px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#9e89c024,#121318);border-radius:6px;border:1px solid #ffffff09}.motion-demo-object{font-size:27px;color:#c5b8dc;display:block;animation:demoStill 3s ease-in-out infinite}.motion-button-label{font-size:11px;text-align:center;line-height:1.4}.motion-demo-in .motion-demo-object{animation:demoIn 3s ease-in-out infinite}.motion-demo-out .motion-demo-object{animation:demoIn 3s ease-in-out infinite reverse}.motion-demo-left .motion-demo-object{animation:demoX 3s ease-in-out infinite}.motion-demo-right .motion-demo-object{animation:demoX 3s ease-in-out infinite reverse}.motion-demo-up .motion-demo-object{animation:demoY 3s ease-in-out infinite}.motion-demo-down .motion-demo-object{animation:demoY 3s ease-in-out infinite reverse}.motion-demo-orbit .motion-demo-object{animation:demoTurn 3s ease-in-out infinite}.motion-demo-sway .motion-demo-object{animation:demoSway 3s ease-in-out infinite}.motion-demo-light .motion-demo-object{animation:demoLight 3s ease-in-out infinite}.motion-demo-focus .motion-demo-object{animation:demoFocus 3s ease-in-out infinite}.video-motion-grid button:disabled .motion-demo-object{animation-play-state:paused}.video-motion-grid button:disabled{opacity:.45}@keyframes demoStill{50%{opacity:.8}}@keyframes demoIn{50%{transform:scale(1.3)}}@keyframes demoX{50%{transform:translateX(-13px)}}@keyframes demoY{50%{transform:translateY(-6px)}}@keyframes demoTurn{50%{transform:perspective(100px) rotateY(25deg)}}@keyframes demoSway{50%{transform:rotate(9deg)}}@keyframes demoLight{50%{filter:brightness(1.7);text-shadow:5px 0 10px #c8afff}}@keyframes demoFocus{50%{filter:blur(2px)}}@media(prefers-reduced-motion:reduce){.motion-demo-object{animation:none!important}}
/* v34: primary tasks, restrained typography and shared charcoal surface. */
.muse-home-simple{flex:1;min-height:0;overflow:auto;padding:clamp(24px,4vw,58px);background:#111214;color:#e3dfe9;font-family:system-ui,-apple-system,sans-serif}.muse-home-intro{max-width:900px;margin:0 auto 30px}.muse-home-intro>span{font-size:11px;letter-spacing:.17em;color:#a39aaa}.muse-home-intro h1{font-size:clamp(28px,3vw,40px);font-weight:600;letter-spacing:-.04em;line-height:1.2;margin:13px 0}.muse-home-intro p{font-size:15px;line-height:1.7;color:#a8a2b2}.muse-home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:1100px;margin:0 auto 24px}.muse-home-actions>button{position:relative;min-height:210px;text-align:left;padding:26px;border:1px solid #ffffff1a;border-radius:18px;background:#1b1c21;color:#e3dfe9;cursor:pointer;transition:background .15s,border-color .15s}.muse-home-actions>button:hover{background:#24212c;border-color:#bba6ef70}.muse-home-action-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#bba6ef16;border:1px solid #bba6ef30;color:#d3bdf4;font-size:28px}.muse-home-actions h2{font-size:23px;margin:20px 0 8px;font-weight:550;letter-spacing:-.02em}.muse-home-actions p{font-size:13px;line-height:1.65;color:#aaa2b6;margin:0;max-width:230px}.muse-home-arrow{position:absolute;right:24px;top:30px;color:#8d849a;font-size:21px}.muse-home-setup{max-width:1100px;margin:0 auto;display:flex;gap:12px;align-items:center;padding:22px;border:1px solid #ffffff13;border-radius:14px;background:#18191d}.muse-home-setup>div{flex:1}.muse-home-setup strong{font-size:15px;font-weight:500}.muse-home-setup p{font-size:12px;color:#a8a0b3;line-height:1.65;margin:7px 0 0}.muse-home-setup .sx-btn{min-height:44px;font-size:13px}.muse-home-guide{max-width:1100px;margin:14px auto;padding:24px;border:1px solid #ffffff13;border-radius:14px;background:#191a1e}.muse-home-guide h2{font-size:18px}.muse-home-guide ol{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding-left:20px}.muse-home-guide li{font-size:14px;line-height:1.6}.muse-home-guide p{color:#aca3b8;font-size:12px;line-height:1.8}.muse-home-recent{max-width:1100px;margin:28px auto}.muse-home-recent header{display:flex;justify-content:space-between;align-items:center}.muse-home-recent h2{font-size:17px;font-weight:500}.muse-home-recent>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.muse-home-recent>div>button{height:145px;padding:8px;background:#191a1e;border:1px solid #ffffff13;border-radius:12px;cursor:pointer}.muse-home-recent img{height:100%;width:100%;object-fit:contain;border-radius:7px}.quick-compose h1,.recreate-work-scroll h1,.batch-composer h1{font-size:24px!important;font-weight:550!important;letter-spacing:-.025em!important}.muse-home-simple button:focus-visible{outline:2px solid #bba6ef;outline-offset:3px}html.light body #root .muse-home-simple{background:#111214!important;color:#e3dfe9!important}@media(max-width:800px){.muse-home-actions{gap:10px}.muse-home-actions>button{padding:18px;min-height:190px}.muse-home-actions h2{font-size:20px}.muse-home-setup{flex-wrap:wrap}.muse-home-setup>div{flex-basis:100%}.muse-home-guide ol{grid-template-columns:1fr;gap:10px}}@media(max-width:580px){.muse-home-actions{grid-template-columns:1fr}.muse-home-actions>button{min-height:130px;padding:20px 20px 20px 90px}.muse-home-action-icon{position:absolute;left:22px;top:25px}.muse-home-actions h2{margin:0 0 9px}.muse-home-recent>div{grid-template-columns:1fr 1fr}}
.muse-video-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.muse-video-methods button{min-height:88px;border:1px solid #ffffff1c;border-radius:12px;padding:14px;text-align:left;background:#1b1c21;color:#ece7f2;cursor:pointer}.muse-video-methods button[aria-pressed=true]{border-color:#bba6ef;background:#bba6ef20}.muse-video-methods strong{display:block;font-size:15px;font-weight:550;margin-bottom:8px}.muse-video-methods small{display:block;font-size:11px;line-height:1.6;color:#aaa0b6}.muse-video-motion-options{border:1px solid #ffffff1a;border-radius:12px;padding:14px;margin:12px 0}.muse-video-motion-options summary{cursor:pointer;min-height:24px;font-size:14px;color:#d5c9e8}.muse-video-motion-options[open] summary{margin-bottom:14px}.quick-compose :is(select,textarea),.recreate-work-scroll :is(select,textarea){font-family:inherit!important;font-size:14px!important}.quick-compose select,.recreate-work-scroll select{min-height:44px!important}.quick-input-tools button,.recreate-upload-actions button{min-height:42px!important;font-size:13px!important}
/* v35: stable comparison stage, docked task status and optional history. */
.quick-output{position:relative;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-height:0!important}.quick-output>header{flex:0 0 auto;gap:10px;flex-wrap:wrap}.quick-view-actions{display:flex;gap:8px;margin-left:auto}.quick-view-actions button{min-height:36px;border:1px solid #ffffff20;background:#26252d;border-radius:8px;color:#d9d3e3;padding:7px 12px;font-size:12px;cursor:pointer}.quick-view-actions button[aria-pressed=true]{background:#bba6ef25;border-color:#bba6ef80}.quick-output .quick-canvas{position:relative;flex:1 1 0%!important;min-height:200px!important;overflow:hidden!important;display:flex!important;align-items:center;justify-content:center;border:0!important;margin:10px!important;border-radius:10px;background:#0e0f11}.quick-output .quick-canvas>button{display:block!important;position:relative;flex:1;min-width:0;width:100%;height:100%;max-height:100%;padding:18px;border:0!important;background:transparent;overflow:hidden}.quick-output .quick-canvas>button img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important}.quick-output .quick-canvas.quick-compare{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px;background:#28262e}.quick-input-preview{margin:0;height:100%;min-height:0;position:relative;background:#0e0f11;padding:34px 15px 15px;overflow:hidden}.quick-input-preview img{height:100%;width:100%;object-fit:contain}.quick-input-preview figcaption,.quick-result-caption{position:absolute;top:10px;color:#aaa1b8;font-size:12px;z-index:2}.quick-input-preview figcaption{left:15px}.quick-result-caption{left:calc(50% + 15px)}.quick-compare>button{background:#0e0f11!important;padding:34px 15px 15px!important}.quick-output .quick-task-float{position:absolute!important;top:auto!important;bottom:8px!important;left:50%!important;transform:translateX(-50%);z-index:4;font-size:11px;max-width:90%;width:max-content;padding:5px 9px;background:#211e2af0;border:1px solid #bba6ef40;box-shadow:0 3px 16px #0004;border-radius:8px}.quick-issues{flex:0 0 auto;margin:0 12px 8px;border:1px solid #a88c5538;border-radius:9px;background:#29251d;font-size:12px;overflow:hidden}.quick-issues summary{padding:11px 14px;cursor:pointer;color:#d0bf9f}.quick-issues>div{max-height:180px;overflow:auto}.quick-issues .studio-recovery{margin:6px}.quick-history{flex:0 0 76px!important;min-height:76px!important;max-height:76px!important;overflow-x:auto!important;overflow-y:hidden!important}.quick-reference-strip{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px!important;overflow:visible!important}.quick-reference-strip>div,.quick-reference-strip>.quick-add-image{width:100%!important;min-width:0!important;height:92px!important;margin:0!important;position:relative}.quick-reference-strip>div img{width:100%;height:74px;object-fit:contain}.quick-reference-strip>.quick-add-image{border-radius:10px;background:#ffffff04}.quick-reference-strip>.quick-add-image.is-ghost{opacity:.35;background:repeating-linear-gradient(135deg,#ffffff05 0 1px,transparent 1px 8px)}.quick-reference-strip>.quick-add-image.is-ghost:hover{opacity:.85}.quick-reference-strip .quick-add-image small{font-size:10px!important}.quick-reference-strip>div>button{right:-3px!important;top:-5px!important;width:23px!important;height:23px!important;min-height:23px!important}.sx-trash-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;border:1px solid #a88c5544;border-radius:10px;padding:14px;background:#29251d;color:#d0bf9f;font-size:12px;margin:12px 0}.sx-trash-toolbar button{flex-shrink:0;min-height:42px}.monday-notifications{top:44px!important;bottom:auto!important;right:18px!important;max-width:280px!important;pointer-events:none!important}.monday-notifications>*{pointer-events:auto;font-size:12px!important;max-height:90px;overflow:auto}.quick-output>.quick-download{flex:0 0 auto;min-height:32px!important;max-height:36px!important;margin:0 12px 8px!important;font-size:12px!important}
.quick-output .quick-canvas.quick-compare{justify-items:stretch!important;align-items:stretch!important}.quick-output .quick-compare>.quick-input-preview{width:100%!important;max-width:none!important;box-sizing:border-box;align-self:stretch;justify-self:stretch}.quick-output .quick-compare>button{width:100%!important;max-width:none!important;box-sizing:border-box;align-self:stretch;justify-self:stretch}.quick-input-preview>p{font-size:13px;color:#8d8599;margin-top:25px}
.quick-output>.quick-task-float{position:static!important;transform:none!important;flex:0 0 auto!important;margin:6px 12px 0!important;width:auto!important;max-width:none!important;display:flex;align-items:center;justify-content:space-between;background:#24212b;border:1px solid #bba6ef40;padding:8px 12px;border-radius:8px;font-size:12px}.quick-output>.quick-task-float button{min-height:28px;background:#ffffff10;border:1px solid #ffffff20;border-radius:6px;color:inherit;cursor:pointer}
.muse-home-six .muse-home-intro,.muse-home-six .muse-home-actions,.muse-home-six .muse-home-guide,.muse-home-six footer{max-width:1000px;margin-left:auto;margin-right:auto}.muse-home-six .muse-home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.muse-home-six .muse-home-actions>button{min-height:148px;padding:22px 24px 22px 100px}.muse-home-six .muse-home-action-icon{position:absolute;left:24px;top:25px}.muse-home-six .muse-home-actions h2{margin:0 0 10px;font-size:22px}.muse-home-six footer{text-align:right}.muse-home-six footer button{font-size:12px}.quick-compose>.inline-muse{margin:0 0 16px!important}.quick-compose>header>p{display:none}.quick-compose>header .native-eyebrow{display:none}.quick-compose>header{margin-bottom:18px!important}.quick-compose .quick-settings{padding-top:12px!important}.quick-compose .quick-settings>header{display:none!important}@media(max-width:600px){.muse-home-six .muse-home-actions{grid-template-columns:1fr}}
