/* BUILD 14.7 · Guided Content Workflow */
.guided-stepper{display:flex;align-items:center;gap:8px;margin:18px 0 22px;padding:10px 12px;border:1px solid rgba(116,78,58,.14);border-radius:18px;background:rgba(255,250,246,.82);overflow-x:auto;scrollbar-width:none}.guided-stepper::-webkit-scrollbar{display:none}.guided-step{appearance:none;border:0;background:transparent;color:#7e7068;font:600 13px/1.1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:12px;white-space:nowrap;cursor:pointer;transition:.18s ease}.guided-step:hover{background:rgba(194,104,72,.08);color:#4a342b}.guided-step.active{background:#f3dfd6;color:#a64f31}.guided-step.done{color:#4f6e59}.guided-step.locked{opacity:.42;cursor:not-allowed}.guided-step-index{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:rgba(80,57,46,.08);font-size:11px}.guided-step.done .guided-step-index{background:#e7f1e8}.guided-step.active .guided-step-index{background:#fff}.guided-step-connector{height:1px;min-width:10px;flex:1;background:rgba(99,71,57,.12)}
.production-dialog,.asset-dialog{max-width:1240px!important}.production-tabs,.asset-tabs{display:none!important}.guided-project-panel{display:none}.guided-project-panel.active{display:block}.guided-concept-panel{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.guided-context-card{border:1px solid #ead9cf;border-radius:20px;background:#fffaf7;padding:18px}.guided-context-card h4{margin:0 0 8px;font-size:15px}.guided-context-card p{margin:0;color:#74665f;line-height:1.5}.guided-context-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.guided-context-actions button{border:1px solid #ead9cf;background:#fff;border-radius:11px;padding:8px 10px;font-weight:600;cursor:pointer}.guided-current-copy{margin:0 0 16px;padding:14px 16px;border-radius:16px;background:#fff7f2;border:1px solid #f0ddd2;color:#5c4940}.guided-current-copy strong{display:block;margin-bottom:4px;color:#392922}.guided-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid #eee0d8}.guided-footer .right{display:flex;gap:10px;flex-wrap:wrap}.guided-back{border:0;background:transparent;color:#77665e;font-weight:650;cursor:pointer;padding:10px 4px}.guided-next{border:0;background:#cf6b49;color:#fff;border-radius:12px;padding:11px 16px;font-weight:750;cursor:pointer;box-shadow:0 8px 18px rgba(180,87,55,.16)}.guided-next:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.guided-muted-action{border:1px solid #ead9cf;background:#fff;border-radius:12px;padding:10px 14px;font-weight:650;cursor:pointer}
#productionConceptSummary.guided-collapsed .production-concept-card p,#productionConceptSummary.guided-collapsed .card-tag-row{display:none}#productionConceptSummary.guided-collapsed .production-concept-card{padding:14px 16px}#productionConceptSummary.guided-collapsed .production-concept-card h3{font-size:22px;margin:2px 0 0}
.guided-project-note{width:100%;min-height:104px;border:1px solid #e5d7ce;border-radius:14px;padding:12px;background:#fff;font:inherit;color:#3c2d27;resize:vertical}.guided-note-status{font-size:12px;color:#88766d;margin-top:6px}
.asset-guided-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:4px}.asset-guided-contextbar{display:flex;gap:8px;flex-wrap:wrap;margin:-8px 0 18px}.asset-guided-contextbar button{border:1px solid #ead9cf;background:#fff;border-radius:11px;padding:8px 11px;font-weight:650;color:#66564e;cursor:pointer}.asset-guided-contextbar button:hover{background:#fff7f2}.asset-guided-contextbar .count{opacity:.6;font-weight:500}.guided-asset-panel-note{padding:12px 14px;border-radius:14px;background:#fff8f4;border:1px solid #efdfd6;margin-bottom:16px;color:#66534a}.guided-context-mode-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:10px 12px;border-radius:12px;background:#f7f3f0}.guided-context-mode-banner button{border:0;background:transparent;color:#a24e32;font-weight:700;cursor:pointer}
#assetDestinationPanel .destination-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#assetDestinationPanel .destination-card{border:1px solid #ead9cf;border-radius:18px;padding:18px;background:#fffaf7}#assetDestinationPanel .destination-card h3{margin:0 0 8px;font-size:18px}#assetDestinationPanel .destination-card p{margin:0 0 14px;color:#75665e}.destination-summary{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}.destination-summary span{border-radius:999px;background:#f5e6de;padding:6px 9px;font-size:12px;color:#844c37}.destination-details{margin-top:14px;padding-top:14px;border-top:1px solid #eadfd8}.destination-details[hidden]{display:none!important}
.guided-review-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}.guided-review-actions .kh-primary{min-width:140px}
.guided-voice-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.guided-voice-help{font-size:12px;color:#837168;margin-top:6px}.guided-provider-hint{padding:12px 14px;border-radius:14px;background:#f7f3f0;color:#6e5d54;margin:0 0 14px}.guided-provider-hint strong{color:#3d2e28}
.guided-empty-step{padding:30px;border:1px dashed #decac0;border-radius:18px;text-align:center;background:#fffaf7}.guided-empty-step h3{margin:0 0 8px}.guided-empty-step p{margin:0 auto 16px;max-width:560px;color:#796860}
@media(max-width:900px){.guided-concept-panel{grid-template-columns:1fr}.guided-stepper{border-radius:14px}.guided-step-connector{display:none}.guided-step{padding:8px 9px}#assetDestinationPanel .destination-grid,.guided-voice-row{grid-template-columns:1fr}.production-dialog,.asset-dialog{width:96vw!important}}

#productionSaveStage{opacity:.62}

/* BUILD 14.7.1 · Full-width guided workspace */
#productionDialog,#assetDialog{width:min(1760px,calc(100vw - 32px))!important;max-width:none!important}
#productionDialog .production-dialog,#assetDialog .asset-dialog{width:100%!important;max-width:none!important;max-height:calc(100vh - 32px);overflow:auto;padding:28px 30px 30px}
#productionDialog .production-dialog,#assetDialog .asset-dialog{min-height:min(760px,calc(100vh - 32px))}
.guided-stepper{width:100%;overflow:visible;padding:10px 14px}
.guided-step{flex:0 1 auto;justify-content:center}
.guided-step-connector{min-width:18px}
.guided-concept-panel{grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:28px}
.guided-concept-panel.context-collapsed{grid-template-columns:minmax(0,1fr) 58px}
.guided-context-card{transition:.18s ease;min-width:0}
.guided-context-card .guided-context-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.guided-context-card .guided-context-toggle{border:0;background:#f3ece6;color:#65554d;border-radius:10px;width:31px;height:31px;cursor:pointer;font-size:16px}
.guided-context-card.collapsed{padding:10px 8px;display:flex;align-items:flex-start;justify-content:center;min-height:220px}
.guided-context-card.collapsed .guided-context-content,.guided-context-card.collapsed .guided-context-head h4{display:none}
.guided-context-card.collapsed .guided-context-head{display:block}
.guided-context-card.collapsed .guided-context-toggle{transform:rotate(180deg)}
#assetDialog [data-asset-panel="prompt"],#assetDialog [data-asset-panel="draft"],#assetDialog [data-asset-panel="review"],#assetDestinationPanel{max-width:none;width:100%}
#promptOutput{min-height:44vh;line-height:1.45;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12.5px}
#draftContent{min-height:54vh;line-height:1.62;font-size:15px}
.review-grid{grid-template-columns:minmax(0,2fr) minmax(300px,.8fr);gap:24px}
.review-draft{max-height:62vh;overflow:auto;line-height:1.65}
.editor-pass-card{margin:0 0 18px;padding:16px 17px;border:1px solid #ead9cf;border-radius:18px;background:#fffaf7;display:grid;gap:12px}
.editor-pass-card .editor-pass-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.editor-pass-card .editor-pass-head strong{display:block;margin-bottom:4px}
.editor-pass-card .editor-pass-head p{margin:0;color:#78675f;font-size:13px;line-height:1.45}
.editor-pass-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.editor-pass-actions label{min-width:220px;flex:0 1 260px}
#editorPromptOutput{min-height:34vh;font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:1.45}
.voice-reference-hint{margin-top:8px;padding:10px 12px;border-radius:12px;background:#f8f4f1;color:#75635a;font-size:12px;line-height:1.45}
@media(max-width:1100px){#productionDialog,#assetDialog{width:calc(100vw - 20px)!important}.guided-stepper{overflow-x:auto}.guided-concept-panel{grid-template-columns:1fr}.guided-concept-panel.context-collapsed{grid-template-columns:1fr}.guided-context-card.collapsed{min-height:auto;display:block;padding:10px 12px}.guided-context-card.collapsed .guided-context-head{display:flex}.review-grid{grid-template-columns:1fr}}
@media(max-width:720px){#productionDialog,#assetDialog{width:calc(100vw - 12px)!important}#productionDialog .production-dialog,#assetDialog .asset-dialog{padding:20px 16px 24px;max-height:calc(100vh - 12px)}.guided-stepper{margin-top:10px}.guided-step-connector{display:none}.guided-step{padding:8px 9px}.editor-pass-head{flex-direction:column}}


/* BUILD 14.7.2 · True fullscreen workspace + rich draft editor */
#productionDialog.kh-dialog,#assetDialog.kh-dialog{position:fixed!important;inset:8px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;overflow:hidden!important;border-radius:26px}
#productionDialog .production-dialog,#assetDialog .asset-dialog{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:auto!important;border-radius:24px;padding:26px 30px 34px}
#productionDialog .production-head,#assetDialog .asset-dialog-head{padding-right:46px}
#productionDialog .guided-stepper,#assetDialog .guided-stepper{position:sticky;top:-26px;z-index:8;margin-top:10px;background:rgba(255,250,246,.96);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(47,38,35,.04)}
#assetDialog [data-asset-panel="draft"]{display:grid;gap:16px}
.draft-fallback-field{display:none!important}
.rich-draft-shell{border:1px solid #e7d9d0;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(47,38,35,.035)}
.rich-draft-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:9px 10px;border-bottom:1px solid #ede1d9;background:#fbf8f5;position:sticky;top:49px;z-index:7}
.rich-draft-toolbar button{border:1px solid transparent;background:transparent;color:#54443d;border-radius:9px;min-width:34px;height:34px;padding:0 9px;font:700 12px/1 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.rich-draft-toolbar button:hover,.rich-draft-toolbar button:focus-visible{background:#fff;border-color:#e6d8cf;outline:none}
.rich-draft-toolbar .toolbar-sep{width:1px;height:20px;background:#e2d5cc;margin:0 2px}
.rich-draft-editor{min-height:58vh;padding:30px clamp(24px,4vw,64px);outline:none;color:#312824;font:18px/1.72 Georgia,"Times New Roman",serif;max-width:1040px;width:100%;margin:0 auto}
.rich-draft-editor:empty:before{content:attr(data-placeholder);color:#a1938c;pointer-events:none}
.rich-draft-editor h1{font-size:2.15rem;line-height:1.12;margin:1.3em 0 .55em;letter-spacing:-.02em}.rich-draft-editor h1:first-child{margin-top:0}
.rich-draft-editor h2{font-size:1.62rem;line-height:1.2;margin:1.45em 0 .5em;letter-spacing:-.01em}.rich-draft-editor h3{font-size:1.28rem;line-height:1.28;margin:1.3em 0 .45em}
.rich-draft-editor p{margin:.75em 0}.rich-draft-editor ul,.rich-draft-editor ol{padding-left:1.6em;margin:.8em 0}.rich-draft-editor li{margin:.28em 0}.rich-draft-editor blockquote{margin:1.2em 0;padding:.15em 0 .15em 1.15em;border-left:3px solid #c96b4b;color:#65564f}.rich-draft-editor a{color:#a95035;text-decoration:underline;text-underline-offset:2px}
.rich-draft-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid #ede1d9;background:#fdfaf7;color:#827169;font-size:11px}
.review-draft{font:17px/1.68 Georgia,"Times New Roman",serif}.review-draft h1{font-size:2rem}.review-draft h2{font-size:1.45rem;margin-top:1.35em}.review-draft h3{font-size:1.2rem}.review-draft p{margin:.72em 0}.review-draft blockquote{border-left:3px solid #c96b4b;padding-left:1em;color:#65564f}.review-draft ul,.review-draft ol{padding-left:1.45em}
@media(max-width:900px){#productionDialog.kh-dialog,#assetDialog.kh-dialog{inset:4px!important}#productionDialog .production-dialog,#assetDialog .asset-dialog{padding:20px 16px 26px;border-radius:19px}.rich-draft-toolbar{top:39px}.rich-draft-editor{min-height:52vh;padding:22px 18px;font-size:16px}}

.review-grid .pane-title{align-items:center;gap:10px}.review-edit-draft{margin-left:auto;white-space:nowrap;font-size:11px;padding:7px 10px!important}
