/* Creation controls are the workspace: no promotional header or duplicate navigation. */
.workspace-main:has(.production-workspace){max-width:1720px;padding:24px clamp(16px,2.2vw,36px) 48px}
.production-workspace{--studio-inset:color-mix(in srgb,var(--theme-background) 65%,var(--theme-surface));--studio-edge:color-mix(in srgb,var(--theme-text) 12%,transparent);min-width:0}
.production-workspace.studio-grid,.production-workspace.image-studio-layout{grid-template-columns:minmax(0,1fr) minmax(300px,350px);gap:20px;align-items:start}
.production-workspace .composer,.production-workspace .image-composer{padding:0;border-radius:18px;overflow:clip;background:var(--theme-surface);box-shadow:none;border-color:var(--studio-edge);min-width:0}
.production-workspace .panel-heading{margin:0;padding:20px 24px;border-bottom:1px solid var(--studio-edge)}
.production-workspace .panel-heading h2{font-size:18px;letter-spacing:-.4px;margin:0}
.production-workspace .panel-heading .pill{background:transparent;border:0;color:var(--theme-muted);padding:0;font-size:8px;letter-spacing:1.2px}
.production-workspace #generation-form,.production-workspace :is(#image-generation-form,#creative-generation-form){display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:start}
.studio-creative-input{min-width:0;padding:24px}
.studio-configuration{min-width:0;align-self:stretch;padding:24px 18px;background:var(--studio-inset);border-inline-start:1px solid var(--studio-edge)}
.production-workspace .studio-configuration>label{display:block;font-size:11px;font-weight:600;margin-bottom:10px}
.studio-configuration .model-picker-button,.studio-configuration .image-model-picker{padding:12px;gap:10px;min-height:74px;border-radius:12px;background:var(--theme-surface)}
.studio-configuration .model-symbol,.studio-configuration .image-selected-company{width:35px;height:35px;min-width:35px;border-radius:9px}
.studio-configuration .model-symbol img,.studio-configuration .image-selected-company img{width:100%;height:100%;object-fit:contain}
.studio-configuration .model-picker-button>span:nth-child(2),.studio-configuration .image-selected-copy{min-width:0;flex:1}
.studio-configuration #model-current,.studio-configuration [data-image-model-name]{font-size:12px;line-height:1.5;display:block;overflow-wrap:anywhere}
.studio-configuration #model-current-details,.studio-configuration [data-image-model-workflows]{font-size:9px;line-height:1.5}
.studio-configuration .model-picker-change,.studio-configuration .image-picker-change{font-size:0;gap:0;flex:none}
.production-workspace .model-picker-change,.production-workspace .image-picker-change{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.studio-configuration .field-note{display:none}
.studio-configuration .model-description,.studio-configuration .image-model-hint{font-size:10px;line-height:1.7;margin:12px 0 20px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.production-workspace .main-settings,.production-workspace .studio-configuration .image-main-options,.production-workspace .studio-configuration .advanced .settings-grid{grid-template-columns:1fr;gap:14px;margin:20px 0}
.production-workspace .studio-configuration label,.production-workspace .studio-configuration .field label{font-size:11px}
.production-workspace .studio-configuration select,.production-workspace .studio-configuration input:not([type=checkbox]){min-height:43px;padding:10px 12px;border-radius:9px;background:var(--theme-surface);font-size:11px;width:100%;box-sizing:border-box}
.production-workspace .creative-options{display:block;border:0;background:none;padding:0}
.production-workspace .creative-options .toggle-row{padding:14px 0;border-top:1px solid var(--studio-edge)}
.production-workspace .toggle-row b{font-size:11px}.production-workspace .toggle-row small{font-size:10px;line-height:1.6}
.production-workspace .advanced,.production-workspace .image-advanced{margin:18px 0 0;padding:16px 0;border-block:1px solid var(--studio-edge)}
.production-workspace .advanced summary,.production-workspace .image-advanced summary{font-size:11px;color:var(--theme-text)}
.production-workspace .batch-settings{display:block;padding:18px 0 0;margin:0;border:0;background:none}.production-workspace .batch-settings small{display:block;font-size:10px;line-height:1.6;margin:7px 0 12px}.production-workspace .batch-settings b{font-size:11px}
.production-workspace .prompt-label,.production-workspace .image-prompt-heading{margin:0 0 14px}.production-workspace .prompt-label label,.production-workspace .image-prompt-heading label{font-size:13px;letter-spacing:-.1px}
.production-workspace .prompt-box,.production-workspace .image-prompt-box{border-radius:13px;background:var(--studio-inset);overflow:hidden}
.production-workspace #prompt,.production-workspace :is(#image-prompt,#creative-prompt){min-height:210px;padding:18px;font-size:14px;line-height:1.9;background:transparent;border-radius:13px;box-sizing:border-box;width:100%}
.production-workspace :is(#image-prompt,#creative-prompt){border:1px solid var(--studio-edge)}
.production-workspace .prompt-bottom{padding:10px 16px;font-size:9px}.production-workspace .prompt-bottom>span:first-child{font-size:9px}
.production-workspace .enhance-row,.production-workspace .image-enhance-bar{gap:10px;padding:15px 0;margin:0;flex-wrap:wrap;border:0;background:none}
.production-workspace .enhance-row>div{display:none}.production-workspace .image-enhance-bar>span{display:none}.production-workspace .enhance-row .button,.production-workspace .image-enhance-bar .button{min-height:36px;padding:8px 12px;border-radius:8px;font-size:10px;margin-inline-start:auto}
.production-workspace .mood-field{margin:12px 0 20px}.production-workspace .mood-grid,.production-workspace .image-style-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.production-workspace .mood-card,.production-workspace .image-style-grid button{border-radius:10px;min-width:0;overflow:hidden}.production-workspace .mood-card img,.production-workspace .image-style-grid img{height:65px;object-fit:cover}.production-workspace .mood-card span,.production-workspace .image-style-grid span{font-size:9px;padding:8px 3px;line-height:1.4}

.production-workspace .image-workflows{display:flex;flex-wrap:wrap;padding:0 0 20px;gap:7px;margin:0;border:0;background:none}.production-workspace .image-workflows button{flex:1 1 auto;font-size:10px;padding:9px 10px;border:1px solid var(--studio-edge);border-radius:8px;min-height:38px;background:transparent}.production-workspace .image-workflows button.selected{background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-surface));border-color:color-mix(in srgb,var(--theme-accent) 40%,transparent)}
.production-workspace .image-references{padding:16px;margin-top:22px;border-radius:12px;background:var(--studio-inset)}.production-workspace .image-references>div>b{font-size:12px}.production-workspace .image-references small{font-size:10px;line-height:1.7}.production-workspace .image-upload-label{font-size:10px;padding:9px 11px;min-height:36px}.production-workspace .reference{margin:20px 0 0;border-radius:11px;background:var(--studio-inset)}
.studio-submit{grid-column:1/-1;padding:18px 24px;border-top:1px solid var(--studio-edge);background:var(--theme-surface)}
.production-workspace .generation-footer,.production-workspace .image-generate-bar{margin:0;padding:0;border:0;gap:12px;align-items:center}.production-workspace .generation-footer .button,.production-workspace .image-generate-bar .button{border-radius:10px;min-height:46px;font-size:12px;padding:12px 18px}.production-workspace .image-generate-bar>div>b{font-size:22px}.production-workspace .studio-submit>.fineprint,.production-workspace .studio-submit>.image-input-help{font-size:9px;line-height:1.7;margin:12px 0 0;text-align:start}
.production-workspace .live-queue,.production-workspace .image-results-panel{padding:20px;border:1px solid var(--studio-edge);border-radius:18px;background:var(--theme-surface);box-shadow:none}
.production-workspace .queue-heading h2,.production-workspace .image-results-heading h2{font-size:16px;letter-spacing:-.3px;margin:0}.production-workspace .image-results-heading .eyebrow{display:none}.production-workspace .queue-description{font-size:10px;line-height:1.7;margin-top:10px}.production-workspace .queue-tabs,.production-workspace .image-result-filters{padding:4px;margin:18px 0;background:var(--studio-inset);border-radius:10px}.production-workspace .queue-tabs button,.production-workspace .image-result-filters button{font-size:10px;padding:9px 6px;border-radius:7px}
.production-workspace .image-result-grid{grid-template-columns:1fr;gap:14px}.production-workspace .image-result-image{max-height:310px}.production-workspace .image-results-empty,.production-workspace .queue-empty{padding:45px 10px;min-height:280px;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--theme-accent) 4%,transparent),transparent 70%);border:1px dashed var(--studio-edge);border-radius:12px}.production-workspace .image-results-empty h3,.production-workspace .queue-empty h3{font-size:15px;line-height:1.5}.production-workspace .image-results-empty p,.production-workspace .queue-empty p{font-size:10px;line-height:1.9}.production-workspace [hidden]{display:none!important}
.production-workspace .queue-tip,.production-workspace .image-reference-tip,.production-workspace .upgrade-strip{font-size:10px;line-height:1.8;border-radius:12px}.production-workspace .queue-column{top:20px}.production-workspace .queue-library-link,.production-workspace .image-library-link{margin-top:18px;padding-top:16px;font-size:11px}
.production-workspace .film-new-project{margin:0;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);overflow:hidden;border-radius:18px;border-color:var(--studio-edge);background:var(--theme-surface);box-shadow:none;gap:0;padding:0}
.production-workspace .film-form-main{padding:28px}.production-workspace .film-form-main h2{font-size:26px;letter-spacing:-.8px;line-height:1.25;margin:15px 0 25px}.production-workspace .film-form-main .film-social-platforms{display:none}.production-workspace .film-form-side{padding:28px;background:var(--studio-inset);border-inline-start:1px solid var(--studio-edge)}.production-workspace .film-form-side>.eyebrow,.production-workspace .film-form-main>.eyebrow{font-size:9px;letter-spacing:1.4px}.production-workspace .film-new-project textarea,.production-workspace .film-new-project input,.production-workspace .film-new-project select{border-radius:10px;font-size:13px;background:var(--theme-background);line-height:1.8}.production-workspace #film-concept{min-height:190px}.production-workspace .film-budget{background:var(--theme-surface);border-radius:12px;padding:18px}.production-workspace #saved-projects{border:0;background:none;border-radius:0;padding:0;margin:36px 0 20px;box-shadow:none}.production-workspace #saved-projects h2{font-size:22px}.production-workspace .film-project-card{border-radius:14px}
@media(min-width:1280px){.production-workspace .studio-submit{position:sticky;bottom:0;z-index:4;box-shadow:0 -8px 20px #0000000a}.production-workspace .image-results-column{position:sticky;top:20px}}
@media(max-width:1279px){.production-workspace #generation-form,.production-workspace :is(#image-generation-form,#creative-generation-form){display:flex;flex-direction:column;padding:22px;gap:0}.studio-creative-input,.studio-configuration{display:contents}.production-workspace .studio-configuration .model-field,.production-workspace .studio-configuration>label,.production-workspace .studio-configuration>.image-model-picker,.production-workspace .studio-configuration>.image-model-hint{order:-2}.production-workspace #generation-form>*,.production-workspace :is(#image-generation-form,#creative-generation-form)>*{width:100%;box-sizing:border-box}.production-workspace .studio-configuration .model-field{width:100%}.studio-submit{margin:22px -22px -22px;padding:18px 22px;align-self:center;width:calc(100% + 44px)!important}.production-workspace .main-settings,.production-workspace .studio-configuration .image-main-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.production-workspace .studio-configuration .model-picker-change,.production-workspace .studio-configuration .image-picker-change{font-size:10px;gap:8px}.production-workspace .studio-configuration .model-symbol,.production-workspace .studio-configuration .image-selected-company{width:40px;height:40px}.production-workspace .creative-options{display:grid;grid-template-columns:1fr;gap:0}.production-workspace .batch-settings{margin-top:16px}.production-workspace .image-model-hint{margin-bottom:22px}.production-workspace .model-field{margin-bottom:24px}}
@media(max-width:1000px){.production-workspace.studio-grid,.production-workspace.image-studio-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.production-workspace .mood-grid,.production-workspace .image-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.production-workspace .film-new-project{grid-template-columns:1fr}.production-workspace .film-form-side{border-inline-start:0;border-top:1px solid var(--studio-edge)}}
@media(max-width:900px){.production-workspace.studio-grid,.production-workspace.image-studio-layout{grid-template-columns:1fr}.production-workspace .queue-column,.production-workspace .image-results-column{position:static}.production-workspace .image-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-workspace .queue-empty,.production-workspace .image-results-empty{min-height:220px;padding:25px 12px}.production-workspace .image-reference-tip,.production-workspace .queue-tip,.production-workspace .upgrade-strip{display:none}}
@media(max-width:600px){.workspace-main:has(.production-workspace){padding:16px 12px 35px}.production-workspace .panel-heading{padding:18px}.production-workspace .panel-heading .pill{display:none}.production-workspace #generation-form,.production-workspace :is(#image-generation-form,#creative-generation-form){padding:18px}.production-workspace #prompt,.production-workspace :is(#image-prompt,#creative-prompt){min-height:175px;font-size:13px;padding:14px}.studio-submit{margin:18px -18px -18px;padding:16px 18px;width:calc(100% + 36px)!important}.production-workspace .main-settings,.production-workspace .studio-configuration .image-main-options{grid-template-columns:1fr 1fr}.production-workspace .image-main-options>label:last-child{grid-column:1/-1}.production-workspace .mood-card img,.production-workspace .image-style-grid img{height:56px}.production-workspace .generation-footer .button,.production-workspace .image-generate-bar .button{font-size:10px;padding:11px 12px;gap:7px}.production-workspace .generation-footer>div{font-size:10px}.production-workspace .generation-footer>div>.muted{margin-inline-start:0}.production-workspace .generation-footer>.button .icon:last-child,.production-workspace .image-generate-bar>.button .icon:last-child{display:none}.production-workspace .image-generate-bar>div>b{font-size:20px}.production-workspace .prompt-bottom>span:first-child{display:none}.production-workspace .image-references{padding:13px}.production-workspace .image-references>div{max-width:100%}.production-workspace .image-upload-label{margin-top:12px}.production-workspace .film-form-main,.production-workspace .film-form-side{padding:20px}.production-workspace .film-form-main h2{font-size:24px}.production-workspace .film-form-columns{grid-template-columns:1fr}.production-workspace .live-queue,.production-workspace .image-results-panel{padding:18px}}

.production-workspace [data-image-prompt-controls][hidden] ~ [data-image-style-controls]{display:none!important}

/* Studio surfaces: one visual system for creation, project planning and editing. */
body.workspace:has(.production-workspace,#editor-workspace){
 --studio-stroke:color-mix(in srgb,var(--theme-text) 11%,transparent);
 --studio-stroke-strong:color-mix(in srgb,var(--theme-text) 18%,transparent);
 --studio-canvas:color-mix(in srgb,var(--theme-background) 90%,var(--theme-surface));
 --studio-well:color-mix(in srgb,var(--theme-background) 74%,var(--theme-surface));
 --studio-face:color-mix(in srgb,var(--theme-surface) 92%,var(--theme-text));
 background-color:var(--theme-background);
 background-image:radial-gradient(ellipse at 80% 0%,color-mix(in srgb,var(--theme-accent) 4%,transparent),transparent 52%),linear-gradient(color-mix(in srgb,var(--theme-text) 1.5%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--theme-text) 1.5%,transparent) 1px,transparent 1px);
 background-size:auto,40px 40px,40px 40px;
 font-feature-settings:"ss01" on,"cv11" on;
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar{
 background:color-mix(in srgb,var(--theme-background) 94%,var(--theme-surface));
 border-inline-end:1px solid var(--studio-stroke);box-shadow:12px 0 40px #00000008;
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar-head{padding-block:8px 22px}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .brand{font-size:27px;letter-spacing:-1.2px}
body.workspace:has(.production-workspace,#editor-workspace) .nav-label{
 font-size:9px;font-weight:600;letter-spacing:.15em;color:var(--theme-muted);opacity:.85;margin-block:24px 12px;
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .nav-link{
 position:relative;min-height:45px;padding:12px 14px;gap:13px;font-size:12px;font-weight:500;
 border:1px solid transparent;border-radius:10px;color:var(--theme-muted);
 transition:background .16s,color .16s,border-color .16s;
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .nav-link>.icon{width:17px;height:17px;flex-shrink:0}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .nav-link:hover{
 color:var(--theme-text);background:color-mix(in srgb,var(--theme-text) 4%,transparent);
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .nav-link.active{
 color:var(--theme-accent);background:linear-gradient(100deg,color-mix(in srgb,var(--theme-accent) 10%,transparent),color-mix(in srgb,var(--theme-accent) 3%,transparent));
 border-color:color-mix(in srgb,var(--theme-accent) 20%,transparent);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 4%,transparent);
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .nav-link.active:before{
 content:"";position:absolute;inset-inline-start:-1px;top:13px;bottom:13px;width:2px;border-radius:2px;background:var(--theme-accent);
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .credit-card{
 border:1px solid var(--studio-stroke);border-radius:14px;
 background:linear-gradient(145deg,color-mix(in srgb,var(--theme-accent) 5%,var(--theme-surface)),var(--theme-background));box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 4%,transparent);
}
body.workspace:has(.production-workspace,#editor-workspace) .sidebar .credit-card .eyebrow{font-size:9px;letter-spacing:.12em}
body.workspace:has(.production-workspace,#editor-workspace) .workspace-header{
 min-height:74px;box-sizing:border-box;padding:17px clamp(18px,2.2vw,36px);
 background:var(--theme-background);border-bottom:1px solid var(--studio-stroke);gap:14px;
}
body.workspace:has(.production-workspace,#editor-workspace) .breadcrumb{font-size:11px;letter-spacing:.01em}
body.workspace:has(.production-workspace,#editor-workspace) .breadcrumb>b{font-weight:600;color:var(--theme-text)}
body.workspace:has(.production-workspace,#editor-workspace) .workspace-header .header-actions{gap:14px;min-width:0}
body.workspace:has(.production-workspace,#editor-workspace) .workspace-header .icon-button{
 width:35px;height:35px;border:1px solid var(--studio-stroke);border-radius:10px;background:var(--studio-well);
}
body.workspace:has(.production-workspace,#editor-workspace) .workspace-header .desktop-only{font-size:10px}
.production-workspace{--studio-edge:var(--studio-stroke);--studio-inset:var(--studio-well)}
.production-workspace .composer,.production-workspace .image-composer,.production-workspace .live-queue,.production-workspace .image-results-panel,.production-workspace .film-new-project{
 border:1px solid var(--studio-stroke);border-radius:16px;background:var(--theme-surface);
 box-shadow:0 16px 40px #00000012,inset 0 1px color-mix(in srgb,var(--theme-text) 4%,transparent);
}
.production-workspace .panel-heading{
 padding:22px 24px;border-bottom:1px solid var(--studio-stroke);
 background:linear-gradient(110deg,color-mix(in srgb,var(--theme-text) 2.2%,transparent),transparent 65%);gap:14px;
}
.production-workspace .panel-heading h2{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;line-height:1.35;letter-spacing:-.6px}
.production-workspace .panel-heading h2>.icon{
 width:19px;height:19px;flex:0 0 19px;padding:8px;box-sizing:content-box;border:1px solid color-mix(in srgb,var(--theme-accent) 16%,transparent);
 border-radius:10px;background:color-mix(in srgb,var(--theme-accent) 6%,transparent);color:var(--theme-accent);
}
.production-workspace .panel-heading .pill{
 max-width:42%;padding:6px 8px;border:1px solid var(--studio-stroke);border-radius:6px;
 font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:8px;font-weight:400;line-height:1.6;letter-spacing:.08em;white-space:normal;text-align:end;background:var(--studio-canvas);
}
.production-workspace .video-workflows,.production-workspace .image-workflows{
 display:flex;gap:4px;flex-wrap:wrap;padding:5px;margin:0 0 16px;background:var(--studio-well);border:1px solid var(--studio-stroke);border-radius:12px;
}
.production-workspace .video-workflows button,.production-workspace .image-workflows button{
 position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1 1 auto;
 min-height:39px;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--theme-muted);
 font-size:11px;font-weight:500;line-height:1.4;transition:color .16s,background .16s,border-color .16s;white-space:normal;
}
.production-workspace .video-workflows button:hover,.production-workspace .image-workflows button:hover{background:color-mix(in srgb,var(--theme-text) 3%,transparent);color:var(--theme-text)}
.production-workspace .video-workflows button.selected,.production-workspace .image-workflows button.selected{
 border-color:color-mix(in srgb,var(--theme-text) 10%,transparent);background:var(--studio-face);color:var(--theme-accent);
 box-shadow:0 2px 5px #00000012,inset 0 -2px color-mix(in srgb,var(--theme-accent) 75%,transparent);
}
.production-workspace .video-workflows .icon,.production-workspace .image-workflows .icon{width:15px;height:15px;flex:0 0 15px}
.production-workspace .video-workflow-help{font-size:11px;line-height:1.8;margin:0 0 22px}
.production-workspace .prompt-label,.production-workspace .image-prompt-heading{align-items:center;margin:0 0 12px}
.production-workspace .prompt-label label,.production-workspace .image-prompt-heading label{font-size:12px;font-weight:600;letter-spacing:0}
.production-workspace .prompt-box,.production-workspace .image-prompt-box{
 border:1px solid var(--studio-stroke-strong);border-radius:12px;background:var(--studio-well);
 box-shadow:inset 0 2px 8px #00000008;transition:border-color .16s,box-shadow .16s;
}
.production-workspace .prompt-box:focus-within,.production-workspace .image-prompt-box:focus-within{
 border-color:color-mix(in srgb,var(--theme-accent) 65%,transparent);
 box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 7%,transparent),inset 0 1px color-mix(in srgb,var(--theme-accent) 5%,transparent);
}
.production-workspace #prompt,.production-workspace :is(#image-prompt,#creative-prompt){
 min-height:220px;border:0;border-radius:11px;padding:19px 20px;font-size:14px;line-height:1.9;letter-spacing:0;outline:0;color:var(--theme-text);
}
.production-workspace #prompt::placeholder,.production-workspace :is(#image-prompt,#creative-prompt)::placeholder{color:var(--theme-muted);opacity:.85}
.production-workspace .prompt-bottom{
 border-top:1px solid var(--studio-stroke);padding:11px 16px;background:color-mix(in srgb,var(--theme-background) 24%,transparent);
}
.production-workspace .prompt-bottom>span:last-child,.production-workspace [data-image-prompt-count]{
 font:10px/1.5 ui-monospace,"SFMono-Regular",Consolas,monospace;color:var(--theme-muted);letter-spacing:.03em;
}
.production-workspace .studio-configuration{
 background:var(--studio-well);border-inline-start:1px solid var(--studio-stroke);
}
.production-workspace .studio-configuration .model-picker-button,.production-workspace .studio-configuration .image-model-picker{
 min-height:82px;border:1px solid var(--studio-stroke-strong);border-radius:11px;padding:13px 11px;gap:10px;background:var(--theme-surface);
 box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 4%,transparent);transition:border-color .16s,box-shadow .16s;
}
.production-workspace .model-picker-button:hover,.production-workspace .image-model-picker:hover{border-color:color-mix(in srgb,var(--theme-accent) 45%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 4%,transparent)}
.production-workspace .studio-configuration .model-symbol,.production-workspace .studio-configuration .image-selected-company{width:34px;height:34px;min-width:34px}
.production-workspace .studio-configuration #model-current-details,.production-workspace .studio-configuration [data-image-model-workflows]{font-size:9px;line-height:1.65;margin-top:4px;color:var(--theme-muted)}
.production-workspace .studio-configuration label,.production-workspace .studio-configuration .field label{font-size:10px;font-weight:600;letter-spacing:.03em}
.production-workspace .studio-configuration select,.production-workspace .studio-configuration input:not([type=checkbox]){
 min-height:45px;border:1px solid var(--studio-stroke-strong);border-radius:9px;padding:11px 12px;background:var(--theme-surface);font-size:11px;font-weight:500;
 box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 2%,transparent);transition:border-color .16s,box-shadow .16s;
}
.production-workspace .studio-configuration select:focus,.production-workspace .studio-configuration input:focus{
 border-color:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 7%,transparent);outline:0;
}
.production-workspace .creative-options .toggle-row{border-color:var(--studio-stroke);padding:16px 0}
.production-workspace .toggle-row small{color:var(--theme-muted)}
.production-workspace .advanced,.production-workspace .image-advanced{border-color:var(--studio-stroke)}
.production-workspace .advanced summary,.production-workspace .image-advanced summary{font-weight:500}
.production-workspace .image-references,.production-workspace .reference{
 border:1px dashed var(--studio-stroke-strong);border-radius:12px;background:var(--studio-well);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 2%,transparent);
}
.production-workspace .reference>summary{font-size:11px;font-weight:500}
.production-workspace .image-references>div>b{font-size:12px;font-weight:600}
.production-workspace .mood-card,.production-workspace .image-style-grid button{
 border-color:var(--studio-stroke-strong);background:var(--studio-well);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 3%,transparent);
}
.production-workspace .mood-card:hover,.production-workspace .image-style-grid button:hover{border-color:color-mix(in srgb,var(--theme-accent) 55%,transparent)}
.production-workspace .mood-card.selected,.production-workspace .image-style-grid button.selected{border-color:var(--theme-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--theme-accent) 30%,transparent)}
.production-workspace .mood-card>span,.production-workspace .image-style-grid button>span{font-size:10px}
.production-workspace .studio-submit{
 position:relative;border-top:1px solid var(--studio-stroke);background:var(--theme-surface);
 box-shadow:0 -8px 22px #0000000d;
}
.production-workspace .studio-submit:before{
 content:"";position:absolute;inset-inline-start:24px;top:-1px;width:36px;height:1px;background:var(--theme-accent);
}
.production-workspace .generation-footer>div,.production-workspace .image-generate-bar>div{font-size:11px}
.production-workspace .generation-footer>div>b,.production-workspace .image-generate-bar>div>b{font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.production-workspace .button.lime,#editor-workspace .button.lime{
 border:1px solid color-mix(in srgb,var(--theme-on-accent) 12%,transparent);border-radius:10px;font-weight:650;
 background:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent) 91%,white),var(--theme-accent));color:var(--theme-on-accent);
 box-shadow:inset 0 1px #ffffff35,0 4px 16px color-mix(in srgb,var(--theme-accent) 9%,transparent);
 transition:filter .16s,box-shadow .16s;
}
.production-workspace .button.lime:hover,#editor-workspace .button.lime:hover{filter:brightness(1.04);box-shadow:inset 0 1px #ffffff45,0 5px 20px color-mix(in srgb,var(--theme-accent) 14%,transparent)}
.production-workspace .button.secondary,.production-workspace .icon-button,#editor-workspace .button.secondary,#editor-workspace .icon-button{
 border-color:var(--studio-stroke-strong);background:var(--studio-well);border-radius:9px;box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 3%,transparent);
}
.production-workspace .live-queue,.production-workspace .image-results-panel{padding:22px 20px}
.production-workspace .queue-heading,.production-workspace .image-results-heading{padding-bottom:4px}
.production-workspace .queue-heading h2,.production-workspace .image-results-heading h2{font-size:16px;font-weight:600;letter-spacing:-.4px}
.production-workspace .queue-heading .count,.production-workspace .image-result-count{
 border:1px solid var(--studio-stroke);border-radius:6px;min-width:27px;height:27px;padding:3px 6px;box-sizing:border-box;
 font:10px/19px ui-monospace,"SFMono-Regular",Consolas,monospace;text-align:center;background:var(--studio-well);color:var(--theme-accent);
}
.production-workspace .queue-description{line-height:1.8;font-size:10px}
.production-workspace .queue-tabs,.production-workspace .image-result-filters{border:1px solid var(--studio-stroke);border-radius:10px;background:var(--studio-well);gap:3px}
.production-workspace .queue-tabs button,.production-workspace .image-result-filters button{font-size:10px;font-weight:500;line-height:1.5;white-space:normal}
.production-workspace .queue-tabs button.selected,.production-workspace .image-result-filters button.selected{
 background:var(--studio-face);color:var(--theme-text);box-shadow:0 1px 4px #00000014,inset 0 1px color-mix(in srgb,var(--theme-text) 5%,transparent);
}
.production-workspace .queue-item,.production-workspace .image-result-card{
 border:1px solid var(--studio-stroke);border-radius:12px;background:var(--studio-well);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 3%,transparent);
}
.production-workspace .queue-item-top>span:first-child{font-size:9px;color:var(--theme-muted)}
.production-workspace .queue-prompt{font-size:11px;font-weight:500;line-height:1.75}
.production-workspace .queue-media video{border-radius:8px}
.production-workspace .status-tag{border:1px solid var(--studio-stroke);border-radius:5px;font-size:8px;line-height:1.6;letter-spacing:.02em}
.production-workspace .queue-empty,.production-workspace .image-results-empty{
 border:1px dashed var(--studio-stroke-strong);border-radius:12px;min-height:270px;
 background:radial-gradient(ellipse at 50% 42%,color-mix(in srgb,var(--theme-accent) 5%,transparent),transparent 70%);
}
.production-workspace .queue-empty h3,.production-workspace .image-results-empty h3{font-size:15px;font-weight:600;letter-spacing:-.3px}
.production-workspace .queue-library-link,.production-workspace .image-library-link{border-color:var(--studio-stroke);font-weight:500}
.production-workspace .queue-tip,.production-workspace .image-reference-tip{border-color:var(--studio-stroke);background:var(--studio-well)}
.production-workspace .film-form-main,.production-workspace .film-form-side{padding:30px}
.production-workspace .film-form-main h2{font-size:28px;font-weight:600;letter-spacing:-.8px;line-height:1.3}
.production-workspace .film-form-main>.eyebrow,.production-workspace .film-form-side>.eyebrow{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:9px;letter-spacing:.08em}
.production-workspace .film-form-side{background:var(--studio-well);border-color:var(--studio-stroke)}
.production-workspace .film-new-project input:not([type=checkbox]),.production-workspace .film-new-project textarea,.production-workspace .film-new-project select{
 border:1px solid var(--studio-stroke-strong);border-radius:10px;background:var(--studio-canvas);font-size:12px;line-height:1.8;
 box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 2%,transparent);
}
.production-workspace .film-new-project input:focus,.production-workspace .film-new-project textarea:focus,.production-workspace .film-new-project select:focus{
 border-color:var(--theme-accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 7%,transparent);
}
.production-workspace .film-budget{border:1px solid var(--studio-stroke);border-radius:12px;background:var(--theme-surface)}
.production-workspace .film-budget b{font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.5px}
.production-workspace .film-project-card{border:1px solid var(--studio-stroke);background:var(--theme-surface);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 3%,transparent)}
#editor-workspace .film-console,#editor-workspace .film-scene,#editor-workspace .film-toolbar,#editor-workspace .film-storyboard-overview{
 border-color:var(--studio-stroke);box-shadow:inset 0 1px color-mix(in srgb,var(--theme-text) 3%,transparent);
}
#editor-workspace .film-console{border-radius:14px;background:var(--studio-well)}
#editor-workspace .film-toolbar{background:var(--theme-surface);border-radius:12px;padding:16px}
#editor-workspace .film-scene{background:var(--theme-surface);border-radius:14px}
#editor-workspace .film-project-heading h1{font-weight:600;letter-spacing:-.7px}
html[dir=rtl] body.workspace:has(.production-workspace,#editor-workspace) .nav-label,
html[dir=rtl] .production-workspace .panel-heading .pill,
html[dir=rtl] .production-workspace .film-form-main>.eyebrow,
html[dir=rtl] .production-workspace .film-form-side>.eyebrow{letter-spacing:normal;font-family:inherit}
@media(min-width:1280px){.production-workspace .studio-submit{position:sticky;bottom:0}}
@media(max-width:1279px){.production-workspace .studio-configuration{background:none;border:0}.production-workspace .panel-heading{padding:20px 22px}.production-workspace .image-workflows{margin-bottom:20px}}
@media(max-width:900px){.production-workspace .video-workflows button,.production-workspace .image-workflows button{min-height:38px}.production-workspace .film-form-main,.production-workspace .film-form-side{padding:24px}}
@media(max-width:600px){
 body.workspace:has(.production-workspace,#editor-workspace) .workspace-header{min-height:65px;padding:13px 12px;gap:8px}
 body.workspace:has(.production-workspace,#editor-workspace) .workspace-header .header-actions{gap:8px}
 body.workspace:has(.production-workspace,#editor-workspace) .breadcrumb{font-size:10px;line-height:1.5;min-width:0}
 .production-workspace .panel-heading{padding:17px 18px}
 .production-workspace .panel-heading h2{font-size:17px;gap:10px}
 .production-workspace .panel-heading h2>.icon{width:17px;height:17px;flex-basis:17px;padding:7px}
 .production-workspace .panel-heading .pill{display:none}
 .production-workspace .video-workflows button,.production-workspace .image-workflows button{padding:9px 8px;font-size:10px;gap:6px}
 .production-workspace #prompt,.production-workspace :is(#image-prompt,#creative-prompt){min-height:185px;padding:16px;font-size:13px}
 .production-workspace .mood-card>span,.production-workspace .image-style-grid button>span{font-size:9px}
 .production-workspace .studio-submit:before{inset-inline-start:18px}
 .production-workspace .live-queue,.production-workspace .image-results-panel{padding:18px}
 .production-workspace .film-form-main,.production-workspace .film-form-side{padding:20px}
 .production-workspace .film-form-main h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){
 body.workspace:has(.production-workspace,#editor-workspace) .nav-link,
 .production-workspace button,.production-workspace .button,.production-workspace .prompt-box,.production-workspace .image-prompt-box{transition:none}
}

/* Keep the creative controls full-width when the settings stack above them. */
@media(max-width:1279px){.production-workspace .studio-creative-input>*,.production-workspace .studio-configuration>*{width:100%;box-sizing:border-box}}
.production-workspace .mood-card>span,.production-workspace .image-style-grid button>span{white-space:normal;overflow-wrap:anywhere;line-height:1.5;min-height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:7px 5px}

/* Align the studio brand with its header and leave more room for the canvas. */
@media(min-width:761px){
 body.workspace:has(.production-workspace,#editor-workspace) .sidebar{width:208px;padding:0 16px 15px}
 body.workspace:has(.production-workspace,#editor-workspace) .main-shell{margin-left:0;margin-right:0;margin-inline-start:208px}
 body.workspace:has(.production-workspace,#editor-workspace) .workspace-header{height:74px;min-height:74px}
 body.workspace:has(.production-workspace,#editor-workspace) .sidebar-head{height:74px;min-height:74px;flex:0 0 74px;box-sizing:border-box;padding:0 18px;margin:0 -16px 8px;align-items:center;border-bottom:1px solid var(--studio-stroke)}
 body.workspace:has(.production-workspace,#editor-workspace) .sidebar-head .brand{margin:0;font-size:26px;gap:8px;line-height:1}
 body.workspace:has(.production-workspace,#editor-workspace) .sidebar-head .brand-logo{max-width:160px;max-height:38px;object-fit:contain}
 body.workspace:has(.production-workspace,#editor-workspace) .nav-label{margin-block:18px 10px}
}
/* Keep the existing style cards, with a taller preview window. */
.production-workspace .mood-card img,.production-workspace .image-style-grid img{height:90px}
.production-workspace .mood-card img[src$="/anime.png"],.production-workspace .image-style-grid img[src$="/anime.png"]{object-position:center 45%}
@media(max-width:600px){.production-workspace .mood-card img,.production-workspace .image-style-grid img{height:74px}}

.film-project-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}.film-project-actions>.button{flex:1 1 auto;margin:0!important;width:auto}.film-project-actions>.film-delete-button{flex:0 1 auto}.film-delete-button{font-size:10px!important;gap:7px;white-space:normal}.film-delete-button:disabled{opacity:.45;cursor:not-allowed}.film-delete-button .icon{width:14px;height:14px}.film-delete-workspace{max-width:620px;margin:35px auto}.film-delete-panel{padding:30px;border:1px solid var(--studio-stroke);border-radius:16px;background:var(--theme-surface)}.film-delete-symbol{display:inline-flex;padding:12px;border:1px solid #d88a8a50;border-radius:12px;background:#c4464612;color:#e7a5a5}.film-delete-symbol .icon{width:24px;height:24px}.film-delete-panel h1{font-size:25px;letter-spacing:-.6px;margin:20px 0 10px}.film-delete-panel h2{font-size:16px;margin:0 0 18px;overflow-wrap:anywhere}.film-delete-panel p{font-size:13px;line-height:1.8}.film-delete-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}.film-delete-actions>.button{min-height:44px}.film-delete-actions .media-delete-confirm{background:#933e39;border-color:#c46d66;color:#fff}.film-delete-actions .media-delete-confirm:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.film-delete-panel{padding:22px}.film-delete-workspace{margin:10px auto}.film-project-actions>.button{flex:1 1 100%}}


/* Workspace options and film planning */
.production-workspace .toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    padding: 14px 3px;
}
.production-workspace .creative-options .toggle-row { padding: 13px 12px; }
.production-workspace .toggle-row .switch {
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
}
.production-workspace .toggle-row .switch::after {
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 14px;
    height: 14px;
    margin: 0;
    transition: inset-inline-start .16s ease, background-color .16s ease;
}
.production-workspace .toggle-row input:checked + .switch::after {
    inset-inline-start: 19px;
    transform: none;
}
.production-workspace .toggle-row input[type="checkbox"] { margin: 0; height: 22px; width: 38px; inset-inline-end: 3px; cursor: pointer; }
.production-workspace .creative-options .toggle-row input[type="checkbox"] { inset-inline-end: 12px; }
.production-workspace .toggle-row > span > b { font-size: 12px; }
.production-workspace .toggle-row > span > small { line-height: 1.5; margin-top: 4px; }
.production-workspace .toggle-row[hidden] { display: none; }

.production-workspace .studio-configuration > .image-model-info-row { order: -2; }
.image-model-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
    margin: 12px 0 20px;
}
.studio-configuration .image-model-info-row .image-model-hint { margin: 2px 0 0; }
.studio-field-help { position: relative; }
.studio-field-help button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--theme-line);
    border-radius: 8px;
    background: var(--studio-inset, var(--panel));
    color: var(--lime);
    cursor: help;
}
.studio-field-help button .icon { width: 17px; height: 17px; }
.studio-field-help [role="tooltip"] {
    position: absolute;
    z-index: 12;
    inset-inline-end: 0;
    top: calc(100% + 5px);
    width: min(235px, calc(100vw - 76px));
    padding: 11px 13px;
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 8px 22px #0006;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.studio-field-help:hover [role="tooltip"], .studio-field-help:focus-within [role="tooltip"] { opacity: 1; visibility: visible; }
.studio-field-hint { display: block; margin-top: 7px; font-size: 11px; line-height: 1.6; color: var(--muted); }

.film-timing {
    margin: 16px 0;
    border: 1px solid var(--theme-line);
    border-radius: 13px;
    background: var(--panel);
}
.film-timing > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.film-timing > summary::-webkit-details-marker { display: none; }
.film-timing > summary > span { display: inline-flex; align-items: center; gap: 7px; }
.film-timing > summary .icon { width: 16px; height: 16px; }
.film-timing[open] .film-timing-runtime .icon { rotate: 180deg; }
.film-timing-runtime { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.film-timing-runtime output { color: var(--lime); }
.film-timing-runtime [data-over-limit] { color: #f3a29b; }
.film-timing form { padding: 0 14px 13px; }
.film-timing-rows { display: grid; gap: 3px; max-height: 330px; overflow: auto; padding-inline-end: 4px; }
.film-timing .film-timing-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 66px 12px;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    margin: 0;
    border-bottom: 1px solid var(--theme-line);
}
.film-timing-row input { width: 100%; min-height: 36px; padding: 5px 8px; }
.film-timing-index { color: var(--muted); font-variant-numeric: tabular-nums; }
.film-timing-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 8px; padding-top: 12px; }
.film-timing-actions p { color: #f3a29b; margin: 0 auto 0 0; }
.film-scene-references { margin: 11px 0; border: 1px solid var(--theme-line); border-radius: 9px; padding: 9px; }
.film-scene-references > summary { padding: 3px; }
.film-scene-references > summary span { margin-inline-start: 5px; color: var(--muted); }
.film-scene-references .film-upload-row { padding-block: 4px; }
.film-scene-references .film-upload-row input { min-width: 0; }

@media(max-width: 760px) {
    body.workspace:has(.production-workspace,#editor-workspace) #sidebar {
        width: min(340px, calc(100vw - 20px));
        padding: 0 16px 18px;
        border-inline-end: 1px solid var(--theme-line);
    }
    body.workspace:has(.production-workspace,#editor-workspace) #sidebar .sidebar-head {
        position: sticky;
        top: 0;
        min-height: 68px;
        flex: 0 0 68px;
        padding: 0 16px;
        margin: 0 -16px 13px;
        background: var(--panel);
        border-bottom: 1px solid var(--theme-line);
    }
    body.workspace:has(.production-workspace,#editor-workspace) #sidebar .sidebar-close {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    body.workspace:has(.production-workspace,#editor-workspace) #sidebar nav { padding-block-start: 3px; }
}

