/* V31: focused production workspace. Result above composer; model inspector beside it. */
body.studio-shell[data-page=create]{--nd-page:#101113;--nd-navigation:#191b1e;--nd-panel:#202226;--nd-control:#2b2e33;--nd-border:#3d4147;--nd-ink:#f4f4f5;--nd-secondary:#aeb3bb;--font:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;background:var(--nd-page)!important}
html[data-theme=light] body.studio-shell[data-page=create]{--nd-page:#f1f2f4;--nd-navigation:#e4e7eb;--nd-panel:#fff;--nd-control:#e9ecf0;--nd-border:#c8ced6;--nd-ink:#111;--nd-secondary:#383e46}
body[data-page=create] .gen-workbench{background:var(--nd-page)!important}
body[data-page=create] .gen-feed{background:transparent!important;container-type:normal}
body[data-page=create] .gen-composer{background:var(--nd-panel)!important;border:1px solid var(--nd-border)!important;border-radius:16px;padding:14px 16px;box-shadow:0 8px 30px #0001;--ndc-text:var(--nd-ink);--ndc-muted:var(--nd-secondary)}
body[data-page=create] .nd-composer-grid{gap:6px}
body[data-page=create] .nd-composer-editor{background:transparent!important}
body[data-page=create] .nd-ref-dropzone{padding:8px;background:var(--nd-control)!important;border:1px dashed var(--nd-border)!important;border-radius:10px}
body[data-page=create] .nd-ref-dropzone[data-empty=true]{padding:4px 8px}
body[data-page=create] .nd-ref-heading{margin:0 0 6px;font-size:12px}
body[data-page=create] .nd-ref-actions{border:0;padding:0;min-height:32px;gap:8px}
body[data-page=create] .nd-ref-add{font-size:12px;min-height:32px;background:transparent!important;border:0}
body[data-page=create] .nd-ref-paste-hint{font-size:12px;color:var(--nd-secondary)}
body[data-page=create] .nd-mention-editor{background:transparent!important;border:0!important;border-radius:8px;height:clamp(100px,15vh,190px);min-height:100px;padding:12px 6px;font-size:15px;line-height:1.6;box-shadow:none!important}
body[data-page=create] .nd-mention-editor:focus-visible{outline:2px solid var(--nd-brand);outline-offset:0}
body[data-page=create] .nd-composer-expanded .nd-mention-editor{height:32dvh}
body[data-page=create] .gen-prompt-meta{margin:3px 0;font-size:11px}
body[data-page=create] .nd-mention-help{font-size:11px;margin:2px 0}
body[data-page=create] .nd-composer-tools{gap:4px;min-height:30px;margin:0}
body[data-page=create] .nd-composer-tool{width:32px;height:30px;min-height:30px;background:transparent!important;border:0!important}
body[data-page=create] .gen-composer-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:9px;border-top:1px solid var(--nd-border)}
body[data-page=create] .gen-composer-bar :is(button,label){border-radius:8px}
body[data-page=create] .gen-composer-bar :is(.gen-attach,.gen-library-button,.gen-settings-toggle,.nd-paste-button){height:36px;min-height:36px;font-size:12px;background:var(--nd-control)!important;border:0!important;padding:0 10px;flex:none}
body[data-page=create] .gen-composer-bar .gen-attach{width:36px;padding:8px}
body[data-page=create] .gen-composer-bar .gen-settings-toggle{display:flex;max-width:100%;gap:8px}
body[data-page=create] .gen-model-label{max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-page=create] .gen-server-choice{display:none}
body[data-page=create] .gen-composer-bar #generate-btn{height:38px;min-height:38px;min-width:150px;width:auto;margin-left:auto;flex:none;font-size:14px;padding:0 18px}
body[data-page=create] #gen-price{font-size:12px;margin:6px 0;color:var(--nd-ink)}
body[data-page=create] :is(#availability,#status){font-size:12px;margin:6px 0 0}
body[data-page=create] :is(#availability,#status):empty{display:none}
body[data-page=create] .gen-settings{background:var(--nd-navigation)!important;border-left:1px solid var(--nd-border)!important;box-shadow:none}
body[data-page=create] .gen-settings-head{padding:16px 18px;border-bottom:1px solid var(--nd-border)}
body[data-page=create] .gen-settings-head h2{font-size:16px;font-weight:600}
body[data-page=create] .gen-settings-body{padding:16px;overflow:auto;min-height:0}
body[data-page=create] .gen-model-card{display:none}
.gen-model-option{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;width:100%;padding:12px;border-radius:10px;border:1px solid var(--nd-border);background:var(--nd-panel);color:var(--nd-ink);cursor:pointer;font:inherit;margin:0 0 8px}
.gen-model-option strong{font-size:13px;font-weight:600}
.gen-model-option span{font-size:11px;color:var(--nd-secondary)}
body[data-page=create] .gen-model-option[aria-pressed=true]{border-color:var(--nd-brand)!important;box-shadow:inset 3px 0 var(--nd-brand);background:var(--nd-panel)!important}
body[data-page=create] .gen-setting-field{margin:14px 0;gap:7px}
body[data-page=create] .gen-setting-field select{background:var(--nd-control)!important;min-height:40px;padding:9px 12px;border-radius:8px}
.gen-model-rules{margin:16px 0;padding:0 0 12px;border-bottom:1px solid var(--nd-border);font-size:12px}
.gen-rule-title{font-weight:600;margin-bottom:8px}
.gen-rule-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;line-height:1.4}
.gen-rule-row strong{font-weight:400}.gen-rule-row span{text-align:right;color:var(--nd-secondary)}
.gen-rule-row.unsupported{opacity:.65}
.gen-model-rules p{font-size:11px;line-height:1.5;margin:8px 0}.gen-model-rules small{font-size:10px;color:var(--nd-secondary)}
.gen-audio-control{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px}.gen-audio-control[hidden]{display:none}
body[data-page=create] .gen-ratios{gap:6px}.gen-ratios button{border-radius:8px}
body[data-page=create] .gen-settings-foot{padding:14px 16px;border-top:1px solid var(--nd-border)}
body[data-page=create] .gen-settings-foot .quote{display:block;border:0;padding:0;background:transparent!important}
body[data-page=create] .gen-settings-foot .quote strong{font-size:24px;font-weight:600}
body[data-page=create] .gen-settings-foot .quote-balance{display:block;margin-top:8px;font-size:11px}
body[data-page=create] .gen-settings-foot p{margin:8px 0 0;font-size:11px}
body[data-page=create] .gen-history-rail{background:var(--nd-navigation)!important;border-radius:12px}
body[data-page=create] .gen-player-stage{max-height:none;min-height:140px;background:var(--nd-control)!important;border-radius:12px}
body[data-page=create] .gen-player-stage video{max-height:38dvh;object-fit:contain}
body[data-page=create] .nd-ref-media-icon{width:100%;height:100%;display:grid;place-items:center;background:var(--nd-navigation);color:var(--nd-brand);font-size:28px}
body[data-page=create] .nd-ref-number{font-size:10px;padding:3px 5px;max-width:calc(100% - 12px);background:#101113dd!important;color:white!important}
body[data-page=create] .ref-incompatible{outline:2px solid #e8956d;outline-offset:2px}
.gen-reference-issue{font-size:12px;line-height:1.5;background:#9a472122;color:var(--nd-ink);border-left:3px solid #e8956d;padding:8px 10px;margin:8px 0}
.gen-reference-issue[hidden]{display:none}
.nd-mention-media-icon{display:inline-grid;place-items:center;min-width:28px;height:28px;background:var(--nd-control);border-radius:4px;color:var(--nd-ink)}
.nd-reference-dialog :is(video,audio){display:block;max-width:100%;max-height:70dvh;margin:auto}
@media(min-width:1180px){
 body.studio-shell[data-page=create]{padding-left:78px!important}
 body[data-page=create] .studio-sidebar{width:78px!important;padding:20px 10px!important}
 body[data-page=create] .sidebar-head{margin:0 0 24px;justify-content:center}
 body[data-page=create] .sidebar-head .brand{justify-content:center}
 body[data-page=create] .sidebar-head .brand span,body[data-page=create] .sidebar-caption,body[data-page=create] .sidebar-foot{display:none}
 body[data-page=create] .side-nav.nav{gap:8px}
 body[data-page=create] .side-nav.nav a{display:flex;justify-content:center;padding:14px!important;min-height:48px}
 body[data-page=create] .side-nav.nav .nav-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 body[data-page=create] .gen-workbench{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,23vw,340px)}
 body[data-page=create] .gen-settings{position:relative;inset:auto;width:auto;max-width:none;height:100%;min-height:0;visibility:visible;transform:none;z-index:1}
 body[data-page=create] .gen-settings-close{display:none}
 body[data-page=create] .gen-main{grid-template-columns:minmax(0,1fr) 78px;grid-template-areas:'viewer rail' 'composer rail';gap:12px;padding:16px;min-width:0}
 body[data-page=create] .gen-composer-wrap{max-height:56dvh}
 body[data-page=create] .gen-settings-toggle .gen-settings-word{display:none}
}
@media(max-width:1179px){body[data-page=create] .gen-settings{width:min(370px,calc(100vw - 16px));max-height:100dvh}body[data-page=create] .gen-composer-wrap{max-height:56dvh}}
@media(max-width:719px){
 body[data-page=create] .gen-main{padding:8px;grid-template-columns:minmax(0,1fr);grid-template-areas:'viewer' 'rail' 'composer';grid-template-rows:minmax(140px,auto) 84px auto;height:auto}
 body[data-page=create] .gen-workbench{height:auto;min-height:calc(100dvh - 120px)}
 body[data-page=create] .gen-feed{overflow:visible}
 body[data-page=create] .gen-history-rail{flex-direction:row;height:84px;padding:5px;gap:6px}
 body[data-page=create] .gen-rail-head{width:45px;padding:0;justify-content:center}
 body[data-page=create] .gen-rail-tools{display:none}
 body[data-page=create] .gen-rail-gallery{width:36px;height:auto}
 body[data-page=create] .gen-sheets{flex-direction:row;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;align-items:start}
 body[data-page=create] .gen-frame{width:90px;height:74px}.gen-frame-caption{display:none}
 body[data-page=create] .gen-frame-media{height:60px;min-height:0}
 body[data-page=create] .gen-composer-wrap{max-height:none;overflow:visible}
 body[data-page=create] .gen-composer{padding:12px;border-radius:12px}
 body[data-page=create] .nd-mention-editor{font-size:16px;height:160px;min-height:160px}
 body[data-page=create] .nd-ref-paste-hint{font-size:11px}
 body[data-page=create] .gen-composer-bar .nd-paste-button{display:none}
 body[data-page=create] .gen-composer-bar :is(.gen-attach,.gen-library-button,.gen-settings-toggle){min-height:44px;height:44px}
 body[data-page=create] .gen-composer-bar .gen-settings-toggle{flex:1;min-width:0}
 body[data-page=create] .gen-settings-toggle .gen-config-summary{display:none}
 body[data-page=create] .gen-composer-bar #generate-btn{width:100%;height:46px;min-height:46px;margin:4px 0 0}
 body[data-page=create] .gen-player-stage video{max-height:35dvh}
 body[data-page=create] .nd-composer-tool{min-height:44px;min-width:44px}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.gen-model-option{transition:background .18s,transform .18s,border-color .18s}.gen-model-option:hover{transform:translateX(2px);background:var(--nd-control)}body[data-page=create] .nd-ref-preview:hover{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.gen-model-option{transition:none}}
body[data-page=create] .nd-ref-dropzone[data-empty=true]{min-height:38px}
body[data-page=create] .gen-settings-foot>p,body[data-page=create] .gen-settings-foot>.eyebrow{display:none}
body[data-page=create] .gen-settings-foot{flex:none;max-height:155px;overflow:auto}
body[data-page=create] .gen-feed{container-type:size}
body[data-page=create] .gen-player-stage{aspect-ratio:auto;height:max(100px,calc(100cqh - 112px));min-height:100px}
body[data-page=create] .gen-player-stage video{width:100%;height:100%;max-height:none;object-fit:contain}
@media(max-width:719px){body[data-page=create] .gen-feed{container-type:normal}body[data-page=create] .gen-player-stage{height:auto;aspect-ratio:16/9}}
.gen-rule-row strong small{display:block;font-size:10px;color:var(--nd-secondary);margin-top:3px}
/* Keep the primary action visible on laptop-height displays. */
@media(min-width:720px){
 body[data-page=create] .gen-composer{padding:10px 12px}
 body[data-page=create] .nd-ref-dropzone{grid-template-rows:24px auto;gap:2px;min-height:0;padding:5px 8px}
 body[data-page=create] .nd-ref-dropzone[data-empty=true]{grid-template-rows:auto;min-height:34px}
 body[data-page=create] .nd-ref-actions,body[data-page=create] .nd-ref-add{min-height:24px;height:24px}
 body[data-page=create] .gen-ref-strip{height:60px;padding:2px 2px 4px}
 body[data-page=create] .nd-mention-editor{height:clamp(76px,11dvh,150px);min-height:76px;padding:8px 6px}
 body[data-page=create] .nd-mention-help{display:none}
 body[data-page=create] .nd-composer-grid{gap:2px}
 body[data-page=create] #gen-price{padding:0;margin:3px 0;line-height:18px}
 body[data-page=create] .gen-composer-bar{padding-top:6px}
 body[data-page=create] .gen-composer-bar :is(.gen-attach,.gen-library-button,.gen-settings-toggle,.nd-paste-button){height:36px!important;min-height:36px!important}
 body[data-page=create] .gen-composer-bar #generate-btn{height:38px!important;min-height:38px!important}
 body[data-page=create] .gen-composer-wrap{max-height:55dvh}
 body[data-page=create] .nd-composer-expanded .nd-mention-editor{height:32dvh}
}
@media(min-width:720px) and (max-width:1179px){
 body[data-page=create] .gen-main{display:grid;grid-template-columns:minmax(0,1fr) 76px;grid-template-rows:minmax(220px,1fr) auto;grid-template-areas:'viewer rail' 'composer rail';height:100%;align-content:stretch;gap:10px;padding:12px}
 body[data-page=create] .gen-history-rail{display:flex;flex-direction:column;height:auto;min-height:0;padding:8px;gap:10px;grid-template-areas:none}
 body[data-page=create] .gen-rail-head{display:flex;flex-direction:column;gap:8px;padding:0;width:100%}
 body[data-page=create] .gen-rail-tools{display:flex;gap:2px}
 body[data-page=create] .gen-sheets{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y proximity;min-height:0;flex:1}
 body[data-page=create] .gen-frame{width:100%;min-width:0;flex:none}
 body[data-page=create] .gen-frame-media{height:auto;aspect-ratio:1;min-height:0}
 body[data-page=create] .gen-frame-caption{display:none}
 body[data-page=create] .gen-rail-gallery{margin-top:auto;width:100%}
}
@media(max-width:719px){body[data-page=create] .gen-history-rail{display:flex}body[data-page=create] .gen-feed{min-height:200px}body[data-page=create] .gen-main{align-content:start}}
body[data-page=create] .gen-settings{overflow:hidden}
body[data-page=create] .gen-settings-head{flex:none}
body[data-page=create] .gen-settings-body{flex:1 1 0;min-height:0;overflow:auto}
body[data-page=create] .gen-audio-control input{width:18px;height:18px;min-height:18px;margin:0;flex:none;accent-color:var(--nd-brand)}
@media(min-width:720px) and (max-width:1179px){body[data-page=create] .gen-rail-tools{flex-direction:column;align-items:center}body[data-page=create] .gen-rail-tools>button,body[data-page=create] .gen-rail-search>summary{width:44px;min-width:44px}}
html[data-theme] body.studio-shell[data-page=create] .nd-mention-editor{background:transparent!important;color:var(--nd-ink)!important}
html[data-theme] body.studio-shell[data-page=create] .gen-composer-bar{background:transparent!important}
html[data-theme] body.studio-shell[data-page=create] .gen-category-bar button{color:var(--nd-ink)!important}
html[data-theme] body.studio-shell[data-page=create] .gen-category-bar button[aria-selected=true]{color:#101113!important}
