/* Studio visual system. Presentation only: established controls and workflows remain intact. */
html[data-zq-theme] body.reference-ui-shell[data-studio-ui]{
 --studio-bg:#17181b;--studio-surface:#212226;--studio-soft:#292b30;--studio-raised:#303239;
 --studio-text:#f0f0f2;--studio-sub:#bfc1c8;--studio-muted:#a2a5af;--studio-line:#383a42;--studio-strong-line:#51545f;
 --studio-accent:#8ea6ff;--studio-primary:#496df5;--studio-tint:#2b3350;--studio-radius:16px;
 --studio-shadow:0 18px 60px #0005;--studio-card-shadow:0 2px 8px #00000012;
 --ref-bg:var(--studio-bg);--ref-bg-2:var(--studio-soft);--ref-surface:var(--studio-surface);--ref-surface-2:var(--studio-soft);--ref-surface-3:var(--studio-raised);--ref-card:var(--studio-surface);
 --ref-border:var(--studio-line);--ref-border-2:var(--studio-strong-line);--ref-text:var(--studio-text);--ref-sub:var(--studio-sub);--ref-muted:var(--studio-muted);--ref-primary:var(--studio-accent);--ref-primary-2:var(--studio-accent);--ref-blue:var(--studio-accent);
 --ref-shadow:var(--studio-card-shadow);--refine-button:var(--studio-primary);--refine-soft:var(--studio-tint);--refine-focus:var(--studio-accent);--refine-panel-shadow:var(--studio-shadow);
 --ref-directory-width:1320px;--refine-success:#91d4b2;--refine-success-bg:#25372f;--refine-danger:#ffadb5;--refine-danger-bg:#422b31;--refine-warning:#e7c785;--refine-warning-bg:#3b3426;
 font-family:Inter,"Segoe UI Variable Text","Segoe UI","Microsoft YaHei","PingFang SC",sans-serif!important;font-size:14px;letter-spacing:0;line-height:1.6;
 background:var(--studio-bg)!important;color:var(--studio-text)!important;
}
html[data-zq-theme=light] body.reference-ui-shell[data-studio-ui]{
 --studio-bg:#f5f5f3;--studio-surface:#fff;--studio-soft:#f1f2f4;--studio-raised:#e9ebef;
 --studio-text:#22252c;--studio-sub:#555b67;--studio-muted:#6d7380;--studio-line:#e1e3e8;--studio-strong-line:#cfd3dc;
 --studio-accent:#315bea;--studio-primary:#315efb;--studio-tint:#edf1ff;
 --studio-shadow:0 16px 48px #25293818,0 2px 8px #25293808;--studio-card-shadow:0 2px 8px #25293804;
 --refine-success:#28734f;--refine-success-bg:#edf7f1;--refine-danger:#b23c51;--refine-danger-bg:#fff0f2;--refine-warning:#8d631c;--refine-warning-bg:#fbf3e4;
}
html body.reference-ui-shell[data-studio-ui] :is(button,input,textarea,select){font-family:inherit!important;letter-spacing:0;}
html body.reference-ui-shell[data-studio-ui] button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important;}
html body.reference-ui-shell[data-studio-ui] button:hover{filter:none!important;}
html body.reference-ui-shell[data-studio-ui] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--studio-accent)!important;outline-offset:3px!important;}
html body.reference-ui-shell[data-studio-ui] :is(button,input,select,textarea):disabled{opacity:.48;cursor:not-allowed!important;}
html body.reference-ui-shell[data-studio-ui] :is(h1,h2,h3){color:var(--studio-text)!important;letter-spacing:-.025em;}
html body.reference-ui-shell[data-studio-ui] .topbar{height:72px!important;min-height:72px!important;padding:0 32px!important;gap:30px!important;background:var(--studio-surface)!important;box-shadow:none!important;border-bottom:1px solid var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui] .brand{gap:11px!important;flex-shrink:0!important;}
html body.reference-ui-shell[data-studio-ui] .brand-mark{width:34px!important;height:34px!important;border-radius:11px!important;background:var(--studio-primary)!important;box-shadow:inset 0 1px 0 #ffffff30!important;}
html body.reference-ui-shell[data-studio-ui] .brand-copy{font-size:15px!important;font-weight:650!important;letter-spacing:-.4px!important;}
html body.reference-ui-shell[data-studio-ui] .nav{gap:5px!important;margin:0!important;}
html body.reference-ui-shell[data-studio-ui] .nav button{padding:0 16px!important;height:38px!important;border:0!important;border-radius:9px!important;font-size:13px!important;color:var(--studio-sub)!important;background:transparent!important;}
html body.reference-ui-shell[data-studio-ui] .nav button.active{background:var(--studio-soft)!important;color:var(--studio-text)!important;font-weight:650!important;}
html body.reference-ui-shell[data-studio-ui] .nav button:hover{background:var(--studio-soft)!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] .userbar{gap:12px!important;}
html body.reference-ui-shell[data-studio-ui] .quota-box{height:34px!important;border:0!important;background:transparent!important;padding:0 10px!important;border-radius:8px!important;color:var(--studio-muted)!important;}
html body.reference-ui-shell[data-studio-ui] .quota-box strong{font-weight:600!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] :is(#appThemeToggle,#notificationTrigger){width:34px!important;height:34px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--studio-sub)!important;}
html body.reference-ui-shell[data-studio-ui] :is(#appThemeToggle,#notificationTrigger):hover{background:var(--studio-soft)!important;}
html body.reference-ui-shell[data-studio-ui] .user-dot{width:34px!important;height:34px!important;border-radius:11px!important;background:var(--studio-tint)!important;color:var(--studio-accent)!important;border:1px solid var(--studio-line)!important;box-shadow:none!important;font-size:13px!important;}
html body.reference-ui-shell[data-studio-ui] .topbar-popover{max-height:var(--zq-menu-height,calc(100dvh - 120px))!important;box-sizing:border-box!important;}
html body.reference-ui-shell[data-studio-ui] .workspace{height:calc(100dvh - 72px)!important;}
html body.reference-ui-shell[data-studio-ui] :is(.works,.right-view){background:var(--studio-bg)!important;}
html body.reference-ui-shell[data-studio-ui] #view-home{padding:0 clamp(24px,3.4vw,64px) 32px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home{max-width:1320px!important;width:100%!important;padding:38px 0 48px!important;gap:36px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-start{margin:0!important;}
html body.reference-ui-shell[data-studio-ui] .reference-section-head{margin-bottom:18px!important;align-items:center!important;}
html body.reference-ui-shell[data-studio-ui] .reference-section-head h1{font-size:29px!important;line-height:1.4!important;font-weight:650!important;}
html body.reference-ui-shell[data-studio-ui] :is(.reference-section-head h2,.works-head h2){font-size:19px!important;font-weight:650!important;line-height:1.45!important;}
html body.reference-ui-shell[data-studio-ui] .reference-section-head>button{height:32px!important;min-height:32px!important;padding:0 8px!important;color:var(--studio-muted)!important;background:transparent!important;border:0!important;font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-section-head>button:hover{color:var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] .reference-section-head p{color:var(--studio-muted)!important;font-size:12px!important;margin:6px 0 0!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-composer-slot{padding-top:6px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-recent{margin:0!important;}
html body.reference-ui-shell[data-studio-ui] .reference-recent-projects{gap:14px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-recent-projects>.reference-empty{border:1px solid var(--studio-line)!important;border-radius:14px!important;background:var(--studio-surface)!important;padding:22px 24px!important;color:var(--studio-muted)!important;min-height:94px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-recent-project{border-radius:14px!important;border-color:var(--studio-line)!important;padding:16px!important;box-shadow:var(--studio-card-shadow)!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-showcase{gap:16px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar{border:0!important;border-radius:0!important;background:transparent!important;padding:0 0 14px!important;border-bottom:1px solid var(--studio-line)!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar .inspire-filters{gap:6px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar .inspire-filters button{min-height:34px!important;padding:0 13px!important;border:0!important;background:transparent!important;color:var(--studio-muted)!important;border-radius:8px!important;font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar .inspire-filters button.active{background:var(--studio-surface)!important;color:var(--studio-text)!important;box-shadow:0 1px 4px #0000000d!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar :is(input,select){background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:9px!important;height:36px!important;font-size:12px!important;color:var(--studio-sub)!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid{gap:20px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-card{border:0!important;background:transparent!important;border-radius:14px!important;box-shadow:none!important;padding:0!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-media{border-radius:14px!important;overflow:hidden!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-body{padding:14px 2px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-title-row h3{font-size:15px!important;font-weight:600!important;line-height:1.6!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid :is(.inspire-stats,.inspire-title-row>span){color:var(--studio-muted)!important;font-size:11px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-actions{gap:6px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-actions button{border:1px solid transparent!important;background:var(--studio-soft)!important;color:var(--studio-sub)!important;border-radius:8px!important;font-size:12px!important;min-height:34px!important;padding:6px 10px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-actions button:first-child{border-color:var(--studio-line)!important;background:var(--studio-surface)!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid .inspire-actions button.active{background:var(--studio-tint)!important;color:var(--studio-accent)!important;}
@media(min-width:1300px){html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
/* Floating material shelf: same placement, quieter frame and aligned baseline. */
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]{--shelf-height:80px;--shelf-card-width:132px;--shelf-icon-size:22px;--shelf-icon-gap:10px;--shelf-label-bottom:12px;box-shadow:none!important;border:0!important;background:transparent!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]::before{background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:18px!important;box-shadow:0 4px 22px #00000004!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):not(:has(#assetField[style*="display: none"]))::before{top:40px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):has(#generationForm):not(:has(#assetField[style*="display: none"])) #generationForm{padding:98px 20px 18px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #generationForm #assetField{left:20px!important;right:310px!important;top:0!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option){border:1px solid var(--studio-line)!important;background:var(--studio-surface)!important;border-radius:13px!important;color:var(--studio-sub)!important;box-shadow:0 3px 8px #00000004!important;font-weight:500!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option):hover{border-color:var(--studio-accent)!important;color:var(--studio-accent)!important;background:var(--studio-tint)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]) .seg{top:42px!important;right:20px!important;background:var(--studio-soft)!important;border:0!important;border-radius:10px!important;padding:4px!important;height:38px!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer .seg button{height:30px!important;min-height:30px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--studio-muted)!important;font-size:12px!important;font-weight:500!important;padding:0 15px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer .seg button.active{background:var(--studio-surface)!important;color:var(--studio-text)!important;box-shadow:0 1px 4px #00000012!important;font-weight:650!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #prompt{min-height:116px!important;height:116px;border:0!important;border-radius:10px!important;background:var(--studio-surface)!important;color:var(--studio-text)!important;padding:10px 2px!important;font-size:14px!important;line-height:1.8!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #prompt::placeholder{color:var(--studio-muted)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #prompt:focus-visible{outline-offset:4px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls{border-top:0!important;padding-top:14px!important;gap:6px!important;margin-top:12px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>:is(button,label),html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>.reference-duration-inline{height:36px!important;border:1px solid transparent!important;background:var(--studio-soft)!important;border-radius:8px!important;color:var(--studio-sub)!important;padding:0 10px!important;font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls>button:hover,html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls>button[aria-expanded=true]{background:var(--studio-tint)!important;color:var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls>#referenceComposerModelButton{background:var(--studio-surface)!important;border-color:var(--studio-line)!important;color:var(--studio-text)!important;font-weight:600!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceDurationNumber{border:0!important;background:var(--studio-surface)!important;color:var(--studio-text)!important;border-radius:5px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls #generationFooter :is(.generate,#audioCloneContinue){height:40px!important;min-height:40px!important;min-width:132px!important;border:1px solid var(--studio-primary)!important;border-radius:10px!important;background:var(--studio-primary)!important;box-shadow:0 3px 8px #315efb20!important;font-size:13px!important;font-weight:600!important;color:#fff!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls #generationFooter :is(.generate,#audioCloneContinue):hover{box-shadow:0 4px 12px #315efb40!important;}
/* Parameter menus: crisp headings, direct choices and a single selection signal. */
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel{background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:16px!important;box-shadow:var(--studio-shadow)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel>header{background:transparent!important;padding:18px 20px 14px!important;border-bottom:1px solid var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel>header strong{font-size:15px!important;font-weight:650!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel>header span{font-size:12px!important;color:var(--studio-muted)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsBody{padding:14px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option,.image-model-option,.refine-direct-choice,.refine-choice){border-radius:10px!important;border-color:var(--studio-line)!important;background:var(--studio-surface)!important;color:var(--studio-text)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option,.image-model-option,.refine-direct-choice,.refine-choice):hover{background:var(--studio-soft)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option.active,.image-model-option.active,[aria-selected=true],[aria-pressed=true]){background:var(--studio-tint)!important;border-color:var(--studio-accent)!important;color:var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer :is(.image-resolution-choices button,.model-provider-tabs button,.image-provider-tab){border-radius:8px!important;box-shadow:none!important;}
/* Audio uses the same surfaces and rhythm as visual creation. */
html body.reference-ui-shell[data-studio-ui] #creationComposer :is(#audioWorkflowQuickSwitch,.audio-param-panel,.audio-inline-main,.audio-selection-summary){background:var(--studio-surface)!important;border-color:var(--studio-line)!important;border-radius:14px!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui] #creationComposer #audioWorkflowQuickSwitch button{border-color:var(--studio-line)!important;background:var(--studio-soft)!important;border-radius:10px!important;color:var(--studio-sub)!important;}
html body.reference-ui-shell[data-studio-ui] #creationComposer #audioWorkflowQuickSwitch button[aria-selected=true]{border-color:var(--studio-accent)!important;background:var(--studio-tint)!important;color:var(--studio-accent)!important;}
html body.reference-ui-shell[data-studio-ui] #creationComposer :is(.audio-voice-card,.audio-model-card,.audio-clone-card){border-radius:12px!important;border-color:var(--studio-line)!important;box-shadow:none!important;background:var(--studio-surface)!important;}
/* Refinement after independent visual review. */
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] .compose-scroll{background:var(--studio-surface)!important;border:1px solid var(--studio-line)!important;border-radius:18px!important;box-shadow:var(--studio-card-shadow)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] #generationForm{padding:66px 22px 20px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] .seg{top:16px!important;right:22px!important;height:38px!important;padding:4px!important;background:var(--studio-soft)!important;border:0!important;border-radius:10px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] #prompt{padding:14px!important;background:var(--studio-soft)!important;border-radius:10px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] #audioWorkflowQuickSwitch{background:transparent!important;border-radius:0!important;border-color:var(--studio-line)!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] :is(.audio-mode-heading strong,.prompt-head-left>span){font-weight:600!important;font-size:14px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option,.image-model-option)[aria-disabled=true]{opacity:1!important;color:var(--studio-muted)!important;background:var(--studio-surface)!important;cursor:not-allowed!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option-rich,.image-model-card):disabled{opacity:1!important;background:var(--studio-soft)!important;color:var(--studio-muted)!important;border-color:var(--studio-line)!important;box-shadow:none!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerSettingsPanel :is(.model-option-rich,.image-model-card):disabled :is(strong,.model-option-title){color:var(--studio-sub)!important;}
html body.reference-ui-shell[data-studio-ui] .app-version-badge{display:none!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]{--shelf-card-width:148px;--shelf-label-bottom:9px;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #assetGrid>.asset-add :is(.asset-add-primary,.asset-add-option){font-size:13px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer .seg button{font-size:13px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #prompt{font-size:15px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls{padding:12px 0 0!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>:is(button,label),html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>.reference-duration-inline{font-size:13px!important;}
html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer :is(.refine-chip-label,#referenceInlineCost){font-size:12px!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-showcase .reference-section-head{margin-bottom:0!important;}
html body.reference-ui-shell[data-studio-ui] .reference-home-inspiration-grid>.empty{min-height:120px!important;padding:28px!important;border:1px solid var(--studio-line)!important;background:transparent!important;border-radius:14px!important;}
html body.reference-ui-shell[data-studio-ui] #homeRecentProjectRail:has(.studio-project-empty){display:block!important;}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty{display:flex;align-items:center;gap:18px;padding:20px 24px;border:1px solid var(--studio-line);border-radius:14px;background:var(--studio-surface);}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty>span{display:grid;gap:4px;min-width:0;}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty strong{color:var(--studio-text);font-size:14px;font-weight:600;}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty small{color:var(--studio-muted);font-size:12px;}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty button{margin-left:auto;flex-shrink:0;border:1px solid var(--studio-line)!important;border-radius:9px!important;background:var(--studio-soft)!important;color:var(--studio-text)!important;padding:10px 16px!important;font-size:13px!important;}
html body.reference-ui-shell[data-studio-ui] .studio-project-empty button:hover{background:var(--studio-tint)!important;color:var(--studio-accent)!important;}
@media(min-width:1600px){html body.reference-ui-shell[data-studio-ui] .reference-home{max-width:1440px!important;}}
@media(max-width:1180px){html body.reference-ui-shell[data-studio-ui] .topbar{padding:0 20px!important;gap:18px!important;}html body.reference-ui-shell[data-studio-ui] .nav button{padding:0 12px!important;}html body.reference-ui-shell[data-studio-ui] .userbar{gap:6px!important;}}
@media(max-width:900px){html body.reference-ui-shell[data-studio-ui] .topbar{gap:10px!important;}html body.reference-ui-shell[data-studio-ui] .nav button{padding:0 10px!important;}html body.reference-ui-shell[data-studio-ui] .brand-copy{font-size:13px!important;}html body.reference-ui-shell[data-studio-ui] .quota-box{padding:0 5px!important;}}
@media(max-width:700px){
 html body.reference-ui-shell[data-studio-ui] .nav{mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 18px),transparent 100%);padding-right:16px!important;}
 html body.reference-ui-shell[data-studio-ui] .studio-project-empty{align-items:flex-start;flex-direction:column;gap:14px;padding:18px;}
 html body.reference-ui-shell[data-studio-ui] .studio-project-empty button{margin-left:0;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] #generationForm{padding:68px 14px 16px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-inline-audio=true] .seg{left:14px!important;right:14px!important;}
 html body.reference-ui-shell[data-studio-ui] .topbar{height:60px!important;min-height:60px!important;padding:0 12px!important;gap:7px!important;}
 html body.reference-ui-shell[data-studio-ui] .workspace{height:calc(100dvh - 60px)!important;}
 html body.reference-ui-shell[data-studio-ui] .nav button{padding:0 11px!important;font-size:12px!important;height:36px!important;}
 html body.reference-ui-shell[data-studio-ui] #view-home{padding:0 16px 24px!important;}
 html body.reference-ui-shell[data-studio-ui] .reference-home{padding:26px 0 32px!important;gap:28px!important;}
 html body.reference-ui-shell[data-studio-ui] .reference-section-head h1{font-size:25px!important;}
 html body.reference-ui-shell[data-studio-ui] .reference-section-head h2{font-size:18px!important;}
 html body.reference-ui-shell[data-studio-ui] .reference-section-head{margin-bottom:16px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]{--shelf-height:72px;--shelf-card-width:116px;--shelf-icon-size:20px;--shelf-icon-gap:8px;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):not(:has(#assetField[style*="display: none"]))::before{top:36px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #generationForm #assetField{left:14px!important;right:14px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]):has(#generationForm):not(:has(#assetField[style*="display: none"])) #generationForm{padding:140px 14px 16px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface]:not([data-inline-audio=true]) .seg{left:14px!important;right:14px!important;top:88px!important;height:36px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer .seg button{height:28px!important;min-height:28px!important;padding:0 8px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #prompt{min-height:110px!important;height:110px!important;font-size:13px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls{gap:7px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>:is(button,label),html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer[data-reference-surface] #generationForm #referenceComposerControls>.reference-duration-inline{height:38px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls #generationFooter{padding-top:5px!important;}
 html body.reference-ui-shell[data-studio-ui] #workspace #creationComposer #referenceComposerControls #generationFooter :is(.generate,#audioCloneContinue){height:42px!important;min-height:42px!important;}
 html body.reference-ui-shell[data-studio-ui] .reference-home-inspire-toolbar{gap:12px!important;}
}
@media(prefers-reduced-motion:reduce){html body.reference-ui-shell[data-studio-ui] *,html body.reference-ui-shell[data-studio-ui] *::before,html body.reference-ui-shell[data-studio-ui] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}
/* Small screens keep every primary destination visible, on its own navigation row. */
@media(max-width:700px){
 html body.reference-ui-shell[data-studio-ui] #topbar[style*="display: flex"]{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 40px;height:100px!important;min-height:100px!important;padding:8px 12px!important;gap:0 12px!important;}
 html body.reference-ui-shell[data-studio-ui] #topbar .brand{display:flex!important;grid-column:1;grid-row:1;}
 html body.reference-ui-shell[data-studio-ui] #topbar .brand-mark{width:28px!important;height:28px!important;border-radius:9px!important;}
 html body.reference-ui-shell[data-studio-ui] #topbar .brand-copy{font-size:13px!important;}
 html body.reference-ui-shell[data-studio-ui] #topbar .brand-copy small{display:none!important;}
 html body.reference-ui-shell[data-studio-ui] #topbar .userbar{grid-column:2;grid-row:1;width:auto!important;}
 html body.reference-ui-shell[data-studio-ui] #topbar .nav{grid-column:1/-1;grid-row:2;width:100%!important;max-width:100%!important;gap:0!important;padding:0!important;mask-image:none;}
 html body.reference-ui-shell[data-studio-ui] #topbar .nav button{flex:1 0 auto!important;padding:0 8px!important;font-size:12px!important;height:34px!important;}
 html body.reference-ui-shell[data-studio-ui] .workspace{height:calc(100dvh - 100px)!important;}
}
@media(max-width:360px){html body.reference-ui-shell[data-studio-ui] #topbar .nav button{padding:0 5px!important;font-size:11px!important;}}
