/* Voice is a dedicated surface; controls and captions stay out of the stage. */
.voice-overlay{padding:0;background:#f9fafc;backdrop-filter:none}
.live-modal.voice-modal{width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:#f9fafc}
.voice-modal>.modal-top{display:none}.voice-modal>.modal-content{height:100%;padding:0;line-height:1.6}
.voice-panel{--voice-ink:#23282f;--voice-muted:#838a96;position:relative;isolation:isolate;width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;color:var(--voice-ink);background:radial-gradient(ellipse at 50% 42%,#fff 0,#fafbfd 50%,#f7f8fb 100%)}
.voice-panel button{font-family:inherit}
.voice-header{position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 40px;flex-shrink:0}
.voice-identity{display:flex;align-items:center;gap:14px;min-width:0}.voice-identity>div{min-width:0}
.voice-identity h3{font-size:17px;font-weight:650;line-height:1.4;letter-spacing:.01em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voice-identity p{font-size:12px;color:var(--voice-muted);margin:5px 0 0;line-height:1.6}.voice-header-dot{margin:0 8px;color:#b0b6bf}
.voice-live-mark{display:flex;align-items:center;gap:3px;width:36px;height:36px;flex-shrink:0;justify-content:center;border:1px solid #e4e8f0;border-radius:12px;background:#fff}
.voice-live-mark i{width:3px;height:12px;border-radius:3px;background:#687bc1}.voice-live-mark i:nth-child(2){height:20px}.voice-live-mark i:nth-child(3){height:15px}
.voice-header-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
.voice-tool{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:99px;background:transparent;color:#697180;padding:9px 12px;font:inherit;font-size:13px;cursor:pointer;list-style:none;min-height:40px}
.voice-tool svg{width:23px;height:23px;flex-shrink:0}.voice-tool:hover,.voice-tool[aria-pressed=true]{background:#edf0f6;color:#344269}
.voice-tool:focus-visible,.voice-control:focus-visible,.voice-orb:focus-visible,.voice-turn:focus-visible{outline:3px solid #829ad8;outline-offset:5px}
.voice-header-tools>.btn{min-width:40px;width:40px;min-height:40px;height:40px;padding:0;border-radius:50%;color:#838a96}.voice-header-tools>.btn:hover{background:#edf0f6}
.voice-info{position:relative}.voice-info summary::-webkit-details-marker{display:none}.voice-info summary{padding:9px}
.voice-info-content{position:absolute;right:0;top:52px;width:300px;max-width:calc(100vw - 32px);border:1px solid #e5e8ee;background:#fff;box-shadow:0 12px 45px #25334c12;border-radius:18px;padding:20px;line-height:1.8}
.voice-info-content strong{font-size:14px}.voice-info-content p{font-size:13px;color:#76808d;margin-top:10px}
.voice-center{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;padding:12px 40px 18px}
.voice-presence{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.02em;color:#8b929d;margin-bottom:18px;line-height:20px}.voice-state-dot{width:5px;height:5px;border-radius:50%;background:#77a296}
#voice-timer{color:#a3aab5;margin-left:6px;font-variant-numeric:tabular-nums}
.voice-stage{position:relative;display:grid;place-items:center;width:360px;height:340px;flex-shrink:0}
.voice-aura{position:absolute;width:86%;height:78%;border-radius:50%;background:radial-gradient(ellipse,#bed4fb42,transparent 68%);filter:blur(30px);transform:translateY(30px);pointer-events:none}
.voice-orb{--voice-energy:0;position:relative;display:block;width:280px;height:280px;padding:0;border:0;border-radius:50%;background:#e4edff;overflow:hidden;box-shadow:0 24px 70px -38px #4974bb65;cursor:pointer;transition:filter .4s,opacity .4s;-webkit-tap-highlight-color:transparent}
.voice-orb:disabled{opacity:1;cursor:default}
.voice-orb-inner{position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 27% 20%,#d9edff 0,#82b8fa 30%,#4776dc 59%,#5265bd 82%,#91b3ef 100%);overflow:hidden;isolation:isolate;transform:scale(calc(1 + var(--voice-energy)*.055));transition:transform .15s}
.voice-cloud{position:absolute;border-radius:45%;filter:blur(18px);mix-blend-mode:screen;will-change:transform;pointer-events:none}
.cloud-one{width:118%;height:65%;left:-28%;top:-3%;background:radial-gradient(ellipse,#ffffffa8,#b2e6ff6b 54%,transparent 70%);animation:voice-flow-one 11s ease-in-out infinite alternate}
.cloud-two{width:108%;height:76%;right:-28%;bottom:-14%;background:radial-gradient(ellipse,#c2b6ffbd,#b4d2ff85 55%,transparent 72%);animation:voice-flow-two 14s ease-in-out infinite alternate}
.cloud-three{width:105%;height:55%;left:-16%;top:42%;background:radial-gradient(ellipse,#c3f3ffce,#ddeaff57 50%,transparent 73%);animation:voice-flow-three 9s ease-in-out infinite alternate}
.voice-orb-shine{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse at 35% 0,#fff6,transparent 48%);box-shadow:inset 0 0 18px 4px #f7fbff70,inset 0 -16px 32px #566caf15;z-index:2;pointer-events:none}
#voice-ribbons{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.voice-status-copy{text-align:center;min-height:65px;margin-top:12px;width:min(460px,100%);flex-shrink:0}
#voice-state{font-size:22px;line-height:1.5;font-weight:500;letter-spacing:.01em;margin:0;overflow-wrap:anywhere;text-wrap:balance}
.voice-hint{font-size:13px;color:#949ba6;margin:8px 0 0;line-height:1.6;min-height:21px}
.voice-turn-tools{display:flex;justify-content:center;min-height:38px;margin-top:8px;flex-shrink:0}
.voice-turn{border:0;background:transparent;color:#858e9d;font:inherit;font-size:12px;display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:99px}.voice-turn:hover{color:#476697;background:#edf1f8}.voice-turn:disabled{display:none}
.voice-footer{position:relative;z-index:3;padding:22px 32px max(28px,env(safe-area-inset-bottom));flex-shrink:0}
.voice-controls{display:flex;justify-content:center;gap:32px;padding-bottom:30px}
.voice-control{position:relative;display:grid;place-items:center;width:64px;height:64px;min-height:64px;padding:0;border:1px solid #e2e6ed;border-radius:50%;color:#586273;background:#edf0f5;transition:background .18s,transform .18s;box-shadow:none}
.voice-control>span:first-child{display:grid;place-items:center}.voice-control svg{width:25px;height:25px}
.voice-control:hover{background:#e1e6ef;transform:translateY(-2px)}.voice-control:active{transform:scale(.95)}.voice-control:disabled{cursor:not-allowed;opacity:.4}
.voice-control-label{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;line-height:18px;color:#8c939e}
.voice-end{background:#f5e9eb;border-color:#f1dde1;color:#ae6572}.voice-end:hover{background:#f1d9df}
.voice-footnote{font-size:11px;text-align:center;color:#afb5be;line-height:1.6;margin:18px 0 0}
.voice-caption-drawer{animation:voice-drawer-in .2s ease-out;position:absolute;z-index:2;top:118px;bottom:34px;right:30px;width:330px;display:flex;flex-direction:column;background:#ffffffbd;border:1px solid #eceff4;border-radius:22px;backdrop-filter:blur(20px);box-shadow:0 12px 40px #34446604;overflow:hidden}
.voice-caption-heading{display:flex;justify-content:space-between;padding:20px 22px 16px;font-size:13px;font-weight:600;flex-shrink:0;color:#596374}.voice-caption-heading>span:last-child{font-size:11px;font-weight:400;color:#a3aab4}
.voice-captions{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 22px 22px;scrollbar-width:thin;scrollbar-color:#dfe4ec transparent}
.voice-captions:empty:before{content:"对话开始后，字幕会显示在这里。";font-size:13px;color:#a2aab5}
.voice-line{margin:20px 0 0;font-size:14px;line-height:1.85;overflow-wrap:anywhere}.voice-line:first-child{margin-top:4px}.voice-line strong{font-size:11px;font-weight:500;color:#9ba3af}.voice-line p{margin:6px 0 0;white-space:pre-wrap;color:#4d586b}.voice-line.user p{color:#8993a3}.voice-line.partial{opacity:.65}
.voice-panel[data-captions=true] .voice-center,.voice-panel[data-captions=true] .voice-footer{margin-right:360px}
.voice-panel[data-state=paused] .voice-orb,.voice-panel[data-state=error] .voice-orb{filter:saturate(.25);opacity:.7}.voice-panel[data-state=paused] .voice-cloud,.voice-panel[data-state=error] .voice-cloud{animation-play-state:paused}
.voice-panel[data-state=paused] .voice-state-dot,.voice-panel[data-state=error] .voice-state-dot{background:#acb1ba}
.voice-panel[data-busy=true] .voice-state-dot{background:#91a4d3;animation:voice-dot 1.7s ease-in-out infinite}.voice-panel[data-state=speaking] .voice-orb-inner{filter:saturate(1.12)}
.voice-panel[data-mode=answers] .voice-stage{height:175px;width:210px}.voice-panel[data-mode=answers] .voice-orb{width:150px;height:150px}.voice-panel[data-mode=answers] .voice-center{justify-content:flex-start;overflow-y:auto}.voice-panel[data-mode=answers] .voice-presence{margin-bottom:0}.voice-panel[data-mode=answers] .voice-status-copy{min-height:40px;margin-top:0}.voice-panel[data-mode=answers] #voice-state{font-size:16px}
.voice-question{width:min(640px,100%);padding:16px 0}.voice-question-title{font-size:12px;color:#8a94a4;margin-bottom:10px}.voice-question>p{font-size:16px;line-height:1.8;margin:0}
.voice-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.voice-options button{text-align:left;border:1px solid #e1e6ef;background:#fff;border-radius:14px;padding:14px;font:inherit;font-size:14px;line-height:1.7;color:#596577}.voice-options button:hover,.voice-options button.proposed{border-color:#92a9d2;background:#edf3ff;color:#3c5b8d}
.voice-question .fine{font-size:12px;color:#929cab;line-height:1.7}.voice-question-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.voice-question-nav .btn{font-size:12px;min-height:38px}
.voice-panel [hidden]{display:none!important}
@keyframes voice-flow-one{to{transform:translate(50px,50px) rotate(55deg) scale(.85)}}
@keyframes voice-flow-two{to{transform:translate(-55px,-45px) rotate(-70deg) scale(1.1)}}
@keyframes voice-flow-three{to{transform:translate(60px,-45px) rotate(95deg) scale(1.1)}}
@keyframes voice-drawer-in{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:translateX(0)}}
@keyframes voice-dot{50%{opacity:.35}}
@media(max-width:1000px){.voice-header{padding:24px}.voice-caption-drawer{right:20px;width:280px}.voice-panel[data-captions=true] .voice-center,.voice-panel[data-captions=true] .voice-footer{margin-right:300px}.voice-stage{width:320px;height:310px}.voice-orb{width:250px;height:250px}}
@media(max-width:700px){
 .voice-header{padding:20px;gap:10px;align-items:flex-start}.voice-identity{gap:10px}.voice-live-mark{width:30px;height:30px;border-radius:10px}.voice-identity h3{font-size:15px}.voice-identity p{font-size:10px;max-width:180px}.voice-header-dot{margin:0 5px}
 .voice-header-tools{gap:3px}.voice-tool{padding:7px;min-height:34px}.voice-tool>span{display:none}.voice-tool svg{width:21px;height:21px}.voice-header-tools>.btn{width:32px;min-width:32px;height:34px;min-height:34px}.voice-info-content{right:-32px}
 .voice-center{padding:4px 24px 8px}.voice-presence{margin-bottom:8px}.voice-stage{width:300px;height:300px}.voice-orb{width:238px;height:238px}.voice-status-copy{margin-top:6px;min-height:66px}#voice-state{font-size:19px}.voice-hint{font-size:12px}
 .voice-footer{padding:20px 24px max(26px,env(safe-area-inset-bottom))}.voice-controls{gap:34px}.voice-control{width:60px;height:60px;min-height:60px}.voice-footnote{margin-top:14px}
 .voice-caption-drawer{position:relative;inset:auto;margin:0 24px 10px;width:auto;flex:0 0 155px;max-height:155px;border-radius:16px;box-shadow:none;background:#ffffff80}.voice-caption-heading{padding:12px 16px 6px;font-size:11px}.voice-caption-heading>span:last-child{font-size:10px}.voice-captions{padding:0 16px 14px}.voice-line{font-size:13px;margin-top:12px}.voice-line p{margin-top:3px}
 .voice-panel[data-captions=true] .voice-center,.voice-panel[data-captions=true] .voice-footer{margin-right:0}.voice-panel[data-captions=true] .voice-stage{width:240px;height:220px}.voice-panel[data-captions=true] .voice-orb{width:190px;height:190px}
 .voice-panel[data-mode=answers] .voice-stage{height:115px}.voice-panel[data-mode=answers] .voice-orb{width:105px;height:105px}.voice-panel[data-mode=answers] .voice-presence{display:none}.voice-options{grid-template-columns:1fr}.voice-question{padding-top:12px}.voice-question>p{font-size:14px}
}
@media(max-height:700px){.voice-header{padding-top:16px;padding-bottom:12px}.voice-stage{height:240px}.voice-orb{width:210px;height:210px}.voice-status-copy{min-height:54px;margin-top:0}.voice-footer{padding-top:12px;padding-bottom:18px}.voice-caption-drawer{top:90px}.voice-presence{margin-bottom:0}.voice-footnote{margin-top:10px}}
@media(max-width:700px) and (max-height:700px){.voice-stage{height:210px}.voice-orb{width:180px;height:180px}.voice-panel[data-captions=true] .voice-stage{height:135px}.voice-panel[data-captions=true] .voice-orb{width:120px;height:120px}.voice-caption-drawer{flex-basis:110px;max-height:110px}.voice-control{width:52px;height:52px;min-height:52px}.voice-footer{padding-bottom:16px}.voice-footnote{display:none}}
@media(max-width:700px) and (max-height:600px){.voice-panel[data-captions=true] .voice-presence{display:none}.voice-panel[data-captions=true] .voice-stage{height:105px}.voice-panel[data-captions=true] .voice-orb{width:95px;height:95px}.voice-panel[data-captions=true] .voice-hint{display:none}}
@media(min-width:701px) and (max-height:500px){.voice-header{padding:12px 24px}.voice-center{display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:28px;padding:0 24px}.voice-stage{grid-column:1;grid-row:1/4;width:180px;height:180px}.voice-orb{width:150px;height:150px}.voice-presence{grid-column:2;grid-row:1;justify-content:center;align-self:end}.voice-status-copy{grid-column:2;grid-row:2;margin:0;align-self:center}.voice-turn-tools{grid-column:2;grid-row:3;align-self:start}.voice-footer{padding-top:8px;padding-bottom:16px}.voice-control{width:48px;height:48px;min-height:48px}.voice-footnote{display:none}.voice-caption-drawer{top:84px;bottom:20px}}
@media(prefers-reduced-motion:reduce){.voice-cloud,.voice-state-dot,.voice-caption-drawer{animation:none!important}.voice-orb,.voice-center,.voice-footer{transition:none}}

/* Increase touch targets while preserving the approved quiet caption colors. */
@media(max-width:700px){
 .voice-header-tools{gap:8px}
 .voice-tool{min-width:44px;min-height:44px;padding:10px}
 .voice-header-tools>.btn{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px;margin-left:4px}
 .voice-info-content{right:-56px;max-width:calc(100vw - 32px)}
 .voice-identity{min-width:0;flex:1}
 .voice-identity>div{min-width:0}
 .voice-identity h3,.voice-identity p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
}

/* Bound long uploaded voice names without changing approved caption colors. */
.voice-identity{min-width:0}.voice-identity>div{min-width:0}
.voice-identity p{display:flex;align-items:center;min-width:0}
.voice-mode-label{min-width:0;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}
.voice-header-dot{flex-shrink:0}
#voice-current-sound{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
