:root{font:16px/1.7 system-ui,sans-serif;color:#26334c;background:#f5f6fb}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;padding:18px 5%;background:white;border-bottom:1px solid #e3e6f0}nav{display:flex;gap:20px;align-items:center}a{color:#5e55d7}main{max-width:1200px;margin:30px auto;padding:0 20px}h1,h2{line-height:1.3}button{cursor:pointer;background:#6255d9;color:white;border:0;border-radius:9px;padding:10px 17px;font:inherit}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#eceafa;color:#4c429b}input,select,textarea{display:block;width:100%;padding:10px;border:1px solid #d9deea;border-radius:8px;font:inherit;margin:7px 0 16px}label{display:block}textarea{min-height:95px}section,.panel{background:white;padding:24px;border-radius:16px;margin-bottom:20px}.layout{display:grid;grid-template-columns:310px 1fr;gap:22px}.hint,small{color:#657189;font-size:13px}.notice{background:#eeecfc;padding:14px;border-radius:10px}.messages{min-height:220px;max-height:58vh;overflow:auto;padding:8px}.message{white-space:pre-wrap;background:#f0f1f7;border-radius:12px;padding:15px;margin:12px 0;overflow-wrap:anywhere}.message.user{background:#eeebff;margin-left:12%}.message.assistant{margin-right:8%}.message button{font-size:12px;padding:4px 9px;margin-top:8px}.message details{white-space:normal;font-size:13px}.memory{border-bottom:1px solid #e5e7f0;padding:12px 0;overflow-wrap:anywhere}#error{position:sticky;bottom:0;max-width:1000px;margin:auto;background:#fff0ef;color:#a52227;padding:12px;white-space:pre-wrap}#error:empty{display:none}.login{max-width:460px;margin:60px auto}summary{cursor:pointer}details{margin:12px 0}.row{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:760px){.layout{grid-template-columns:1fr}header{padding:12px}main{padding:0 12px}.messages{max-height:none}}
input[type="checkbox"]{display:inline-block;width:auto;margin:8px 6px 8px 0}
.notice[role="status"]{white-space:pre-wrap}
.voice-recorder{padding:12px;background:#f5f3ff;border:1px solid #e4dff7;border-radius:10px;margin:12px 0}.voice-recorder audio{display:block;width:100%;max-width:100%;height:44px;margin:10px 0}.voice-recorder .row{gap:8px}.voice-recorder [role="status"]{min-height:24px}.voice-recorder .hint{margin:8px 0}
.voice-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0;border-top:1px solid #eeeaf8;border-bottom:1px solid #eeeaf8;margin-bottom:8px}.voice-toolbar button{font-size:13px;padding:7px 10px}.voice-toolbar small{flex-basis:100%;line-height:1.5;overflow-wrap:anywhere}.voice-settings>summary{font-weight:600;min-height:44px;padding:8px 0}.voice-settings .row{margin-top:8px}.voice-settings button{font-size:13px}.voice-settings input[type="file"]{font-size:14px;min-width:0}.voice-profiles:empty{display:none}
.layout>*{min-width:0}.workspace-tools{margin:0}.workspace-tools>summary{display:none}.workspace-tools-body{min-width:0}.about-simulation p{margin:8px 0 0}.about-simulation>summary{font-weight:600}.chat-panel{min-width:0}.chat-heading{justify-content:space-between;align-items:center}.chat-heading h2{margin:0}.conversation-history{margin:16px 0}.chat-composer textarea{resize:vertical;max-height:240px}.message div,.notice,blockquote{overflow-wrap:anywhere}button,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #aba3f5;outline-offset:3px}
@media(max-width:760px){
  body{min-height:100dvh}header{padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));gap:8px;align-items:center}header strong{font-size:15px}nav{gap:8px}header button{padding:8px 12px;min-height:44px}main{margin:14px auto;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));padding-bottom:env(safe-area-inset-bottom)}main>h1{font-size:21px;margin:12px 0 4px}main>.hint{margin:4px 0 10px}.layout{display:flex;flex-direction:column;gap:12px}.layout aside{width:100%}section,.panel{padding:16px;border-radius:12px;margin-bottom:12px}.workspace-tools{border:1px solid #e0ddef;border-radius:12px;background:#fff;overflow:hidden}.workspace-tools>summary{display:list-item;list-style-position:inside;padding:12px 14px;min-height:48px;font-weight:600;color:#4c429b}.workspace-tools>summary .hint{display:block;margin-left:18px;font-weight:400;font-size:12px}.workspace-tools[open]>summary{border-bottom:1px solid #eeeaf8}.workspace-tools-body{padding:8px}.workspace-tools-body section{padding:12px;margin:0 0 8px}.workspace-tools-body section:last-child{margin-bottom:0}.workspace-tools-body h2{font-size:18px}.about-simulation{font-size:13px;padding:10px 12px;margin:10px 0 12px}.about-simulation summary{min-height:24px}.chat-panel{margin:0;padding:14px}.chat-heading{gap:8px}.chat-heading h2{font-size:20px}.chat-heading button{font-size:14px;padding:8px 12px;min-height:44px}.chat-panel>.hint{font-size:12px;line-height:1.6;margin:10px 0}.conversation-history>summary{min-height:44px;padding:8px 0;font-size:14px}.conversation-history{margin:0 0 6px}.messages{min-height:180px;max-height:50dvh;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 2px;scroll-padding:12px}.message{font-size:15px;line-height:1.65;padding:12px;margin:10px 0;border-radius:12px}.message.user{margin-left:8%}.message.assistant{margin-right:5%}.message button{min-height:40px;padding:7px 9px}.chat-composer{margin-top:12px;padding-bottom:4px}.chat-composer>label{font-size:14px}.chat-composer textarea{min-height:82px;max-height:160px;margin:6px 0 10px}.chat-composer>button{width:100%;min-height:46px}.chat-composer>.hint{font-size:12px;margin:8px 0 0}input,textarea,select{font-size:16px;max-width:100%}button{min-height:44px}blockquote{margin:12px 8px;padding-left:10px;border-left:3px solid #e4dff7}.row{min-width:0}.login{margin:28px auto;padding:20px}.login h1{font-size:24px}.login button{width:100%}#error{padding:10px max(12px,env(safe-area-inset-left));font-size:14px;max-height:35dvh;overflow:auto}details>summary{overflow-wrap:anywhere}.memory button{min-height:44px}
}
/* Mobile-first companion workspace, October interaction update. */
[hidden]{display:none!important}
.modern{max-width:1100px;margin:0 auto;padding:20px 20px 0}.modern .legacy-title{display:none}.modern>.layout{display:block}.modern .chat-panel{max-width:820px;margin:0 auto;border:0;box-shadow:none;background:#f6f5fa;padding:12px 20px}.modern .chat-heading{position:sticky;top:0;z-index:2;background:#f6f5fa;padding:10px 0}.modern .chat-heading h2{flex:1;text-align:center;font-size:19px}.modern .messages{height:calc(100dvh - 340px);max-height:none;min-height:220px;overflow:auto;padding:8px 0}.modern .message{max-width:85%;width:fit-content;background:white;border:1px solid #eeecf4;padding:12px 14px;border-radius:16px;box-shadow:0 3px 12px #302b4b05}.modern .message.user{margin-left:auto;background:#e8e4ff;border-color:#e0dafb}.modern .message.assistant{margin-right:auto}.modern .message small{display:block;color:#8b859a;font-size:11px;margin-bottom:5px}.modern .message button{font-size:12px;min-height:32px;padding:5px 9px;margin-top:8px}.modern .chat-composer{position:sticky;bottom:0;display:grid;grid-template-columns:44px minmax(0,1fr) 64px;gap:8px;background:#f6f5fa;border-top:1px solid #e8e5ef;padding:10px 0 max(10px,env(safe-area-inset-bottom));margin:0}.modern .chat-composer textarea{grid-column:2;grid-row:1;min-height:44px;max-height:120px;height:46px;margin:0;border-radius:14px;padding:10px 12px}.modern .chat-composer>button.send-message{grid-column:3;grid-row:1;width:auto;min-height:44px;padding:8px}.modern .composer-plus{grid-column:1;grid-row:1;border-radius:50%;font-size:25px;padding:0!important;background:white;color:#696177}.modern .extras-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:20px 0;background:#eeedf4}.extras-panel button{display:flex;flex-direction:column;align-items:center;gap:10px;background:white;color:#4a4358;border-radius:16px;font-size:24px;padding:16px 4px!important}.extras-panel span{font-size:12px}.modern .quiet-note{display:none}.modern .voice-toolbar{border:0;padding:4px 0;background:none;gap:6px}.modern .voice-toolbar button{font-size:12px;min-height:34px;padding:5px 9px}.modern .voice-toolbar small{font-size:11px;flex-basis:100%}.modern .conversation-history{font-size:12px;margin:0}.modern .conversation-history>summary{min-height:30px;padding:4px 0}.modern .settings-drawer{position:fixed;right:0;top:0;bottom:0;z-index:20;width:min(460px,100vw);overflow-y:auto;background:#f6f5fa;padding:18px;box-shadow:-20px 0 90px #19112640}.modern .workspace-tools{border:0}.drawer-title{position:sticky;top:-18px;z-index:2;background:#f6f5fa;justify-content:space-between;padding:8px 0}.persona-home{padding:24px 8px!important;background:transparent!important;border:0!important}.persona-home>.row{justify-content:space-between;align-items:center}.persona-home h1{font-size:29px;letter-spacing:-1px;margin:6px 0 16px}.eyebrow{color:#807397;font-size:12px}.persona-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}.persona-card{display:flex;flex-direction:column;align-items:flex-start;background:white;color:#383143;text-align:left;border:1px solid #eeebf4;border-radius:22px;min-height:220px;padding:22px;gap:14px;box-shadow:0 10px 35px #53416e08}.persona-card strong{font-size:20px}.persona-card small{color:#8e8799}.persona-card>span:last-child{font-size:13px;color:#7962d6;margin-top:auto}.avatar{display:grid;place-items:center;width:64px;height:64px;background:linear-gradient(140deg,#e1d7fb,#f5eefc);border-radius:22px;color:#7761ba;font-size:29px}.call-screen,.speech-sheet{position:fixed;inset:0;z-index:40;margin:0!important;border-radius:0!important;background:linear-gradient(160deg,#fbf9ff,#e9e2f6)!important;padding:28px max(22px,env(safe-area-inset-left)) max(28px,env(safe-area-inset-bottom))!important;display:flex;flex-direction:column}.call-screen>.row{justify-content:space-between;align-items:center}.call-screen>.row span{font-size:13px;color:#8a7d9a}.call-person{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.call-person .avatar{width:112px;height:112px;border-radius:40px;font-size:46px;box-shadow:0 20px 80px #9276bc30}.call-person h1{font-size:29px;margin:12px 0 4px}.call-person p{color:#81738d}.waveform{font-size:32px;color:#9275cb;letter-spacing:5px}.call-controls{display:flex;justify-content:space-around;gap:10px}.call-controls button{border-radius:40px;min-height:65px;background:#fff9;color:#64556e;font-size:13px}.call-controls .hangup{background:#df627b;color:white;padding:20px 25px}.call-screen>.hint{text-align:center;font-size:11px;color:#96899f;margin-top:24px}.call-mini{position:fixed;right:12px;bottom:20px;z-index:45;padding:10px;border:1px solid #e2d7ef;box-shadow:0 10px 40px #51436730;background:#f5efff;border-radius:18px;max-width:95vw;display:flex;gap:8px}.call-mini button{font-size:12px}.speech-sheet{inset:auto 0 0;min-height:45dvh;border-radius:24px 24px 0 0!important;box-shadow:0 -20px 90px #25163c40}.speech-sheet textarea{height:140px}.speech-sheet .row{margin-top:16px}#sharing{overflow-wrap:anywhere}#sharing a{color:#7962d6}.experience-settings input[type=checkbox],#sharing input[type=checkbox]{width:auto;display:inline-block;margin-right:8px}
@media(max-width:760px){.modern{padding:10px 10px 0}.persona-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.persona-home{padding:12px 2px!important}.persona-home h1{font-size:25px}.persona-home>.row>button{font-size:12px;padding:9px}.persona-card{min-height:210px;padding:16px}.modern .chat-panel{padding:0 4px}.modern .settings-drawer{width:100vw}.modern .messages{height:calc(100dvh - 315px)}.modern .chat-heading button{font-size:20px;padding:0 12px;min-width:44px}.modern .chat-heading [data-action=new-chat]{font-size:11px;min-width:0;padding:0 6px}.modern .message{font-size:16px}.modern .chat-composer>button{min-height:44px}.modern .chat-composer>button.send-message{font-size:13px}.modern .extras-panel{margin-top:6px}.call-screen .hint{line-height:1.6}}
@media(min-width:761px){.call-screen{inset:7vh 25vw;border-radius:28px!important;box-shadow:0 20px 160px #30204360}.speech-sheet{inset:auto 25vw 4vh;border-radius:24px!important}.modern .messages{height:calc(100dvh - 345px)}}
/* Input controls keep their size throughout send/wait states. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-weight:400}button{white-space:nowrap;word-break:keep-all;flex-shrink:0}.modern .chat-composer{grid-template-columns:40px minmax(0,1fr) 38px 60px;align-items:center;gap:7px}.modern .composer-mic{grid-column:1;grid-row:1;width:40px;height:44px;min-height:44px;border-radius:12px;padding:0!important;font-size:22px;line-height:1;background:#eeebf8;color:#65577d}.modern .composer-plus{grid-column:3;grid-row:1;width:38px;height:44px;min-height:44px;line-height:1;white-space:nowrap}.modern .chat-composer>button.send-message{grid-column:4;grid-row:1;display:block;width:60px;min-width:60px;max-width:60px;height:44px;min-height:44px;max-height:44px;padding:0 4px!important;font-size:14px;line-height:44px;white-space:nowrap;overflow:hidden;align-self:center}.modern .chat-composer>textarea{grid-column:2;grid-row:1;height:44px;min-height:44px;max-height:120px;resize:none;font-size:16px;line-height:22px;padding:10px}.modern .chat-composer>.hold-to-talk{grid-column:2;grid-row:1;width:100%;min-width:0;height:44px;min-height:44px;max-height:44px;padding:0 4px!important;background:#fff;color:#5a4f68;border:1px solid #dcd7e6;border-radius:13px;font-size:14px;line-height:42px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.modern .extras-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.modern .message{font-weight:400;letter-spacing:.1px}.modern .message .voice-bubble{background:#ded7f7;color:#554571;border-radius:14px;min-width:120px;padding:10px 14px}.desktop-personas{display:none}.modern .chat-heading{flex-wrap:nowrap}.modern .chat-heading h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern .voice-toolbar{flex-wrap:wrap}.modern .chat-composer>button:disabled{cursor:wait}.modern .chat-composer>button:disabled:not(.send-message){opacity:.65}
@media(max-width:760px){.modern .message{font-size:16px;line-height:1.7}.modern .message small{font-size:12px}.modern .message button{font-size:12px}.modern .chat-heading h2{font-size:19px;font-weight:600}.modern .chat-heading [data-action=new-chat]{font-size:12px}.modern .persona-home .hint{font-size:14px}.modern .messages{height:calc(100dvh - 315px)}.modern .settings-drawer{font-size:15px}.modern .settings-drawer h2{font-size:20px}.modern .chat-composer{margin-top:5px}.modern .chat-composer .extras-panel button{font-size:23px}.modern .chat-composer .extras-panel span{font-size:13px}}
@media(min-width:761px) and (max-width:999px){.modern{max-width:880px;padding:20px}.modern .message{font-size:16px;line-height:1.75}.modern .chat-panel{padding:12px}.modern .chat-composer>textarea{height:48px}.modern .settings-drawer{width:430px}}
@media(min-width:1000px){.modern{max-width:1380px;padding:24px 30px}.modern[data-screen=chat]{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px}.modern[data-screen=chat]>.desktop-personas{display:flex;grid-column:1;grid-row:1;align-self:start;position:sticky;top:24px;flex-direction:column;align-items:stretch;gap:10px;padding:18px 10px;background:white;border-radius:20px}.desktop-personas h2{font-size:17px;margin:5px 12px 14px}.desktop-personas button{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;color:#5f566d;font-size:14px;padding:10px;border-radius:14px;white-space:normal;overflow-wrap:anywhere}.desktop-personas button.selected{background:#eee8fa;color:#665080}.desktop-personas .avatar{width:38px;height:38px;min-width:38px;border-radius:13px;font-size:18px}.modern[data-screen=chat]>.layout{grid-column:2;grid-row:1;min-width:0}.modern .chat-panel{max-width:none;margin:0;padding:0 12px}.modern .chat-heading h2{font-size:22px;font-weight:600}.modern .message{font-size:15px;line-height:1.8;max-width:76%;padding:14px 18px}.modern .message small{font-size:12px}.modern .message button{font-size:12px}.modern .messages{height:calc(100dvh - 330px);min-height:300px;padding-right:10px}.modern .chat-composer{grid-template-columns:44px minmax(0,1fr) 42px 76px;gap:10px}.modern .chat-composer>button.send-message{width:76px;min-width:76px;max-width:76px;font-size:14px}.modern .chat-composer>textarea{font-size:15px}.modern .chat-composer>.hold-to-talk{font-size:15px}.modern .persona-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.modern .settings-drawer{width:460px;font-size:14px}.modern .settings-drawer input,.modern .settings-drawer textarea,.modern .settings-drawer select{font-size:14px}.call-screen{inset:6vh auto 6vh 50%;width:430px;transform:translateX(-20%)}.speech-sheet{inset:auto auto 4vh 50%;width:480px;transform:translateX(-20%)}}

.share-qr{display:block;width:240px;max-width:100%;height:auto;background:white;margin:16px auto;border-radius:12px}#share-notice{overflow-wrap:anywhere}#share-notice a{display:block;font-size:13px}.login .secondary{margin-top:18px;width:100%}

.interview-entry{display:flex;align-items:center;gap:10px;margin:10px 0;flex-wrap:wrap}.interview-entry>span{font-size:12px;color:#736882}.interview-entry button{font-size:13px;min-height:40px;padding:7px 12px;white-space:nowrap}#interview-intro{width:min(500px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:0;border-radius:20px;padding:24px;color:#302a40;font:15px/1.8 system-ui,sans-serif}#interview-intro::backdrop{background:rgba(24,18,40,.42)}#interview-intro h2{font-size:21px;margin:0 0 12px}#interview-intro ul{padding-left:22px}#interview-intro .row{margin-top:18px}#interview-intro button{min-height:44px;font-size:14px}@media(max-width:760px){.interview-entry{gap:6px}.interview-entry>span{flex:1;font-size:11px}.modern .chat-panel:has(.interview-entry) .messages{height:calc(100dvh - 365px)}#interview-intro{padding:20px;font-size:15px}}

/* 音色标识可核对且长UID不撑开手机页面；不作为授权凭据。 */
.voice-identifiers{overflow-wrap:anywhere;word-break:break-word}.voice-identifiers small{display:block;font-family:ui-monospace,monospace;line-height:1.7}

.voice-upload-fields{border:0;padding:0;margin:0;min-inline-size:0}
.voice-upload-fields:disabled{opacity:.6}
.voice-upload-notice{line-height:1.7;overflow-wrap:anywhere}
