/* The photograph is the supplied asset, not an animated/live person. */
.conversation-voice-state{font-size:12px;color:#687c68;min-height:20px;margin:8px 0}
.conversation-voice-caption{max-width:560px;margin:12px auto 22px;padding:14px 20px;background:#fffdf5cc;border:1px solid #e2e1d4;border-radius:18px;color:#345b45;font-size:16px;line-height:1.85;white-space:pre-wrap}
.flow-conversation.voice-engaged{background:radial-gradient(ellipse at 50% 20%,#fffaf0 0,#f2f3e9 60%,#e5eadf 100%)}
.flow-conversation.voice-engaged .companion-avatar{width:158px;height:158px;margin:18px auto 16px;box-shadow:0 0 0 10px #fffdf666,0 18px 55px #476d4320}
.flow-conversation.voice-engaged .conversation-progress{opacity:.65}
.flow-conversation.voice-engaged .conversation-composer{background:#fffffae6}
.audio-status{display:flex;gap:12px;align-items:center;width:max-content}
.audio-status button{border:1px solid #ffffff66;border-radius:18px;color:inherit;background:transparent;min-height:40px;padding:6px 12px;white-space:nowrap;cursor:pointer}
dialog.voice-recorder{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:calc(32px + env(safe-area-inset-top)) max(24px,calc((100vw - 640px)/2)) calc(26px + env(safe-area-inset-bottom));box-sizing:border-box;background:radial-gradient(ellipse at 50% 25%,#fff9eb,#eef2e8 65%,#dce7db);text-align:center;overflow-y:auto}
.recorder-close{display:block;margin:0 0 28px auto;min-height:44px}
.recorder-presence{position:relative;width:176px;height:176px;margin:5dvh auto 28px;border-radius:50%;padding:7px;border:1px solid #aabd9c;box-shadow:0 0 0 12px #fffaf066,0 18px 70px #31593226}
.recorder-presence img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 23%}
.recorder-presence span{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:20px;background:#375c46;color:#fff;padding:5px 14px;font-size:11px}
.voice-recorder.is-recording .recorder-presence{animation:voice-presence 2s ease-in-out infinite alternate}
@keyframes voice-presence{from{box-shadow:0 0 0 12px #fffaf066,0 18px 70px #31593226}to{box-shadow:0 0 0 22px #b5c9a840,0 18px 70px #31593226}}
.voice-recorder #recorder-title{font-size:clamp(24px,4vw,32px);font-weight:500;line-height:1.55;margin:18px 0 10px}
.voice-recorder .recorder-invitation{color:#61755f;font-size:14px}
#record-level{display:block;width:min(240px,70vw);height:12px;margin:22px auto;accent-color:#48744f}
#recorder-status{min-height:48px;line-height:1.8}
#record-review{width:100%;box-sizing:border-box;background:#fffdf8;border:1px solid #bacab5;border-radius:18px;padding:16px;font-size:16px;line-height:1.8;text-align:left;margin-bottom:18px;color:#304d37}
.voice-recorder .voice-actions{gap:12px}.voice-recorder .voice-actions .button{min-height:50px;padding:10px 24px;font-size:15px;border-radius:28px}
.voice-recorder .recorder-privacy{font-size:11px;line-height:1.8;color:#73816d;max-width:440px;margin:25px auto 0}
@media(max-width:650px){.flow-conversation.voice-engaged .companion-avatar{width:132px;height:132px;margin-top:12px}.conversation-voice-caption{font-size:15px;padding:12px 16px}.audio-status{gap:8px;font-size:11px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;padding:8px 12px!important}.recorder-presence{margin-top:3dvh;width:150px;height:150px}}
@media(max-height:650px){.recorder-presence{width:100px;height:100px;margin-top:0}.recorder-close{margin-bottom:10px}.voice-recorder .recorder-privacy{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.voice-recorder.is-recording .recorder-presence{animation:none}}
.companion-welcome{padding:0;border:1px solid #ded9ce;border-radius:26px;width:min(990px,94vw);max-height:94dvh;background:#faf8f2;color:#2e4035;box-shadow:0 32px 100px #14231c55}
dialog::backdrop{background:#17291fcc;backdrop-filter:blur(7px)}
.welcome-layout{display:grid;grid-template-columns:.92fr 1fr;min-height:590px}.welcome-scene{position:relative;min-height:590px;background:#d6c4a9;overflow:hidden}.welcome-scene>img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:50% 38%}.welcome-scene:after{content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#23322ac7);pointer-events:none}.welcome-scene-label{position:absolute;z-index:1;bottom:60px;left:32px;color:#fff;font-size:25px;letter-spacing:3px}.welcome-scene-label b{display:block;font-size:11px;font-weight:400;letter-spacing:2px;margin-top:8px}.welcome-photo-note{position:absolute;z-index:1;bottom:24px;left:32px;font-size:10px;color:#ffffffe0}.welcome-copy{padding:48px 42px 30px;align-self:center}.welcome-eyebrow{font-size:11px;letter-spacing:3px;color:#8b785d}.welcome-copy h1{font-size:38px;line-height:1.45;font-weight:500;margin:24px 0}.welcome-copy h1 span{display:block}.welcome-line{font-size:17px;line-height:1.9}.welcome-value{font-size:12px;color:#7a8076;margin:12px 0 27px}#welcome-form label{font-size:14px;display:block;margin-bottom:10px}.welcome-name-row{display:flex;gap:8px}.welcome-name-row input{min-width:0;background:#fffdf8}.welcome-name-row button{white-space:nowrap;font-size:12px}#welcome-enter{width:100%;margin:8px 0}#welcome-skip{display:block;margin:6px auto 18px}.voice-opt{display:flex;align-items:center;gap:7px;font-size:12px;flex-wrap:wrap}.voice-opt input{width:auto}.voice-opt span{font-size:10px;color:#797e73}.welcome-privacy{display:block;line-height:1.7;font-size:10px;color:#777c73;margin-top:12px}#welcome-error,#hot-error{color:#a34e35;font-size:12px;line-height:1.6;min-height:10px}#welcome-video{position:absolute;width:100%;height:100%;object-fit:cover;z-index:2}
.companion-avatar{position:relative;width:100px;height:100px;margin:8px auto 12px;padding:6px;border:1px solid #b9c5b7;border-radius:50%;background:#f8f4ec;box-shadow:0 8px 32px #53735516}.companion-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 23%;border-radius:50%}.companion-avatar span{position:absolute;bottom:0;right:3px;background:#325849;border:3px solid #faf8f2;border-radius:20px;font-size:9px;letter-spacing:1px;color:white;padding:3px 6px}.companion-role{font-size:11px;letter-spacing:2px;text-align:center;color:#70806f;margin:0 0 6px}.voice-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.voice-actions button{font-size:12px;min-height:40px}.companion-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:14px 0}.companion-tools .companion-greeting{margin-right:auto;color:#536751;font-size:13px}.companion-tools button{font-size:12px;min-height:40px}.hot-topic-dialog,.voice-recorder{border:1px solid #d8ddcf;border-radius:24px;padding:30px;width:min(600px,92vw);max-height:90dvh;background:#faf8f2;color:#314237}.hot-topic-dialog h2{font-size:27px;font-weight:500;margin:18px 0 12px}.hot-topic-dialog p,.voice-recorder p{line-height:1.8;font-size:13px}.hot-topic-dialog label{display:block;font-size:12px;margin:16px 0 8px}.hot-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:15px}.dialog-close{float:right}.audio-status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:10000;max-width:90vw;background:#294f42;color:#fff;padding:10px 18px;border-radius:12px;font-size:12px;box-shadow:0 8px 24px #152c2533}
.companion-reading .sidebar,.companion-reading .studio-hero,.companion-reading .material-card,.companion-reading .workspace-intro,.companion-reading .companion-tools{display:none}.companion-reading .shell{display:block}.companion-reading main{max-width:850px;margin:auto}.companion-reading .workspace-grid{display:block}.companion-reading .output-card{border:0;box-shadow:none;background:transparent}.companion-reading .draft-editor{font-size:21px;line-height:2;min-height:60dvh;background:transparent}.draft-more{border-top:1px solid #e1e5d9;margin-top:18px;padding-top:14px}.draft-more>summary{cursor:pointer;color:#586f56;font-size:13px}.draft-more>summary:focus-visible{outline:2px solid #58764f}.companion-return{position:sticky;top:8px;z-index:5}.flow-conversation.is-speaking .companion-avatar{box-shadow:0 0 0 calc(3px + var(--voice-level,0)*18px) #7e9d652b}
@media(max-width:650px){.companion-welcome{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-radius:0}.welcome-layout{display:block;min-height:100%}.welcome-scene{min-height:0;height:32dvh;max-height:300px}.welcome-scene>img{object-position:50% 28%}.welcome-scene-label{font-size:17px;left:24px;bottom:36px}.welcome-scene-label b{font-size:9px}.welcome-photo-note{left:24px;bottom:14px}.welcome-copy{padding:23px 25px calc(24px + env(safe-area-inset-bottom))}.welcome-copy h1{font-size:29px;margin:12px 0}.welcome-copy h1 br{display:none}.welcome-copy h1 span{display:inline}.welcome-eyebrow{font-size:10px}.welcome-line{font-size:15px;line-height:1.8;margin:10px 0}.welcome-value{margin:8px 0 18px;font-size:11px}.welcome-privacy{font-size:10px}.welcome-name-row input{font-size:16px}.companion-avatar{width:78px;height:78px}.hot-topic-dialog,.voice-recorder{padding:24px 20px}.hot-fields{grid-template-columns:1fr}.companion-reading .draft-editor{font-size:19px}.companion-tools{gap:8px}.companion-tools .companion-greeting{width:100%}.conversation-body{padding-top:0}.conversation-record>div{max-height:30dvh}.audio-status{bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.companion-welcome *,.companion-avatar{transition:none!important;animation:none!important}}
[hidden]{display:none!important}
.welcome-name-row input{flex:1}.hot-topic-dialog textarea{resize:vertical}
#recorder-status{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.companion-tools button:disabled,[data-record-target]:disabled{cursor:not-allowed}
/* Welcome film: show the entire 9:16 composition, including baked subtitles. */
.companion-welcome{width:min(940px,94vw);overflow-y:auto;overscroll-behavior:contain}
.welcome-layout{grid-template-columns:minmax(260px,.95fr) 1fr;min-height:0}
.welcome-scene{min-height:0;background:radial-gradient(ellipse at 35% 20%,#c6ae88,#80735d 65%,#514e3e);padding:24px 22px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.welcome-scene:after{display:none}.welcome-film{position:relative;aspect-ratio:9/16;width:min(100%,calc(74dvh * 9 / 16));border-radius:17px;overflow:hidden;box-shadow:0 16px 45px #2c211944;background:#afa084}
#welcome-video{position:static;display:block;width:100%;height:100%;object-fit:contain;z-index:auto}
.welcome-ai-label{position:absolute;top:14px;left:14px;padding:6px 10px;border-radius:20px;background:#302c24b8;color:#fff;font-size:10px;letter-spacing:1px;pointer-events:none}
.welcome-play{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:max-content;max-width:86%;border:1px solid #ffffff70;border-radius:18px;background:#233b30e8;color:#fff;padding:16px 24px;font:inherit;font-size:16px;cursor:pointer;box-shadow:0 8px 32px #15231c33;backdrop-filter:blur(8px)}
.welcome-play small{display:block;font-size:11px;font-weight:400;opacity:.85;margin-top:7px}.welcome-film-controls{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;color:#fff}.welcome-film-controls button{color:#fff;white-space:nowrap;min-height:44px;font-size:12px}.welcome-film-controls p{font-size:11px;line-height:1.5;text-align:center;flex:1;margin:0}.welcome-film-controls button:disabled{opacity:.45}
.welcome-copy{padding:30px}.welcome-copy h1{font-size:32px;margin:14px 0}.welcome-line{font-size:15px}.welcome-value{margin:8px 0 20px}
.welcome-ended #welcome-form{border-radius:12px;outline:2px solid #d3b985;outline-offset:8px}
.welcome-invitation{border:1px solid #b7c4b2;background:#f5f4eb;color:#2c503d;border-radius:14px;padding:13px 16px;cursor:pointer;text-align:left;font:inherit;margin:0 0 14px;width:100%}.welcome-invitation span{display:block;font-size:11px;color:#6a7867;margin:4px 0 0 18px}
@media(max-width:650px){
 .companion-welcome{width:100%;height:100dvh;max-height:100dvh;margin:0;}
 .welcome-layout{display:flex;flex-direction:column;min-height:100%;background:#faf8f2}
 .welcome-scene{flex-shrink:0;height:auto;max-height:none;padding:calc(12px + env(safe-area-inset-top)) 18px 0;background:radial-gradient(ellipse at 35% 20%,#d3c1a1,#94856b)}
 .welcome-film{width:min(100%,calc(58svh * 9 / 16));border-radius:15px}
 .welcome-film-controls{max-width:360px;gap:8px;min-height:40px}.welcome-film-controls p{font-size:10px}
 .welcome-copy{padding:20px 25px calc(24px + env(safe-area-inset-bottom));width:100%;box-sizing:border-box}
 .welcome-copy h1,.welcome-line,.welcome-value{display:none}
 .welcome-eyebrow{display:block;margin-bottom:14px}.welcome-name-row input{min-height:46px}
 #welcome-form>label{font-size:21px;font-weight:500;margin-bottom:12px}#welcome-skip{margin-bottom:12px}
 .welcome-play{font-size:15px;padding:14px 18px}.welcome-ai-label{font-size:9px;top:10px;left:10px}
}
@media(max-height:500px) and (orientation:landscape){.welcome-layout{display:grid;grid-template-columns:42% 58%;}.welcome-film{width:min(100%,calc(75dvh * 9 / 16))}.welcome-copy{padding:20px}}
@media(prefers-reduced-motion:reduce){.welcome-ended #welcome-form{transition:none}}
@media(max-width:650px){.conversation-composer>div{flex-wrap:wrap}.conversation-composer>div>small{order:3;max-width:none;flex-basis:100%}.conversation-composer #conversation-send{margin-left:auto}}
