:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#e7eeff;background:#101626;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.shell{display:flex;height:100dvh;min-height:430px;max-width:1600px;margin:auto;box-shadow:0 0 85px #05091255}.sidebar{width:354px;flex-shrink:0;background:#151d30;display:flex;flex-direction:column;border-right:1px solid #2b354e}.brand{height:91px;padding:22px 21px;display:flex;gap:12px;align-items:center}.brand-symbol,.logo-large{display:grid;place-items:center;background:linear-gradient(150deg,#7a5ffd,#2ec4be);color:white;border-radius:15px;width:44px;height:44px;font-size:30px;box-shadow:0 10px 22px #4536ca33}.brand b{font-size:17px;display:block;white-space:nowrap}.brand b span{color:#a79aff}.brand small{font-size:11px;color:#93a0bd}.small-ghost{background:transparent;color:#aebadb;border:0;font-size:22px;margin-left:auto;padding:4px 8px}.heading{padding:15px 21px 10px;display:flex;align-items:center;justify-content:space-between}.heading h1{font-size:25px;margin:3px 0 0;letter-spacing:-.7px}.heading h1 span{font-size:11px;font-weight:500;border-radius:9px;background:#223c40;color:#75e6a6;padding:5px 8px;vertical-align:middle;letter-spacing:0}.heading small,.eyebrow{font-size:10px;letter-spacing:2px;color:#8192b7;font-weight:800}.square{display:inline-grid;place-items:center;min-width:39px;height:39px;padding:0 10px;background:#263149;border:1px solid #38435e;border-radius:11px;color:#d9e6ff;font-size:22px}.square:hover,.small-ghost:hover{background:#33415e}.search{margin:11px 21px 14px;border:1px solid #35415e;border-radius:12px;display:flex;align-items:center;background:#1e2940;padding:0 13px;gap:9px;color:#a3b2d0;font-size:23px}.search input{border:0;outline:0;background:transparent;color:white;font-size:13px;padding:13px 0;width:100%}.tabs{display:flex;margin:0 21px 10px;background:#1d2840;border-radius:12px;padding:4px}.tab{width:50%;background:none;color:#99a8c5;border:0;border-radius:9px;padding:10px;font-weight:700;font-size:12px}.tab.active{background:#424d77;color:white}.people-list{overflow:auto;flex:1;padding:5px 10px 20px;min-height:0}.person{display:flex;width:100%;border:0;background:transparent;color:inherit;text-align:left;align-items:center;gap:11px;padding:12px 11px;border-radius:13px}.person:hover,.person.selected{background:#263651}.avatar{background:linear-gradient(130deg,#725eea,#4b9bc7);color:white;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px;flex-shrink:0;position:relative}.avatar.on:after{content:'';width:9px;height:9px;border-radius:50%;background:#52d58b;border:2px solid #1b273c;position:absolute;right:0;bottom:1px}.person-details{min-width:0;flex:1}.person-details b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.person-details small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#91a1c1;font-size:11px;margin-top:4px}.unread{display:grid;place-items:center;background:#6d60f8;border-radius:50px;min-width:20px;padding:3px;color:white;font-size:11px;font-weight:700}.person-empty{color:#95a5c4;font-size:13px;padding:28px 18px;line-height:1.7}.profile{border-top:1px solid #2c3851;padding:17px 19px;display:flex;align-items:center;gap:11px}.avatar.self{background:#5e8ee8}.profile>div:nth-child(2){min-width:0}.profile b{display:block;font-size:14px}.profile small{color:#8797b7;font-size:11px}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#46d989;margin-right:3px}.main{flex:1;background:radial-gradient(circle at 80% 0%,#1d2750 0,#101626 49%);min-width:0}.empty-view{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;height:100%;padding:32px;color:#a8b4cc}.empty-view h2{font-size:26px;color:#edf3ff;margin:24px 0 4px}.empty-view p{max-width:440px;line-height:1.65;font-size:14px}.empty-bubbles{position:relative;width:124px;height:100px}.empty-bubbles span:first-child{display:grid;place-items:center;width:80px;height:75px;background:linear-gradient(145deg,#7659fd,#4bc5d6);color:white;font-size:40px;border-radius:24px 24px 5px 24px;transform:rotate(-9deg)}.empty-bubbles span:last-child{display:grid;place-items:center;width:78px;height:65px;border-radius:24px 24px 24px 5px;background:#2b3859;color:#c5caff;font-size:30px;position:absolute;right:-4px;bottom:-3px;transform:rotate(6deg)}.empty-pill{background:#223d41;color:#8ae7b5;padding:10px 15px;border-radius:40px;font-size:12px;margin-top:13px}.chat-view{display:flex;flex-direction:column;height:100%}.chat-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #2b3650;background:#1822398e}.chat-title{min-width:0;flex:1}.chat-title b{display:block;font-size:15px}.chat-title small{color:#90a3c4;font-size:12px}.head-tools{display:flex;gap:8px}.danger-text{color:#efb1b8}.back{display:none}.messages{flex:1;min-height:0;overflow-y:auto;padding:28px 27px 12px;display:flex;flex-direction:column;gap:12px}.message{display:flex;max-width:82%;gap:8px;align-items:flex-end}.message.mine{align-self:flex-end;flex-direction:row-reverse}.message .avatar{width:27px;height:27px;font-size:10px}.msg-content{min-width:0}.bubble{background:#293550;border-radius:16px 16px 16px 4px;padding:11px 14px;font-size:13px;line-height:1.52;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:linear-gradient(130deg,#6355e5,#7468fa);border-radius:16px 16px 4px 16px;color:white}.msg-meta{font-size:10px;color:#8496b3;margin-top:5px}.mine .msg-meta{text-align:right}.bubble img{max-width:min(300px,55vw);max-height:270px;display:block;border-radius:10px;margin-top:7px;object-fit:contain}.bubble a{color:#a1e9ff;word-break:break-word}.typing{height:18px;color:#9aa8ca;font-size:12px;padding:0 30px}.composer{display:flex;gap:10px;align-items:center;padding:16px 22px 19px;border-top:1px solid #29354f;background:#141e32}.composer input#messageInput{flex:1;border:1px solid #374763;outline:0;background:#202b42;border-radius:30px;padding:14px 18px;color:#e9efff;min-width:0;font-size:14px}.composer input:focus{border-color:#7b73ff}.composer button{border:0;border-radius:50%;width:43px;height:43px;background:#6f60f7;color:white;font-size:20px}.attach-btn{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#293a55;color:#c8d3ec;cursor:pointer;font-size:27px}.file-preview{padding:8px 24px;background:#1c2d44;color:#c5ddf0;font-size:13px}.auth-screen{position:fixed;inset:0;z-index:40;background:radial-gradient(circle at 20% 10%,#2a3873,#101626 55%);display:grid;grid-template-columns:1fr 430px;align-items:center;justify-content:center;gap:8%;padding:7% 13%}.auth-art h2{font-size:clamp(27px,4vw,56px);margin:20px 0 8px;letter-spacing:-1px}.auth-art h2 span{color:#a69cff}.auth-art p{color:#acbbd4;font-size:18px}.logo-large{width:80px;height:80px;font-size:58px}.features{margin-top:46px;color:#8d9dbe;font-size:12px}.auth-card{background:#1b2740;padding:37px 34px;border-radius:22px;border:1px solid #394767;box-shadow:0 26px 80px #03051255}.auth-card h2{margin:8px 0;font-size:27px}.auth-card p{font-size:13px;color:#9dacc9;margin:0 0 25px}.auth-card form{display:flex;flex-direction:column;gap:17px}.auth-card form label{font-size:10px;letter-spacing:1.2px;color:#94a5c7;font-weight:800}.auth-card input{width:100%;display:block;margin-top:8px;background:#152037;border:1px solid #374865;border-radius:11px;padding:13px 14px;color:white;outline:0;font-size:14px;letter-spacing:0}.auth-card input:focus{border-color:#7e71ff}.auth-error{color:#ff9da2;font-size:12px;min-height:16px}.primary{border:0;background:linear-gradient(125deg,#695cef,#8576ff);border-radius:11px;padding:14px;color:white;font-weight:800}.auth-switch{text-align:center;color:#97a7c6;font-size:12px;margin-top:23px}.auth-switch button{background:none;border:0;color:#b7a9ff;font-weight:800}.auth-foot{color:#7d8ca9;font-size:11px;line-height:1.6;border-top:1px solid #35425c;padding-top:17px;margin-top:23px}.call-modal{position:fixed;inset:0;z-index:60;background:#070b18ed;display:grid;place-items:center;padding:14px}.call-bg{pointer-events:none;position:absolute;width:min(760px,100%);height:80%;background:radial-gradient(ellipse,#3a2c7e77,transparent 70%)}.call-card{text-align:center;position:relative;width:min(690px,100%);max-height:95dvh;overflow:auto;padding:20px 10px}.call-brand{color:#a5aafa;font-size:12px;letter-spacing:2.5px;font-weight:800}.call-avatar{width:96px;height:96px;border-radius:50%;background:linear-gradient(135deg,#8561fe,#39b9be);display:grid;place-items:center;margin:25px auto 9px;font-size:38px;font-weight:800;box-shadow:0 0 0 15px #6d62dc14}.call-card h2{font-size:25px;margin:10px 0 4px}.call-status{color:#b5c3df;font-size:14px}.call-timer{color:#96a8c5;font-size:12px;margin:9px}.video-area{height:min(46vh,380px);margin:18px auto;position:relative;border-radius:18px;overflow:hidden;background:#080e1e;border:1px solid #40476c}.video-area video#remoteVideo{width:100%;height:100%;object-fit:cover}.video-area video#localVideo{position:absolute;right:12px;bottom:12px;width:110px;height:145px;object-fit:cover;border:2px solid #8a83ff;background:#222;border-radius:12px}.remote-cover{position:absolute;inset:0;display:grid;place-items:center;background:#17203a;color:#adb8dc;font-size:13px}.call-actions,.answer-actions{display:flex;justify-content:center;gap:18px;margin-top:25px;flex-wrap:wrap}.call-tool{background:#2a3454;border:0;border-radius:14px;color:white;padding:10px 14px;min-width:67px;display:grid;gap:6px}.call-tool span{font-size:25px}.call-tool small{font-size:11px}.call-tool.toggled{background:#625b9d}.call-tool.red,.decline{background:#ed4f63}.answer-actions button{border:0;color:white;padding:15px 28px;border-radius:35px;font-weight:700}.accept{background:#28b77f}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#36425c;color:#fff;padding:13px 20px;border-radius:15px;font-size:13px;z-index:90;box-shadow:0 15px 40px #0006;max-width:90vw}.file-badge{color:#b0d8ff;text-decoration:underline}.call-event{text-align:center;padding:8px;color:#adb7cf;font-size:11px}.offline-banner{color:#ffb8b8}.call-missed{color:#fc9da9}
@media(max-width:800px){.auth-screen{grid-template-columns:1fr;gap:25px;padding:22px;overflow:auto}.auth-art{text-align:center}.auth-art .logo-large{margin:0 auto}.auth-art h2{font-size:28px}.auth-art p{font-size:14px}.features{display:none}.auth-card{max-width:440px;width:100%;margin:0 auto;padding:28px 25px}.sidebar{width:295px}}@media(max-width:610px){.shell{height:100dvh;min-height:0}.sidebar{width:100%;border:0}.main{display:none}.shell.chat-open .sidebar{display:none}.shell.chat-open .main{display:block;width:100%}.back{display:inline-grid}.chat-head{padding:10px 11px;gap:8px}.chat-head .avatar{width:37px;height:37px}.head-tools{gap:4px}.head-tools .square{min-width:35px;padding:0 6px}.messages{padding:16px 12px}.message{max-width:92%}.composer{padding:11px 10px;padding-bottom:max(11px,env(safe-area-inset-bottom))}.auth-screen{padding:16px}.auth-card{padding:25px 20px}.video-area{height:39vh}.call-avatar{width:70px;height:70px;font-size:30px;margin-top:15px}}
