.conversation-result{background:var(--panel,#1b1b1b);border:1px solid var(--border,#333);border-radius:15px;padding:16px;margin:12px 0;color:inherit;min-width:0;overflow-wrap:anywhere}
.conversation-result header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.conversation-result b{font-weight:600}.conversation-result button,.home-conversation-toolbar button,.home-run-status button,.home-reference button{background:rgba(127,127,127,.08);border:1px solid rgba(127,127,127,.25);border-radius:9px;color:inherit;padding:8px 12px;font:inherit;cursor:pointer}
.conversation-result button:hover{background:rgba(127,127,127,.18)}
.conversation-result-text{white-space:pre-wrap;line-height:1.8}.conversation-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.conversation-result>small,.conversation-result details small{color:var(--muted,#aaa);display:block;line-height:1.6}
.conversation-storyboard{margin-top:12px}.conversation-storyboard details{padding:12px 0;border-top:1px solid rgba(127,127,127,.2)}
.conversation-storyboard summary{cursor:pointer;display:flex;gap:12px;align-items:baseline;list-style:none}.conversation-storyboard summary span{min-width:76px;font-size:12px;color:var(--muted,#aaa)}
.conversation-storyboard p{margin:9px 0!important;white-space:pre-wrap;line-height:1.65!important;font-size:14px!important}.conversation-storyboard button{margin-top:8px}
.home-conversation-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;width:min(860px,100%);margin:0 auto 24px}
.home-conversation-title{font-size:16px;font-weight:600;overflow-wrap:anywhere}.home-conversation-toolbar .home-conversation-controls{display:flex;gap:8px;flex-wrap:wrap}
.home-thread{width:min(860px,100%);margin:auto}.home-message{margin-bottom:24px;text-align:left;min-width:0}.home-message-label{font-size:12px;color:var(--muted,#aaa);display:block;margin-bottom:8px}
.home-message>p{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;margin:0;color:inherit}.home-message.from-user{background:rgba(127,127,127,.12);border-radius:15px;padding:12px 16px;margin-left:auto;width:fit-content;max-width:88%}
.home-run-status{font-size:13px;color:var(--muted,#aaa);margin:0 0 12px;text-align:left}.home-run-status>div{display:flex;gap:10px;align-items:center;justify-content:space-between}.home-run-status details{margin-top:6px}.home-run-status p{margin:6px 0;font-size:12px}
.conversation-status-line{display:flex;align-items:center;gap:10px;text-align:left}.conversation-status-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.conversation-status-copy small{font-size:11px;color:var(--muted,#aaa)}
.conversation-progress-ring{width:22px;height:22px;box-sizing:border-box;flex:none;border:3px solid rgba(34,197,94,.2);border-top-color:#22c55e;border-radius:50%;color:#22c55e;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}.conversation-progress-ring.running{animation:conversation-ring-spin .85s linear infinite}.conversation-progress-ring.complete{border-color:#22c55e}.conversation-progress-ring.failed{border-color:#e7a647;color:#e7a647}.conversation-progress-ring.stopped{border-color:var(--muted,#aaa);color:var(--muted,#aaa)}
@keyframes conversation-ring-spin{to{transform:rotate(360deg)}}
.result-duration{display:inline-flex;gap:5px;align-items:center;font-size:12px;color:var(--muted,#aaa)}.result-duration input{width:64px;padding:7px 5px;box-sizing:border-box;border:1px solid rgba(127,127,127,.3);border-radius:7px;background:transparent;color:inherit;font:inherit}.conversation-result-actions{flex-wrap:wrap}.conversation-result button:disabled{opacity:.5;cursor:wait}
@media(prefers-reduced-motion:reduce){.conversation-progress-ring.running{animation-duration:2s}}
.home-reference{display:flex;gap:10px;align-items:center;margin-bottom:10px;font-size:13px;color:var(--muted,#aaa)}
.home-conversing .hero-copy,.home-conversing .wing-canvas,.home-conversing .guest-gallery,.home-conversing .scenario-strip,.home-conversing .guest-how{display:none!important}
.home-page.home-conversing{height:100dvh;overflow:hidden}.home-conversing .main-content{display:flex;flex-direction:column;height:100dvh;min-height:0;padding-bottom:0}.home-conversing .topbar{flex:0 0 auto}
.home-conversing .hero-section{padding-top:18px!important;padding-bottom:12px!important;min-height:0!important;display:flex!important;flex-direction:column;flex:1 1 auto;overflow:hidden;width:100%}.home-conversing .home-conversation-toolbar{flex:0 0 auto;margin-bottom:14px}.home-conversing .home-thread{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 16px;scrollbar-width:thin}.home-conversing .creator-card{flex:0 0 auto;margin:0 auto!important;max-width:860px!important;width:min(860px,100%);padding:18px 22px!important}.home-conversing .creator-topline{display:none!important}.home-conversing #promptInput{min-height:70px!important;height:80px}
.home-conversing .workspace-section{display:none!important}.home-conversing.home-show-projects{height:auto;overflow:auto}.home-conversing.home-show-projects .main-content{height:auto}.home-conversing.home-show-projects .hero-section{max-height:calc(100dvh - 72px);flex:none}.home-conversing.home-show-projects #projects{display:block!important}
.home-conversing .usage-section,.home-conversing .bottom-strip,.home-conversing .page-footer{display:none!important}.home-page #modelButton{font-size:12px}
.home-recent-conversations{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.home-recent-conversations button{flex:1;min-width:180px;max-width:420px;text-align:left;background:linear-gradient(120deg,#344350,#745e51);color:#eee;border:1px solid rgba(127,127,127,.2);border-radius:15px;padding:16px;cursor:pointer;font:inherit}.home-recent-conversations button b,.home-recent-conversations button small{display:block}.home-recent-conversations button small{font-size:12px;margin-top:5px;color:#ded8d5}
.home-page .conversation-result{background:rgba(127,127,127,.06)}
.home-thread .agent-material-evidence{font-size:13px;color:var(--muted,#aaa);padding:8px 0}.home-thread .agent-material-evidence p{white-space:pre-wrap;line-height:1.7}.home-thread .agent-material-evidence summary{cursor:pointer}
.conversation-result-empty{font-size:13px;color:var(--muted,#aaa)}
@media(max-width:600px){.conversation-result{padding:13px}.home-message.from-user{max-width:95%}.home-conversation-toolbar{margin-bottom:18px}.home-page #creator .prompt-footer{gap:8px}.home-page .home-conversation-controls button{min-height:40px}.conversation-storyboard summary{flex-wrap:wrap;gap:6px}.conversation-storyboard summary span{min-width:70px}.home-page .tool-cluster{gap:6px}.home-page #assetButton{display:none}.home-page #modelButton{font-size:11px}}

.generation-card{background:linear-gradient(120deg,rgba(52,67,80,.3),rgba(116,94,81,.25))!important}.generation-card header span{font-size:12px;color:var(--muted,#aaa)}.generation-card>small{margin-bottom:6px}.generation-settings,.generation-scope,.generation-reused{margin:12px 0;font-size:13px}.generation-settings label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.generation-settings select{max-width:65%;background:#282828;color:#eee;border:1px solid #444;border-radius:7px;padding:7px}.generation-confirm{background:#e2c47b!important;color:#171717!important;font-weight:600!important}.generation-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px}.generation-media{margin:12px 0;min-width:0}.generation-media img,.generation-media video,.generation-film video{display:block;width:100%;max-height:320px;object-fit:contain;background:#121212;border-radius:10px}.generation-media audio{width:100%;max-width:100%}.generation-media figcaption{font-size:12px;margin:8px 0;color:var(--muted,#aaa)}.generation-media>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.generation-media a,.generation-film a{color:inherit;font-size:13px}.generation-stage{font-size:13px;line-height:1.6}.generation-cancelled{font-size:12px;color:var(--muted,#aaa);padding:8px 0}.generation-film{margin:16px 0}.generation-film>b{display:block;margin:8px 0}.generation-card button:disabled{opacity:.5;cursor:default}

.generation-clip-results{margin:14px 0;font-size:13px}.generation-clip-results summary{cursor:pointer}@media(max-width:600px){.generation-film video,.generation-media video,.generation-media img{max-height:220px}}
.generation-routing{margin:12px 0;font-size:13px;overflow-wrap:anywhere}.generation-routing summary{cursor:pointer}.generation-routing p{margin:7px 0}.generation-settings input[data-generation-budget]{min-width:0;width:120px;max-width:45%;box-sizing:border-box;background:#282828;color:#eee;border:1px solid #444;border-radius:7px;padding:7px}
.generation-review{margin:12px 0;font-size:13px;min-width:0;overflow-wrap:anywhere}.generation-review summary{cursor:pointer}.generation-review label{display:grid;gap:6px;margin:10px 0}.generation-review textarea,.generation-review select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;background:#282828;color:#eee;border:1px solid #444;border-radius:7px;padding:8px;font:inherit}.generation-review textarea{min-height:66px;resize:vertical}.generation-review small{display:block;margin:7px 0;color:var(--muted,#aaa)}.generation-review pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.generation-experience{margin:12px 0;padding:10px;border:1px solid rgba(127,127,127,.3);border-radius:8px}.generation-experience button{margin:4px}
.generation-settings input[data-generation-feedback]{width:18px;height:18px;flex:0 0 auto;accent-color:#e2c47b}
.production-report{margin-top:14px;padding:12px;border:1px solid rgba(127,127,127,.3);border-radius:10px;font-size:13px;overflow-wrap:anywhere;min-width:0}.production-report header{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.production-report select{background:#282828;color:#eee;border:1px solid #444;border-radius:6px;padding:6px;max-width:100%}.production-report-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.production-report-metrics>div{padding:10px;background:rgba(127,127,127,.09);border-radius:7px}.production-report-metrics b{display:block;font-size:20px}.production-report small{display:block;line-height:1.6;color:var(--muted,#aaa)}.production-report p{line-height:1.6}.production-report-note{color:var(--muted,#aaa)}.production-report details{margin:12px 0}.production-report summary{cursor:pointer}.production-report-table{overflow-x:auto;max-width:100%;margin:10px 0}.production-report table{border-collapse:collapse;width:100%;font-size:12px}.production-report th,.production-report td{padding:8px;text-align:left;border-bottom:1px solid rgba(127,127,127,.2)}.production-report-evidence{padding:10px 0;border-bottom:1px solid rgba(127,127,127,.2)}
.production-retrospective label{display:grid;gap:6px;margin:10px 0}.production-retrospective textarea{box-sizing:border-box;min-width:0;width:100%;max-width:100%;min-height:80px;resize:vertical;background:#282828;color:#eee;border:1px solid #444;border-radius:7px;padding:8px;font:inherit}.production-retrospective pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}

.harness-trace {margin:12px 0;color:var(--text-secondary,#aaa);font-size:13px}.harness-trace summary{cursor:pointer}.harness-trace p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.harness-task-output pre{max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;padding:12px;background:var(--surface-2,#222);border-radius:8px}
/* Structured native storyboard: concise overview with optional performance beats. */
.conversation-shot-scene {color:var(--muted);font-size:12px;}
.conversation-shot-detail {margin:12px 0;border-top:1px solid var(--line);padding-top:10px;}
.conversation-shot-acting {white-space:pre-wrap;line-height:1.8;}
.conversation-shot-beats {display:grid;gap:10px;padding:0;list-style:none;}
.conversation-shot-beats li {display:grid;gap:5px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;min-width:0;}
.conversation-shot-beats b {font-size:12px;color:var(--muted);}
.conversation-shot-beats span {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;}

/* Keep long storyboard reading independent from the composer. */
body.home-page.home-has-conversation:not(.home-show-projects):not(.adaptive-projects-view){height:100dvh;overflow:hidden}
body.home-page.home-has-conversation:not(.home-show-projects):not(.adaptive-projects-view) .main-content{display:flex;flex-direction:column;height:100dvh;min-height:0;box-sizing:border-box}
body.home-page.home-has-conversation .topbar{flex:0 0 auto}
body.home-page.home-has-conversation .hero-copy,body.home-page.home-has-conversation .wing-canvas,body.home-page.home-has-conversation .guest-gallery,body.home-page.home-has-conversation .guest-how,body.home-page.home-has-conversation .homepage-content-host,body.home-page.home-has-conversation .page-footer{display:none!important}
body.home-page.home-has-conversation .hero-section{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;width:100%;padding:12px 0!important;margin:0 auto}
body.home-page.home-has-conversation #creator{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;max-width:960px;margin:0 auto;padding:16px;overflow:hidden}
body.home-page.home-has-conversation #creator>div:first-child,body.home-page.home-has-conversation .home-start-actions,body.home-page.home-has-conversation #homeStartStatus{display:none}
body.home-page.home-has-conversation #creator .home-conversation-toolbar{flex:0 0 auto;margin:0 0 8px;width:100%}
body.home-page.home-has-conversation #creator .home-thread{flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:8px 0;overflow-y:auto;width:100%;overscroll-behavior:contain}
body.home-page.home-has-conversation .home-agent-composer{flex:0 0 auto;margin-top:8px}
body.home-page.home-has-conversation .home-agent-input{min-height:56px;height:56px;max-height:120px}
body.home-page.home-has-conversation:not(.home-show-projects):not(.adaptive-projects-view) .workspace-section,body.home-page.home-has-conversation .usage-section,body.home-page.home-has-conversation .bottom-strip{display:none!important}
body.home-page.home-has-conversation #creator #promptInput{min-height:56px!important;height:56px;resize:none}
body.home-page.home-has-conversation:not(.home-show-projects):not(.adaptive-projects-view),body.home-page.home-has-conversation:not(.home-show-projects):not(.adaptive-projects-view) .main-content{max-height:100dvh}

/* Live task ledger, collapsed by default; the sending control owns the spinner. */
.conversation-task{border:1px solid var(--line-strong,#424642);border-radius:16px;background:var(--surface-2,#2b302c);margin:8px 0;overflow:hidden;font-size:12px}
.conversation-task>summary{display:flex;align-items:center;gap:8px;padding:12px 14px;cursor:pointer;list-style:none;color:var(--muted,#aaa)}
.conversation-task>summary::-webkit-details-marker{display:none}.conversation-task>summary b{color:var(--text,#eee);font-weight:500;white-space:nowrap}
.conversation-task-stage{margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}.conversation-task-chevron{flex:none;transition:transform .15s}.conversation-task[open] .conversation-task-chevron{transform:rotate(180deg)}
.conversation-task-content{padding:0 14px 12px;max-height:260px;overflow:auto;border-top:1px solid var(--line,#444)}
.conversation-task-content p{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}.conversation-task-content pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.conversation-task-content button{background:transparent;color:inherit;border:1px solid var(--line-strong,#555);border-radius:999px;padding:6px 12px;cursor:pointer}
.conversation-task-content [data-task-status='running']{color:#78ce96}.conversation-task-content [data-task-status='failed']{color:#e5b16c}
body.home-page.home-has-conversation #homeRunStatus{flex:0 0 auto;margin:0;max-height:40%;overflow:auto}.agent-run-status{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.agent-run-status .conversation-task{margin-top:0}

.segment-content-editor{margin-top:14px;padding:14px;border:1px solid var(--border,#494e49);border-radius:14px;min-width:0;font-size:13px}
.segment-content-editor header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.segment-content-editor fieldset{min-width:0;margin:16px 0;padding:12px;border:1px solid var(--border,#494e49);border-radius:12px}
.segment-content-editor label{display:block;margin:10px 0;color:var(--muted,#aaa)}
.segment-content-editor textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:10px;resize:vertical;background:var(--surface,#252925);color:var(--text,#eee);font:inherit;line-height:1.6;border:1px solid var(--border,#494e49);border-radius:10px}
.segment-content-editor textarea:focus-visible{outline:1px solid var(--muted,#aaa);outline-offset:1px}
.segment-content-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}
.segment-content-editor [role=alert]{color:#e6b2a5}
.segment-content-editor button,.generation-segments>[data-segment-edit]{border-radius:999px;font-size:12px;min-height:32px;padding:6px 12px}
.segment-edit-part{margin:12px 0}.segment-edit-part>summary{cursor:pointer;padding:8px 0}.segment-content-editor .segment-edit-part fieldset{margin-top:6px}
