/* Shared voice UI and lobby. */
.voice-screen-audio-info{padding:12px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.voice-screen-audio-info p{margin:0 0 9px;line-height:1.5}.voice-screen-audio-info meter{display:block;width:100%;height:7px;accent-color:var(--accent)}.voice-screen-audio-info button{margin-top:10px;padding:9px 12px;border:1px solid var(--accent);border-radius:9px;color:var(--accent);background:var(--bg);font:inherit;font-size:12px}
.voice-listen-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:9px;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--muted);font:inherit;font-size:11px;cursor:pointer}.voice-listen-button:before{content:'';width:14px;height:14px;background:currentColor;mask:url('assets/voice/headphones.svg') center/contain no-repeat}.voice-listen-button:hover{color:var(--accent);border-color:var(--accent)}.voice-listen-button.is-muted{color:#e88080}.voice-volume-label{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px}.voice-volume-label label{margin:0}.voice-volume-label output{color:var(--accent);font-variant-numeric:tabular-nums}.voice-page input[type=range]{padding:0;height:24px;border:0;accent-color:var(--accent);cursor:pointer}.voice-listening-actions{display:flex;gap:10px;margin-top:24px}.voice-listening-actions button{padding:11px 16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:13px}.voice-listening-actions button[aria-pressed=true]{border-color:#e88080;color:#e88080}.voice-listening-modal .voice-hint{margin-top:20px}
.voice-page{max-width:1120px;padding-block:48px 64px;min-height:75vh}
.voice-heading{margin-bottom:34px}.voice-heading h1{font-size:clamp(36px,5vw,58px);letter-spacing:-2px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.voice-heading>p:last-child{color:var(--muted);font-size:17px}.voice-beta{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--accent);border:1px solid var(--accent);border-radius:20px;padding:6px 9px}
.voice-page label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}.voice-page input,.voice-page select{font:inherit;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;padding:12px 14px;width:100%;min-width:0}.voice-page input:focus,.voice-page textarea:focus{outline:2px solid var(--accent);outline-offset:2px}.voice-page button:disabled{opacity:.45;cursor:not-allowed}.voice-page button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.voice-page [hidden]{display:none!important}
.voice-name{max-width:360px;margin-bottom:24px}.voice-panels{display:grid;grid-template-columns:1fr 1fr;gap:22px}.voice-panel{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:28px}.voice-glyph{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#2588fc1c;color:var(--accent);font-size:28px;margin-bottom:20px}.voice-panel h2{font-size:27px;letter-spacing:-.8px}.voice-panel p{color:var(--muted);font-size:14px;margin-bottom:24px}.voice-panel .button{width:100%;margin-top:16px;border:0}.voice-panel select{margin:8px 0 2px}.voice-panel #voice-title{margin-bottom:18px}.voice-secondary{background:var(--surface-hover);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}#voice-code{letter-spacing:.6px}.voice-hint{font-size:12px;color:var(--muted);line-height:1.6;margin-top:16px}.voice-hint+.voice-hint{margin-top:5px}.voice-message{padding:12px 16px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-size:13px;margin-bottom:20px}.voice-message.error{border-color:#dd645977;color:#e88074}
.voice-in-call .voice-heading{display:none}.voice-in-call .voice-page{padding-top:24px}.voice-in-call .voice-message{font-size:12px;padding:10px 14px;margin-bottom:16px}
/* Room directory. */
.voice-directory{margin:24px 0;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.voice-directory-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.voice-directory-heading h2{font-size:24px}.voice-directory button,.voice-hotkey-row button{padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font:inherit;font-size:13px}.voice-directory-filters{display:flex;gap:9px;margin:18px 0}.voice-directory button[aria-pressed=true],.voice-hotkey-row button[aria-pressed=true]{background:var(--button);color:#fff}#voice-directory-status{font-size:13px;color:var(--muted)}.voice-room-list{list-style:none;padding:0;margin:16px 0 0}.voice-room-list li{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:16px 0}.voice-room-list li>div{min-width:0}.voice-room-list strong{display:block;overflow-wrap:anywhere}.voice-room-list span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.voice-room-list button{flex-shrink:0;color:var(--accent)}
/* Compact call area, above the conversation. */
.voice-call-top{padding:22px 26px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}.voice-room-head{display:flex;justify-content:space-between;gap:24px;align-items:center}.voice-room-head h2{font-size:23px;letter-spacing:-.6px;overflow-wrap:anywhere}.voice-room-head .eyebrow{font-size:10px;margin-bottom:7px}#voice-connection{color:var(--muted);font-size:12px;margin:7px 0 0}.voice-invite>span{font-size:11px;color:var(--muted)}.voice-invite button{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:9px 12px;border-radius:10px;margin-top:6px}.voice-invite strong{font:600 14px ui-monospace,monospace;letter-spacing:1px}.voice-copy-icon{width:16px;height:16px;background:currentColor;mask:url('assets/voice/copy.svg') center/contain no-repeat}
.voice-members{list-style:none;padding:0;margin:26px 0 22px;display:flex;justify-content:center;gap:20px;flex-wrap:wrap}.voice-member{width:132px;padding:8px;text-align:center;overflow-wrap:anywhere}.voice-avatar{display:grid;place-items:center;margin:0 auto 12px;background:linear-gradient(140deg,#237edd,#15b7b2);color:#fff;font-size:23px;font-weight:600;border-radius:50%;width:64px;height:64px;box-shadow:0 0 0 4px var(--bg)}.voice-member strong{display:block;font-size:13px;font-weight:600}.voice-member small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.voice-member.speaking .voice-avatar{box-shadow:0 0 0 3px #38c989,0 0 20px #38c98930}
.voice-toolbar{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}.voice-controls{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px;border:1px solid var(--line);border-radius:15px;background:var(--bg)}.voice-control-divider{width:1px;height:22px;background:var(--line);margin:0 4px}
.voice-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text);font-size:0!important;line-height:1}.voice-icon-button:before{content:'';display:block;width:20px;height:20px;background:currentColor;mask:var(--voice-icon) center/contain no-repeat}.voice-icon-button:hover{background:var(--surface-hover)}
#voice-mic{--voice-icon:url('assets/voice/mic-off.svg');color:#ec959d}#voice-mic[aria-pressed=true]{--voice-icon:url('assets/voice/mic.svg');color:var(--text)}#voice-deafen{--voice-icon:url('assets/voice/headphones.svg')}#voice-deafen[aria-pressed=true]{--voice-icon:url('assets/voice/headphones-off.svg');color:#ec959d}#voice-chat-jump{--voice-icon:url('assets/voice/chat.svg')}#voice-browse-call{--voice-icon:url('assets/voice/grid.svg')}#voice-settings-open,#voice-demo-options{--voice-icon:url('assets/voice/settings.svg')}#voice-leave{--voice-icon:url('assets/voice/leave.svg');background:#d9384d;color:#fff}#voice-leave:hover{background:#bd263a}.voice-modal-close{--voice-icon:url('assets/voice/close.svg')}
.voice-share-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:54px;padding:0 18px;border:1px solid #3290ff;border-radius:14px;background:var(--button);color:#fff;font-size:13px;font-weight:600}.voice-share-button:before{content:'';width:20px;height:20px;background:currentColor;mask:url('assets/voice/screen.svg') center/contain no-repeat}.voice-share-button:hover{filter:brightness(1.1)}.voice-share-button[aria-pressed=true]{background:#6c2632;border-color:#b45161}#voice-play{display:block;margin:16px auto 0}
/* Demonstrations have their own area and setup dialog. */
.voice-screens{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.voice-demo-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.voice-demo-heading h3{font-size:15px;margin:0}.voice-screen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.voice-screen-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--bg);min-width:0}.voice-screen-card h3{font-size:12px;font-weight:500;padding:10px 14px;margin:0;color:var(--muted)}.voice-screen-card video{width:100%;aspect-ratio:16/9;object-fit:contain;background:#07090d;display:block}.voice-screens .voice-hint{font-size:11px;margin-bottom:0}
/* Full-width chat below the call controls. */
.voice-chat{border:1px solid var(--line);border-radius:20px;margin-top:22px;background:var(--surface);overflow:hidden}.voice-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}.voice-chat-heading h2{font-size:21px;letter-spacing:-.5px}.voice-chat-heading span{font-size:11px;color:var(--muted)}.voice-chat-scroll{position:relative;background:var(--bg)}.voice-chat-log{list-style:none;padding:0 24px;margin:0;height:clamp(300px,43vh,540px);overflow:auto;overscroll-behavior:contain}.voice-chat-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;margin:0;padding:24px;pointer-events:none;text-align:center;color:var(--muted);font-size:13px}.voice-chat-empty strong{font-size:16px;font-weight:500;color:var(--text)}.voice-empty-chat-icon{width:42px;height:42px;background:var(--muted);opacity:.5;mask:url('assets/voice/chat.svg') center/contain no-repeat;margin-bottom:5px}.voice-chat-message{border-bottom:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere}.voice-chat-message>div{display:flex;align-items:center;gap:12px}.voice-chat-message strong{font-size:13px;color:var(--text)}.voice-chat-message time{color:var(--muted);font-size:10px}.voice-chat-message p{white-space:pre-wrap;font-size:14px;margin:7px 0;color:var(--text)}.voice-chat-message img{max-width:min(100%,500px);max-height:340px;object-fit:contain;border-radius:10px;display:block;margin-top:12px;border:1px solid var(--line)}.voice-image-error{font-size:12px;color:var(--muted)}
#voice-chat-form{padding:16px 20px 10px;border-top:1px solid var(--line)}.voice-composer{display:flex;align-items:flex-end;gap:9px;border:1px solid var(--line);border-radius:13px;background:var(--bg);padding:8px}.voice-page textarea{display:block;flex:1;min-width:0;resize:vertical;min-height:48px;max-height:180px;padding:12px 5px;border:0;background:transparent;color:var(--text);font:inherit;font-size:14px;line-height:1.5}.voice-page textarea:focus{outline:none}.voice-composer:focus-within{outline:2px solid var(--accent);outline-offset:1px}#voice-attach{--voice-icon:url('assets/voice/attach.svg');color:var(--muted)}#voice-chat-send{--voice-icon:url('assets/voice/send.svg');background:var(--button);color:#fff}.voice-composer-hint{font-size:10px;color:var(--muted);margin:9px 2px 3px}.voice-attachment{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;padding:10px;background:var(--bg);border-radius:8px;margin-top:10px;overflow-wrap:anywhere}.voice-attachment button{border:0;background:none;color:var(--accent)}.voice-call-footnote{text-align:center;font-size:11px}.voice-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Settings stay outside the main call layout. */
.voice-modal{width:520px;max-width:calc(100% - 30px);max-height:86dvh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 20px 80px #0006}.voice-modal::backdrop{background:#0009;backdrop-filter:blur(5px)}.voice-modal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.voice-modal-heading .eyebrow{font-size:10px;margin:0 0 8px}.voice-modal h2{font-size:26px;letter-spacing:-.7px}.voice-modal-heading .voice-modal-close{width:32px;height:32px;margin:-5px -6px 0 0;color:var(--muted)}.voice-bind-setting{margin-top:24px}.voice-hotkey-row{display:flex;gap:8px;flex-wrap:wrap}.voice-diagnostics{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.voice-diagnostics summary{font-size:13px;color:var(--muted);cursor:pointer}.voice-audio-status{padding:14px 0 0}.voice-audio-status meter{width:100%;height:12px;accent-color:var(--accent)}.voice-audio-status p{color:var(--muted);font-size:11px;margin:8px 0}.voice-close-room{color:#e98176;border:0;background:none;font-size:12px;padding:0;margin-top:24px}.voice-demo-preview{height:110px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-bottom:18px}.voice-demo-preview:before{content:'';width:52px;height:52px;background:var(--accent);mask:url('assets/voice/screen.svg') center/contain no-repeat}.voice-demo-explanation{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 20px}.voice-share-audio{display:flex!important;align-items:center;gap:10px;margin:16px 0 0!important}.voice-share-audio input{width:17px!important;height:17px;accent-color:var(--accent);padding:0!important}#voice-share-start{width:100%;margin-top:22px;border:0}.voice-modal .voice-hint{font-size:11px}.voice-close-confirm p{font-size:14px;color:var(--muted);margin:16px 0 24px}.voice-confirm-actions{display:flex;justify-content:flex-end;gap:10px}.voice-confirm-actions button{padding:11px 15px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font-size:13px}#voice-close-confirm{background:#d9384d;color:#fff;border-color:#d9384d}
@media(max-width:1000px){.header nav{gap:16px;font-size:13px}.header .brand{font-size:20px}.theme-label{display:none}}
@media(max-width:700px){.voice-page{padding-top:28px}.voice-heading h1{font-size:36px;letter-spacing:-1.5px;gap:10px}.voice-heading>p:last-child{font-size:15px}.voice-name{max-width:none}.voice-panels{grid-template-columns:1fr}.voice-panel{padding:24px}.voice-call-top{padding:18px 14px}.voice-room-head{align-items:flex-start;flex-wrap:wrap;gap:15px}.voice-room-head h2{font-size:21px}.voice-invite{width:100%}.voice-invite button{margin-top:6px;display:inline-flex}.voice-invite>span{margin-right:9px}.voice-members{gap:4px;margin:20px 0 18px}.voice-member{width:96px;padding:7px 4px}.voice-avatar{width:54px;height:54px;font-size:20px}.voice-member strong{font-size:12px}.voice-toolbar{gap:10px}.voice-controls{gap:2px;padding:5px}.voice-controls .voice-icon-button{width:35px;height:38px}.voice-control-divider{margin:0 2px}.voice-share-button{height:44px;width:100%;font-size:13px;border-radius:11px}.voice-chat-heading{padding:16px;align-items:flex-start;flex-direction:column;gap:6px}.voice-chat-heading h2{font-size:20px}.voice-chat-log{height:360px;padding:0 16px}.voice-chat-empty{font-size:12px}.voice-chat-empty strong{font-size:15px}#voice-chat-form{padding:12px 12px 8px}.voice-composer{gap:5px;padding:6px}.voice-composer .voice-icon-button{width:34px;height:38px}.voice-page textarea{font-size:13px;min-height:44px;padding:9px 3px}.voice-composer-hint{font-size:9px;line-height:1.6}.voice-modal{padding:22px}.voice-modal h2{font-size:24px}.voice-directory{padding:20px 16px}.voice-directory-heading h2{font-size:22px}.voice-room-list li{gap:12px}.voice-room-list strong{font-size:14px}.header nav{justify-content:space-between;gap:8px;font-size:12px;width:100%}}
/* Persistent call bar while browsing other site pages. */
.voice-browsing{overflow:hidden}.voice-browsing>.header,.voice-browsing>main,.voice-browsing>.footer,.voice-browsing>.skip,.voice-browsing>.load-error{display:none!important}.voice-site-frame{position:fixed;inset:0 0 auto;width:100%;height:calc(100dvh - var(--voice-mini-height,80px));border:0;background:var(--bg);z-index:90}.voice-mini-call{position:fixed;bottom:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px max(20px,calc((100vw - 1120px)/2));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 25px #0002}.voice-mini-call>div:first-child{min-width:0}.voice-mini-call strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.voice-mini-call span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.voice-mini-actions{display:flex;gap:8px;flex-shrink:0}.voice-mini-actions button{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:10px;padding:10px 13px;font-size:13px}.voice-mini-actions button[aria-pressed=true]{background:var(--button);color:#fff}.voice-mini-actions #voice-mini-leave{color:#e98176}.voice-site-frame[hidden],.voice-mini-call[hidden]{display:none!important}@media(max-width:700px){.voice-mini-call{align-items:stretch;flex-direction:column;gap:10px;padding:12px 15px}.voice-mini-actions button{flex:1;font-size:12px;padding:9px 8px}}

.voice-noise-setting{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.voice-noise-setting .voice-hint{margin:10px 0 0}.voice-noise-status{font-size:11px;line-height:1.6;color:var(--accent);margin:10px 0 0}.voice-noise-limit{font-size:10px;line-height:1.6;color:var(--muted);margin:8px 0 0}
