/* Scoped quick creation UI; inherit the native home type and spacing. */
.qc-home .qc-composer{position:relative;overflow:visible}.qc-home .qc-toolbar{position:relative}.qc-home .qc-settings{position:static;min-width:0;flex-shrink:1}.qc-home .qc-settings>summary{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qc-home .qc-parameter-panel{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:360px;max-width:calc(100vw - 40px);padding:18px;background:#242424;border:1px solid #393939;border-radius:16px;box-shadow:0 16px 48px #0008;z-index:65;text-align:left}.qc-panel-title{font-size:12px;color:var(--text-3);margin-bottom:8px}.qc-model-list{display:flex;flex-direction:column;gap:3px}.qc-model-list>button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;min-height:40px;border:0;border-radius:8px;text-align:left;font-size:13px;color:var(--text-1);background:transparent;cursor:pointer}.qc-model-list>button:hover,.qc-model-list>button.selected{background:#373737;color:#fff}.qc-model-list .icon{width:15px;height:15px}.qc-model-unavailable,.qc-unavailable{font-size:12px;line-height:1.6;color:var(--text-2)}.qc-model-unavailable{padding:10px 12px}.qc-panel-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin-top:16px;padding-top:16px;border-top:1px solid #393939}.qc-panel-fields>label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--text-2)}.studio-shell .qc-panel-fields select,.studio-shell .qc-panel-fields input[type=number]{width:100%;max-width:none!important;height:36px!important;min-height:36px!important;padding:7px 10px!important;background:#303030!important;border:1px solid #444!important;border-radius:8px;color:var(--text-1);font-size:13px!important;box-shadow:none}.qc-static-value{display:flex;align-items:center;height:36px;padding:7px 10px;background:#303030;border:1px solid #444;border-radius:8px;color:var(--text-2)}.qc-panel-fields>.qc-audio-toggle{justify-content:space-between;flex-direction:row;align-items:center;grid-column:1/-1}.qc-audio-toggle input{width:16px;height:16px;accent-color:#fff}.qc-home .qc-skill{margin-left:12px!important}.qc-canvas-switch{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-2);white-space:nowrap;cursor:pointer}.qc-canvas-switch>span{display:flex;align-items:center;gap:4px}.qc-canvas-switch .icon{width:14px;height:14px}.qc-canvas-switch input{position:absolute;opacity:0;width:1px;height:1px}.qc-canvas-switch>i{display:block;width:26px;height:15px;border-radius:10px;background:#4a4a4a;transition:background .15s}.qc-canvas-switch>i:before{content:'';display:block;width:11px;height:11px;margin:2px;border-radius:50%;background:#b9b9b9;transition:transform .15s}.qc-canvas-switch input:checked+i{background:#eee}.qc-canvas-switch input:checked+i:before{background:#171717;transform:translateX(11px)}.qc-canvas-switch input:focus-visible+i{outline:2px solid #adbdff;outline-offset:3px}.qc-reference-strip{display:flex;gap:8px;flex-wrap:wrap;padding:5px 18px 10px}.qc-reference-strip>figure{position:relative;width:64px;height:64px;margin:0;border:1px solid #444;border-radius:9px;background:#202020}.qc-reference-strip img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}.qc-reference-strip figcaption{position:absolute;bottom:0;left:0;right:0;font-size:12px;color:var(--text-1);background:#0008;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 3px;border-radius:0 0 8px 8px}.qc-reference-strip figure>button{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border:1px solid #555;border-radius:50%;padding:2px;background:#333;color:var(--text-1);display:grid;place-items:center;cursor:pointer}.qc-reference-strip button .icon{width:11px;height:11px}.qc-home .qc-pending-link{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px auto -10px;background:transparent;border:0;color:var(--text-2);font-size:12px;cursor:pointer}.qc-home .qc-quick-tools{gap:10px!important;padding-left:0!important;padding-right:0!important}.qc-home .qc-quick-tools .native-quick-tool{min-width:64px}.qc-home .native-quick-icon.seedance25,.qc-home .native-quick-icon.image25{background:linear-gradient(135deg,#405a68,#4b4b4b);font-size:16px}.qc-home .native-quick-icon.image25{background:linear-gradient(135deg,#445254,#5b654f)}.qc-picker{min-width:min(480px,70vw)}.qc-picker>select{width:100%;margin-bottom:16px}.qc-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-height:400px;overflow:auto}.qc-picker-grid>button{background:#252525;border:1px solid #3b3b3b;border-radius:9px;padding:0;overflow:hidden;color:var(--text-1);cursor:pointer;text-align:left}.qc-picker-grid>button:hover{border-color:#aaa}.qc-picker-grid>button:disabled{opacity:.45;cursor:default}.qc-picker-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.qc-picker-grid span{display:block;padding:6px;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qc-confirm-params{text-align:center;color:var(--text-2);font-size:13px;margin:12px 0}.qc-confirm .snapshot-prompt{max-height:160px;overflow:auto;white-space:pre-wrap;line-height:1.65;font-size:13px}.qc-confirm .qc-reference-strip{justify-content:center}.qc-error{color:#f0a19a!important;overflow-wrap:anywhere}.qc-result{width:100%;max-width:1440px;margin:0 auto;padding:28px 34px 40px}.qc-result-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}.qc-result-header h1{font-size:16px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:45%;margin:0}.qc-result-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px}.qc-result-stage{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;min-height:520px;padding:20px;border-radius:16px;background:#0e0e0e;border:1px solid #292929}.qc-result-stage>img,.qc-result-stage>video{display:block;max-width:100%;max-height:72vh;object-fit:contain;border-radius:8px}.qc-result-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--text-3);text-align:center}.qc-result-placeholder>.icon{width:44px;height:44px;color:var(--text-4)}.qc-result-placeholder strong{font-size:14px;color:var(--text-2);font-weight:500}.qc-result-placeholder p{font-size:12px;max-width:450px;line-height:1.6;margin:0}.qc-result-placeholder progress{width:180px;height:4px;accent-color:#e0e0e0}.qc-result-info{padding:6px 0;min-width:0}.qc-result-status{display:inline-block;color:var(--text-1);padding:5px 9px;background:#292929;border-radius:6px;font-size:12px;margin-bottom:20px}.qc-result-info h2{font-size:12px;font-weight:500;color:var(--text-3);margin:0 0 8px}.qc-result-info>p{font-size:13px;color:var(--text-1);line-height:1.7;margin:0 0 24px}.qc-result-prompt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto}.qc-result-refs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.qc-result-refs img{width:58px;height:58px;object-fit:cover;border-radius:8px;border:1px solid #444}.qc-result-info>.qc-cost{font-size:12px;color:var(--text-2)}.qc-result-actions{display:flex;flex-wrap:wrap;gap:10px}.qc-result-actions .btn{flex:1;min-width:100px;justify-content:center}.qc-result-actions a{text-decoration:none}.qc-home button:focus-visible,.qc-picker button:focus-visible{outline:2px solid #b8c7ff;outline-offset:3px}
@media(max-width:1000px){.qc-result{padding:20px}.qc-result-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.qc-result-stage{min-height:420px}.qc-home .qc-quick-tools{flex-wrap:wrap;justify-content:center!important;gap:16px!important}.qc-home .qc-settings>summary{max-width:260px}}
@media(max-width:700px){.qc-result-layout{grid-template-columns:1fr}.qc-result-stage{min-height:300px}.qc-result-header h1{display:none}.qc-home .qc-toolbar{flex-wrap:wrap;height:auto;min-height:54px}.qc-canvas-switch>span{font-size:0}.qc-home .qc-settings>summary{max-width:210px}.qc-picker-grid{grid-template-columns:repeat(3,1fr)}.qc-home .qc-quick-tools .native-quick-tool{min-width:62px}}

#qc-parameter-summary{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qc-settings>summary>.icon{flex:none}
/* Matched against the 1512 x 808 reference homepage, without its account banner. */
.qc-home .qc-toolbar{display:flex;align-items:center;gap:5px}
.qc-home .qc-settings{position:absolute;left:50%;transform:translateX(-50%);max-width:46%}
.qc-home .qc-settings>summary{max-width:100%;background:#272727;color:var(--text-2);border-radius:18px;font-weight:400;font-size:12px;padding:7px 14px}
.qc-home .qc-settings .qc-parameter-panel{top:calc(100% + 10px);left:50%;width:400px}
.qc-home .qc-quick-tools .native-quick-tool{font-size:13px;font-weight:400;line-height:18px;min-width:78px;gap:10px}
.qc-home .qc-quick-tools .native-quick-icon{background:radial-gradient(ellipse at 28% 18%,#6c6c6c 0%,#3c3c3c 32%,#222 70%,#171717 100%);color:var(--text-1);border:1px solid #ffffff0d;box-shadow:inset 0 1px 2px #ffffff28,inset 0 -3px 6px #0007;width:40px;height:40px;border-radius:12px;position:relative}
.qc-home .native-quick-icon .icon{filter:drop-shadow(0 0 4px #fff9);stroke-width:1.7;width:22px;height:22px}
.qc-home .native-quick-icon.video .icon{fill:#e2e2e2;stroke-width:.6}

.qc-home .qc-canvas-switch{flex-direction:row-reverse}
.qc-home .qc-canvas-switch>span>.icon{display:none}
.qc-home .composer-send{background:#ececec;color:#171717}
@media(max-width:1000px){.qc-home .qc-settings{position:static;transform:none;max-width:36%}.qc-home .qc-settings>summary{max-width:100%}.qc-home .qc-quick-tools{flex-wrap:nowrap;justify-content:space-between!important;gap:4px!important}.qc-home .qc-quick-tools .native-quick-tool{font-size:12px;min-width:54px}}

/* Home polish: overlays share a stable layer and stay within the viewport. */
body .studio-shell .native-create-home.qc-home{position:relative;z-index:4;padding-top:16px;max-width:960px}
body .studio-shell .qc-home .qc-home-title{display:block;height:auto;margin:0 0 28px;font:550 clamp(26px,2.45vw,36px)/1.35 -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:-.7px;text-align:center;color:var(--text-1);white-space:normal}
body .studio-shell .qc-home .qc-composer{position:relative;z-index:2;overflow:visible;border:1px solid #303135;border-radius:24px;background:#1c1d20;padding:22px 20px 14px;box-shadow:0 12px 44px #00000012;transition:border-color .18s}
body .studio-shell .qc-home .qc-composer:focus-within{border-color:#505259;box-shadow:0 12px 44px #00000016}
body .studio-shell .qc-home .qc-composer:has(details[open]){z-index:90}
body .studio-shell .qc-home .qc-toolbar{position:relative;gap:8px;padding:8px 0 0;min-height:40px}
body .studio-shell .qc-home .qc-settings{position:static;left:auto;transform:none;max-width:48%;margin-left:auto;margin-right:auto;z-index:auto}
body .studio-shell .qc-home .qc-toolbar>.grow{flex:0 0 0}
body .studio-shell .qc-home .qc-settings>summary{max-width:100%;font-size:12px;line-height:20px;border:1px solid #ffffff09;background:#28292c;border-radius:20px;padding:7px 12px;color:var(--text-1)}
body .studio-shell .qc-home .qc-toolbar .native-menu>summary{height:36px;box-sizing:border-box;display:flex;align-items:center;gap:6px}
body .studio-shell .qc-home .native-menu[open]{z-index:100}
body .studio-shell .qc-home .qc-parameter-panel,body .studio-shell .qc-home .qc-mode>.native-menu-panel{z-index:1000;isolation:isolate;max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#242529;border:1px solid #414249;border-radius:16px;box-shadow:0 18px 60px #0009;padding:18px;box-sizing:border-box}
body .studio-shell .qc-home .qc-mode>.native-menu-panel{padding:6px;min-width:196px}
body .studio-shell .qc-home .qc-panel-fields{border-top-color:#3a3b40;gap:16px}
body .studio-shell .qc-home .qc-panel-fields select,body .studio-shell .qc-home .qc-panel-fields input[type=number]{border-radius:9px!important;background:#303136!important;border:1px solid #414249!important;color:var(--text-1)!important;height:38px!important}
body .studio-shell .qc-home .qc-panel-fields select:disabled{color:var(--text-3)!important;opacity:1}
body .studio-shell .qc-home .qc-model-list>button{color:var(--text-1);border-radius:9px}
body .studio-shell .qc-home .qc-model-list>button:hover,body .studio-shell .qc-home .qc-model-list>button.selected{background:#36373d}
body .studio-shell .qc-home .qc-quick-tools{position:relative;z-index:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px!important;padding:28px 0 0!important;margin:0 0 42px}
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool{min-width:0;width:100%;font-size:12px;line-height:20px;font-weight:450;gap:11px;color:var(--text-2);padding:0;transition:color .16s,transform .16s}
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool:before,body .studio-shell .qc-home .qc-quick-tools .native-quick-tool:after{display:none}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon{width:48px;height:48px;border-radius:15px;background:#202125;border:1px solid #35363c;color:var(--text-1);box-shadow:none;transition:background .16s,border-color .16s,transform .16s}
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool:hover{color:var(--text-1);transform:translateY(-2px)}
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool:hover .native-quick-icon{background:#2a2c33;border-color:#52545f}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon .icon{filter:none;width:23px;height:23px;stroke-width:1.5;opacity:1}
/* 14b: only the current mode's tile is highlighted; 画布 is no longer white by default. */
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool.current .native-quick-icon{background:#e5e6eb;border-color:#f0f0f4;color:#24262b}
body .studio-shell .qc-home .qc-quick-tools .native-quick-tool.current{color:var(--text-1)}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon.agent{color:var(--text-1);background:#282828;border-color:#444444}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon.image{color:#bfd6c8}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon.video{color:#bccae9}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon.audio{color:#e0c9a3}
body .studio-shell .qc-home .qc-quick-tools .native-quick-icon.video .icon{fill:none;stroke-width:1.5}
body .studio-shell .qc-home .qc-canvas-switch{gap:7px;color:#aaaeb7;font-size:12px;margin:0 4px 0 8px}
body .studio-shell .qc-home .composer-send{width:36px;height:36px;border:0;background:#ececf0;color:#1b1c20}
body .studio-shell .qc-home .composer-send:disabled{background:#35363c;color:var(--text-3);opacity:1}
@media(max-width:1200px){body .studio-shell .qc-home .qc-settings{max-width:43%}body .studio-shell .qc-home .qc-settings>summary{font-size:12px;padding:7px 10px}body .studio-shell .qc-home .qc-quick-tools{gap:4px!important}body .studio-shell .qc-home .qc-quick-tools .native-quick-tool{font-size:12px}}
@media(max-width:800px){body .studio-shell .qc-home .qc-home-title{font-size:28px;margin-bottom:22px}body .studio-shell .qc-home .qc-composer{padding:18px 16px 12px}body .studio-shell .qc-home .qc-settings{max-width:40%}body .studio-shell .qc-home .qc-quick-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 12px!important}body .studio-shell .qc-home .qc-quick-tools .native-quick-tool{font-size:12px}body .studio-shell .qc-home .qc-canvas-switch>span{font-size:12px}}
@media(max-width:560px){body .studio-shell .qc-home .qc-home-title{font-size:28px}body .studio-shell .qc-home .qc-settings{max-width:100%;flex-basis:100%;order:4;margin-top:6px}body .studio-shell .qc-home .qc-settings>summary{width:100%;justify-content:center}body .studio-shell .qc-home .qc-canvas-switch{margin-left:auto}body .studio-shell .qc-home .qc-toolbar{flex-wrap:wrap}body .studio-shell .qc-home .qc-quick-tools{gap:20px 4px!important}}

body .studio-shell .qc-home .qc-home-title{
  width:100%;height:auto;min-height:0;max-height:none;box-sizing:border-box;
  padding:3px 0;line-height:1.45;white-space:normal;overflow:visible;
}
/* Left creation tools, centered model settings and a stable right action area. */
body .studio-shell .qc-home .qc-toolbar{
  display:grid;grid-template-columns:30px 30px max-content minmax(12px,1fr) max-content 36px;
  grid-auto-rows:minmax(36px,auto);align-items:center;gap:8px;height:auto;min-height:44px;
}
body .studio-shell .qc-home .qc-toolbar>.icon-btn{grid-column:1;grid-row:1}
body .studio-shell .qc-home .qc-toolbar>.composer-symbol{grid-column:2;grid-row:1}
body .studio-shell .qc-home .qc-mode{grid-column:3;grid-row:1;justify-self:start}
body .studio-shell .qc-home .qc-toolbar>.qc-skill{grid-column:4;grid-row:1;justify-self:start;margin-left:8px!important}
body .studio-shell .qc-home .qc-toolbar>.grow{display:none}
body .studio-shell .qc-home .qc-settings{
  grid-column:4;grid-row:1;justify-self:center;align-self:center;min-width:0;
  position:static;left:auto;transform:none;width:max-content;max-width:100%;margin:0;
}
body .studio-shell .qc-home .qc-canvas-switch{grid-column:5;grid-row:1;justify-self:end;margin:0}
body .studio-shell .qc-home .qc-toolbar>.composer-send{grid-column:6;grid-row:1;justify-self:end;margin:0}
@media(max-width:900px){
  body .studio-shell .qc-home .qc-settings{grid-row:2;grid-column:1/-1;justify-self:center;max-width:100%;margin:4px 0 0}
  body .studio-shell .qc-home .qc-settings>summary{max-width:100%;width:max-content}
  body .studio-shell .qc-home .qc-toolbar{grid-template-columns:30px 30px max-content minmax(0,1fr) max-content 36px}
}
@media(max-width:560px){
  body .studio-shell .qc-home .qc-toolbar{gap:5px;grid-template-columns:28px 28px max-content minmax(0,1fr) max-content 36px}
  body .studio-shell .qc-home .qc-toolbar>.qc-skill{margin-left:0!important;font-size:12px}
  body .studio-shell .qc-home .qc-canvas-switch{gap:4px}
}

/* The assistant keeps visual references beside the prompt, as part of one draft. */
body .studio-shell .qc-home .qc-prompt-layout{display:flex;gap:16px;min-height:122px}
body .studio-shell .qc-home .qc-prompt-content{flex:1;min-width:0;display:flex;flex-direction:column}
body .studio-shell .qc-home .qc-agent-reference-panel{flex:0 0 230px;max-width:40%;background:#232426;border-radius:18px;padding:12px;align-self:stretch}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-strip{padding:0;gap:8px;max-height:228px;overflow-y:auto;overflow-x:hidden}
body .studio-shell .qc-home .qc-agent-reference-panel figure{width:96px;height:96px;border-color:#3b3b3d;border-radius:12px;background:#2b2c2e}
body .studio-shell .qc-home .qc-agent-reference-panel figure>img{object-fit:contain;border-radius:11px;padding:7px;box-sizing:border-box}
body .studio-shell .qc-home .qc-agent-reference-panel figure>button{top:3px;right:3px;background:#333c;opacity:0}
body .studio-shell .qc-home .qc-agent-reference-panel figure:hover>button,body .studio-shell .qc-home .qc-agent-reference-panel figure:focus-within>button{opacity:1}
body .studio-shell .qc-home .qc-agent-reference-panel figcaption{padding:3px 5px;font-size:12px;border-radius:0 0 11px 11px;opacity:0}
body .studio-shell .qc-home .qc-agent-reference-panel figure:hover figcaption{opacity:1}
body .studio-shell .qc-home .qc-agent-skillbar{display:flex;flex-wrap:wrap;gap:6px;padding:3px 0 4px}
body .studio-shell .qc-home .qc-agent-skillbar>span{display:inline-flex;align-items:center;gap:5px;padding:4px 7px 4px 9px;border:1px solid #424246;background:#292a2d;border-radius:8px;font-size:12px;line-height:18px;color:var(--text-1)}
body .studio-shell .qc-home .qc-agent-skillbar .icon{width:13px;height:13px}
body .studio-shell .qc-home .qc-agent-skillbar button{border:0;background:transparent;color:var(--text-2);display:grid;place-items:center;padding:0;cursor:pointer}
body .studio-shell .qc-home .qc-agent-skillbar button:hover{color:var(--text-1)}
@media(max-width:700px){body .studio-shell .qc-home .qc-agent-reference-panel{flex-basis:112px;padding:8px}body .studio-shell .qc-home .qc-prompt-layout{gap:10px}body .studio-shell .qc-home .qc-agent-reference-panel figure{width:94px;height:94px}}

body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-add{width:96px;height:96px;display:grid;place-items:center;background:#27282b;border:1px solid #333438;border-radius:12px;color:var(--text-2);cursor:pointer;flex:none}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-add:hover{background:#303135;color:var(--text-1)}

/* A reference is part of the draft, not a tall empty attachment workspace. */
body .studio-shell .qc-home .qc-prompt-layout.has-references{min-height:122px;align-items:flex-start}
body .studio-shell .qc-home .qc-agent-reference-panel{flex-basis:216px;align-self:flex-start;padding:8px;max-width:40%}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-strip{align-items:flex-start;max-height:176px}
body .studio-shell .qc-home .qc-agent-reference-panel figure{width:72px;height:72px;flex:none;border-radius:10px}
body .studio-shell .qc-home .qc-agent-reference-panel figure>img{border-radius:9px;padding:4px}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-add{width:32px;height:72px;min-height:0;border:0;background:transparent;border-radius:8px}
body .studio-shell .qc-home .qc-settings>summary{min-width:0;overflow:hidden}
body .studio-shell .qc-home .qc-settings #qc-parameter-summary{flex:1;min-width:0}

.qc-choice-field{grid-column:1/-1;border:0;padding:0;margin:0;min-width:0}.qc-choice-field legend{font-size:12px;color:var(--text-2);margin-bottom:8px}.qc-choice-options{display:flex;flex-wrap:wrap;gap:6px}.qc-choice-options label{position:relative;cursor:pointer}.qc-choice-options input{position:absolute;opacity:0;width:1px;height:1px}.qc-choice-options span{display:block;padding:7px 12px;border:1px solid #ffffff24;border-radius:7px;color:var(--text-2);font-size:12px}.qc-choice-options input:checked+span{border-color:var(--accent-purple);background:var(--accent-purple-soft);color:var(--text-1)}.qc-choice-options input:focus-visible+span{outline:2px solid rgba(255,255,255,.64);outline-offset:2px}.qc-choice-field:disabled{opacity:.45}.qc-choice-field:disabled label{cursor:not-allowed}

.qc-result-failure{display:flex;flex-direction:column;align-items:center;gap:14px;max-width:520px}.qc-result-failure .qc-failure-cost{color:var(--text-1);font-size:13px}.qc-error-details{width:100%;max-width:520px;text-align:left;font-size:12px;color:var(--text-2)}.qc-error-details summary{cursor:pointer;text-align:center}.qc-error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;padding:12px;background:#181818;border-radius:8px;font-size:12px;line-height:1.6}
body .studio-shell .qc-home .qc-recipe-bar{align-items:center;gap:8px 10px;padding:2px 0 8px}
body .studio-shell .qc-home .qc-recipe-bar .qc-recipe-needs{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:18px;color:var(--text-2)}

/* Skill turns use the same creation and media jobs, with a persistent composer. */
.qc-conversation{max-width:1100px;margin:auto;display:flex;flex-direction:column;min-height:calc(100vh - 90px)}
.qc-conversation-history{width:100%;max-width:800px;margin:24px auto;flex:1}
.qc-conversation-turn{margin:0 0 32px}.qc-conversation-request{margin-left:auto;max-width:85%;padding:14px 20px;border-radius:18px;background:#292929;white-space:pre-wrap;overflow-wrap:anywhere}
.qc-conversation-request p{margin:0;line-height:1.7}.qc-conversation-answer{padding:20px 0;line-height:1.6}.qc-conversation-answer>span{color:var(--text-2);font-size:13px}
.qc-conversation-image{display:block;max-width:100%;max-height:520px;border-radius:14px;margin:12px 0;object-fit:contain}.qc-conversation .qc-result-refs img{width:52px;height:52px;object-fit:cover;border-radius:8px;margin-top:8px}
.qc-conversation-composer{position:sticky;bottom:12px;box-sizing:border-box;width:100%;max-width:800px;align-self:center;padding:18px;background:#262626;border:1px solid #3b3b3b;border-radius:20px;box-shadow:0 8px 24px #0004}
.qc-conversation-composer>label{font-size:14px}/* 提示框第 1 批 D 类（局部改写框）：14/24，3 行起自增高到 8 行，不能拖拽。 */.qc-conversation-composer>textarea{width:100%;box-sizing:border-box;background:transparent;border:0;resize:none;height:auto;field-sizing:content;min-height:94px;max-height:214px;margin:8px 0;color:inherit;font:400 14px/24px var(--font-sans);outline-offset:3px}
.qc-conversation-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.qc-conversation-options select{max-width:240px;border:1px solid #444;border-radius:8px;background:#303030;color:inherit;padding:7px}
.qc-conversation-reference{display:flex;align-items:center;gap:8px;color:var(--text-2);font-size:12px;margin-top:10px}.qc-conversation-reference img{width:40px;height:40px;object-fit:cover;border-radius:7px}
@media(max-width:700px){.qc-conversation .qc-result-header{flex-wrap:wrap;gap:8px}.qc-conversation-composer{bottom:0;padding:12px}.qc-conversation-options select{max-width:190px}.qc-conversation-request{max-width:100%}}

.qc-preview-media{display:block;width:100%;max-height:68vh;object-fit:contain}
.qc-preview-button{display:block;min-width:0;max-width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.qc-result-stage>.qc-preview-button>img{display:block;max-width:100%;max-height:72vh;object-fit:contain;border-radius:8px}

/* The homepage prompt: the one rule for its text (提示框第 1 批收拢：studio.css、native-home.css、home-composer-ui.css
   和本文件原来各有一份，互相覆盖). 16/24 like 全站规范的首页大输入框; 3 lines by default, grows to 10 lines. */
body .studio-shell .qc-home .qc-composer .qc-composer-text{
 display:block;box-sizing:border-box;width:100%;field-sizing:content;height:auto;min-height:80px;max-height:min(248px,40vh);margin:0;padding:4px 34px 4px 6px;
 border:0;border-radius:0;outline:0;background:transparent;box-shadow:none;resize:none;overflow:auto;color:var(--text-1);
 font:400 16px/24px var(--font-sans)}
body .studio-shell .qc-home .qc-composer textarea.qc-composer-text::placeholder,body .studio-shell .qc-home .qc-composer .qc-composer-text[data-empty]::before{color:var(--text-3)}
/* 提示框第 2 批：展开 = 和画布一样的遮罩大编辑层（尺寸用 canvas-prompt-panel.css 的 --pp-expanded-*）。
   居中用 inset/margin，不用 transform：transform 会让框里 fixed 定位的参数弹层跟着框走、掉出窗口。 */
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded{
 position:fixed;inset:0;margin:auto;z-index:1050;display:flex;flex-direction:column;
 width:var(--pp-expanded-width,min(1140px,calc(100vw - 48px)));max-width:none;height:var(--pp-expanded-height,calc(100dvh - 96px));min-height:0;
 background:#1c1c1c;backdrop-filter:none;box-shadow:none
}
/* .qc-home is its own stacking context (z-index 4, under the left nav at 40): lift it while the editor is open. */
body .studio-shell .qc-home:has(>.qc-composer.qc-prompt-expanded){z-index:1050}
/* A real backdrop (not a box-shadow), so a click on the dimmed area only collapses the editor and never reaches the nav or cards underneath. */
body .studio-shell .qc-home:has(>.qc-composer.qc-prompt-expanded)::before{content:"";position:fixed;inset:0;z-index:1;background:#0009}
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded>.qc-prompt-layout,
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded .qc-prompt-content,
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded .hc-input-wrap{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded .qc-composer-text{flex:1 1 auto;height:auto;max-height:none;field-sizing:fixed}
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded .qc-toolbar{flex:none}
body .studio-shell .qc-home .qc-composer.qc-prompt-expanded>#qc-send-reason{top:auto;bottom:-26px}
.qc-prompt-options{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:2px}
.qc-expand-prompt{background:transparent;color:var(--text-2);border:0;padding:6px;font-size:12px;cursor:pointer}
/* 展开图标放在框右上角，和画布框同一位置（不再是底下一行“展开输入”字）。 */
body .studio-shell .qc-home .qc-composer .qc-expand-prompt{position:absolute;top:14px;right:14px;z-index:1;display:grid;place-items:center;width:24px;height:24px;padding:0;border-radius:8px;color:#edf0fd80}
body .studio-shell .qc-home .qc-composer .qc-expand-prompt:hover{background:#ffffff0f;color:var(--text-1)}
body .studio-shell .qc-home .qc-composer .qc-expand-prompt .icon{width:14px;height:14px}
/* 首尾帧：参考区两个空框，分别标“首帧”“尾帧”。 */
.qc-frame-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;height:64px;padding:0;border:1px dashed #ffffff33;border-radius:9px;background:transparent;color:var(--text-2);font-size:12px;line-height:16px;cursor:pointer}
.qc-frame-slot:hover{border-color:#ffffff66;color:var(--text-1)}
.qc-frame-slot .icon{width:14px;height:14px}
body .studio-shell .qc-home .qc-prompt-options{height:24px;margin:0}
body .studio-shell .qc-home .qc-prompt-options .hc-optimize{height:24px}
.qc-expand-prompt:hover{color:var(--text-1)}
body .studio-shell .qc-home .qc-agent-reference-panel{
 flex:0 0 auto;width:clamp(64px,14vw,146px);max-width:28%;padding:4px;background:transparent
}
body .studio-shell .qc-home .qc-agent-reference-panel:not(:has(figure:nth-of-type(2))){width:68px}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-add{display:none}
body .studio-shell .qc-home .qc-agent-reference-panel .qc-reference-strip{overflow:auto;max-height:136px}
body .studio-shell .qc-home .qc-agent-reference-panel figure{width:60px;height:60px}
body .studio-shell .qc-home .qc-agent-reference-panel figure>button[data-type=missing]{opacity:1}
body .studio-shell .qc-home figure.qc-missing-attachment>button.qc-attachment-reselect{
 position:absolute;inset:auto 3px 16px;width:calc(100% - 6px);height:24px;opacity:1;background:#3b3b42;color:var(--text-1);font-size:12px
}
body .studio-shell .qc-home figure.qc-missing-attachment figcaption{opacity:1}
.qc-result-versions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.qc-result-versions button{gap:6px}
.qc-result-versions img{width:28px;height:28px;object-fit:cover;border-radius:3px}

/* 14b: one two-column parameter panel for all four modes (统一方案第五条). */
.qc-home .qc-settings .qc-parameter-panel{width:640px}
.qc-panel-columns{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:20px}
.qc-panel-models{min-width:0;border-right:1px solid #393939;padding-right:16px}
.qc-panel-models .qc-model-list{max-height:380px;overflow-y:auto}
.qc-panel-models .qc-model-list>button{align-items:flex-start}
.qc-panel-models .qc-model-list>button:disabled{opacity:1;cursor:default}  /* the only model (Seed Audio) is chosen, not unavailable */
.qc-panel-models .qc-model-list strong{display:block;font-weight:500}
.qc-panel-models .qc-model-list small{display:block;margin-top:4px;color:var(--text-2);font-size:12px;line-height:1.5}
.qc-panel-params .qc-panel-fields{grid-template-columns:1fr;margin-top:0;padding-top:0;border-top:0}
@media(max-width:700px){.qc-panel-columns{grid-template-columns:1fr}.qc-panel-models{border-right:0;padding-right:0;border-bottom:1px solid #393939;padding-bottom:12px}}

/* 提示框第 3 批（03-B3）：首页输入框换成能放小图标签的编辑框（qc-prompt-editor），尺寸、字号沿用上面那一条。 */
qc-prompt-editor.qc-composer-text{display:block;position:relative;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;outline:none}
qc-prompt-editor.qc-composer-text[data-empty]::before{content:attr(data-placeholder);pointer-events:none;position:absolute}
.qc-mention{display:inline-flex;align-items:center;gap:4px;height:24px;max-width:160px;margin:0 2px;padding:0 6px 0 2px;box-sizing:border-box;border-radius:6px;background:#ffffff14;color:var(--text-1);font-size:14px;line-height:24px;vertical-align:bottom;white-space:nowrap;user-select:all;cursor:default}
.qc-mention>img,.qc-mention>i{flex:none;width:21px;height:21px;border-radius:4px;object-fit:cover;display:grid;place-items:center;background:#ffffff14}
.qc-mention>i .icon{width:13px;height:13px}
.qc-mention>span{overflow:hidden;text-overflow:ellipsis}
/* 03-B2：有附件时，左边附件区是一块灰底面板，和右边文字区一样高、跟着一起变高（不再固定 128 高）。 */
body .studio-shell .qc-home .qc-prompt-layout.has-references{align-items:stretch}
body .studio-shell .qc-home .qc-prompt-layout.has-references>.qc-agent-reference-panel{align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;background:#ffffff0a;border-radius:16px}
/* 甲方 11-24（Agent 模式超过 7 张图后输入框过高）：附件栏和文字一样高、多了在栏内滚动，不再被图片撑高整个框。
   contain:size 让它不按内容算高度，只随文字那一栏拉伸。 */
/* 只在普通（横排）框里这样做：展开后附件栏排在文字上方（竖排），要按自己的高度显示、能滚到最后一张并移除（Codex 审查 #296）。 */
body .studio-shell .qc-home .qc-composer:not(.qc-prompt-expanded)>.qc-prompt-layout.has-references>.qc-agent-reference-panel{contain:size}
body .studio-shell .qc-home .qc-prompt-layout.has-references>.qc-agent-reference-panel>.qc-reference-strip{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
/* 解不开的服务商原文件（result.files，审查连带）：结果里只列文件名，下载走 /media/<id>?download=1，不当图片预览。 */
.qc-result-file{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;max-width:100%;padding:10px 12px;border-radius:12px;background:#ffffff0f;color:var(--text-1);font-size:14px;line-height:20px}
.qc-result-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
