:root{color-scheme:light;--bg:#f7f5fa;--surface:#fff;--soft:#f2edf5;--line:#ded6e3;--ink:#24182b;--muted:#706777;--purple:#69247d;--purple-dark:#4b175c;--green:#21a567;--danger:#d84452;--safe-bottom:env(safe-area-inset-bottom,0px)}
*,*::before,*::after{box-sizing:border-box;box-shadow:none!important;text-shadow:none!important;filter:none!important;backdrop-filter:none!important;background-image:none!important}
html,body{width:100%;max-width:100vw;height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}.call-shell{width:100%;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--bg)}
.call-header{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px;border-bottom:1px solid var(--line);background:var(--surface);z-index:20}
.session-heading{display:flex;align-items:center;gap:12px;min-width:0}.security-mark{width:38px;height:44px;display:grid;place-items:center;flex:0 0 38px}.security-mark svg{width:32px;fill:none;stroke:var(--purple);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.session-copy{min-width:0}.eyebrow{margin:0 0 3px;color:var(--purple);font-size:10px;font-weight:850;letter-spacing:.17em}.session-copy h1{margin:0;color:var(--ink);font-size:19px;font-weight:800;line-height:1.1;letter-spacing:-.025em}.secure-line{display:flex;align-items:center;gap:7px;margin-top:5px;color:var(--muted);font-size:12px;font-weight:600}.secure-line span,.status-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--green)}.participant-count{min-width:62px;height:44px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:#3d2947;font-weight:780}.participant-count svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#room.call-stage{position:relative!important;width:100%!important;height:100%!important;min-height:0;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(112px,25vw);gap:10px;padding:10px!important;overflow:hidden;background:var(--bg)!important}#room:has(#participants:empty){grid-template-columns:minmax(0,1fr)}#active-participant,#participants{position:relative!important;width:auto!important;height:auto!important;min-width:0;min-height:0}#active-participant .participant.main,#participants .participant{position:relative!important;overflow:hidden;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--soft)!important}#active-participant .participant.main{width:100%!important;height:100%!important;min-height:0}#active-participant video,#participants video{display:block;width:100%!important;height:100%!important;object-fit:cover;background:var(--soft)}#active-participant .participant::before,#participants .participant::before{content:attr(data-identity);position:absolute;top:12px;left:12px;z-index:3;padding:7px 10px;border-radius:11px;background:#2d2533;color:#fff;font-size:12px;font-weight:780}#participants{display:flex!important;flex-direction:column;gap:10px;overflow:auto;padding:0!important;background:transparent!important;scrollbar-width:none}#participants::-webkit-scrollbar{display:none}#participants:empty{display:none!important}#participants .participant{flex:1 0 116px;width:100%!important;min-height:116px}
#video-controls.call-controls{position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;left:auto!important;float:none!important;z-index:25;width:100%!important;max-width:100vw!important;min-width:0!important;min-height:72px;margin:0!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;padding:12px 18px calc(12px + var(--safe-bottom));overflow:hidden;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:var(--surface)!important;transform:none!important;translate:none!important}#video-controls .btn{position:static!important;inset:auto!important;float:none!important;flex:0 1 auto;min-width:92px;min-height:48px;margin:0!important;padding:0 16px;border:1px solid var(--line)!important;border-radius:15px!important;background:#f0ebf4!important;color:#35283c!important;font-size:.85rem;font-weight:780;transform:none!important}#video-controls .btn:focus-visible{outline:3px solid rgba(105,36,125,.18);outline-offset:2px}#video-controls #leave-room{border-color:var(--danger)!important;background:var(--danger)!important;color:#fff!important}
body.modal-open{padding-right:0!important;overflow:hidden!important}body.modal-open #room{visibility:hidden!important}body.modal-open #video-controls{visibility:hidden!important}.modal-backdrop{display:none!important}.modal{display:none!important}.modal.show{position:fixed!important;inset:0!important;z-index:1060!important;width:100%!important;height:100%!important;display:flex!important;align-items:center;justify-content:center;padding:20px!important;overflow:auto!important;background:var(--bg)!important}#select-mic.show~#select-camera.show,#select-mic.show~#join-room.show,#select-camera.show~#join-room.show{display:none!important}.modal-dialog{width:min(calc(100% - 24px),500px)!important;max-width:500px!important;margin:auto!important;transform:none!important}.modal-content{overflow:hidden;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--surface)!important;color:var(--ink)}.modal-header{align-items:flex-start;padding:24px 24px 8px!important;border:0!important}.modal-header>div{width:100%}.modal-eyebrow{display:none}.modal-title{margin:0;color:var(--ink);font-size:1.45rem;font-weight:820;letter-spacing:-.03em}.modal-intro{margin:7px 0 0;color:var(--muted);font-size:.91rem;line-height:1.45}.modal-body{padding:14px 24px!important;color:var(--ink)}.modal-footer{display:flex;padding:10px 24px 24px!important;border:0!important}.modal-footer .btn{min-height:50px;margin:0!important;border-radius:13px!important;font-weight:800}.modal-footer:not(.modal-footer--split) .btn{margin-left:auto!important;padding-inline:22px}.modal-footer--split{gap:10px}.modal-footer--split .btn{width:50%}.modal .btn-primary{border-color:var(--purple)!important;background:var(--purple)!important;color:#fff!important}.modal .btn-secondary{border-color:var(--line)!important;background:var(--soft)!important;color:var(--ink)!important}.modal .btn-danger{border-color:var(--danger)!important;background:var(--danger)!important;color:#fff!important}.modal .close{margin:-4px -5px 0 auto;padding:8px;color:var(--ink);opacity:1}.form-group{margin-bottom:0}.form-group label{margin-bottom:8px;color:#53485a;font-size:.78rem;font-weight:760}.modal .form-control{min-height:50px;border:1px solid var(--line);border-radius:13px;background:#faf8fb;color:var(--ink)}.modal .form-control:focus{border-color:var(--purple);outline:3px solid rgba(105,36,125,.13)}.modal .alert{display:none;margin:12px 0 0;border:1px solid #efd28a;border-radius:11px;background:#fff8e5;color:#71571e}.modal .alert:not(:empty){display:block}.privacy-note{margin:16px 0 0;color:var(--muted);font-size:.8rem;text-align:center}.device-modal-body{display:grid;gap:12px}.device-preview{min-height:130px;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:var(--soft)}.camera-preview{position:relative;min-height:300px;overflow:hidden;border-radius:16px;background:var(--soft)}.camera-preview video{display:block;width:100%!important;height:300px!important;margin:0!important;object-fit:cover;background:var(--soft)}.camera-preview span{position:absolute;left:12px;bottom:12px;padding:5px 8px;border-radius:7px;background:rgba(45,37,51,.84);color:#fff;font-size:.72rem;font-weight:800}
@media(max-width:720px){.call-header{min-height:72px;padding:calc(9px + env(safe-area-inset-top,0px)) 13px 9px}.security-mark{width:32px;height:36px;flex-basis:32px}.security-mark svg{width:27px}.eyebrow{font-size:8px}.session-copy h1{font-size:16px}.secure-line{font-size:11px}.participant-count{min-width:52px;height:40px;padding-inline:10px}#room.call-stage{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 126px;gap:8px;padding:8px!important}#room:has(#participants:empty){grid-template-rows:minmax(0,1fr)}#active-participant .participant.main,#participants .participant{border-radius:18px!important}#participants{grid-row:2;flex-direction:row;overflow-x:auto;overflow-y:hidden}#participants .participant{flex:1 0 44%;min-height:126px}#video-controls.call-controls{min-height:68px;gap:8px;padding:10px 10px calc(10px + var(--safe-bottom))}#video-controls .btn{min-width:0;min-height:46px;flex:1 1 0;padding:0 9px;font-size:.76rem;white-space:nowrap}.modal.show{align-items:flex-end;padding:10px!important}.modal-dialog{width:100%!important;max-width:500px!important;margin:auto auto 0!important}.modal-content{max-height:calc(100dvh - 20px);overflow-y:auto;border-radius:22px!important}.modal-header{padding:20px 18px 6px!important}.modal-title{font-size:1.3rem}.modal-body{padding:12px 18px!important}.modal-footer{padding:8px 18px calc(18px + var(--safe-bottom))!important}.modal-footer:not(.modal-footer--split) .btn{width:100%}.camera-preview{min-height:220px}.camera-preview video{height:220px!important}}
@media(max-height:620px) and (orientation:landscape){.call-header{min-height:62px;padding-top:7px;padding-bottom:7px}#room.call-stage{grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:1fr}#participants{grid-row:auto;flex-direction:column}#video-controls.call-controls{min-height:58px;padding-top:6px;padding-bottom:calc(6px + var(--safe-bottom))}.modal.show{align-items:center}.camera-preview{min-height:180px}.camera-preview video{height:180px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
