/* Default view is unchanged; opt-in left layout only applies to wide creation surfaces. */
html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;height:34px;padding:0 10px;background:transparent;border:1px solid var(--studio-line);border-radius:9px;color:var(--studio-sub);font-size:12px;font-weight:500;}
html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle svg{width:17px;height:17px;}
html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle:hover{background:var(--studio-soft);color:var(--studio-text);}
html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle[aria-pressed=true]{background:var(--studio-tint);border-color:var(--studio-accent);color:var(--studio-accent);}
html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle[hidden],html body.reference-ui-shell[data-studio-ui] .studio-side-heading{display:none!important;}
@media(max-width:1179px){html body.reference-ui-shell[data-studio-ui] #studioLayoutToggle{display:none!important;}}
@layer studio-sidebar {
@media(min-width:900px){
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left]{--studio-side-width:420px;--studio-side-space:452px;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace :is(#view-work,#view-projects){padding-left:calc(var(--studio-side-space) + 24px)!important;padding-right:24px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace .right-view.active{animation:none!important;transform:none!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface]:not([hidden]){display:flex!important;flex-direction:column!important;position:fixed!important;z-index:30!important;left:16px!important;right:auto!important;top:88px!important;bottom:16px!important;width:var(--studio-side-width)!important;max-width:var(--studio-side-width)!important;height:calc(100dvh - 104px)!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid var(--studio-line)!important;border-radius:18px!important;background:var(--studio-surface)!important;box-shadow:var(--studio-card-shadow)!important;overflow:visible!important;transform:none!important;pointer-events:auto!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface]::before{display:none!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer .studio-side-heading{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 16px!important;border-bottom:1px solid var(--studio-line);flex:0 0 auto;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .studio-side-heading>span{display:grid;gap:3px;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .studio-side-heading strong{font-size:20px;font-weight:650;letter-spacing:-.03em;color:var(--studio-text);}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .studio-side-heading small{font-size:12px;color:var(--studio-muted);}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .studio-side-heading button{height:32px;width:32px;padding:0;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-soft);color:var(--studio-sub);font-size:18px;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface]>.compose-scroll{flex:1 1 auto!important;position:relative!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;padding:0!important;border:0!important;border-radius:0 0 18px 18px!important;background:var(--studio-surface)!important;overscroll-behavior:contain;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm:not([hidden]){display:flex!important;flex-direction:column!important;padding:20px!important;gap:0!important;min-height:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] .seg:not([hidden]){position:relative!important;inset:auto!important;order:-2!important;display:flex!important;align-self:stretch!important;width:calc(100% - 40px)!important;height:38px!important;min-height:38px!important;margin:20px 20px 0!important;padding:4px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] .seg button{flex:1!important;padding:0 9px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #assetField{position:relative!important;inset:auto!important;order:-1!important;display:block;max-width:100%!important;width:100%!important;margin:0 0 18px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface]{--shelf-height:72px;--shelf-card-width:156px;--shelf-icon-size:20px;--shelf-icon-gap:7px;--shelf-label-bottom:10px;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #generationForm #assetGrid{width:100%!important;max-width:100%!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #prompt{min-height:150px!important;max-height:40dvh!important;background:var(--studio-soft)!important;padding:14px!important;resize:none!important;font-size:14px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace.prompt-editor-expanded #creationComposer #prompt{min-height:clamp(260px,36dvh,440px)!important;max-height:58dvh!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #promptEditorField{margin:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding-top:18px!important;margin-top:18px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>:is(button,label){min-width:0!important;width:100%!important;max-width:100%!important;height:42px!important;min-height:42px!important;padding-inline:12px!important;justify-content:space-between!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls .reference-summary-chip>span:not([aria-hidden]){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #referenceDurationControl{grid-column:1/-1!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;padding-inline:12px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceDurationInline{flex:1!important;min-width:0!important;width:auto!important;max-width:none!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceDurationNumber{flex:0 0 46px!important;width:46px!important;min-width:46px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerProjectButton{grid-column:1/-1!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace[data-creation-type=image] #creationComposer #referenceComposerModelButton{grid-column:1/-1!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #generationFooter:not([hidden]){grid-column:1/-1!important;flex:0 0 100%!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:12px 0 0!important;padding:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #generationFooter :is(.generate,#audioCloneContinue){flex:0 0 auto!important;min-width:150px!important;height:42px!important;min-height:42px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #audioWorkflowQuickSwitch[aria-hidden=false]{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:18px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #audioWorkflowQuickSwitch .audio-mode-heading{flex-wrap:wrap!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #audioWorkflowQuickSwitch>button{min-width:0!important;padding:10px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #audioParamPanel{min-width:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer .audio-voice-row{grid-template-columns:minmax(0,1fr) auto!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer .audio-clone-primary{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer [hidden]{display:none!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #refineDockToggle{display:none!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #view-work #jobBoard{padding-bottom:24px!important;scroll-padding-bottom:24px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #view-work .reference-work-composer-slot{position:static!important;inset:auto!important;width:0!important;height:0!important;max-height:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #view-projects>.reference-project-create{position:static!important;inset:auto!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #view-projects>.project-manager{padding-bottom:24px!important;scroll-padding-bottom:24px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .works-head{flex-wrap:wrap!important;gap:16px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .works-head .tools{flex:1 1 100%!important;width:100%!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerSettingsPanel{z-index:185!important;}
 /* 2026-11-16: the generate controls stay in view. A long prompt, several
    references or a notice used to push "开始生成" below the panel; the user
    had to scroll the composer to the bottom. The prompt and references
    scroll above the pinned controls instead. */
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls:not([hidden]){position:sticky!important;bottom:0!important;z-index:4!important;background:var(--studio-surface)!important;box-shadow:0 -10px 14px -12px color-mix(in srgb,var(--studio-text) 22%,transparent)!important;padding-bottom:2px!important;}
}
@media(min-width:900px) and (max-height:760px){
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer .studio-side-heading{padding:12px 18px 10px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] .studio-side-heading strong{font-size:17px;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm:not([hidden]){padding:14px 18px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #assetField{margin-bottom:12px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #prompt{min-height:96px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls:not([hidden]){gap:8px!important;padding-top:12px!important;margin-top:12px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>:is(button,label),
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #referenceDurationControl{height:36px!important;min-height:36px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #generationFooter:not([hidden]){margin-top:6px!important;}
 html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left] #workspace #creationComposer #referenceComposerControls #generationFooter :is(.generate,#audioCloneContinue){height:38px!important;min-height:38px!important;}
}
@media(min-width:1600px){html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left]{--studio-side-width:460px;--studio-side-space:492px;}}


}
