:root{--paper:#f5f6f5;--surface:#fff;--ink:#202724;--muted:#66706b;--line:#e0e5e1;--green:#19543d;--green-hover:#123f2e;--soft:#eef3ef;--danger:#bb3d3f;--radius:16px;--font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;--font-serif:var(--font-sans)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 var(--font-sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:default;opacity:.45}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5d8d72;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid var(--green);outline-offset:2px}textarea,input,select{caret-color:var(--green)}::selection{background:#d6e8dc;color:#142e22}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:var(--green);text-underline-offset:4px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:600;line-height:1.35}h1{letter-spacing:-.025em}p{overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.muted{color:var(--muted)}
.site-header{height:76px;max-width:1360px;padding:0 36px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:11px;align-items:center;padding:0;background:none;text-align:left;font-size:19px;font-weight:600;letter-spacing:-.025em}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.06em;color:var(--muted);margin-top:0}.brand-mark{color:var(--green);display:flex}.brand-mark svg{width:25px;height:25px}.header-right{display:flex;align-items:center;gap:14px}.status-pill{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.status-pill i{width:5px;height:5px;border-radius:50%;background:#5c9478}.status-pill.warning i{background:#b18537}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:12px;line-height:1.4;font-size:14px;font-weight:500;transition:background-color .18s,color .18s,transform .18s}.button:active:not(:disabled){transform:scale(.98)}.button-primary,.voice-call{background:var(--green);color:white}.button-primary:hover:not(:disabled),.voice-call:hover:not(:disabled){background:var(--green-hover)}.button-quiet{background:transparent;color:var(--ink);border:1px solid var(--line)}.button-quiet:hover:not(:disabled){background:var(--soft)}.button-danger{background:var(--danger);color:white}.button-full{width:100%}.icon-button{display:inline-grid;place-items:center;background:none;border-radius:50%;width:44px;height:44px;padding:10px;color:var(--muted)}.icon-button:hover{background:#e8ede9}.subtle-link{background:none;border:0;display:inline-flex;align-items:center;gap:7px;padding:8px 0;color:var(--muted);font-size:12px;text-decoration:none}.subtle-link:hover{color:var(--green)}.subtle-link svg{width:15px;height:15px}
.home-view{max-width:1080px;margin:72px auto 32px;padding:0 36px}.welcome{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:80px}.welcome-copy h1{font-size:46px;line-height:1.25;letter-spacing:-.035em;margin-bottom:24px}.welcome-copy>p{color:var(--muted);font-size:17px;line-height:1.9}.welcome-how{display:flex;gap:13px;align-items:flex-start;margin-top:36px;color:var(--green);font-size:14px}.welcome-how svg{margin-top:3px}.welcome-how small{color:var(--muted);font-size:12px}.entry-section h2{font-size:17px;margin:0 0 19px}.entry-grid{display:grid;gap:14px}.entry-card{display:flex;align-items:center;gap:18px;text-align:left;background:var(--surface);border-radius:var(--radius);padding:24px;min-height:110px;box-shadow:0 7px 28px #263d2b06;transition:box-shadow .2s,transform .2s}.entry-card:hover{transform:translateY(-2px);box-shadow:0 10px 32px #263d2b0e}.entry-icon{width:46px;height:46px;display:grid;place-items:center;background:var(--soft);color:var(--green);border-radius:50%;flex-shrink:0}.entry-icon svg{width:23px;height:23px}.entry-text{flex:1}.entry-text strong{display:block;font-size:16px;font-weight:600;margin-bottom:5px}.entry-text>span{display:block;font-size:13px;color:var(--muted)}.entry-arrow{color:#8e9891;display:flex}.entry-arrow svg{width:17px;height:17px}.entry-note{color:var(--muted);font-size:12px;margin-top:18px}.projects-section{margin-top:66px;padding-top:30px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}.section-heading h2{font-size:19px}.section-heading span{color:var(--muted);font-size:12px}.projects-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{padding:22px;text-align:left;background:white;border-radius:14px;min-width:0}.project-card:hover{background:var(--soft)}.project-card h3{font-size:17px;margin-bottom:8px}.project-card p,.project-card small{font-size:12px;color:var(--muted)}.project-card small{display:block;margin-top:18px}.project-card-top{display:flex;justify-content:space-between;gap:12px}.project-mode-tag{color:var(--green);font-size:11px}.project-updated{font-size:11px;color:var(--muted)}.home-footer{color:var(--muted);font-size:11px;line-height:1.9;margin-top:60px;text-align:center}.footer-separator{margin:0 10px}
.workspace{width:calc(100% - 64px);max-width:1280px;height:calc(100dvh - 100px);min-height:520px;margin:0 auto 24px;display:grid;grid-template-columns:minmax(0,1fr) 320px;background:var(--surface);border-radius:20px;overflow:hidden}.conversation{min-height:0;min-width:0;display:flex;flex-direction:column;background:white}.conversation-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 32px 20px;border-bottom:1px solid #eef0ee}.conversation-heading{min-width:0}.conversation-heading h1{font-size:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-heading p{color:var(--muted);font-size:11px;margin-top:7px}.conversation-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.voice-call{min-height:44px;border-radius:24px;padding:11px 18px}.voice-call svg{width:17px;height:17px}.conversation-actions .button-quiet{border:0;padding:10px 12px}#mobile-details{display:none}.messages{flex:1;min-height:0;overflow:auto;padding:30px 36px 20px;scrollbar-width:thin;scrollbar-color:#d2d9d3 transparent;overscroll-behavior:contain}.message{display:flex;gap:12px;max-width:690px;margin:0 auto 26px}.message-avatar{display:none}.message-body{min-width:0}.message-author{font-size:11px;color:var(--muted);margin-bottom:6px}.message.assistant .message-author{display:none}.message-text{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{justify-content:flex-end;padding-left:50px;margin-bottom:28px}.message.user .message-body{background:#edf3ef;border-radius:17px 17px 5px 17px;max-width:560px;padding:14px 18px}.message.user .message-author{font-size:11px;margin-bottom:5px;color:#53675a}.message.system{color:var(--muted);font-size:13px}.composer{padding:12px 32px 16px;background:#fff}.composer-input-wrap{background:#f6f8f6;border-radius:18px;padding:15px 17px 12px;border:1px solid #e7ebe7}.composer-input-wrap:focus-within{border-color:#92b19f}.composer textarea{border:0;background:none;resize:none;display:block;width:100%;min-height:46px;max-height:165px;padding:0;line-height:1.7;font-size:15px;color:var(--ink)}.composer textarea:focus{outline:0}.composer textarea::placeholder{color:#66716a}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px}.attach-button{display:inline-flex;gap:6px;align-items:center;background:none;padding:9px 0;font-size:12px;color:var(--muted);min-height:36px}.attach-button svg{width:17px;height:17px}.send-group{display:flex;align-items:center;gap:12px}.keyboard-hint{font-size:11px;color:var(--muted)}.send-button{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:white}.send-button:hover:not(:disabled){background:var(--green-hover)}.send-button svg{width:19px;height:19px}.composer-note{font-size:11px;color:var(--muted);text-align:center;margin-top:10px}.working-indicator{padding:8px 36px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px}.thinking-dots{display:flex;gap:3px}.thinking-dots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:thinking 1.4s ease-in-out infinite}.thinking-dots i:nth-child(2){animation-delay:.18s}.thinking-dots i:nth-child(3){animation-delay:.36s}@keyframes thinking{0%,65%,100%{opacity:.3}30%{opacity:1}}.chat-error{margin:0 32px 10px}
.details-panel{background:#f9faf9;border-left:1px solid #edf0ed;display:flex;flex-direction:column;min-height:0}.details-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:27px 24px 23px}.details-heading h2{font-size:18px}.details-subtitle{font-size:11px;line-height:1.8;color:var(--muted);margin-top:9px}#close-details{display:none}.detail-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:0 16px;border-bottom:1px solid var(--line)}.detail-tab{background:none;font-size:12px;min-height:44px;padding:10px 2px;color:var(--muted);position:relative}.detail-tab.active{color:var(--green);font-weight:600}.detail-tab.active:after{content:"";position:absolute;left:24%;right:24%;bottom:0;height:2px;border-radius:1px;background:var(--green)}.detail-tab span{font-size:11px;margin-left:3px}.detail-content{flex:1;overflow:auto;min-height:0;padding:24px;scrollbar-width:thin;scrollbar-color:#d2d9d3 transparent}.details-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:10px 24px}.story-summary{font-size:15px;line-height:1.9;white-space:pre-wrap;margin-bottom:28px}.detail-content h3{font-size:13px;margin-bottom:14px}.event-card{padding:16px 0;border-bottom:1px solid var(--line)}.event-card:first-child{padding-top:0}.event-card h4{font-size:13px;font-weight:600;margin-bottom:8px}.event-card p{font-size:12px;color:var(--muted);line-height:1.9;white-space:pre-wrap}.quiet-label{font-size:11px;font-weight:500;color:var(--muted);margin:24px 0 12px}.question-list{list-style:none;margin:0;padding:0}.question-list li{font-size:12px;color:var(--muted);padding:10px 0;line-height:1.8;border-bottom:1px solid var(--line)}.panel-intro{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:20px}.detail-empty{padding:34px 0;text-align:center}.detail-empty>span{display:block;color:#87998d;margin-bottom:17px}.detail-empty>span svg{width:32px;height:32px;stroke-width:1.3}.detail-empty h3{font-size:15px;margin-bottom:10px}.detail-empty p{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:22px}.script-text{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.script-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.script-toolbar small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.script-toolbar .button{font-size:11px;padding:7px 10px;min-height:36px;flex-shrink:0}.script-actions{margin-top:24px}.script-actions .button{width:100%}.approved-note,.missing-note,.production-status{font-size:12px;padding:14px 0;color:var(--green);line-height:1.8}.missing-note{color:#866022}.production-status{font-size:16px;font-weight:600;padding-top:0}.fact-check{margin:0 0 24px;padding:16px 0 19px;border-bottom:1px solid var(--line)}.fact-check-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--green)}.fact-check[data-status="needs_review"] .fact-check-title,.fact-check[data-status="unavailable"] .fact-check-title{color:#906521}.fact-check>p{font-size:12px;color:var(--muted);line-height:1.8;margin:7px 0 10px}.fact-check details{font-size:12px}.fact-check summary{cursor:pointer;min-height:36px;padding:7px 0;color:var(--green)}.fact-issue{margin:8px 0 14px}.fact-issue blockquote{margin:0 0 5px;color:var(--ink);font-size:15px}.fact-issue p{font-size:14px;color:var(--muted)}.fact-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.fact-actions .button{font-size:12px;min-height:38px;padding:8px 12px}
.asset-card{border-radius:14px;overflow:hidden;background:#fff;margin-bottom:18px;border:1px solid var(--line)}.asset-preview{display:block;width:100%;height:150px;object-fit:cover;background:var(--soft)}.asset-file-icon{height:70px;display:grid;place-items:center;background:var(--soft);color:var(--muted)}.asset-card-body{padding:15px}.asset-card h4{font-size:13px;margin-bottom:8px}.asset-meta,.asset-clip-note{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:8px}.tag-list{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.tag{font-size:11px;padding:3px 6px;background:var(--soft);color:#456150;border-radius:5px}.asset-actions{display:flex;gap:8px;margin-top:11px}.asset-actions .button{background:none;color:var(--green);font-size:11px;padding:6px 0;min-height:32px}.asset-actions .button:last-child{color:var(--muted)}
.modal{border:0;border-radius:22px;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;background:white;color:var(--ink);padding:26px 30px 30px;box-shadow:0 20px 80px #11271926}.modal::backdrop{background:#14241b44;backdrop-filter:blur(5px)}.modal h2{font-size:23px;margin:4px 0 10px;letter-spacing:-.025em}.modal>p,.modal form>p.muted{font-size:13px;color:var(--muted)}.modal-top{display:flex;justify-content:flex-end;margin:-12px -16px 0}.small-modal{width:min(420px,calc(100% - 32px))}.field-label{display:block;margin:21px 0 8px;font-size:13px;font-weight:500}.field-label span{font-size:11px;color:var(--muted);font-weight:400;margin-left:7px}input:not([type=checkbox]),select,textarea:not(#message-input){display:block;width:100%;border:1px solid #cfd7d0;border-radius:10px;background:#fff;color:var(--ink);padding:12px;min-height:46px}textarea:not(#message-input){min-height:90px;resize:vertical}input::placeholder,textarea::placeholder{color:#66716a}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-note{font-size:11px;color:var(--muted);line-height:1.9;text-align:center;margin-top:17px}.form-note.left{text-align:left}.modal .button-full{margin-top:24px}.inline-error{font-size:12px;line-height:1.8;background:#fff0ee;color:#9b3535;padding:12px 14px;border-radius:10px;margin-top:14px}.file-name{font-size:13px;color:var(--muted);overflow-wrap:anywhere;margin-bottom:16px}#asset-media-preview img,#asset-media-preview video{display:block;max-width:100%;max-height:220px;border-radius:10px;margin:auto}#asset-media-preview audio{width:100%}.usage-fieldset{border:0;padding:0;margin:22px 0 0}.usage-fieldset legend{font-size:13px;font-weight:500;margin-bottom:10px}.usage-fieldset legend small{font-size:11px;color:var(--muted);font-weight:400}.usage-fieldset label{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid #eef0ee}.usage-fieldset input,.required-choice input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0;margin-top:4px}.usage-fieldset strong{display:block;font-size:13px;font-weight:500}.usage-fieldset small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.required-choice{display:flex;align-items:center;gap:10px;font-size:13px;margin-top:18px}.account-modal{text-align:center}.account-modal .button{margin-top:20px}.account-modal img{max-width:220px;border-radius:14px;display:block;margin:18px auto}.pairing-label{font-size:13px;letter-spacing:.1em;color:var(--muted);margin-top:12px}.account-modal input{text-align:left}.preview-banner{background:#e6ece7;color:#4f6055;text-align:center;font-size:11px;padding:5px 12px;line-height:1.6}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#253c2e;color:white;border-radius:12px;padding:12px 19px;font-size:13px;max-width:calc(100vw - 36px);box-shadow:0 8px 30px #15251a24;z-index:100}
/* Voice stays focused on state, sound and two familiar controls. */
.voice-modal{width:460px;padding:0;max-height:calc(100dvh - 40px);overflow:hidden;border-radius:26px;background:#fcfdfb}.voice-top{display:flex;align-items:center;justify-content:space-between;padding:25px 28px 18px;font-size:12px;color:var(--muted)}.voice-duration{font-variant-numeric:tabular-nums;letter-spacing:.06em;font-size:12px}.voice-layout{display:flex;flex-direction:column;min-height:0}.voice-presence{text-align:center;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px 36px}.voice-presence h2{font-size:24px;line-height:1.4;font-weight:500;margin:33px 0 8px;letter-spacing:-.025em}.voice-presence>p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.voice-hint{display:none}.voice-signal{--voice-color:#235e46;width:160px;height:160px;border-radius:50%;background:#e8f0e9;position:relative;display:flex;align-items:center;justify-content:center;gap:4px;transform:scale(calc(1 + var(--level,0)*.09));transition:transform .12s,background .3s,color .3s;color:var(--voice-color)}.voice-signal:before{content:"";position:absolute;inset:-12px;border-radius:50%;border:1px solid #d5e3d7;transform:scale(calc(1 + var(--level,0)*.05));opacity:calc(.6 + var(--level,0)*.3)}.voice-signal i{display:block;width:5px;height:calc(8px + var(--level,0)*34px);background:currentColor;border-radius:4px;transition:height .1s;transform:scaleY(.65)}.voice-signal i:nth-child(3n){transform:scaleY(1)}.voice-signal i:nth-child(2n){transform:scaleY(.8)}.voice-modal[data-state="speaking"] .voice-signal{background:var(--green);color:#f1faf4;box-shadow:0 14px 32px #184c3820}.voice-modal[data-state="speaking"] .voice-signal:before{border-color:#aac8b6}.voice-modal[data-state="thinking"] .voice-signal i{animation:thinking 1.25s ease-in-out infinite;height:8px;transform:none}.voice-modal[data-state="thinking"] .voice-signal i:nth-child(3n){animation-delay:.2s}.voice-modal[data-state="thinking"] .voice-signal i:nth-child(2n){animation-delay:.4s}.voice-modal[data-state="muted"] .voice-signal,.voice-modal[data-state="ended"] .voice-signal,.voice-modal[data-state="error"] .voice-signal{background:#eff1ee;color:#89958b;transform:none}.voice-transcript-details{padding:0 28px;font-size:12px;color:var(--muted)}.voice-transcript-details summary{cursor:pointer;list-style:none;text-align:center;min-height:42px;padding:10px}.voice-transcript-details summary::-webkit-details-marker{display:none}.voice-transcript-details summary:after{content:"";display:inline-block;width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 0 2px 9px}.voice-transcript-details[open] summary:after{transform:rotate(225deg);margin-bottom:-1px}.voice-transcripts{max-height:180px;overflow:auto;padding:12px 0;line-height:1.8}.voice-transcript-block+.voice-transcript-block{margin-top:18px}.voice-transcript-block .quiet-label{margin:0 0 6px;font-size:11px}.voice-transcript-block>p:last-child{font-size:13px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.voice-bottom{padding:22px 28px 25px}.voice-actions{display:flex;justify-content:center;gap:44px}.voice-actions .button{display:flex;flex-direction:column;gap:9px;min-height:85px;width:94px;padding:0;background:none;border:0;font-size:12px;font-weight:400;border-radius:14px;color:var(--ink)}.voice-actions .button>[data-icon]{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#edf0eb;color:#3c4e42}.voice-actions .button svg{width:23px;height:23px;stroke-width:1.8}.voice-actions .button-danger>[data-icon]{background:#c54246;color:white}.voice-actions .button:hover:not(:disabled)>[data-icon]{filter:brightness(.95)}.voice-actions [aria-pressed="true"]>[data-icon]{background:#354b3d;color:white}.voice-bottom .form-note{font-size:11px;margin-top:24px;color:var(--muted)}.voice-modal>.inline-error{margin:10px 28px 0}.voice-modal[data-state="ended"] #voice-mute,.voice-modal[data-state="error"] #voice-mute{display:none}.voice-modal[data-state="ended"] .voice-actions .button-danger>[data-icon]{background:var(--soft);color:var(--green)}
@media(min-width:1500px){.workspace{max-width:1360px;grid-template-columns:minmax(0,1fr) 340px}.messages{padding-left:54px;padding-right:54px}.conversation-header{padding-left:44px;padding-right:44px}.composer{padding-left:44px;padding-right:44px}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr);max-width:850px}.details-panel{display:none}.details-panel.open{display:flex;position:fixed;right:24px;top:80px;bottom:24px;width:360px;z-index:50;border:0;border-radius:18px;box-shadow:0 18px 80px #15251a33}#mobile-details{display:flex}#close-details{display:inline-grid}.welcome{gap:40px}.welcome-copy h1{font-size:40px}}
@media(max-width:700px){body{background:#fff}.site-header{height:66px;padding:0 20px;gap:12px}.brand{font-size:17px;gap:9px}.brand small{font-size:11px}.brand-mark svg{width:22px;height:22px}.header-right{gap:4px}.header-right .status-pill{display:none}.header-right .button{min-height:40px;padding:8px 12px;border:0;font-size:12px}.home-view{margin:34px auto 24px;padding:0 24px}.welcome{display:block}.welcome-copy h1{font-size:34px;line-height:1.3;margin-bottom:20px}.welcome-copy>p{font-size:15px;line-height:1.8}.welcome-how{font-size:13px;margin-top:26px}.entry-section{margin-top:38px}.entry-section h2{font-size:15px;margin-bottom:14px}.entry-card{border:1px solid var(--line);box-shadow:none;min-height:100px;padding:20px 18px;gap:14px}.entry-card:hover{transform:none;box-shadow:none}.entry-text strong{font-size:15px}.entry-text>span{font-size:12px}.entry-icon{width:42px;height:42px}.entry-note{font-size:11px}.projects-section{margin-top:40px;padding-top:24px}.projects-list{grid-template-columns:1fr}.project-card{background:var(--paper)}.home-footer{margin-top:34px;text-align:left;font-size:11px}.footer-separator{display:none}.home-footer span:last-child{display:block}.workspace{height:calc(100dvh - 66px);min-height:0;width:100%;max-width:none;margin:0;border-radius:0}.conversation-header{align-items:flex-start;padding:17px 20px 16px;gap:12px;flex-wrap:wrap}.conversation-heading h1{font-size:20px}.conversation-heading p{font-size:11px;line-height:1.7;max-width:calc(100vw - 40px);margin-top:5px}.conversation-actions{width:100%;gap:8px;margin-top:2px}.conversation-actions .voice-call{flex:1;min-height:42px;font-size:13px}.conversation-actions .button-quiet{width:42px;height:42px;padding:10px;background:#f3f6f2;border:0;border-radius:50%}.conversation-actions .button-quiet .button-label{display:none}.messages{padding:24px 20px 14px}.message{margin-bottom:23px;gap:0}.message-text{font-size:15px;line-height:1.85}.message.user{padding-left:28px;margin-bottom:24px}.message.user .message-body{padding:12px 15px}.composer{padding:9px 14px max(12px,env(safe-area-inset-bottom));background:#fff}.composer-input-wrap{border-radius:18px;padding:12px 14px 9px}.composer textarea{font-size:16px;min-height:44px}.composer-note{font-size:11px;margin-top:8px}.keyboard-hint{display:none}.working-indicator{padding:7px 20px}.chat-error{margin:0 20px 8px}.details-panel.open{top:0;right:0;bottom:0;width:100%;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top);background:#fbfcfa}.details-heading{padding:22px 22px 16px}.details-heading h2{font-size:20px}.detail-content{padding:24px}.details-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.modal{padding:24px;max-height:calc(100dvh - 32px)}.modal-top{margin:-12px -12px 0}.modal h2{font-size:22px}.voice-modal{width:100%;height:100dvh;max-width:none;max-height:none;border-radius:0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);margin:0;display:flex;flex-direction:column}.voice-modal:not([open]){display:none}.voice-top{padding:24px 24px 8px;flex-shrink:0}.voice-layout{flex:1;min-height:0}.voice-presence{flex:1;min-height:230px;padding:30px 22px 28px}.voice-presence h2{font-size:25px;margin-top:40px}.voice-presence>p{font-size:13px}.voice-signal{width:170px;height:170px}.voice-transcript-details{padding:0 26px;flex-shrink:0}.voice-transcripts{max-height:160px}.voice-bottom{padding:19px 24px max(22px,env(safe-area-inset-bottom));flex-shrink:0}.voice-actions{gap:48px}.voice-actions .button>[data-icon]{width:62px;height:62px}.voice-bottom .form-note{margin-top:20px;max-width:270px;margin-left:auto;margin-right:auto}.toast{bottom:max(20px,env(safe-area-inset-bottom));font-size:12px}}
@media(max-height:700px) and (max-width:700px){.voice-signal{width:122px;height:122px}.voice-presence{min-height:180px;padding:16px 24px}.voice-presence h2{font-size:22px;margin-top:25px}.voice-bottom{padding-top:10px}.voice-bottom .form-note{margin-top:10px}.voice-transcripts{max-height:110px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.voice-signal{transform:none}}
body:has(#workspace-view:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body:has(#workspace-view:not([hidden])) .site-header{width:100%;flex-shrink:0}
body:has(#workspace-view:not([hidden])) .workspace{height:auto;flex:1;min-height:0}
body:has(#workspace-view:not([hidden])) .preview-banner{flex-shrink:0}
#voice-title:focus{outline:0}
@media(max-width:700px){.header-right .button{min-height:44px}.conversation-actions .voice-call{min-height:44px}.send-button{width:44px;height:44px}.attach-button{min-height:44px}.fact-actions .button,.script-toolbar .button,.asset-actions .button{min-height:44px}.voice-transcript-details summary{min-height:44px}}

.fact-check .inline-error{font-size:14px;margin:14px 0}

/* Keep the next story action visible while longer work continues. */
.script-entry{background:var(--soft);color:var(--green);border:1px solid var(--line);border-radius:24px;padding:11px 16px;white-space:nowrap;min-height:44px}
.script-entry:hover{background:#e2ece4}
.script-task{padding:11px 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;line-height:1.6}
.script-task .subtle-link{flex-shrink:0;color:var(--green)}
@media(max-width:700px){.conversation-actions{gap:6px}.conversation-actions .voice-call,.conversation-actions .script-entry{flex:1;min-width:0;min-height:44px;padding:10px 11px;font-size:13px}.conversation-actions .button-quiet{flex-shrink:0;width:44px;height:44px}.script-task{padding:9px 20px;gap:12px}}

/* A single status language across conversation, work in progress and editing. */
.working-indicator{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:14px 28px;background:var(--soft);color:var(--green);border-bottom:1px solid var(--line);font-size:14px}
.panel-processing{display:flex;align-items:center;gap:10px;padding:12px 0;color:var(--green);font-size:14px;line-height:1.6}
.form-progress{margin:12px 0}
.processing-dot{display:inline-block;width:17px;height:17px;flex-shrink:0;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:processing-spin .9s linear infinite}
@keyframes processing-spin{to{transform:rotate(360deg)}}
.writing-progress{padding:8px 0 24px}
.writing-progress h3{display:flex;gap:12px;align-items:center;font-size:18px;color:var(--ink)}
.writing-progress>.panel-intro{margin:14px 0 22px}
.writing-steps{list-style:none;margin:0;padding:0}
.writing-steps li{display:flex;align-items:center;gap:12px;min-height:50px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
.writing-steps li[data-state=current]{color:var(--green);font-weight:600}
.writing-steps li[data-state=done]{color:var(--ink)}
.writing-steps small{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
.step-marker{display:grid;place-items:center;width:18px;height:18px;flex-shrink:0}
.step-marker svg{width:17px;height:17px;color:var(--green)}
.script-task.is-processing{color:var(--green);background:var(--soft)}
[aria-busy=true].subtle-link{color:var(--green)}
@media(max-width:700px){.working-indicator{padding:12px 20px}.writing-progress h3{font-size:18px}.writing-steps li{min-height:52px}}

.button[aria-busy=true]::after{content:"";width:15px;height:15px;flex-shrink:0;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:processing-spin .9s linear infinite}

/* Give the customer manuscript room to read alongside the conversation. */
.script-text{white-space:normal;max-width:68ch;margin-inline:auto}
.script-inputs{max-width:68ch;margin:0 auto 20px;padding:12px 14px;background:var(--soft);border-radius:var(--radius);color:var(--ink);font-size:14px;overflow-wrap:anywhere}
.script-inputs summary{cursor:pointer;color:var(--green)}
.script-inputs p{margin:12px 0 4px;color:var(--muted)}
.script-inputs blockquote{margin:6px 0 0;padding-left:12px;border-left:2px solid var(--line);white-space:pre-wrap}
.script-text p{white-space:pre-wrap;margin:0 0 20px}
.detail-content .script-text h3{font-size:23px;line-height:1.4;letter-spacing:-.02em;margin:4px 0 28px}
.detail-content .script-text h4{font-size:17px;line-height:1.65;margin:32px 0 14px;font-weight:600}
@media(min-width:1101px){.workspace:has(.details-panel.is-reading){grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}.details-panel.is-reading .detail-content{padding:28px 32px}}
@media(min-width:701px) and (max-width:1100px){.details-panel.is-reading.open{width:min(680px,calc(100vw - 48px))}}

.script-delivery{margin:24px 0 12px;padding:22px 24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.script-delivery small{font-size:12px;color:var(--green)}
.script-delivery h2{font-size:23px;margin:8px 0}
.script-delivery p{font-size:14px;color:var(--muted);margin-bottom:18px}
.script-delivery .button{min-height:44px}
.script-task.is-ready{background:var(--soft);color:var(--ink)}
.script-task.is-ready .subtle-link{background:var(--green);color:var(--surface);border-radius:12px;padding:10px 14px;min-height:44px}
.reading-progress{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:18px}
@media(max-width:700px){.script-delivery{padding:20px}.script-delivery .button{width:100%}.script-task.is-ready{font-size:13px;gap:10px}}
.home-view .projects-section:first-child{margin:0 0 36px;padding-top:0;border-top:0}
.project-item{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:100px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-align:left}
.project-item>span:first-child{min-width:0}
.project-item strong{display:block;font-size:17px;font-weight:600;margin-bottom:7px;overflow-wrap:anywhere}
.project-item small{display:block;font-size:12px;color:var(--muted)}
.project-item>span:last-child{flex-shrink:0;color:var(--green);font-size:13px;white-space:nowrap}
.project-item:hover{border-color:var(--green)}

.asset-card audio{display:block;width:100%;max-width:100%;margin:12px 0 0}

/* Material intake stays available during calls and writing. */
.material-options{display:grid;gap:10px}.material-options p{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 6px}.material-options .button{text-align:left;justify-content:flex-start}.voice-bottom>#voice-materials{margin:0 0 14px;min-height:42px;border:1px solid var(--line)}.conversation-actions{flex-wrap:wrap}
@media(max-width:700px){.conversation-actions .voice-call{flex:1 0 calc(100% - 120px)}.conversation-actions #materials-entry{flex:0 0 112px;width:112px;height:42px;padding:8px 12px;border-radius:22px;white-space:nowrap}.conversation-actions .script-entry{flex:1}}
.customer-delivery h3{font-size:18px;margin:6px 0 8px}
.delivery-video{display:block;width:100%;max-height:280px;border-radius:12px;background:#141a16;margin:12px 0 16px}
