:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eaf1e8;background:#0a100e;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #34483a;border-radius:12px;padding:11px 15px;background:#1b2b21;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #c1ed9e;outline-offset:3px}.app{max-width:900px;margin:auto;padding:env(safe-area-inset-top) 24px max(20px,env(safe-area-inset-bottom));min-height:100dvh}header{height:82px;display:flex;align-items:center;justify-content:space-between}header>div{text-align:center}header b{font-size:13px;letter-spacing:4px}header #status{display:block;color:#8ca393;font-size:10px;margin-top:6px}header button{background:transparent;font-size:12px}#count{color:#c1ed9e}.avatar{position:relative;min-height:340px;height:clamp(340px,55dvh,650px);border:1px solid #334f3b;background:radial-gradient(ellipse at 50% 40%,#2f4b36,#13241c 65%,#0d1913);border-radius:24px;overflow:hidden;display:flex;flex-direction:column}.scene-label{position:absolute;top:18px;left:18px;right:18px;z-index:2;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.badge,#stream-badge{font-size:9px;letter-spacing:1px;background:#0c181ccc;border:1px solid #496348;border-radius:6px;padding:7px;color:#c1ed9e}#idle-avatar{margin:auto;text-align:center}.orb{margin:auto;width:90px;height:90px;border-radius:50%;display:grid;place-items:center;font-size:50px;color:#c9eab1;background:radial-gradient(circle at 30% 20%,#71955e,#304d36);box-shadow:0 0 85px #9ac47022}h1{font-size:30px;line-height:1.35;font-weight:500;letter-spacing:-1px;margin:18px 0 10px}#idle-avatar p{font-size:12px;color:#98b09b;line-height:1.8}#stream-player{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}#stream-player:empty{display:none}#stream-player video{width:100%;height:100%;object-fit:contain}#stream-player audio{width:80%;margin-top:150px}.scene-bottom{position:absolute;bottom:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2}#stream-status{font-size:11px;white-space:pre-line;line-height:1.6;background:#0a140cba;padding:9px;border-radius:8px}#stream-stop{font-size:10px;flex-shrink:0;background:#112017e6}progress{position:absolute;bottom:0;width:100%;height:3px;border:0;accent-color:#c1ed9e}.telemetry{padding:14px 2px;border-bottom:1px solid #25382c}summary{cursor:pointer;font-size:11px;color:#b3c4b4}summary span{float:right;color:#6f897a;font-size:10px}dl{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;font-size:10px;color:#9cb19e}dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}dt{color:#7c9584}.composer{padding:18px 0}.reply-options{display:flex;align-items:center;justify-content:center;gap:18px;font-size:12px;color:#b6cbb6}.reply-options>span{font-size:10px;color:#7f9b87}.reply-options label{display:flex;gap:7px;align-items:center}.reply-options input{accent-color:#bbe995;width:18px;height:18px}.input-actions{display:flex;gap:12px;align-items:center;justify-content:center;margin-top:18px}.input-actions button{min-height:52px;font-size:18px}.input-actions span{font-size:11px}#mic{background:#c1ed9e;color:#152619;border:0;min-width:155px}#mic[aria-pressed=true]{background:#efaa91}#hint{text-align:center;font-size:11px;color:#8ca393;min-height:18px;line-height:1.6}.error{color:#ffb79e!important}#hint.warn{color:#f2c46d}form{display:flex;gap:8px;margin-top:14px}input,select{min-width:0;border:1px solid #34483a;background:#111e16;color:inherit;padding:12px;border-radius:10px}form input{flex:1;font-size:12px}form button{font-size:12px}dialog{color:inherit;background:#101c15;border:1px solid #34483a}dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}.drawer{position:fixed;inset:0;max-height:100dvh;height:100dvh;width:min(390px,92vw);max-width:92vw;margin:0;padding:25px;overflow-y:auto}.drawer.left{right:auto;border-radius:0 20px 20px 0}.drawer.right{left:auto;border-radius:20px 0 0 20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px}h2{font-size:18px;font-weight:550;margin:0}.panel-head small{display:block;font-size:10px;margin-top:8px;color:#829d8b}.panel-head button{background:transparent;border:0}.drawer p{font-size:12px;color:#94aa99;line-height:1.8}.drawer>label{display:block;font-size:11px;color:#a5b9aa;margin:20px 0 8px}.drawer>input,.drawer>select{width:100%;font-size:12px}.primary{width:100%;background:#c1ed9e;color:#182b1d;margin-top:20px}.note{border-top:1px solid #2a3d30;padding-top:18px}.drawer pre{font-size:9px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}.message{margin:12px 0;padding:13px;border:1px solid #2f4635;background:#192b1e;border-radius:14px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.message.user{margin-left:35px;background:#bddda7;color:#17291d}.message.server{margin-right:25px}.message.push{color:#9db69f;border-style:dashed}.message small{display:block;font-size:9px;opacity:.7;margin-bottom:6px}.message .state{display:block;font-size:10px;opacity:.7;margin-top:8px}.message img,.message video{max-width:100%;max-height:220px;border-radius:8px;margin-top:10px}.message audio{width:100%;margin-top:10px}.camera-dialog{width:min(450px,94vw);border-radius:20px;padding:20px}.camera-dialog video{width:100%;border-radius:12px}.empty{text-align:center;padding:40px 0}@media(max-width:520px){.app{padding-left:14px;padding-right:14px}header{height:66px}.avatar{height:52dvh;min-height:330px}.input-actions{gap:7px}.input-actions button{padding:12px 9px}#mic{min-width:135px}.scene-label{left:12px;right:12px}.scene-bottom{left:12px;right:12px}h1{font-size:26px}.scene-label span{font-size:8px}}

#stream-player .avatar-canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#stream-player .avatar-resume{position:absolute;top:58px;right:14px;z-index:3;font-size:10px;padding:8px;background:#112017c9}

#idle-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#idle-video[hidden]{display:none}#playback-debug{white-space:pre-wrap;font-size:11px;max-height:160px;overflow:auto}

#idle-video:not([hidden])~#stream-player .avatar-canvas{visibility:hidden}

#idle-composite{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#idle-composite[hidden]{display:none}#idle-composite:not([hidden])~#stream-player .avatar-canvas{visibility:hidden}#idle-background-status{display:block;font-size:11px;color:#a6b5a6;margin:6px 0}

.receive-sizes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.receive-sizes>div{padding:10px 12px;border:1px solid;border-radius:12px;min-width:0}.receive-sizes span{display:block;font-size:12px;margin-bottom:4px}.receive-sizes strong{display:block;font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.size-audio{background:#102c40;color:#8bd7ff;border-color:#357da7!important}.size-video{background:#2e1d41;color:#ddbcff;border-color:#8055a5!important}.receive-sizes>small{grid-column:1/-1;color:#a9b6ad;font-size:11px}

#engine-avatar{position:absolute;inset:0;pointer-events:none;background:#0a100e}#engine-avatar[hidden]{display:none}

#receive-size-sentences{grid-column:1/-1;margin:0;padding:0;list-style:none;max-height:220px;overflow:auto;font-size:12px;font-variant-numeric:tabular-nums;color:#ddbcff}#receive-size-sentences li{padding:6px 4px;border-bottom:1px solid #344338}

/* Conversation surface and optional control panels. */
.app{max-width:1100px}header{gap:12px}header>div{margin-right:auto;text-align:left}.view-actions{display:flex;gap:8px}header b{letter-spacing:3px}.avatar{height:calc(100dvh - 270px);min-height:360px}.composer{max-width:740px;margin:auto;padding:12px 0}.input-actions{margin:0;flex-wrap:wrap}.input-actions button{min-height:44px}#stream-stop{order:4}.drawer{width:min(450px,94vw);max-width:94vw;padding:max(22px,env(safe-area-inset-top)) 22px max(22px,env(safe-area-inset-bottom))}.settings-group{margin-top:26px;border-top:1px solid #34483a;padding-top:16px}.settings-group h3{font-size:14px}.settings-group>label{display:flex;flex-direction:column;gap:8px;margin:18px 0 6px;font-size:12px;color:#c0d2c3}.settings-group>label:has(input){flex-direction:row;align-items:center}.settings-group select{width:100%;font-size:12px}.settings-group small{font-size:11px;color:#8ca393;line-height:1.6;display:block}.settings-group .reply-options{justify-content:flex-start;flex-wrap:wrap}.debug-panel{width:min(720px,96vw);max-width:96vw}.debug-panel .scene-label,.debug-panel .scene-bottom{position:static;margin:12px 0;pointer-events:auto}.debug-panel #stream-status{width:100%;overflow-wrap:anywhere}.debug-panel h3{font-size:13px;margin-top:24px}.debug-panel pre{padding:12px;background:#08120d;border-radius:10px;max-height:240px}.debug-panel details{margin:18px 0}.debug-panel summary{font-size:13px}.debug-panel .telemetry{border:0}.debug-panel dl{font-size:12px}.debug-panel #mouth-summary{color:#c1ed9e}.debug-panel #export-debug{width:100%;margin:12px 0}.immersive{overflow:hidden}.immersive .app{padding:0;max-width:none}.immersive header,.immersive .composer{display:none}.immersive .avatar{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0;border:0;border-radius:0;cursor:pointer}.immersive .avatar progress,.immersive #idle-avatar,.immersive .avatar-resume{display:none!important}.immersive .avatar canvas,.immersive .avatar video{width:100%!important;height:100%!important;object-fit:cover!important}.immersive #stream-player audio{display:none}.immersive #engine-avatar{width:100%;height:100%}@media(max-width:600px){header{height:72px;gap:7px}header b{font-size:11px;letter-spacing:2px}header button{padding:9px 10px;font-size:11px}.view-actions{gap:5px}.avatar{height:calc(100dvh - 265px);min-height:320px;border-radius:18px}.app{padding-left:12px;padding-right:12px}.input-actions{gap:6px}.input-actions button{font-size:14px;padding:10px}#mic{min-width:125px}.debug-panel .receive-sizes strong{font-size:14px}}

.advanced-settings{margin-top:24px}.advanced-settings label{display:flex;flex-direction:column;gap:8px;margin-top:14px;font-size:12px}.settings-group h3:not(:first-child){border-top:1px solid #34483a;padding-top:20px;margin-top:24px}

#stream-player>button,#stream-player .avatar-resume{position:absolute;right:12px;bottom:12px;top:auto;z-index:5;max-width:calc(100% - 24px);font-size:11px;padding:8px 11px;background:#102019dc}#stream-player audio{position:absolute;bottom:12px;right:12px;width:min(300px,85%);margin:0;height:36px}#audio-only-message{display:none}.audio-only #audio-only-message{display:flex;position:absolute;inset:0;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#c1d6c4}.audio-only #audio-only-message span{font-size:12px;color:#8ca393}.audio-only .avatar video,.audio-only .avatar canvas,.audio-only #engine-avatar,.audio-only #idle-avatar,.audio-only progress{visibility:hidden!important}.audio-only .avatar{background:#0c1711}.view-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px){header{height:auto;min-height:84px;flex-wrap:wrap;padding:10px 0}.view-actions{margin-left:auto}header .view-actions button{padding:7px 9px}.avatar{height:calc(100dvh - 290px)}}

/* Window-sized avatar view. Default fit preserves the entire source frame. */
.immersive-tools,.mic-icon{display:none}.immersive .immersive-tools{display:flex;position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:20;flex-direction:column;align-items:center;gap:9px}.immersive-tools>button{width:38px;height:38px;padding:0;border-radius:50%;background:#102019c9;backdrop-filter:blur(8px);font-size:20px}.immersive-tools #zoom-reset{font-size:10px}.immersive #immersive-mic-slot #mic{display:grid;place-items:center;min-width:0;width:52px;height:52px;border-radius:50%;padding:13px;font-size:0;box-shadow:0 3px 18px #0005}.immersive #mic span{display:none}.immersive #mic .mic-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.immersive .avatar{background:#050a07;cursor:default}.immersive .avatar canvas,.immersive .avatar video{object-fit:contain!important}.immersive #engine-avatar,.immersive #idle-video,.immersive #idle-composite,.immersive #stream-player>video,.immersive #stream-player>canvas{transform:scale(var(--avatar-zoom,1));transform-origin:center center}.immersive #stream-player>button{right:82px;bottom:max(20px,env(safe-area-inset-bottom));display:block!important}.immersive .avatar-resume{right:82px!important;bottom:20px!important;display:block!important}

#avatar-alert{margin:12px 0;padding:14px 16px;border:1px solid #975b42;background:#351e16;border-radius:12px;color:#ffd2b7;font-size:12px}#avatar-alert[hidden]{display:none}#avatar-alert p{overflow-wrap:anywhere;line-height:1.6}#avatar-alert small{display:block;margin-top:10px;color:#cba28e}.immersive #avatar-alert{position:fixed;top:12px;left:12px;max-width:min(500px,calc(100vw - 24px));z-index:30}

.error-dot{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;z-index:40;display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:24px;background:#381a1be8;border:1px solid #d45a60;color:#ffd6d8}.error-dot[hidden]{display:none!important}.error-dot span{width:10px;height:10px;background:#ff535e;border-radius:50%;box-shadow:0 0 9px #ff535e88}.error-dot b{font-size:11px}.error-card{padding:13px;border:1px solid #814448;border-radius:12px;background:#28191a;margin:12px 0;overflow-wrap:anywhere}.error-card strong{color:#ffb5bb;font-size:13px}.error-card small{color:#a68e90}#error-panel>button{width:100%;margin:8px 0}#error-panel>small{display:block;color:#b99c9e;font-size:11px}

.asset-row{border-top:1px solid #34483a;padding:14px 0}.asset-row strong,.asset-row small{display:block;overflow-wrap:anywhere;margin:6px 0}.asset-row small{color:#a4b7aa}.asset-row button{font-size:12px}.asset-row[data-failed=true]{border-left:3px solid #e99380;padding-left:10px}#asset-list{margin-top:20px}

.checkpoint-transcript{margin-top:12px;padding:10px;border:1px solid #77889966;border-radius:8px;font-size:.85rem;line-height:1.7}.checkpoint-transcript small{display:block;opacity:.8}.checkpoint-badge{display:inline-block;color:#175c89;background:#e2f1fc;border-radius:4px;padding:0 3px;font-size:.8em}

#service-status{padding:10px;border:1px solid #c65c5c;border-radius:8px;font-size:.85rem}#avatar-readiness{padding:10px;border:1px solid #bd934d;border-radius:8px;font-size:.85rem}#avatar-readiness[data-state="ready"]{border-color:#47795a}#avatar-readiness[data-state="error"],#avatar-readiness[data-state="timeout"],#avatar-readiness[data-state="unreachable"]{border-color:#c65c5c}

#network-state{padding:10px;border:1px solid #bd934d;border-radius:8px;font-size:.85rem}#network-state[data-state="closed"]{border-color:#c65c5c}

/* The line being spoken (live-caption.mjs). Default view: a band under the picture (the picture is
   made shorter by it, not covered); the opened list lies over the picture. Immersive: over the picture. */
#live-caption{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;flex-direction:column;gap:6px;padding:0 10px 8px;pointer-events:auto}
#live-caption[hidden]{display:none}


.immersive #live-caption{left:50%;right:auto;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(720px,calc(100% - 120px));padding:0}
.live-caption-row{display:flex;align-items:center;gap:8px;min-height:40px;margin-top:6px;background:#060c09c4;border:1px solid #2c4434;border-radius:12px;padding:5px 6px 5px 14px;backdrop-filter:blur(6px)}
.live-caption-line{flex:1;min-width:0;margin:0;font-size:15px;line-height:1.45;white-space:nowrap;overflow:hidden}
.live-caption-line .said{color:#f2f7f0}.live-caption-line .rest{color:#8a9a8c}.live-caption-line.stopped .rest{text-decoration:line-through}
.live-caption-line .wait{display:inline-block;margin:0 3px;color:#cfe3cf;letter-spacing:1px}
.live-caption-line .wait i{font-style:normal;font-weight:700;animation:live-caption-wait 1.2s infinite both}
.live-caption-line .wait i:nth-child(2){animation-delay:.2s}.live-caption-line .wait i:nth-child(3){animation-delay:.4s}
@keyframes live-caption-wait{0%,80%,100%{opacity:.2}40%{opacity:1}}
.live-caption-toggle{flex:none;width:30px;height:30px;padding:0;border-radius:9px;font-size:13px;background:#14241b}
.live-caption-list{margin:0;padding:10px 14px;list-style:none;max-height:min(40dvh,320px);overflow-y:auto;background:#060c09e6;border:1px solid #2c4434;border-radius:12px;font-size:14px;line-height:1.5;color:#b8c6b9}
.live-caption-list[hidden]{display:none}.live-caption-list li{margin:3px 0}.live-caption-list li.current{color:#f2f7f0}.live-caption-list li.stopped{color:#7c8a7e}
.watch-lines{max-height:12em;overflow:auto;font-size:12px;white-space:pre-wrap;margin:4px 0 0}
#watch-url-row[hidden]{display:none}
.build-tag{position:fixed;left:max(8px,env(safe-area-inset-left));bottom:max(4px,env(safe-area-inset-bottom));z-index:5;font-size:9px;color:#8ca393;opacity:.55;pointer-events:none;font-variant-numeric:tabular-nums}.immersive .build-tag{display:none}
@media(max-width:600px){header .view-actions{flex:1 1 100%;min-width:0}}
/* On/off tools (captions, screen, camera): green on, red off — the name alone, the colour tells the state. */
.view-actions button.switch[aria-pressed=true]{background:#2c4a2f;border-color:#8fcf6c;color:#d8f5c2}.view-actions button.switch[aria-pressed=false]{background:#4a2424;border-color:#d06a5f;color:#f6cfc9}
.watch-debug label{display:block;font-size:12px;margin:8px 0 6px}.watch-debug input{width:100%;font-size:12px}.watch-debug small{display:block;font-size:11px;color:#8ca393;line-height:1.6;margin-top:8px}
/* The box in the shape of the picture once known (no bands above and below); the caption lies over the picture like a film's subtitles. */
body:not(.immersive) .avatar.fitted{height:auto;min-height:0;aspect-ratio:var(--avatar-ratio);max-height:calc(100dvh - 265px)}
body:not(.immersive) #live-caption{padding:0 10px 10px}
/* Full view: the text input at the bottom, the caption just above it. */
.immersive .composer{display:block;position:fixed;left:50%;transform:translateX(-50%);bottom:max(16px,env(safe-area-inset-bottom));width:min(720px,calc(100% - 120px));max-width:none;margin:0;padding:0;z-index:15}
.immersive .composer>:not(form){display:none}.immersive .composer form{margin:0}.immersive .composer input{background:#0c1711d9;backdrop-filter:blur(6px)}
.immersive #live-caption{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 58px)}
@media(max-width:600px){.immersive .composer,.immersive #live-caption{left:12px;right:76px;width:auto;transform:none}}

#floor-banner{padding:10px;border:1px solid #bd934d;border-radius:8px;font-size:.85rem;display:flex;gap:8px;align-items:center;flex-wrap:wrap}#floor-banner[hidden]{display:none}#floor-banner span{flex:1 1 12em}#floor-text{white-space:pre-line}
dialog.confirm{max-width:min(420px,calc(100vw - 32px));border:1px solid #555;border-radius:12px;padding:18px;background:#1d1b19;color:inherit}dialog.confirm h2{margin:0 0 8px;font-size:1.05rem}dialog.confirm p{margin:0 0 14px;font-size:.9rem;line-height:1.45}.card-list{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow-y:auto;margin:0 0 14px}.card-list button{text-align:left;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}.card-list small{opacity:.7}.confirm-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#floor-banner{border-color:#d0a24f;background:#3a2c14;color:#f3dcae;font-size:.9rem}
#floor-veil{position:absolute;inset:0;z-index:15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:#07100c;color:#f3dcae;border-radius:inherit}#floor-veil[hidden]{display:none}#floor-veil b{font-size:1.4rem;letter-spacing:1px}#floor-veil span{font-size:1rem;color:#ffd8d8}#floor-veil small{font-size:.85rem;color:#9fb3a5;max-width:26em;line-height:1.5}
#floor-request.ready{background:#2f9e44;border-color:#2f9e44;color:#fff;font-weight:700}#floor-request.free{animation:floor-ready 1.2s ease-in-out infinite}@keyframes floor-ready{50%{box-shadow:0 0 0 4px rgba(47,158,68,.35)}}
#floor-banner.blocked{border-color:#e03131;background:#3b1517;color:#ffd8d8}#floor-banner.blocked::before{content:'⛔';font-size:1.1rem}
.immersive .composer>#floor-banner:not([hidden]){display:flex;position:fixed;left:50%;transform:translateX(-50%);top:max(16px,env(safe-area-inset-top));width:min(560px,calc(100% - 32px));z-index:20}
/* Layout (2026-11-20): the picture with a rail on its right — settings at the top (on/off switches, the reply volume), actions at the bottom (stop, photo, file, microphone last). Panels (대화, 디버그) stay in the header. Narrow screens: settings above the picture, actions below it. */
.panel-actions{display:flex;gap:8px}
.stage{display:flex;gap:14px;justify-content:center;align-items:stretch}
.stage>.avatar{flex:1 1 auto;min-width:0}
body:not(.immersive) .stage>.avatar.fitted{flex:0 1 auto;width:calc((100dvh - 230px) * var(--avatar-ar,1));max-height:calc(100dvh - 230px)}
.rail{flex:0 0 138px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:0}
.rail .view-actions,.rail .input-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}
.rail button{font-size:12px;padding:9px 8px;min-height:40px}
.rail .input-actions button{min-height:48px;font-size:14px;width:100%}
.rail .input-actions span{font-size:12px}
.rail #stream-stop{order:0;font-size:12px}.rail #camera{order:1}.rail #upload{order:2}.rail #mic{order:3;min-width:0;min-height:64px}
.volume{display:flex;align-items:center;flex-wrap:wrap;gap:4px;border:1px solid #34483a;border-radius:12px;padding:5px;font-size:12px;color:#c0d2c3}
.volume span{flex:1 1 100%;text-align:center;font-size:11px;color:#8ca393;white-space:nowrap}
.volume button{flex:0 0 auto}.volume output{flex:1 1 auto}.volume button{padding:3px 9px;min-height:30px;font-size:15px;line-height:1}
.volume output{min-width:3.1em;text-align:center;font-variant-numeric:tabular-nums}
.immersive .rail{display:none}
@media(max-width:760px){
 .stage{flex-direction:column;gap:10px}
 .rail{display:contents}
 .rail .view-actions{order:-1;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:6px}
 .rail .view-actions button{min-height:34px;padding:7px 10px}
 .rail .input-actions{order:1;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:6px}
 .rail .input-actions button{width:auto;min-height:44px}
 .rail #mic{min-width:125px;min-height:44px}
 .rail #camera{order:0}.rail #mic{order:1}.rail #upload{order:2}.rail #stream-stop{order:3}
 .volume{flex-wrap:nowrap;padding:3px 5px 3px 10px}.volume span{flex:0 0 auto;font-size:12px}
 body:not(.immersive) .stage>.avatar.fitted{align-self:center;width:min(100%,calc((100dvh - 330px) * var(--avatar-ar,1)));max-height:none}
 .stage>.avatar:not(.fitted){height:calc(100dvh - 330px)}
}
#load-card{width:100%;margin-top:10px}#load-card-help{display:block;font-size:11px;color:#8ca393;line-height:1.6;margin-top:6px}#load-card[hidden],#load-card-help[hidden]{display:none}
/* The display (docs/display_design.md): beside the speech, a panel over the video card — slides up from the bottom, folds to a tab. */
.display{position:absolute;left:10px;right:10px;bottom:10px;z-index:6;display:flex;flex-direction:column;max-height:55%;background:#0d1913ee;border:1px solid #3c5a44;border-radius:16px;box-shadow:0 -6px 28px #0007;backdrop-filter:blur(10px);animation:dv-up .28s ease-out;overflow:hidden}
.display[hidden]{display:none}
@keyframes dv-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.display .dv-head{display:flex;align-items:center;gap:10px;padding:9px 10px 9px 14px;border-bottom:1px solid #2a3d30}
.display .dv-title{flex:1;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.display .dv-fold{font-size:11px;padding:6px 10px;border-radius:9px;background:#18291f}
.display .dv-body{overflow:auto;padding:10px 14px 14px;font-size:12.5px;line-height:1.55}
.display.folded{left:10px;right:auto;max-width:calc(100% - 20px);border-radius:12px;animation:none}
.display.folded .dv-head{border:0;padding:5px 6px 5px 12px;cursor:pointer}
.display.folded .dv-title{font-size:12px;font-weight:500;color:#c1ed9e}
.display.folded .dv-body{display:none}
.avatar.display-on #live-caption{bottom:calc(var(--display-h,0px) + 14px)}
.dv-text h4{margin:10px 0 4px;font-size:12.5px;color:#c1ed9e}.dv-text h4:first-child{margin-top:0}
.dv-text ul{margin:0;padding-left:18px}.dv-text li{margin:2px 0}.dv-text li ul{color:#a9bdac}
.dv-table{overflow-x:auto}.dv-table table{border-collapse:collapse;width:100%;font-size:12px}
.dv-table th,.dv-table td{text-align:left;padding:5px 8px;border-bottom:1px solid #2a3d30;vertical-align:top;white-space:nowrap}
.dv-table th{color:#8ca393;font-weight:500;position:sticky;top:0;background:#0d1913}
.dv-status{list-style:none;margin:0;padding:0}.dv-status>li{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid #22342a}
.dv-status .dv-dot{flex:none;width:9px;height:9px;border-radius:50%;margin-top:5px;background:#5d6f63}
.st-ok .dv-dot{background:#7fd37a}.st-running .dv-dot{background:#6fb7ff;box-shadow:0 0 8px #6fb7ff}.st-waiting .dv-dot{background:#e6c35c}.st-failed .dv-dot{background:#ff8f78}
.dv-status .dv-main{flex:1;min-width:0}.dv-status .dv-label{display:flex;gap:8px;align-items:baseline;justify-content:space-between}
.dv-status .dv-label b{font-weight:550;overflow-wrap:anywhere}.dv-status .dv-state{flex:none;font-size:11px;color:#a9bdac}
.dv-status small{display:block;color:#8ca393;font-size:11px;overflow-wrap:anywhere}
.dv-bar{height:4px;background:#22342a;border-radius:3px;margin:5px 0 3px;overflow:hidden}.dv-bar i{display:block;height:100%;background:#6fb7ff}
.dv-chart{width:100%;max-height:160px}.dv-chart .axis{stroke:#3c5a44}.dv-chart text{fill:#8ca393;font-size:9px}
.dv-chart .series{stroke-width:2.5}.dv-chart rect.s0,.dv-legend .s0{fill:#7fd37a;color:#7fd37a}.dv-chart polyline.s0{stroke:#7fd37a}
.dv-chart rect.s1,.dv-legend .s1{fill:#6fb7ff;color:#6fb7ff}.dv-chart polyline.s1{stroke:#6fb7ff}
.dv-chart rect.s2,.dv-legend .s2{fill:#e6c35c;color:#e6c35c}.dv-chart polyline.s2{stroke:#e6c35c}
.dv-chart rect.s3,.dv-legend .s3{fill:#ff8f78;color:#ff8f78}.dv-chart polyline.s3{stroke:#ff8f78}
.dv-legend{display:flex;gap:12px;font-size:11px;margin-top:4px}
.dv-image{margin:0;text-align:center}.dv-image img{max-width:100%;max-height:260px;border-radius:10px}.dv-image figcaption{font-size:11px;color:#8ca393;margin-top:6px}
.dv-more{color:#8ca393;font-size:11px;margin:6px 0 0}
.immersive .display{left:max(16px,env(safe-area-inset-left));right:90px;bottom:max(20px,env(safe-area-inset-bottom));max-height:55%}
.immersive .display.folded{right:auto}
/* Wide card: the panel at the top right, beside the figure, clear of the captions at the bottom. */
.display.side{top:10px;right:10px;left:auto;bottom:auto;width:min(400px,44%);max-height:calc(100% - 150px);animation-name:dv-in}
.display.side.folded{right:10px;left:auto;width:auto;max-width:44%}
@keyframes dv-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
.immersive .display.side{top:max(16px,env(safe-area-inset-top));right:90px;left:auto;bottom:auto;max-height:calc(100% - 180px)}
.immersive .display.side.folded{right:90px;left:auto}

/* Work notices (src/transport/notices.mjs): top left, beside the figure (the side panel takes the top right); below the error dot when it shows. */
.notices{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;z-index:12;display:flex;align-items:center;gap:8px;max-width:calc(75% - 14px);animation:nt-in .3s ease-out}
.error-dot:not([hidden])~.notices{top:calc(max(14px,env(safe-area-inset-top)) + 52px)}
@keyframes nt-in{from{opacity:0}to{opacity:1}}
.notices[hidden]{display:none}
.notices .nt-chip{font-size:12.5px;padding:8px 14px;border-radius:20px;border:1px solid #6b5a2c;background:#2a2312ee;color:#f3dcae;box-shadow:0 4px 18px #0006;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notices .nt-mark{position:relative;flex:none;width:48px;height:48px;padding:0;border-radius:50%;border:2px solid #fff3c4;background:radial-gradient(circle at 35% 30%,#ffe27a,#f0a800 70%);color:#3a2600;font:900 30px/1 system-ui,sans-serif;box-shadow:0 0 0 0 #ffd24d99,0 6px 18px #0008;animation:nt-bob 1.6s ease-in-out infinite,nt-glow 1.6s ease-out infinite;cursor:pointer}
.notices .nt-count{position:absolute;top:-6px;right:-8px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#d8473d;color:#fff;font:700 12px/20px system-ui,sans-serif;border:2px solid #1b1406}
.notices .nt-label{min-width:0;padding:6px 12px;border-radius:14px;border:1px solid #6b5a2c;background:#1b170cdd;color:#f3dcae;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.notices .nt-skip{flex:none;width:26px;height:26px;padding:0;border-radius:50%;border:1px solid #6b5a2c;background:#1b170cdd;color:#e8dcc0;font-size:15px;line-height:1;cursor:pointer}
@keyframes nt-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes nt-glow{0%{box-shadow:0 0 0 0 #ffd24d99,0 6px 18px #0008}100%{box-shadow:0 0 0 16px #ffd24d00,0 6px 18px #0008}}
@media (prefers-reduced-motion:reduce){.notices .nt-mark{animation:none}}

/* An app for outside people (variants.json `public`): the conversation only. */
[data-public] #open-settings,[data-public] .panel-actions,[data-public] #camera,[data-public] #upload,[data-public] #toggle-watch,[data-public] #open-errors,[data-public] #build-tag{display:none!important}
#public-start{display:block;width:100%;margin:0 0 8px;padding:12px;font-size:1.05rem}
[data-public] #idle-avatar .orb{cursor:pointer}
#public-start[hidden]{display:none}
/* The display beside a narrow card (a portrait figure on a wide page): in the stage, between the card and the controls. */
.display.beside{position:relative;inset:auto;flex:0 1 380px;min-width:300px;align-self:flex-start;animation-name:dv-in;box-shadow:none}
.display.beside.folded{flex:0 0 auto;min-width:0;max-width:none}
/* offers: a list narrowed by price range and place, more as it is scrolled. */
.dv-filters{position:sticky;top:-10px;z-index:1;margin:-10px -14px 8px;padding:10px 14px 8px;background:#0d1913;border-bottom:1px solid #22342a;display:flex;flex-direction:column;gap:6px}
.dv-chips{display:flex;flex-wrap:wrap;gap:5px}
.dv-chips button{padding:4px 9px;min-height:0;border-radius:14px;font-size:11.5px;background:#14241b;border-color:#2f4635;color:#b8c9ba}
.dv-chips button.on{background:#c1ed9e;border-color:#c1ed9e;color:#152619;font-weight:600}
.dv-count{font-size:11px;color:#8ca393}
.dv-offers{list-style:none;margin:0;padding:0}
.dv-offers>li{padding:8px 0;border-bottom:1px solid #22342a}
.dv-offers .dv-name b{font-weight:600}.dv-offers .dv-name small{display:block;font-size:11px;color:#8ca393}.dv-offers .dv-name .dv-about{color:#b8c9ba}
.dv-offers ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.dv-offers ul li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:12px;color:#8ca393}
.dv-offers ul li b{font-weight:500;min-width:6.5em}
.dv-offers ul li.in{color:#eaf1e8}.dv-offers ul li.in .dv-price{color:#c1ed9e;font-weight:600}
.dv-offers ul li small{font-size:11px;opacity:.85}
.dv-offers li.dv-more{border:0;text-align:center;cursor:pointer;padding:10px 0}
