/* 仅创作区采用四栏；原有分析、模型管理和专业画布保持各自布局。 */
[data-h3-panel="create"] .h3-compose { grid-template-columns: minmax(225px,.94fr) minmax(275px,1.12fr) minmax(260px,1.08fr) minmax(260px,1fr); gap: 12px; }
[data-h3-panel="create"] .compose-main, #h3-editor { display: contents; }
[data-h3-panel="create"] .compose-main > :not(#h3-editor), .studio-settings { grid-column: 1 / -1; }
#h3-editor[hidden] { display:none; }
[data-h3-panel="create"] .creation-modes { margin:0; }
[data-h3-panel="create"] .mode-description { margin:0 0 2px; }
.studio-column { min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
[data-h3-panel="create"] .compose-side { position:static; max-height:none; padding:16px; }
.studio-column .section-heading { margin:0 0 16px; align-items:flex-start; }
.studio-column h2 { margin:4px 0 0; font-size:17px; line-height:1.4; }
.studio-column .field-note { line-height:1.65; }
.materials-column .media-inputs { gap:10px; }
.materials-column .h3-media-field { padding:10px; border-radius:7px; }
.materials-column .h3-media-title { gap:6px; }
.materials-column .reference-board { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.materials-column .reference-visual { height:100px; }
.materials-column .asset-library-grid { grid-template-columns:1fr; }
.materials-column .h3-media-title small { font-size:10px; }
.materials-column .reference-actions { grid-template-columns:26px 26px 1fr; }
.source-role { display:grid; gap:4px; padding:2px 8px 8px; font-size:10px; color:var(--muted); }
.source-role select { min-height:30px; width:100%; padding:4px; font-size:10px; }
.source-visual-button { border:0; padding:0; width:100%; cursor:zoom-in; color:inherit; }
.source-extra-actions { display:flex; gap:5px; padding:0 7px 7px; }
.source-extra-actions .mini-action { flex:1; }
.studio-settings { padding:12px 16px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.studio-settings > summary { cursor:pointer; font-weight:600; font-size:13px; }
.studio-settings > summary span { margin-left:10px; color:var(--muted); font-size:11px; font-weight:400; }
.studio-settings .workflow-presets { margin-top:14px; }
.studio-settings > .scalar-inputs { grid-template-columns:repeat(4,minmax(0,1fr)); }
.studio-settings .h3-advanced { margin-top:16px; padding-top:12px; }
.studio-settings .h3-lora .scalar-field:nth-child(odd) { grid-column:auto; }
.studio-settings .h3-lora .scalar-inputs { grid-template-columns:repeat(3,minmax(0,2fr) minmax(80px,1fr)); }
.director-modes { display:flex; gap:4px; padding:3px; background:var(--canvas); border:1px solid var(--line); border-radius:7px; }
.director-modes button { flex:1; min-height:34px; border:0; background:transparent; color:var(--muted); cursor:pointer; border-radius:4px; }
.director-modes button.is-selected { background:var(--accent-soft); color:var(--accent); font-weight:650; }
.director-field { display:grid; gap:6px; margin:12px 0; color:var(--muted); font-size:11px; }
.director-field textarea { width:100%; resize:vertical; min-height:64px; font-size:13px; line-height:1.65; }
.director-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:10px; }
.director-actions .button { flex:1; white-space:normal; }
.director-column .model-picker { margin:14px 0; }
.director-column .model-picker select { max-width:100%; }
.director-chat { display:grid; align-content:start; gap:10px; min-height:180px; max-height:440px; overflow:auto; margin:15px 0; padding-block:14px; border-block:1px solid var(--line); }
.director-chat article { min-width:0; padding:10px 11px; border-radius:7px; background:var(--canvas); font-size:12px; }
.director-chat article[data-role="user"] { background:var(--accent-soft); }
.director-chat article strong { color:var(--muted); font-size:10px; }
.director-chat article p { white-space:pre-wrap; overflow-wrap:anywhere; margin:6px 0 0; line-height:1.7; }
.director-empty { color:var(--muted); font-size:12px; line-height:1.8; }
.director-history { margin-top:18px; padding-top:12px; border-top:1px solid var(--line); font-size:11px; }
.director-history summary { cursor:pointer; }
.director-history-list { display:grid; gap:6px; margin-top:8px; max-height:260px; overflow:auto; }
.director-history-list button { text-align:left; white-space:normal; min-height:38px; padding:8px; }
.final-column .prompt-field textarea { min-height:370px; font-size:13px; padding:12px; }
.final-column .section-heading { display:block; }
.final-column #insert-guide { margin-top:10px; }
.director-proposal { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); font-size:12px; }
.director-proposal pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:340px; overflow:auto; font:12px/1.7 var(--sans); }
.result-column .submit-bar { display:grid; gap:12px; }
.result-column .submit-bar .h3-submit { width:100%; }
.result-column .side-heading { margin-top:24px; }
.source-preview-dialog { width:min(940px,94vw); max-height:92dvh; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); }
.source-preview-dialog::backdrop { background:rgba(10,20,15,.65); }
.source-preview-header { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:14px; }
.source-preview-header h2 { font-size:16px; margin:0; overflow-wrap:anywhere; }
#source-preview-stage { display:grid; place-items:center; min-height:120px; }
#source-preview-stage img, #source-preview-stage video { display:block; max-width:100%; max-height:68dvh; object-fit:contain; }
#source-preview-stage audio { width:100%; }
@media(min-width:1500px) { .h3-workspace main { width:min(2000px,calc(100% - 32px)); } }
@media(max-width:1390px) { [data-h3-panel="create"] .h3-compose { grid-template-columns:repeat(2,minmax(0,1fr)); } .studio-settings > .scalar-inputs { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { [data-h3-panel="create"] .h3-compose { grid-template-columns:minmax(0,1fr); } .studio-settings > .scalar-inputs,.studio-settings .h3-lora .scalar-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); } .studio-column { padding:14px; } .studio-settings > summary span { display:block; margin:5px 0 0; } .final-column .prompt-field textarea { min-height:240px; } }
@media(prefers-reduced-motion:reduce) { .director-chat { scroll-behavior:auto; } }

.short-recipe-controls{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:var(--panel,#fff);border:1px solid var(--line,#dfe5e2);border-radius:10px}.short-recipe-controls[hidden]{display:none}.short-recipe-controls>label{display:flex;align-items:center;gap:8px;font-size:13px}.short-recipe-controls select{width:auto;max-width:240px}.short-recipe-controls input[type=checkbox]{width:16px;height:16px}.short-recipe-controls p{margin:0;font-size:12px}.short-recipe-controls small{flex-basis:100%;color:var(--muted,#60736c);font-size:11px}.short-recipe-controls .error{color:var(--danger,#b04438)}

/* 创作目的四选一；不占用生成架构开关，不弹全屏参数窗。 */
.director-preset-field { margin-top: 12px; }
.director-preset-field select { min-height: 40px; width: 100%; max-width: 100%; font-weight: 650; color: var(--ink); background: var(--surface); border: 1px solid var(--ink); }
.director-preset-note { margin: 6px 0 12px; line-height: 1.5; text-wrap: pretty; }

.director-preset-heading { display:flex; align-items:center; justify-content:space-between; margin-top:12px; font-weight:650; }
.director-preset-heading .mini-action { width:32px; min-height:32px; padding:0; font-size:18px; }
.director-preset-field { margin-top:4px; }
.director-preset-help { margin:0 0 12px; font-size:11px; color:var(--muted); }
.director-preset-help p { line-height:1.6; overflow-wrap:anywhere; }
#director-presets-status:empty { display:none; }

.director-guidance-options { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; }
.director-guidance-options label { color:var(--muted); font-size:11px; }
.director-guidance-options select { flex:0 1 176px; min-height:34px; padding:5px 9px; font-size:12px; }
.director-column #director-guidance-help { margin:7px 0 0; font-size:11px; line-height:1.65; }
.director-guidance-progress { margin:12px 0 0; padding:9px 11px; border-left:2px solid var(--accent); background:var(--accent-soft); color:var(--ink); font-size:11px; line-height:1.7; }
