/* One material shelf and one prompt, shared by the bottom and left composers. */
@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #studioLayoutToggle:not([hidden]){display:inline-flex!important;flex:none!important;min-width:34px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active=left]{--studio-side-width:clamp(320px,30vw,460px)!important;--studio-side-space:calc(var(--studio-side-width) + 32px)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true]:not([hidden]){--adaptive-asset-cols:4;--adaptive-prompt-height:120px;--adaptive-composer-max:65dvh;--adaptive-shelf-max:220px;max-height:var(--adaptive-composer-max)!important;min-width:0!important;overflow:visible!important;border-radius:20px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true]:not([hidden])::before{inset:0!important;border-radius:20px!important;background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true]:not([hidden])>.compose-scroll{position:relative!important;display:flex!important;flex-direction:column!important;min-height:0!important;max-height:var(--adaptive-composer-max)!important;height:auto!important;overflow:auto!important;border-radius:20px!important;background:var(--studio-surface)!important;overscroll-behavior:contain;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #generationForm:not([hidden]){position:relative!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;height:auto!important;gap:12px!important;padding:16px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #assetField{position:relative!important;inset:auto!important;order:0!important;flex:none!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetBar:not([hidden]){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:32px!important;margin:0 0 12px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs{display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;flex-wrap:wrap!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button{appearance:none;border:0!important;background:transparent!important;color:var(--studio-muted)!important;min-height:30px!important;padding:6px 10px!important;border-radius:9px!important;font:inherit;font-size:12px!important;white-space:nowrap!important;cursor:pointer;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button[aria-selected=true]{background:var(--studio-soft)!important;color:var(--studio-text)!important;font-weight:650!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button:focus-visible{outline:2px solid var(--studio-accent,#4169ff)!important;outline-offset:2px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions:not([hidden]){position:static!important;display:flex!important;align-items:center!important;gap:4px!important;flex:none!important;width:auto!important;height:30px!important;inset:auto!important;margin:0!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions button:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:28px!important;width:auto!important;height:28px!important;padding:4px 6px!important;background:transparent!important;color:var(--studio-muted)!important;border:0!important;border-radius:7px!important;font-size:11px!important;cursor:pointer;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions button:hover{background:var(--studio-soft)!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions svg{width:14px!important;height:14px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-filter-empty:not([hidden]){font-size:12px!important;color:var(--studio-muted)!important;margin-top:6px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #assetGrid{display:grid!important;grid-template-columns:repeat(var(--adaptive-asset-cols),minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:start!important;gap:8px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:var(--adaptive-shelf-max)!important;padding:0!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-padding:0!important;scrollbar-gutter:stable;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid::before{display:none!important;content:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile{position:relative!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/5!important;margin:0!important;padding:0!important;border-radius:8px!important;transform:none!important;order:0!important;overflow:hidden!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile[data-composer-filtered=true]{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid:not(.fixed-frame-slots)>.asset-add{order:1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-media{position:absolute!important;inset:0!important;aspect-ratio:auto!important;width:100%!important;height:100%!important;margin:0!important;border:0!important;border-radius:7px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-media :is(img,video){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile:is(.asset-add,.asset-upload-pinned){display:block!important;position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;background:var(--studio-soft)!important;border:1px dashed var(--studio-line)!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile :is(.studio-upload-trigger,.asset-add-primary){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:7px!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:11px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-copy{inset:auto 3px 3px!important;max-width:calc(100% - 6px)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-kind{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile:is([data-media-kind=audio],[data-media-kind=video]) .asset-copy{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile[data-media-kind=audio] .asset-media{background:#65528f!important;color:#fff!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile[data-media-kind=video] .asset-media{background:#365c73!important;color:#fff!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile:is([data-media-kind=audio],[data-media-kind=video]) .asset-media>:not(.studio-media-card-content){display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-content{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;pointer-events:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-name{position:absolute!important;top:5px!important;left:5px!important;right:5px!important;font-size:10px!important;line-height:1.4!important;font-weight:500!important;text-align:left!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;word-break:normal!important;overflow-wrap:anywhere!important;color:#fff!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-play{display:grid!important;place-items:center!important;width:26px!important;height:26px!important;margin-top:20px!important;border-radius:50%!important;background:rgba(255,255,255,.13)!important;color:#fff!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-play svg{width:16px!important;height:16px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-duration{position:absolute!important;left:auto!important;right:4px!important;bottom:5px!important;z-index:8!important;max-width:calc(100% - 8px)!important;font-size:8px!important;line-height:12px!important;padding:0 2px!important;color:white!important;background:rgba(0,0,0,.22)!important;border-radius:3px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .remove{position:absolute!important;display:grid!important;place-items:center!important;width:18px!important;height:18px!important;right:3px!important;top:3px!important;opacity:0!important;pointer-events:none!important;z-index:12!important;transition:opacity .12s ease!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-tile-footer{z-index:10!important;pointer-events:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-tile-footer button{pointer-events:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetField :is(.asset-floating-meta,.asset-shelf-hint){position:static!important;inset:auto!important;width:auto!important;margin:4px 0 0!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #promptEditorField{order:1!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #prompt{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:var(--adaptive-prompt-height)!important;min-height:0!important;max-height:none!important;resize:none!important;padding:10px 2px!important;margin:0!important;transition:none!important;background:transparent!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] :is(#promptResizeHandle,#promptExpandBtn){display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls:not([hidden]){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;order:2!important;position:static!important;bottom:0!important;z-index:7!important;flex:none!important;width:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:12px 0 0!important;background:var(--studio-surface)!important;border-top:1px solid var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools:not([hidden]){position:static!important;inset:auto!important;display:flex!important;align-items:center!important;order:-1!important;flex:0 0 auto!important;width:150px!important;max-width:100%!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;background:transparent!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools .seg:not([hidden]){position:static!important;inset:auto!important;display:flex!important;width:100%!important;max-width:none!important;min-height:34px!important;height:34px!important;margin:0!important;padding:3px!important;border:0!important;border-radius:9px!important;background:var(--studio-soft)!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools .seg button:not([hidden]){display:flex!important;justify-content:center!important;align-items:center!important;gap:4px!important;flex:1!important;min-width:0!important;width:auto!important;height:28px!important;min-height:28px!important;padding:3px 7px!important;font-size:12px!important;font-weight:500!important;white-space:nowrap!important;border-radius:7px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools .seg svg{width:13px!important;height:13px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active]:not([data-studio-layout-active=left]) #workspace #creationComposer[data-composer-adaptive=true]:not([hidden]){width:100%!important;max-width:none!important;height:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true]:not([hidden]){top:calc(var(--adaptive-header-height) + 12px)!important;bottom:14px!important;height:calc(100dvh - var(--adaptive-header-height) - 26px)!important;max-height:calc(100dvh - var(--adaptive-header-height) - 26px)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true]:not([hidden])>.compose-scroll{flex:1!important;max-height:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-side-heading{padding:12px 16px!important;min-height:48px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-side-heading strong{font-size:16px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button{font-size:11px!important;padding:5px 6px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions .studio-clear-label{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;position:sticky!important;bottom:0!important;z-index:4!important;background:var(--studio-surface)!important;gap:7px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>:is(button,label){width:100%!important;max-width:none!important;min-width:0!important;height:34px!important;min-height:34px!important;padding-inline:8px!important;font-size:11px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls #referenceDurationControl{grid-column:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding-inline:7px!important;gap:4px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceDurationControl input[type=range]{min-width:0!important;width:40px!important;flex:1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceDurationControl input[type=number]{width:30px!important;min-width:30px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools:not([hidden]){grid-column:1/-1!important;width:100%!important;max-width:150px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #generationFooter:not([hidden]){grid-column:1/-1!important;order:10!important;flex-basis:100%!important;width:100%!important;margin:0!important;gap:7px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #generationFooter .generate{min-width:125px!important;height:38px!important;min-height:38px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-composer-flow=page] #workspace[data-active-view=work]{overflow-y:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-composer-flow=page] #workspace[data-active-view=work] .reference-work-composer-slot{position:relative!important;inset:auto!important;width:auto!important;margin:12px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-composer-flow=page] #workspace[data-active-view=work] #jobBoard{min-height:150px!important;max-height:42dvh!important;}
@media(max-width:600px){
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #generationForm:not([hidden]){padding:12px!important;gap:10px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button{font-size:11px!important;padding:5px 6px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions .studio-clear-label{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #prompt{font-size:16px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools:not([hidden]){width:150px!important;}
}
}
/* The empty composer starts with one small upload control, not an empty tray. */
@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetBar[hidden],html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] .studio-material-tabs button[hidden],html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions[hidden],html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetActions button[hidden]{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=populated] #generationForm #assetField{padding-bottom:12px!important;border-bottom:1px solid var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #generationForm #assetGrid{display:flex!important;align-items:center!important;gap:8px!important;min-height:36px!important;max-height:46px!important;width:100%!important;overflow:visible!important;scrollbar-gutter:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #assetGrid>.asset-tile.asset-add{flex:none!important;width:104px!important;height:36px!important;min-height:36px!important;aspect-ratio:auto!important;background:transparent!important;border:0!important;overflow:visible!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #assetGrid>.asset-tile .studio-upload-trigger{flex-direction:row!important;gap:7px!important;width:104px!important;height:36px!important;padding:0 10px!important;background:var(--studio-soft)!important;border:1px solid var(--studio-line)!important;border-radius:9px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #assetGrid>.asset-tile .studio-upload-trigger strong{font-size:20px!important;font-weight:400!important;line-height:1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #assetGrid>.asset-tile .studio-upload-trigger span{font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty] #studioComposerAssetActions:not([hidden]){position:absolute!important;top:4px!important;left:112px!important;right:auto!important;bottom:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty-frames] #studioComposerAssetActions:not([hidden]){position:absolute!important;top:0!important;right:0!important;left:auto!important;bottom:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true][data-material-state=empty-frames] #generationForm #assetGrid{padding-right:32px!important;}
}

@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-tile-footer .remove{opacity:0!important;pointer-events:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #studioComposerAssetTools .seg button[hidden]{display:none!important;}
}
/* Removal remains keyboard and touch reachable while thumbnails stay quiet. */
@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile:is(:hover,:has(:focus-visible)) .asset-tile-footer .remove{opacity:1!important;pointer-events:auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-tile-footer .remove:focus-visible{opacity:1!important;pointer-events:auto!important;outline:2px solid var(--studio-accent,#4169ff)!important;outline-offset:1px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-name{-webkit-line-clamp:1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-play{width:24px!important;height:24px!important;margin-top:12px!important;}
@media(hover:none),(pointer:coarse){html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-tile-footer .remove{opacity:1!important;pointer-events:auto!important;width:24px!important;height:24px!important;right:2px!important;top:2px!important;}}
}

/* Quiet thumbnail chrome; relationship information remains in the accessible text. */
@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-bound-relation{position:absolute!important;width:1px!important;min-width:0!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;background:transparent!important;pointer-events:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-bound-relation::before{content:none!important;display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark{width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;right:3px!important;bottom:3px!important;padding:0!important;border-radius:5px!important;background:rgba(32,33,39,.5)!important;border-color:rgba(255,255,255,.18)!important;box-shadow:none!important;opacity:.4!important;transition:opacity .12s ease,background .12s ease!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark svg{width:11px!important;height:11px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile:is(:hover,:has(:focus-visible)) .asset-sync-ark,html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:focus-visible{opacity:1!important;background:rgba(32,33,39,.9)!important;border-color:rgba(255,255,255,.3)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:focus-visible{outline:2px solid var(--studio-accent,#4169ff)!important;outline-offset:1px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark[data-sync-state=failed]{opacity:1!important;background:rgba(116,35,49,.94)!important;color:#ffe0e4!important;border-color:rgba(255,178,190,.7)!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:is([data-sync-state=syncing],[data-sync-state=pending]){opacity:1!important;background:rgba(32,33,39,.84)!important;}
@media(hover:none),(pointer:coarse){html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;opacity:1!important;background:rgba(32,33,39,.84)!important;}}
/* Cloud state is independent of hover: local stays quiet, work stays visible. */
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark[data-sync-state=synced]{opacity:1!important;background:#176247!important;color:#e0fff0!important;border-color:#75c9a7!important;cursor:default!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark[data-sync-state=syncing]{opacity:1!important;background:#244fc6!important;color:#fff!important;border-color:#92afff!important;cursor:progress!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:is([data-sync-state=pending],[data-sync-state=unknown]){opacity:1!important;background:#745116!important;color:#fff3cf!important;border-color:#e6bd6e!important;cursor:pointer!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark[data-sync-state=unavailable]{opacity:.7!important;background:#4c515d!important;color:#f2f3f6!important;border-color:#a1a6b1!important;cursor:not-allowed!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:is([data-sync-state=syncing],[data-sync-state=pending],[data-sync-state=unknown],[data-sync-state=unavailable]){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:auto!important;max-width:calc(100% - 6px)!important;padding:0 3px!important;height:20px!important;min-height:20px!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:is([data-sync-state=syncing],[data-sync-state=pending],[data-sync-state=unknown],[data-sync-state=unavailable]) .asset-sync-label{display:inline!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;line-height:1!important;font-weight:600!important;}
@keyframes asset-cloud-spin{to{transform:rotate(360deg)}}
.asset-cloud-spinner{animation:asset-cloud-spin .9s linear infinite;}
@media(prefers-reduced-motion:reduce){.asset-cloud-spinner{animation:none;}}
}

@layer studio-sidebar {html body.reference-ui-shell[data-studio-ui][data-studio-layout-active] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-bound-relation>*{display:inline!important;}}
/* 2026-11-16 UI audit (left panel, two columns):
   - the model name is the main choice and gets the whole first row (it was cut to "Seedance 2.5（方舟…");
   - chip text starts at the left like every other field, the chevron sits at the right edge;
   - a half-width chip left alone in its row (marked by studio-composer-adaptive.js) takes the row;
   - reference tiles here are 48px wide: the cloud badge shows its icon only, the words stay in the tooltip. */
@layer studio-sidebar {
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>.reference-summary-chip{justify-content:flex-start!important;gap:6px!important;text-align:left!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>.reference-summary-chip>span:not([aria-hidden]){flex:0 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:left!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>.reference-summary-chip>span[aria-hidden=true]:last-child{margin-left:auto!important;flex:0 0 auto!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>#referenceComposerModelButton{grid-column:1/-1!important;order:1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #generationForm #referenceComposerControls>:is(#referenceComposerReferenceButton,#referenceComposerRatioButton,#referenceDurationControl,#referenceComposerAudioSettingsButton,#referenceComposerProviderSettingsButton,#referenceComposerProjectButton)[data-grid-full]{grid-column:1/-1!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark:is([data-sync-state=syncing],[data-sync-state=pending],[data-sync-state=unknown],[data-sync-state=unavailable]){width:18px!important;min-width:18px!important;padding:0!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] #assetGrid>.asset-tile .asset-sync-ark .asset-sync-label{display:none!important;}
html body.reference-ui-shell[data-studio-ui][data-studio-layout-active][data-studio-layout-active=left] #workspace #creationComposer[data-composer-adaptive=true] .studio-media-card-name{display:block!important;-webkit-line-clamp:unset!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
}
