.room-top{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(10px,2vh,24px) 0}
.room-brand{display:flex;align-items:center;min-width:0;gap:clamp(6px,1vw,16px);white-space:nowrap}
.room-brand img{width:clamp(23px,2.5vw,36px);height:auto}
.room-brand b,.room-brand h1{margin:0;font-size:clamp(1.08rem,1.85vw,1.8rem);font-weight:650;line-height:1.2;letter-spacing:-.04em}
.room-brand h1{color:#aebcb1;font-weight:450}
.room-brand i{width:1px;height:clamp(16px,2.3vw,26px);background:#435046;transform:rotate(17deg);margin-inline:2px}
.room-back{display:grid;place-items:center;width:42px;height:42px;border:1px solid #37433a;border-radius:50%;margin-right:4px;flex-shrink:0}
.room-back:hover{background:#253026}
.room-top svg,.room-controls svg,.chat-heading svg,.chat-entry svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.room-clock{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#d9e7d2;font:550 1rem/1.2 var(--mono);font-variant-numeric:tabular-nums}
.room-clock svg{width:16px;height:16px;color:#b4c8a8}.room-clock small{font:450 .8rem/1.2 var(--display);color:#c3cbbc}
.room-progress{width:100%;height:3px;appearance:none;border:0;background:#29352d;color:#a9cb82;display:block;flex:none}
.room-progress::-webkit-progress-bar{background:#29352d}.room-progress::-webkit-progress-value{background:#a9cb82}.room-progress::-moz-progress-bar{background:#a9cb82}
.call-room{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(290px,.85fr);gap:clamp(12px,1.5vw,26px);flex:1;min-height:0;padding-top:clamp(12px,2.2vh,24px)}
.meeting-column{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}
.room-tiles{position:relative;flex:1;min-height:clamp(280px,44vh,700px);isolation:isolate}
.room-tile{display:grid;place-items:center;overflow:hidden}
.room-agent{height:100%;min-height:inherit;position:relative;border-radius:20px;background:radial-gradient(ellipse at 46% 50%,#352a24 0%,#28231f 42%,#201f1b 72%,#1c1f1b);border:1px solid #52463c}
.tile-grid{position:absolute;inset:6% 4%;border:1px solid #68534825;border-radius:50%;transform:rotate(-13deg) scale(1.25,.72);pointer-events:none}
.voice-mark{width:min(37%,25vh);min-width:116px;aspect-ratio:1;position:relative;display:grid;place-items:center;margin-right:7%;color:#ffb58e}
.voice-orbit,.voice-core{position:absolute;inset:0;border-radius:50%;border:1px solid #9a75595e}
.voice-orbit::after{content:"";position:absolute;top:12%;left:14%;width:6px;height:6px;border-radius:50%;background:#dd9470}
.orbit-inner{inset:12%;border-color:#b88e6b77}
.orbit-inner::after{top:auto;bottom:16%;left:auto;right:9%;width:4px;height:4px}
.voice-core{inset:27%;display:grid;place-items:center;border-color:#b28561;background:#493529}
.voice-core svg{width:57%;height:57%;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}
.room-name{position:absolute;left:clamp(12px,2vw,25px);bottom:clamp(13px,2vh,23px);display:grid;line-height:1.25;gap:3px;text-shadow:0 1px 4px #1118}
.room-name strong{font-size:clamp(1rem,1.4vw,1.35rem);font-weight:640;letter-spacing:-.023em}.room-name span{font-size:.84rem;color:#cbccc2}
.room-caller{position:absolute;right:clamp(10px,1.5vw,20px);bottom:clamp(10px,1.5vw,20px);width:clamp(126px,22%,235px);aspect-ratio:1.4;max-height:42%;background:#243229;border:1px solid #536851;border-radius:12px}
.room-caller .room-name{left:9px;bottom:8px;gap:1px}.room-caller .room-name strong{font-size:.86rem}.room-caller .room-name span{font-size:.75rem}
.room-person{display:grid;place-items:center;background:#374937;border-radius:50%;color:#cce1bc;width:clamp(28px,5vw,64px);aspect-ratio:1;margin-bottom:12px}
.room-person svg{width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.room-tile[data-speaking=true]{border-color:#f9c398}.room-caller[data-speaking=true]{border-color:#badb98}
@media(prefers-reduced-motion:no-preference){.room-agent[data-speaking=true] .voice-orbit{animation:room-breathe .95s ease-in-out infinite alternate}.room-agent[data-speaking=true] .orbit-inner{animation-delay:-.4s}@keyframes room-breathe{to{transform:scale(1.09);border-color:#dca17f}}}
.meeting-dock{flex:none;padding:3px 0 1px}
#start-options{padding:0;margin:0;border:0;min-width:0}
#start-form{margin:0}
.admission-form fieldset{display:grid;grid-template-columns:minmax(0,1fr)}
.admission-form label:not(.desk-check),.question-form label{display:block;color:#dce7d8;font-size:.86rem;line-height:1.3;font-weight:570;margin:13px 0 5px}
.admission-form small,.question-form small{font-size:.76rem;font-weight:400;color:#a9b8a8;margin-inline-start:4px}
.admission-form input:not([type=checkbox]),.question-form input,.question-form textarea{width:100%;min-width:0;border:1px solid #506052;border-radius:9px;background:#111a14;color:var(--room-ink);font:inherit;line-height:1.35;min-height:43px;padding:9px 11px;caret-color:var(--room-accent)}
.admission-form input::placeholder,.question-form :is(textarea,input)::placeholder{color:#a4b1a5}
.admission-form .field-hint,.question-form p{font-size:.78rem;line-height:1.4;color:#b1c0b0;margin:5px 0 0}
.admission-form .desk-check{font-size:.8rem;line-height:1.45;gap:9px;margin:17px 0 13px}
.admission-form .desk-check input{width:17px;height:17px;min-width:17px}
#save-details{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 14px}
#save-details svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#start-chat{justify-self:center;margin-top:4px}
.admission-form #admission-error{color:#ffc7ab;margin:0 0 9px}
.question-form{padding:13px 14px 10px;margin:8px 0 12px;border:1px solid #465d48;background:#1b271e;border-radius:12px}
.question-form h3{font:620 1rem/1.3 var(--display);margin:0 0 6px;color:#f1f6ef}
.question-form textarea{min-height:63px;resize:vertical}.question-tools,.question-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;margin-top:10px}
.question-actions,.question-tools{font-size:.85rem}
.question-tools button{border:1px solid #586a59;background:#233125;color:#e0ebda;border-radius:7px;padding:7px 9px;min-height:38px}
.question-actions .desk-primary{padding:6px 13px;min-height:38px}.question-actions .desk-link{color:#d2e4c9}
.room-controls{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:clamp(4px,.9vw,16px)}
.room-controls button{display:grid;grid-template-rows:40px auto;justify-items:center;align-items:center;min-width:54px;border:0;padding:0 2px 4px;background:transparent;color:#dce5dc;font:550 .74rem/1.25 var(--display)}
.room-controls button svg{box-sizing:content-box;width:20px;height:20px;padding:10px 17px;border-radius:22px;background:#29352d}
.room-controls button span{margin-top:6px;white-space:nowrap}
.room-controls button:hover:enabled svg,.room-controls button[aria-pressed=true] svg{background:#455348}
.room-controls button:disabled{color:#99a399}.room-controls button:disabled svg{background:#232d26;color:#89938a}
.room-controls .room-start svg{background:var(--cta-fill);color:var(--cta-ink)}.room-controls .room-start:hover:enabled svg{background:var(--cta-hover)}
.room-controls .room-start:disabled svg{background:#4b5c3e;color:#bccfae}
.room-controls .room-end:enabled svg{background:#b63d40;color:#fff1eb}.room-controls .room-end:hover:enabled svg{background:#ca494b}
.room-status{color:#b8c4bc;margin:9px 0 0;font-size:.88rem;text-align:center;line-height:1.4}
.room-caption-box,.room-recovery{padding:10px 13px;border:1px solid var(--room-border);border-radius:8px}
.room-caption-box h2{font-size:.85rem;color:#c0cbbb;margin:0 0 4px}
#room-log{list-style:none;margin:0;padding:0;max-height:clamp(58px,10vh,120px);overflow:auto}
#room-log li{font-size:.85rem;line-height:1.38;overflow-wrap:anywhere}
#room-log strong{color:#ffbf9e;margin-right:.55em}#room-log [data-role=user] strong{color:#c5e4a2}
.room-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:#151e18;border:1px solid #36473b;border-radius:16px}
.chat-heading{display:flex;align-items:center;gap:10px;padding:17px 18px;border-bottom:1px solid #314033}.chat-heading svg{width:18px;height:18px;color:#cfe4bb}
.chat-heading h2{font-size:1.05rem;line-height:1.2;font-weight:650;margin:0;letter-spacing:-.015em}
.chat-flow{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 18px;scrollbar-color:#485a4a transparent}
.chat-opening h3{font-weight:590;letter-spacing:-.04em;font-size:clamp(1.35rem,2.1vw,2rem);line-height:1.12;margin:2px 0 8px}
.chat-opening p{font-size:.96rem;line-height:1.44;color:#d2dbcf;margin:0 0 10px}.chat-opening #room-language{font-size:.84rem;color:#aebbaf}
#transcript{padding:0;margin:0;list-style:none}
#transcript li{margin:0 0 15px;line-height:1.4}
#transcript li strong{color:#ecc0a2;font-size:.79rem}#transcript li[data-speaker=visitor] strong{color:#cae5a9}
#transcript li p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bottom{margin-top:auto;padding:14px 15px 12px;border-top:1px solid #314033}
.chat-entry{display:flex;align-items:flex-end;gap:6px;min-height:48px;padding:4px 5px 4px 12px;border:1px solid #536654;border-radius:13px;background:#0f1712}
.chat-entry:focus-within{border-color:#b6cf9c}
.chat-entry textarea{flex:1;min-width:0;resize:none;line-height:1.35;padding:10px 0;border:0;background:transparent;color:#f0f4ed;max-height:7rem;outline:none}
.chat-entry textarea:focus-visible{outline:none}.chat-entry textarea::placeholder{color:#acb7ac}
.chat-entry button{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:9px;color:var(--cta-ink);background:var(--cta-fill)}
.chat-entry button:hover:enabled{background:var(--cta-hover)}
.chat-entry button:disabled{background:#334231;color:#94a48d}
.chat-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin-top:9px;color:#b3beb0;font-size:.75rem}
#voice-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.84rem}
#rescue-context-tools{margin-top:12px}
#chat-materials{font-size:.84rem;margin-bottom:7px}
#chat-materials summary{display:list-item;width:fit-content;color:#c4dfb1;cursor:pointer;padding:5px 0;min-height:32px}
#chat-materials[open] #rescue-context-tools{max-height:min(34dvh,19rem);overflow:auto;overscroll-behavior:contain;margin:4px 0 9px}
#room-coverage{color:#c6d7bc}
@media(min-width:790px) and (min-height:560px){.desk-main:has(.call-room:not([hidden])){height:100vh;height:100dvh}.room-tiles{min-height:140px}.room-chat{max-height:100%;overflow:hidden}}
@media(max-width:789px){
 .room-top{padding:8px 0}.room-back{width:38px;height:38px;margin-right:0}
 .call-room{grid-template-columns:1fr;gap:14px;padding-top:10px;align-content:start}.meeting-column{gap:9px}
 .room-tiles{flex:none;height:clamp(150px,28svh,285px);min-height:0}.room-agent{min-height:100%;border-radius:13px}
 .room-caller{width:clamp(86px,25%,136px);max-height:68%;bottom:8px;right:8px}
 .voice-mark{min-width:80px;width:clamp(85px,18vh,140px);margin-right:11%}
 .room-name{left:12px;bottom:10px}.room-name span{font-size:.75rem}
 .room-person{width:32px;margin-bottom:14px}.room-caller .room-name{left:6px;bottom:5px}.room-caller .room-name span{font-size:.66rem}
 .room-controls{gap:2px;justify-content:space-evenly}.room-controls button{grid-template-rows:36px auto;min-width:43px;padding:0 0 2px;font-size:.68rem}
 .room-controls button svg{width:18px;height:18px;padding:9px 13px}
 #start-form{margin-bottom:9px}.room-status{font-size:.81rem;margin-top:7px}
 .room-chat{min-height:250px}.chat-heading{padding:11px 14px}.chat-flow{min-height:64px;max-height:36svh;padding:12px 14px}
 .chat-bottom{padding:9px 12px}.chat-info{margin-top:6px}.room-caption-box{padding:6px 10px}
}
@media(max-width:360px){.room-brand{gap:5px}.room-brand img{width:20px}.room-back{width:33px;height:33px}.room-brand b,.room-brand h1{font-size:.98rem}.room-clock{gap:4px;font-size:.92rem}.room-clock svg{display:none}.room-controls button svg{padding:9px 11px}}
@media(max-width:360px){.room-brand img{display:none}.room-top{gap:5px}.room-clock small{font-size:.72rem}}

@media(max-width:789px){
 .desk-main[data-mode=lobby][data-admitted=false] .room-chat,.desk-main[data-mode=lobby]:not([data-admitted]) .room-chat{grid-row:1}
 .desk-main[data-mode=lobby][data-admitted=false] .chat-flow,.desk-main[data-mode=lobby]:not([data-admitted]) .chat-flow{max-height:none;overflow:visible}
 .admission-form input:not([type=checkbox]),.question-form input,.question-form textarea{font-size:16px}
 .chat-flow:has(.question-form:not([hidden])){max-height:min(62svh,520px)}
}
