/* Call palette: the same blue and sky hues as hold-to-talk, quiet surfaces, no control keylines. */
#voice-dialog{--vc-blue:49,150,250;--vc-sky:47,186,249;--vc-ink:#293343;--vc-muted:#71899d;--vc-fill:#ffffffa8;position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;color:var(--vc-ink);overflow:hidden;background:linear-gradient(180deg,#fcfdff 0%,#f7fbff 32%,#edf6ff 65%,#dcefff 100%);box-shadow:none;isolation:isolate}
#voice-dialog[open]{display:flex;flex-direction:column}#voice-dialog::backdrop{background:#f6f9fc}#voice-dialog .vc-aura{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 12% 99%,rgba(var(--vc-blue),.28),transparent 59%),radial-gradient(ellipse at 95% 86%,rgba(var(--vc-sky),.18),transparent 55%)}
#voice-dialog :is(button,a){border:0;box-shadow:none;text-decoration:none;outline:none;color:inherit}#voice-dialog :is(button,a):focus-visible,.vc-expert-dialog button:focus-visible,#voice-restore:focus-visible{outline:2px solid #69a9df;outline-offset:4px}#voice-dialog button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#voice-dialog button:disabled{cursor:default;opacity:.45}#voice-dialog .vc-icon{width:44px;height:44px;min-width:44px;border-radius:50%;display:inline-grid;place-items:center;background:none;padding:0}#voice-dialog svg{width:23px;height:23px;display:block;flex:none}.vc-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:5px;width:min(100%,900px);margin:0 auto;padding:max(23px,env(safe-area-inset-top)) 30px 16px;flex:none}.vc-heading{text-align:center;min-width:0}#voice-dialog .vc-expert{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;max-width:100%;padding:8px 18px;border-radius:28px;background:#ffffff80;font-size:19px;font-weight:550;backdrop-filter:blur(14px)}#voice-expert-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#voice-expert>span:last-child{color:var(--vc-muted);font-size:14px}.vc-heading p{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;line-height:1.5;color:var(--vc-muted);margin:10px 0 0}.vc-heading time{font-variant-numeric:tabular-nums}.vc-status-dot{width:5px;height:5px;flex:none;border-radius:50%;background:#99a6b2}.vc-status-dot.ready{background:#4a9ce0}
#voice-captions.vc-captions{flex:1;min-height:0;width:min(100%,840px);margin:0 auto;padding:30px 40px 20px;overflow:auto;max-height:none;scrollbar-width:thin;mask-image:linear-gradient(#000 0 calc(100% - 18px),transparent 100%)}.vc-caption{margin:0 0 28px;overflow-wrap:anywhere}.vc-caption[data-role=user]{display:flex;flex-direction:column;align-items:flex-end}.vc-caption .vc-text{font-size:21px;line-height:1.95;white-space:pre-wrap;letter-spacing:.1px}.vc-caption[data-role=user] .vc-text{font-size:18px;line-height:1.7;padding:12px 18px;border-radius:21px 21px 6px 21px;background:#e6eff8c7;max-width:89%}.vc-who{display:flex;align-items:center;gap:7px;color:var(--vc-muted);font-size:10px;line-height:1.6;margin-bottom:9px}.vc-footer{flex:none;width:min(100%,650px);padding:10px 25px max(24px,env(safe-area-inset-bottom));margin:0 auto;text-align:center}#voice-dialog .vc-speaking{background:none;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;min-height:108px;max-width:100%;padding:10px;border-radius:20px;margin:0 auto 26px}#voice-dialog .vc-speaking:disabled{opacity:1}.vc-wave{display:flex;align-items:center;gap:4px;height:30px;margin-bottom:13px;color:rgb(var(--vc-blue))}.vc-wave i{display:block;width:3px;height:8px;border-radius:5px;background:currentColor;animation:vc-sound 1.05s ease-in-out infinite alternate;opacity:.9}.vc-wave i:nth-child(2n){height:19px;animation-delay:-.25s}.vc-wave i:nth-child(3n){height:25px;animation-delay:-.65s}.vc-wave i:nth-child(5){height:30px;animation-delay:-.45s}.vc-speaking strong{font-size:15px;line-height:1.7;font-weight:500;letter-spacing:.2px}.vc-speaking small{font-size:11px;line-height:1.8;color:var(--vc-muted);margin-top:5px}.vc-controls{display:flex;justify-content:center;gap:45px}.vc-controls>div{display:flex;flex-direction:column;align-items:center;gap:10px}#voice-dialog .vc-circle{width:62px;height:62px;border-radius:50%;padding:0;display:grid;place-items:center;background:var(--vc-fill);backdrop-filter:blur(16px);transition:background .15s,transform .15s}#voice-dialog .vc-circle:hover{background:#ffffffdc;transform:translateY(-2px)}#voice-dialog .vc-circle svg{width:25px;height:25px}#voice-dialog .vc-circle.vc-hangup{color:#da695c;background:#fff1edb8}#voice-dialog .vc-hangup svg{width:28px;height:28px}#voice-dialog #voice-mute[aria-pressed=true]{background:#335572;color:white}.vc-controls>div>span{font-size:11px;line-height:1.6;color:var(--vc-muted)}#voice-dialog .vc-record-link{display:block;font-size:10px;line-height:1.7;color:#8ca8be;margin:27px 0 0}#voice-dialog .vc-retry{border-radius:15px;min-height:42px;background:#335572;color:#fff;font-size:13px;padding:9px 19px;margin:0 auto 18px}#voice-dialog .vc-work-link{display:block;font-size:12px;line-height:1.8;color:#3d78aa;margin:0 0 17px}.vc-quiet{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.vc-quiet>span{display:grid;place-items:center;width:105px;height:105px;border-radius:50%;background:#c1e5ff45;color:#5aa9e7;box-shadow:0 0 50px #91d2ff30;margin-bottom:26px}.vc-quiet h2{font-size:22px;font-weight:500;margin:0}.vc-quiet p{font-size:11px;color:var(--vc-muted);margin-top:13px}
#voice-floating.vc-floating{width:94px;padding-right:0;position:fixed;z-index:45;right:max(18px,env(safe-area-inset-right));bottom:calc(112px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:0;color:#eef8ff;font-size:11px}#voice-floating[hidden]{display:none!important}.vc-floating-hint{position:absolute;right:0;bottom:100%;margin-bottom:7px;max-width:min(220px,calc(100vw - 32px));color:var(--chat-muted,#7c91a3);font-size:11px;line-height:1.6;padding:8px 12px;border-radius:14px;background:var(--panel,#fff);box-shadow:0 3px 18px #1c385008;pointer-events:none}#voice-floating .rp-mini-mark:before{background:radial-gradient(ellipse,#8fcefa40,transparent 70%)}#voice-floating .vc-mini-phone{background:linear-gradient(110deg,#edf7ff,#a9cfee);color:#487a9e;box-shadow:0 2px 6px #213c581c}#voice-floating .vc-mini-phone svg{width:17px;height:17px}#voice-floating .rp-mini-copy{background:#293b4df2}#voice-floating .rp-mini-label{color:#c3d8e9}#voice-floating .rp-mini-time{color:#eef7ff}#voice-floating[data-muted=true] .vc-mini-phone{filter:saturate(.3)}#voice-dialog[data-muted=true] .vc-wave i{height:4px;animation:none}#voice-dialog[data-phase=connecting] .vc-wave,#voice-dialog[data-phase=switching] .vc-wave{color:#99afc2}#voice-dialog[data-phase=failed] .vc-wave i{height:4px;animation:none}
.vc-expert-dialog{width:min(440px,calc(100% - 32px));border:0;border-radius:28px;padding:25px;background:var(--panel,#fff);color:var(--chat-text,#293343)}.vc-expert-dialog::backdrop{background:#16314e35;backdrop-filter:blur(7px)}.vc-expert-dialog header{display:flex;align-items:center;gap:12px;margin-bottom:17px}.vc-expert-dialog h2{font-size:22px;font-weight:550;margin:0}.vc-expert-dialog header p{font-size:10px;color:var(--chat-muted);margin:0 0 9px}.vc-expert-dialog header>button{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;border:0;background:none;color:inherit}.vc-expert-dialog svg{width:21px;height:21px}.vc-expert-option{display:flex;align-items:center;gap:13px;width:100%;padding:12px;min-height:64px;text-align:left;border:0;border-radius:16px;background:none;color:inherit}.vc-expert-option[aria-checked=true]{background:#e9f2fa}.vc-expert-avatar{display:grid;place-items:center;width:39px;height:39px;flex:none;border-radius:14px;background:#e5eff8;color:#718ba2;font-size:14px}.vc-expert-option>span:nth-child(2){flex:1;min-width:0}.vc-expert-option strong{display:block;font-size:14px;font-weight:500;line-height:1.6}.vc-expert-option small{display:block;font-size:10px;line-height:1.5;color:var(--chat-muted);margin-top:5px}.vc-expert-option>span:last-child{color:#649ed0;font-size:15px}.vc-expert-dialog .vc-switch-note{font-size:10px;color:var(--chat-muted);text-align:center;margin-top:23px}.vc-sheet-handle{display:none}.voice-message-record{margin:0 0 25px}.voice-message-record .vc-who{color:var(--chat-muted,#8c9383)}.voice-message-record .vc-text{font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.voice-message-record[data-role=user]{display:flex;justify-content:flex-end}.voice-message-record[data-role=user] .vc-text{padding:11px 17px;border-radius:22px 22px 7px 22px;background:#ebebeb;color:#292b27;max-width:84%;font-size:16px;line-height:1.65}.expert-voice-settings{background:var(--panel,#fff);padding:22px;border-radius:21px;margin-top:24px}.expert-voice-settings h3{font-size:16px;margin:0 0 10px}.expert-voice-settings p{font-size:11px;line-height:1.8;color:var(--chat-muted)}.expert-voice-settings label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px;margin:20px 0}.expert-voice-settings select{height:44px;max-width:65%;border:0;border-radius:13px;background:var(--composer-hover,#eef3ee);font-size:12px;padding:0 10px}.expert-voice-settings button{min-height:44px;border:0;border-radius:14px;font-size:13px}.expert-voice-settings .voice-save-result{color:#487fa9}
:root[data-theme=dark] #voice-dialog{--vc-blue:42,144,245;--vc-sky:43,180,245;--vc-ink:#e3ebf4;--vc-muted:#a1bbd1;--vc-fill:#ffffff0e;background:linear-gradient(180deg,#131a23,#16283d 45%,#183955 78%,#174767)}:root[data-theme=dark] #voice-dialog .vc-aura{background:radial-gradient(ellipse at 12% 100%,rgba(var(--vc-blue),.17),transparent 62%),radial-gradient(ellipse at 100% 80%,rgba(var(--vc-sky),.13),transparent 60%)}:root[data-theme=dark] #voice-dialog .vc-expert{background:#ffffff09}:root[data-theme=dark] .vc-caption[data-role=user] .vc-text{background:#30465da8}:root[data-theme=dark] .vc-wave{color:#89caff}:root[data-theme=dark] #voice-dialog .vc-circle.vc-hangup{color:#f0a092;background:#bd6a5b1a}:root[data-theme=dark] #voice-dialog .vc-circle:hover{background:#ffffff18}:root[data-theme=dark] .vc-expert-avatar{background:#304356;color:#a8cce9}:root[data-theme=dark] .vc-expert-option[aria-checked=true]{background:#2b3e52}:root[data-theme=dark] .voice-message-record[data-role=user] .vc-text{background:#2b2c29;color:#e3ebf4}
@keyframes vc-sound{from{transform:scaleY(.55);opacity:.55}to{transform:scaleY(1);opacity:1}}
.vc-work-action{display:block;width:fit-content;max-width:100%;margin:8px 0 18px;padding:10px 0;font-size:12px;color:var(--chat-muted);text-decoration:none;overflow-wrap:anywhere}.vc-work-action:hover{text-decoration:underline}
@media(max-width:900px){.vc-header{padding:max(17px,env(safe-area-inset-top)) 16px 14px;gap:3px}#voice-dialog .vc-expert{font-size:17px;padding:8px 14px;gap:8px}#voice-captions.vc-captions{padding:30px 24px 18px}.vc-caption .vc-text{font-size:20px}.vc-caption[data-role=user] .vc-text{font-size:17px;max-width:92%;padding:11px 16px}.vc-footer{padding:8px 20px max(23px,env(safe-area-inset-bottom))}.vc-controls{gap:43px}#voice-dialog .vc-circle{width:61px;height:61px}.vc-expert-dialog{width:100%;margin:auto 0 0;max-height:calc(100dvh - 30px);border-radius:29px 29px 0 0;padding:14px 20px max(23px,env(safe-area-inset-bottom))}.vc-sheet-handle{display:block;width:31px;height:4px;border-radius:3px;background:#b7c9da;margin:0 auto 24px}.vc-expert-option strong{font-size:13px}.expert-voice-settings{padding:20px 17px}}
@media(max-width:350px){.vc-header{padding-inline:9px}#voice-dialog .vc-expert{font-size:15px;padding-inline:10px}#voice-captions.vc-captions{padding-inline:20px}.vc-caption .vc-text{font-size:18px}.vc-caption[data-role=user] .vc-text{font-size:16px}.vc-controls{gap:35px}#voice-dialog .vc-circle{width:58px;height:58px}}
@media(max-height:680px){.vc-header{padding-top:12px;padding-bottom:9px}.vc-heading p{margin-top:6px}#voice-captions.vc-captions{padding-top:17px}.vc-caption .vc-text{font-size:18px;line-height:1.8}.vc-caption[data-role=user] .vc-text{font-size:16px}.vc-footer{padding-bottom:13px}#voice-dialog .vc-speaking{min-height:77px;margin-bottom:13px;padding-block:6px}.vc-wave{height:23px;margin-bottom:6px}.vc-wave i{max-height:22px}#voice-dialog .vc-circle{width:54px;height:54px}.vc-controls>div{gap:7px}#voice-dialog .vc-record-link{margin-top:16px}}
@media(max-height:460px) and (min-width:600px){.vc-header{padding-top:6px;padding-bottom:2px;max-width:700px}#voice-dialog .vc-expert{font-size:15px;min-height:34px;padding-block:5px}.vc-heading p{font-size:9px;margin-top:3px}#voice-captions.vc-captions{padding:16px 30px 8px;max-width:700px}.vc-caption .vc-text{font-size:16px;line-height:1.7}.vc-caption[data-role=user] .vc-text{font-size:15px}.vc-caption{margin-bottom:16px}.vc-footer{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;padding:3px 32px 8px;max-width:700px}#voice-dialog .vc-speaking{margin:0;min-height:52px}.vc-speaking strong{font-size:12px}.vc-speaking small{font-size:9px}.vc-wave{height:15px;margin-bottom:3px}.vc-wave i{max-height:15px}.vc-controls{gap:25px}#voice-dialog .vc-circle{width:44px;height:44px}.vc-controls>div{gap:4px}.vc-controls>div>span{font-size:9px}#voice-dialog .vc-record-link{grid-column:1/-1;font-size:8px;margin-top:7px}.vc-quiet{flex-direction:row;gap:20px}.vc-quiet>span{width:60px;height:60px;margin:0}.vc-quiet h2{font-size:18px}.vc-quiet p{display:none}}
@media(prefers-reduced-motion:reduce){.vc-wave i{animation:none!important}}

#voice-floating[data-phase=failed] .vc-mini-phone{background:#f2e2da;color:#9a6251}#voice-floating[data-phase=failed] .rp-mini-mark:before{background:none}
