:root{--bg-color: #0f172a;--panel-bg: rgba(30, 41, 59, .7);--panel-border: rgba(255, 255, 255, .1);--text-main: #f8fafc;--text-muted: #94a3b8;--accent: #3b82f6;--accent-hover: #2563eb;--success: #10b981;--success-hover: #059669;--danger: #ef4444;--danger-hover: #dc2626;--font-family: "Inter", sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{background:linear-gradient(135deg,#020617,#1e1b4b);color:var(--text-main);font-family:var(--font-family);min-height:100vh;display:flex;justify-content:center;align-items:flex-start;overflow-x:hidden}#root{width:100%;display:contents}#app{width:100%;max-width:1200px;padding:20px;display:flex;justify-content:center;min-height:100vh}.glass-panel{background:var(--panel-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--panel-border);border-radius:16px;box-shadow:0 4px 30px #00000080;padding:24px}.view{width:100%}.highlight{color:var(--accent);font-weight:600}#auth-view{max-width:400px;text-align:center;margin:auto}.auth-logo{font-size:3rem;margin-bottom:12px}#auth-view h1{font-size:2.2rem;font-weight:700;margin-bottom:8px;background:-webkit-linear-gradient(135deg,#60a5fa,#a78bfa);-webkit-background-clip:text;-webkit-text-fill-color:transparent}#auth-view>p{color:var(--text-muted);margin-bottom:28px}.register-sub{color:var(--text-muted);font-size:.88rem;margin-bottom:16px}.select-un-header{display:flex;align-items:center;gap:14px;margin-bottom:20px;text-align:left}.select-un-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#8b5cf6);display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:700;color:#fff;flex-shrink:0}.select-un-email{font-weight:600;font-size:.92rem;word-break:break-all}.select-un-sub{font-size:.78rem;color:var(--text-muted);margin-top:3px}.username-pick-list{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.un-pick-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:10px;background:#ffffff0d;border:1px solid rgba(255,255,255,.08);transition:background .2s,border-color .2s}.un-pick-item:hover{background:#3b82f61a;border-color:#3b82f64d}.un-pick-info{display:flex;align-items:center;gap:10px}.un-pick-icon{font-size:1.2rem}.un-pick-name{font-weight:600;font-size:.95rem}.select-un-divider{display:flex;align-items:center;gap:12px;color:var(--text-muted);font-size:.8rem;margin:14px 0 10px}.select-un-divider:before,.select-un-divider:after{content:"";flex:1;height:1px;background:#ffffff1a}input[type=text]{width:100%;padding:12px 16px;border-radius:8px;border:1px solid var(--panel-border);background:#0f172a99;color:var(--text-main);font-size:1rem;margin-bottom:16px;outline:none;transition:border-color .2s,box-shadow .2s}input[type=text]:focus{border-color:var(--accent);box-shadow:0 0 0 3px #3b82f633}.btn{width:100%;padding:12px 24px;border-radius:8px;border:none;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-family:var(--font-family)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.primary-btn{background:var(--accent);color:#fff}.primary-btn:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px)}.google-btn{background:#fff;color:#3c4043;font-weight:500;margin-top:8px}.google-btn:hover{background:#f8f9fa;transform:translateY(-1px)}.success-btn{background:var(--success);color:#fff}.success-btn:hover:not(:disabled){background:var(--success-hover)}.danger-btn{background:var(--danger);color:#fff}.danger-btn:hover:not(:disabled){background:var(--danger-hover)}.sm-btn{padding:6px 14px!important;font-size:.85rem!important;width:auto!important}.icon-btn{width:auto!important;padding:8px 12px!important;background:#ffffff14;border:1px solid rgba(255,255,255,.15);color:var(--text-main);border-radius:8px}.icon-btn:hover{background:#ffffff26}.error-msg{color:#f87171;margin-top:10px;font-size:.88rem;min-height:20px}.app-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:14px 20px}.header-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.1rem}.brand-icon{font-size:1.4rem}.header-right{display:flex;align-items:center;gap:10px}#dashboard-view{display:flex;flex-direction:column}.status{font-size:.9rem;display:flex;align-items:center;gap:8px}.status.online:before{content:"";display:block;width:9px;height:9px;background:var(--success);border-radius:50%;box-shadow:0 0 8px var(--success);flex-shrink:0}.call-controls{display:flex;flex-direction:column;gap:16px;max-width:440px;margin:0 auto}.call-controls h2{font-size:1.2rem;font-weight:600}.user-select-row{display:flex;gap:8px}.user-select-row select{flex:1;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:#00000040;color:#fff;font-size:1rem;cursor:pointer;font-family:var(--font-family)}.call-btn-main{margin-top:4px}.call-type-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px;background:#0f172a73;border:1px solid var(--panel-border);border-radius:10px}.call-type-btn{width:auto;border:1px solid transparent;border-radius:7px;padding:9px 10px;color:var(--text-muted);background:transparent;cursor:pointer;font:inherit;font-size:.86rem}.call-type-btn.active{color:#fff;background:#3b82f640;border-color:#60a5fa73}.active-call{display:flex;flex-direction:column}.call-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 4px}.call-summary strong{font-size:.95rem}.call-mode-badge{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:12px;background:#3b82f629;color:#bfdbfe;font-size:.72rem}.call-duration{font-variant-numeric:tabular-nums;color:var(--text-muted);font-size:.88rem}.video-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.38fr);gap:12px}.video-wrapper{position:relative;overflow:hidden;background:#000;aspect-ratio:16/9;padding:0}video{width:100%;height:100%;object-fit:cover;border-radius:16px}.remote-tile{min-height:330px}.local-tile{align-self:end}.video-label{position:absolute;bottom:12px;left:12px;background:#0009;padding:4px 12px;border-radius:20px;font-size:.88rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10}.audio-only-placeholder{display:none;position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:radial-gradient(circle at 50% 40%,#3b82f64d,#0f172af5 65%);text-align:center}.audio-only-placeholder span{display:grid;width:64px;height:64px;place-items:center;border-radius:50%;font-size:1.7rem;background:#3b82f638;border:1px solid rgba(147,197,253,.35)}.audio-only-placeholder strong{font-size:1rem}.audio-only-placeholder small{color:var(--text-muted)}.audio-only-call .video-wrapper video{display:none}.audio-only-call .audio-only-placeholder{display:flex}.call-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}.media-ctrl-btn{width:auto!important;padding:10px 18px!important;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:var(--text-main);font-size:.9rem;border-radius:8px;cursor:pointer;transition:all .2s ease}.media-ctrl-btn:hover{background:#ffffff2e}.media-ctrl-btn.active-toggle{background:#ef444433;border-color:#ef444480;color:#fca5a5}.end-call-btn{width:auto!important;min-width:140px}.call-type-note{margin:-14px 0 18px!important;font-size:.84rem;color:#bfdbfe!important}.ice-info-bar{display:flex;justify-content:center;margin-top:10px}.ice-status{font-size:.74rem;padding:3px 10px;border-radius:12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:var(--text-muted);transition:all .3s ease}.ice-status.checking,.ice-status.gathering{color:#fbbf24;border-color:#fbbf244d;background:#fbbf2414}.ice-status.connected,.ice-status.completed,.ice-status.complete{color:#34d399;border-color:#34d3994d;background:#34d39914}.ice-status.failed,.ice-status.disconnected{color:#f87171;border-color:#f871714d;background:#f8717114}.call-features{margin-top:20px;display:flex;flex-direction:column;padding:20px}.tabs-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--panel-border);padding-bottom:12px;margin-bottom:16px;flex-wrap:wrap;gap:10px}.tabs-nav{display:flex;gap:8px}.tab-btn{background:transparent;border:1px solid transparent;color:var(--text-muted);padding:8px 16px;border-radius:8px;font-size:.92rem;font-weight:500;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px;width:auto;font-family:var(--font-family)}.tab-btn:hover{color:var(--text-main);background:#ffffff0d}.tab-btn.active{color:#fff;background:#3b82f633;border-color:#3b82f666;box-shadow:0 0 12px #3b82f633}.tab-badge{background:var(--accent);color:#fff;font-size:.72rem;padding:2px 6px;border-radius:10px;font-weight:700}.channel-status{display:flex;align-items:center;gap:6px;font-size:.82rem;padding:4px 10px;border-radius:20px;background:#0000004d;border:1px solid var(--panel-border)}.status-dot{width:8px;height:8px;border-radius:50%;background:#eab308}.channel-status.connected .status-dot{background:var(--success);box-shadow:0 0 6px var(--success)}.channel-status.connecting .status-dot{background:#eab308;animation:pulse-dot 1.5s infinite}.channel-status.offline .status-dot{background:var(--danger)}.tab-content{display:none;flex-direction:column}.tab-content.active{display:flex}.chat-messages-container{height:220px;overflow-y:auto;padding:12px;background:#0f172a66;border:1px solid rgba(255,255,255,.05);border-radius:10px;margin-bottom:12px;display:flex;flex-direction:column;gap:8px}.system-message{text-align:center;font-size:.8rem;color:var(--text-muted);padding:4px}.chat-bubble{padding:8px 14px;border-radius:12px;max-width:78%;word-break:break-word;font-size:.93rem;line-height:1.4;display:flex;flex-direction:column;animation:fadeIn .2s ease}.chat-bubble.self{align-self:flex-end;background:linear-gradient(135deg,#4f46e5,#3b82f6);color:#fff;border-bottom-right-radius:4px}.chat-bubble.remote{align-self:flex-start;background:#ffffff1a;border-bottom-left-radius:4px;border:1px solid rgba(255,255,255,.05)}.chat-bubble .sender-label{font-size:.72rem;font-weight:600;opacity:.8;margin-bottom:2px}.chat-bubble .message-time{font-size:.68rem;opacity:.6;align-self:flex-end;margin-top:4px}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.chat-input-bar{display:flex;gap:10px;align-items:center}.chat-input-bar input[type=text]{flex:1;margin-bottom:0!important;background:#0f172acc;border:1px solid rgba(255,255,255,.15);border-radius:10px}.chat-input-bar input:disabled{opacity:.5;cursor:not-allowed}.chat-send-btn{width:auto!important;display:inline-flex!important;align-items:center;gap:8px;padding:12px 18px!important;border-radius:10px!important;white-space:nowrap}.chat-send-btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.drop-zone{border:2px dashed var(--panel-border);border-radius:12px;padding:28px 20px;text-align:center;color:var(--text-muted);cursor:pointer;transition:all .3s ease;background:#0f172a4d}.drop-zone:hover,.drop-zone.dragover{border-color:var(--accent);background:#3b82f61a;color:var(--text-main)}.drop-zone-icon{font-size:2rem;margin-bottom:6px}.drop-zone-primary{font-size:1rem;font-weight:500;color:var(--text-main)}.drop-zone-sub{font-size:.8rem;color:var(--text-muted);margin-top:4px}.file-section{margin-top:18px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#0f172a47}.file-section-header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.file-section-header h3{margin:0;font-size:.95rem}.file-section-header p{margin:3px 0 0;font-size:.76rem;color:var(--text-muted);max-width:380px}.shared-files-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.file-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;margin-left:4px;padding:0 5px;border-radius:10px;background:#3b82f638;color:#93c5fd;font-size:.72rem;vertical-align:middle}.file-list{list-style:none;display:flex;flex-direction:column;gap:8px;margin-top:12px}.file-history-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.file-history-group{min-width:0;padding:10px;border-radius:9px;background:#ffffff06;border:1px solid rgba(255,255,255,.06)}.file-history-group h4{font-size:.8rem;color:#bfdbfe;font-weight:600}.file-history-group .file-list{margin-top:9px}.file-list li{background:#ffffff0d;padding:10px 12px;border-radius:8px;display:flex;gap:10px;justify-content:space-between;align-items:center;border:1px solid rgba(255,255,255,.05)}.file-empty-state{color:var(--text-muted);font-size:.82rem;text-align:center;padding:12px}.selected-files-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.selected-file-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#3b82f617;border:1px solid rgba(59,130,246,.2)}.selected-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}.file-preview,.received-file-preview{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid rgba(255,255,255,.16);cursor:pointer}.received-file-preview{width:56px;height:56px;margin-left:auto}.file-queue-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.file-transfer-status{margin-top:10px;padding:8px 10px;color:#93c5fd;background:#3b82f61f;border-radius:7px;font-size:.8rem}.file-limit-note{margin:10px 0 0;color:var(--text-muted);font-size:.74rem;line-height:1.35}.file-secondary-btn{border:1px solid rgba(255,255,255,.16)!important;background:#ffffff0f!important;color:var(--text-main)!important}.file-send-btn{min-width:148px}.file-send-btn:disabled{background:#3b82f640;color:#bfdbfe}.file-type-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:7px;background:#ffffff14;font-size:1.25rem}.shared-file-row>span{min-width:0;overflow-wrap:anywhere;font-size:.84rem}.shared-file-row .success-btn{flex:0 0 auto}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;justify-content:center;align-items:center;z-index:1000;padding:20px}.modal-content{text-align:center;min-width:300px}.modal-content h3{margin-bottom:8px;font-size:1.2rem}.modal-content p{margin-bottom:24px;color:var(--text-muted)}.modal-actions{display:flex;gap:16px;justify-content:center}.call-modal-icon{font-size:2.5rem;margin-bottom:12px}.image-viewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:#020617eb}.image-viewer img{display:block;max-width:min(100%,900px);max-height:calc(100vh - 130px);object-fit:contain;border-radius:10px}.image-viewer-close{position:absolute;top:16px;right:16px}.image-viewer-footer{display:flex;align-items:center;gap:12px;max-width:min(100%,900px);width:100%;margin-top:14px;color:var(--text-main)}.image-viewer-footer span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-modal-content{width:100%;max-width:520px;text-align:left;max-height:85vh;overflow-y:auto}.profile-header{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--panel-border)}.profile-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#8b5cf6);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:700;color:#fff;flex-shrink:0}.profile-identity{flex:1}.profile-email{font-weight:600;font-size:.98rem;word-break:break-all}.profile-sub{font-size:.8rem;color:var(--text-muted);margin-top:3px}.close-btn{align-self:flex-start;background:#ffffff0f!important;border:1px solid rgba(255,255,255,.12)!important;font-size:1rem!important}.profile-section-header{margin-bottom:14px}.profile-section-header h3{font-size:1rem;font-weight:600;margin-bottom:4px}.profile-section-sub{font-size:.8rem;color:var(--text-muted)}.username-list{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.username-row{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-radius:10px;background:#ffffff0a;border:1px solid rgba(255,255,255,.07);transition:background .2s}.username-row:hover{background:#ffffff12}.username-row.active-row{background:#3b82f61a;border-color:#3b82f640}.un-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.un-name{font-weight:600;font-size:.95rem}.active-badge{background:#10b98133;color:#34d399;border:1px solid rgba(52,211,153,.3);font-size:.7rem;font-weight:600;padding:2px 8px;border-radius:10px;letter-spacing:.03em}.un-date{font-size:.75rem;color:var(--text-muted)}.un-actions{display:flex;gap:6px}.loading-row,.empty-row{color:var(--text-muted);font-size:.9rem;padding:12px;text-align:center}.error-row{color:#f87171;font-size:.9rem;padding:12px;text-align:center}.add-username-row{display:flex;gap:10px;align-items:center}.add-username-row input[type=text]{flex:1;margin-bottom:0;padding:10px 14px;font-size:.93rem}.toast-container{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:9999;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.toast{background:#1e293bf7;color:#f8fafc;padding:12px 22px;border-radius:10px;font-size:.92rem;border:1px solid rgba(255,255,255,.12);max-width:360px;text-align:center;box-shadow:0 4px 20px #00000080;animation:fadeIn .2s ease}.reconnect-banner{position:fixed;top:12px;left:50%;transform:translate(-50%);background:#f59e0b26;border:1px solid rgba(245,158,11,.4);color:#fcd34d;padding:10px 20px;border-radius:10px;text-align:center;z-index:9999;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.88rem;white-space:nowrap}.pulse{animation:pulse-anim 1.5s infinite}@keyframes pulse-anim{0%{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.8}to{transform:scale(1);opacity:1}}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.4}}@media(max-width:680px){#app{padding:12px}.app-header{padding:12px;margin-bottom:14px}.header-right{gap:6px}.header-right .status{max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.video-grid{grid-template-columns:1fr;gap:10px}.remote-tile{min-height:220px}.local-tile{min-height:145px;max-width:52%;justify-self:end}.call-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.media-ctrl-btn,.end-call-btn{width:100%!important;min-width:0;padding:10px 8px!important;font-size:.8rem}.call-features{padding:14px;margin-top:14px}.tabs-header{align-items:stretch}.tabs-nav{width:100%}.tab-btn{flex:1;justify-content:center;padding:8px 6px;font-size:.8rem}.channel-status{justify-content:center}.file-history-columns{grid-template-columns:1fr}}
