:root{font-family:"Segoe UI",system-ui,-apple-system,sans-serif;color:#233044;background:#edf2f5;font-synthesis:none;--teal:#087f88;--muted:#748296;--border:#e3e9ef}*{box-sizing:border-box}body{margin:0;padding:28px 24px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79c8ce;outline-offset:3px}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.symbols{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.shell{max-width:1136px;margin:auto;background:#fafcfd;border:1px solid #dbe3ea;border-radius:20px;padding:0 22px;box-shadow:0 15px 55px #2330440c}.topbar{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px}.brand h1{margin:0;font-size:23px;letter-spacing:-1px}.brand span{display:block;color:var(--muted);font-size:12px;margin-top:1px}.header-actions{display:flex;align-items:center;gap:14px}.status{display:flex;align-items:center;gap:7px;font-size:12px;color:#647284}.status i{width:7px;height:7px;background:#a5b3c1;border-radius:50%}.status.connected i{background:#26a46d}.status.connecting i{background:#ddad43}.primary,.secondary,.light-button,.danger{border:0;border-radius:10px;padding:11px 17px;font-weight:600;font-size:13px;display:inline-flex;gap:8px;align-items:center;justify-content:center}.primary{background:var(--teal);color:white}.primary:hover{background:#076a72}.secondary{background:#edf2f5;color:#344559;border:1px solid var(--border)}.light-button{background:#fff;color:#25465a}.danger{background:#e34d57;color:white}.icon-button{width:37px;height:37px;background:none;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;font-size:25px;color:#455467}.video-stage{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:13px;background:#172d36}.video-stage>video{width:100%;height:100%;object-fit:contain;display:block}.video-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e5f0f1;text-align:center;padding:24px;background:radial-gradient(ellipse at 25% 10%,#335d64,transparent 60%),radial-gradient(ellipse at 90% 85%,#294b5a,transparent 60%),#162b34}.video-placeholder h2{font-size:27px;letter-spacing:-.7px;font-weight:500;margin:20px 0 8px}.video-placeholder p{font-size:14px;color:#aac1c7;margin:0 0 22px;max-width:350px;line-height:1.6}.camera-art{width:66px;height:66px;border-radius:23px;background:#ffffff0d;display:grid;place-items:center;border:1px solid #ffffff19}.camera-art svg{width:30px;fill:none;stroke:#a6c6cb;stroke-width:1.3}.video-label,.quality{position:absolute;top:16px;left:16px;color:#eaf2f4;background:#14252b80;backdrop-filter:blur(8px);padding:7px 10px;border-radius:7px;font-size:11px}.quality{left:auto;right:16px}.self-preview{position:absolute;bottom:16px;right:16px;width:22%;aspect-ratio:16/9;border:2px solid #ffffffb3;border-radius:10px;background:#334751;overflow:hidden;box-shadow:0 3px 14px #0002}.self-preview video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.self-preview span{position:absolute;bottom:5px;left:7px;font-size:10px;color:white;text-shadow:0 1px 3px #000}.play-audio{position:absolute;left:16px;bottom:16px}.call-controls{display:flex;align-items:center;justify-content:space-between;min-height:82px;gap:12px}.control-buttons{display:flex;gap:15px}.round-button{width:45px;height:45px;border:0;border-radius:50%;color:#344156;background:#eaf0f4;display:grid;place-items:center;position:relative}.round-button.off:after{content:"";position:absolute;width:25px;height:2px;background:#68798a;transform:rotate(-45deg);border:1px solid #eaf0f4}.end-call{background:#ec525e;color:white}.device-label,.private-note{width:32%;font-size:11px;color:var(--muted)}.device-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.private-note{text-align:right}.chat-panel{border:1px solid var(--border);border-radius:13px;background:white;overflow:hidden}.chat-heading{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f3f6}.chat-heading h2{font-size:13px;margin:0;font-weight:600}.language-pair{display:flex;gap:9px;font-size:11px;color:#607184}.swap{color:#92a3b0}.messages{height:180px;overflow-y:auto;padding:14px 18px;display:flex;flex-direction:column;gap:11px;scroll-behavior:smooth}.chat-empty{margin:auto;text-align:center;color:#65798a;font-size:13px}.chat-empty p{font-size:12px;color:#94a1ad;margin:7px}.bubble{align-self:flex-start;max-width:80%;border-radius:12px 12px 12px 3px;background:#f0f3f6;padding:11px 14px;min-width:140px}.bubble.own{align-self:flex-end;background:#d7f0f1;border-radius:12px 12px 3px 12px}.bubble p{margin:0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.bubble .original{font-size:12px;color:#758397;margin-top:4px}.bubble small{display:block;text-align:right;font-size:10px;color:#81909d;margin-top:5px}.bubble.failed{background:#fff0ee}.composer{display:flex;align-items:flex-end;gap:10px;padding:9px 12px 5px}.composer textarea{flex:1;min-width:0;resize:none;border:1px solid var(--border);border-radius:9px;padding:12px 14px;line-height:20px;max-height:100px;background:#fcfdfe;color:#233044;font-size:14px}.composer textarea::placeholder{color:#91a0b1}.send-button{height:45px}.send-button svg{width:17px}.chat-footer{display:flex;justify-content:space-between;padding:6px 14px 11px;font-size:10px;color:#96a1ad;gap:10px}.page-footer{display:flex;justify-content:space-between;padding:15px 1px;font-size:10px;color:#8c99a7}.notice{background:#fff6df;border:1px solid #f0dfb0;border-radius:10px;padding:12px 15px;margin-bottom:16px;font-size:13px;line-height:1.5}.notice.error{background:#fff0ee;border-color:#efcbc8;color:#9b3e37}.invite-panel{background:#eaf5f5;border:1px solid #c7e5e5;border-radius:12px;padding:16px;margin-bottom:16px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.invite-panel strong{font-size:13px}.invite-panel p{font-size:11px;color:#68838b;margin:5px 0}.invite-copy{display:flex;gap:8px;flex:1;min-width:250px}.invite-copy input{flex:1;min-width:0;border:1px solid #c3dddd;background:#fff;border-radius:7px;padding:10px;font-size:12px}.text-button{background:none;border:0;color:#5b7881;font-size:12px}.request{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border:1px solid #b4dcd8;background:#e8f6ef;border-radius:10px;margin-bottom:14px;font-size:13px}.request div{display:flex;gap:8px}.join-panel{display:flex;gap:40px;align-items:center;justify-content:space-between;padding:28px;margin-bottom:18px;border:1px solid var(--border);border-radius:12px;background:white}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#15808a;font-weight:700}.join-panel h2{font-size:25px;margin:10px 0}.join-panel p{color:var(--muted);font-size:13px}.join-panel form{display:grid;gap:8px;min-width:240px}.join-panel label{font-size:12px}.join-panel input,.join-panel select{padding:10px;border:1px solid var(--border);border-radius:7px;background:white;min-width:0}.join-panel button{margin-top:5px}dialog{border:1px solid var(--border);border-radius:18px;padding:24px;max-width:460px;width:calc(100% - 32px);color:#233044;box-shadow:0 20px 80px #15263830}dialog::backdrop{background:#15263866;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2,dialog h2{font-size:20px;margin:0;letter-spacing:-.4px}.settings-body{display:flex;flex-direction:column;padding-top:22px;gap:9px}.settings-body label{font-weight:600;font-size:13px}.settings-body select{width:100%;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.settings-body p,.setting-note,dialog>p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 18px}.checkbox-label{display:flex;gap:8px;align-items:center}.setting-note{margin:12px 0 0;padding:12px;background:#f0f5f7;border-radius:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}dialog>p{margin-top:15px}
@media(min-width:1500px){.shell{max-width:1180px}.video-stage{max-height:570px}.messages{height:190px}}
@media(max-width:700px){body{padding:0;background:#fafcfd}.shell{padding:0 12px;border:0;border-radius:0;box-shadow:none}.topbar{min-height:72px;gap:8px}.brand h1{font-size:21px}.brand img{width:30px;height:30px}.brand span{display:none}.header-actions{gap:9px}.status{font-size:10px;max-width:100px}.header-actions>.secondary{padding:8px}.header-actions>.secondary span{display:none}.icon-button{width:33px;height:33px}.video-stage{border-radius:12px}.video-placeholder{padding:20px}.video-placeholder h2{font-size:18px;margin:10px 0 5px}.video-placeholder p{font-size:11px;margin-bottom:12px;max-width:220px}.camera-art{display:none}.light-button{font-size:11px;padding:9px 12px}.video-label,.quality{top:9px;left:9px;font-size:9px;padding:5px 7px}.quality{left:auto;right:9px}.self-preview{bottom:9px;right:9px;width:25%;border-radius:6px}.call-controls{min-height:72px;justify-content:center}.device-label,.private-note{display:none}.round-button{width:43px;height:43px}.control-buttons{gap:20px}.chat-heading{padding:13px}.chat-heading h2{font-size:12px}.language-pair{font-size:10px;gap:6px}.messages{height:clamp(170px,30dvh,320px);padding:12px}.bubble{max-width:90%;padding:10px 12px}.bubble p{font-size:14px}.composer{gap:7px;padding:8px}.composer textarea{padding:11px 10px;font-size:16px}.send-button{padding:0 12px}.send-button svg{display:none}.chat-footer{padding:5px 10px 10px;line-height:1.5}.chat-footer #characterCount{display:none}.page-footer{font-size:9px;padding-bottom:max(15px,env(safe-area-inset-bottom))}.join-panel{display:block;padding:20px}.join-panel h2{font-size:22px}.join-panel form{margin-top:20px;min-width:0}.join-panel input,.join-panel select{font-size:16px}.invite-copy{min-width:100%;width:100%}.invite-panel{gap:7px;padding:12px}.request{flex-wrap:wrap}.notice{font-size:12px}.play-audio{bottom:8px;left:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.join-code-field{display:grid;gap:8px}.join-code-field input{font-size:21px;letter-spacing:3px;font-variant-numeric:tabular-nums}.short-invite{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;font-size:12px}.short-invite input{flex:1;min-width:180px;padding:10px;border:1px solid #c3dddd;border-radius:7px;background:white}.short-invite strong{font-size:24px;letter-spacing:3px;font-variant-numeric:tabular-nums;color:#087f88}
@media(min-width:701px) and (max-height:950px){body{padding:16px 24px}.topbar{min-height:72px}.video-stage{height:clamp(210px,calc(100dvh - 410px),500px);aspect-ratio:auto}.call-controls{min-height:65px}.messages{height:125px}.page-footer{padding:11px 1px}.chat-heading{padding:11px 18px}}
/* Keep desktop video and chat together, with the composer outside the message scroll area. */
@media(min-width:901px){
 body{padding:12px 18px}.shell{max-width:1440px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr);column-gap:18px}
 .shell>*{grid-column:1/-1}.topbar{min-height:68px}.call-area{grid-column:1;min-width:0}.chat-panel{grid-column:2;display:flex;flex-direction:column;min-width:0;height:clamp(300px,calc(100dvh - 124px),760px)}
 .video-stage{height:clamp(244px,calc(100dvh - 180px),704px);max-height:none;aspect-ratio:auto}.call-controls{min-height:56px}.messages{height:auto;flex:1;min-height:0}.bubble{flex-shrink:0}.chat-heading{gap:8px;padding:13px}.chat-footer{line-height:1.4}.page-footer{padding:12px 0}.private-note{display:none}.device-label{width:auto;max-width:45%}
 .video-placeholder h2{font-size:23px}.video-placeholder p{margin-bottom:14px}.camera-art{display:none}
}
.preview-move,.preview-resize{display:none}
@media(min-width:701px) and (pointer:fine){
 .preview-move,.preview-resize{display:grid;place-items:center;position:absolute;border:0;color:white;background:#14252ba6;padding:0;width:26px;height:26px;touch-action:none;font-size:19px}
 .preview-move{top:0;left:0;cursor:move;border-radius:0 0 6px 0}.preview-resize{bottom:0;right:0;cursor:nwse-resize;border-radius:6px 0 0 0}.self-preview video{pointer-events:none}.self-preview.manipulating{user-select:none}
}
