:root{--bg-deep: #0e1621;--bg: #17212b;--bg-chat: #0e1621;--bg-elev: #1e2c3a;--bg-hover: #202b36;--accent: #3390ec;--accent-soft: rgba(51, 144, 236, .16);--accent-2: #64b5f6;--text: #f2f5f8;--text-2: #8a9aa9;--text-3: #6b7b8a;--border: #0a1119;--bubble-in: #182533;--bubble-out: #2b5278;--danger: #e05e5e;--green: #4fce5d;--radius: 12px;--shadow: 0 12px 40px rgba(0, 0, 0, .35)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg-deep);color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior:none}button{font-family:inherit;color:inherit;border:none;background:none;cursor:pointer;padding:0}input,textarea{font-family:inherit;color:inherit}a{color:var(--accent-2)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:8px}::-webkit-scrollbar-track{background:transparent}.icon-btn{width:40px;height:40px;min-width:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2);transition:background .15s ease,color .15s ease}.icon-btn:hover{background:#ffffff12;color:var(--text)}.icon-btn.active{color:var(--accent-2);background:var(--accent-soft)}.icon-btn.small{width:28px;height:28px;min-width:28px}.btn-primary,.btn-secondary,.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border-radius:10px;font-weight:600;font-size:14px;transition:filter .15s ease,background .15s ease}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{filter:brightness(1.08)}.btn-primary:disabled{opacity:.55;cursor:default}.btn-secondary{background:#ffffff14;color:var(--text)}.btn-secondary:hover{background:#ffffff21}.btn-primary.small,.btn-secondary.small{padding:6px 12px;font-size:13px}.btn-danger{background:#e05e5e24;color:#ff8b8b}.btn-danger:hover{background:#e05e5e3d}.btn-primary.grow,.btn-secondary.grow{flex:1}.link{color:var(--accent-2);font-size:13px;display:inline-flex;align-items:center;gap:3px;background:none;padding:0}.link:hover{text-decoration:underline}.spinner{width:28px;height:28px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.spinner.small{width:15px;height:15px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}.splash{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(900px 600px at 50% 20%,rgba(51,144,236,.18),transparent 60%),var(--bg-deep)}.splash-logo{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#54b0f9,#2b7fd4);box-shadow:0 10px 30px #3390ec66}.splash-name{font-size:24px;font-weight:700;letter-spacing:.5px}.auth{min-height:100%;display:grid;grid-template-columns:1.1fr 1fr;background:radial-gradient(1100px 700px at 0% 0%,#17385c 0%,transparent 55%),radial-gradient(900px 700px at 100% 100%,#2b1f4d 0%,transparent 55%),#0b1220}.auth-brand{padding:8vh 6vw;display:flex;flex-direction:column;justify-content:center;gap:18px}.auth-logo{width:84px;height:84px;border-radius:26px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#54b0f9,#2b7fd4);box-shadow:0 16px 44px #3390ec59}.auth-brand h1{font-size:46px;margin:0;letter-spacing:-.5px}.auth-tagline{color:#b9c7d6;font-size:17px;max-width:460px;line-height:1.5;margin:0}.auth-features{display:flex;flex-direction:column;gap:18px;margin-top:26px}.auth-feature{display:flex;gap:14px;color:var(--accent-2)}.auth-feature div{display:flex;flex-direction:column;gap:3px}.auth-feature b{color:var(--text);font-size:15px}.auth-feature span{color:var(--text-2);font-size:13.5px}.auth-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px}.auth-card{width:100%;max-width:400px;background:#17212beb;border:1px solid rgba(255,255,255,.06);border-radius:20px;padding:26px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.auth-tabs{display:flex;background:#00000040;border-radius:10px;padding:4px;margin-bottom:22px}.auth-tabs button{flex:1;padding:8px;border-radius:8px;color:var(--text-2);font-weight:600;font-size:13.5px}.auth-tabs button.active{background:var(--accent);color:#fff}.auth-card h2{margin:0 0 6px;font-size:22px}.auth-sub{color:var(--text-2);font-size:13.5px;margin:0 0 20px;line-height:1.4}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field>span{font-size:12.5px;color:var(--text-2);font-weight:500}.field input,.field textarea{background:var(--bg-deep);border:1px solid #223140;border-radius:10px;padding:11px 13px;font-size:14.5px;outline:none;transition:border-color .15s ease;width:100%;resize:vertical}.field input:focus,.field textarea:focus{border-color:var(--accent)}.field input:disabled{opacity:.55}.auth-error{background:#e05e5e24;color:#ff9b9b;border-radius:9px;padding:9px 12px;font-size:13px;margin-bottom:14px}.auth-submit{width:100%;padding:12px;font-size:15px}.auth-hint{text-align:center;color:var(--text-2);font-size:13px;margin-top:16px}.auth-footer{margin-top:18px;color:var(--text-3);font-size:12px}.app{display:flex;height:100vh;height:100dvh;overflow:hidden;background:var(--bg-chat)}.sidebar{width:400px;min-width:330px;display:flex;flex-direction:column;background:var(--bg);border-right:1px solid var(--border);position:relative;z-index:10}.sidebar-head{display:flex;align-items:center;gap:8px;padding:8px 10px;flex:none}.search-box{flex:1;display:flex;align-items:center;gap:8px;background:var(--bg-deep);border-radius:10px;padding:0 10px;height:40px;color:var(--text-2)}.search-box input{flex:1;background:none;border:none;outline:none;font-size:14px;min-width:0}.search-box input::placeholder{color:var(--text-3)}.chat-list{flex:1;overflow-y:auto;padding:4px 6px 90px}.global-search .section-title{font-size:12px;color:var(--text-3);text-transform:uppercase;letter-spacing:.4px;padding:10px 10px 6px}.search-hint{color:var(--text-3);font-size:13px;padding:12px 10px}.chat-item{width:100%;display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:10px;text-align:left;transition:background .12s ease}.chat-item:hover{background:#ffffff0b}.chat-item.active{background:var(--accent)}.chat-item.active .chat-item-preview,.chat-item.active .chat-item-time{color:#ffffffbf}.chat-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.chat-item-top,.chat-item-bottom{display:flex;align-items:center;gap:8px}.chat-item-name{flex:1;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.chat-item-time{font-size:11.5px;color:var(--text-3);flex:none}.chat-item-preview{flex:1;font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item-preview.typing{color:var(--accent-2);font-style:italic}.unread-badge{background:var(--accent);color:#fff;font-size:11.5px;font-weight:700;min-width:20px;height:20px;border-radius:10px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;flex:none}.chat-item.active .unread-badge{background:#fff;color:var(--accent)}.badge-channel{font-size:10px;text-transform:uppercase;letter-spacing:.4px;background:#ffffff1a;color:var(--text-2);border-radius:4px;padding:1px 4px;font-weight:600}.empty-list{display:flex;flex-direction:column;align-items:center;gap:6px;padding:60px 26px;text-align:center;color:var(--text-2);font-size:13px}.empty-list b{color:var(--text);font-size:15px}.empty-icon{width:74px;height:74px;border-radius:50%;background:#ffffff0d;display:flex;align-items:center;justify-content:center;margin-bottom:8px;color:var(--text-2)}.fab{position:absolute;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px #3390ec73;transition:transform .15s ease,filter .15s ease}.fab:hover{filter:brightness(1.08);transform:translateY(-1px)}.avatar{border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;overflow:visible;flex:none;position:relative;-webkit-user-select:none;user-select:none}.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.online-dot{position:absolute;right:0;bottom:0;background:#6b7b8a;border:2px solid var(--bg);border-radius:50%;display:block}.online-dot.is-online{background:var(--green)}.menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90}.profile-menu{position:absolute;top:54px;left:8px;width:288px;background:var(--bg-elev);border-radius:12px;box-shadow:var(--shadow);padding:6px;z-index:100;animation:pop .12s ease}@keyframes pop{0%{opacity:0;transform:scale(.97) translateY(-4px)}}.profile-menu-head{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border-radius:9px;text-align:left}.profile-menu-head:hover{background:#ffffff0d}.pm-name{font-weight:600;font-size:15px}.pm-username{color:var(--text-2);font-size:13px;margin-top:2px}.pm-balance{color:var(--text-2);font-size:12px;margin-top:3px;font-weight:600}.menu-sep{height:1px;background:#ffffff12;margin:6px 4px}.menu-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;font-size:14px;text-align:left;color:var(--text)}.menu-item:hover{background:#ffffff0f}.menu-item.danger{color:#ff8b8b}.dropdown{position:absolute;top:46px;right:0;min-width:200px;background:var(--bg-elev);border-radius:12px;box-shadow:var(--shadow);padding:6px;z-index:100;animation:pop .12s ease}.chat{flex:1;display:flex;flex-direction:column;min-width:0;background-color:var(--bg-chat);position:relative}.chat-head{height:60px;flex:none;display:flex;align-items:center;gap:8px;padding:0 10px;background:var(--bg);border-bottom:1px solid var(--border);z-index:20}.back-btn{display:none}.chat-peer{display:flex;align-items:center;gap:11px;padding:4px 6px;border-radius:10px;text-align:left;min-width:0}.chat-peer:hover{background:#ffffff0a}.chat-peer-info{display:flex;flex-direction:column;min-width:0}.chat-peer-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-peer-sub{color:var(--text-2);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-peer-sub.typing{color:var(--accent-2)}.chat-actions{margin-left:auto;display:flex;align-items:center;gap:2px}.attach-wrap{position:relative}.attach-menu{position:absolute;bottom:46px;left:0;background:var(--bg-elev);border-radius:12px;box-shadow:var(--shadow);padding:6px;width:210px;z-index:100;animation:pop .12s ease}.attach-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:14px}.attach-menu button:hover{background:#ffffff0f}.gift-wrap{position:relative}.gift-menu{min-width:230px}.gift-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-2);padding:8px 12px 6px}.gift-menu-balance{color:var(--text);font-weight:700}.gift-menu-title{font-size:12px;color:var(--text-2);padding:8px 12px 6px}.gift-menu-note{font-size:11px;color:var(--text-3);padding:6px 12px 8px}.gift-item{width:100%;display:flex;align-items:center;gap:10px}.gift-item-name{flex:1;text-align:left}.gift-item-price{color:var(--text-2);font-size:12px;font-weight:600}.gift-item.disabled{opacity:.45;cursor:default}.gift-row{display:flex;align-items:center;gap:10px;padding:2px 4px}.gift-emoji{font-size:36px;line-height:1}.gift-info{display:flex;flex-direction:column}.gift-title{font-size:12px;color:var(--text-2)}.gift-name{font-size:14px;font-weight:600}.gift-price{font-size:12px;color:var(--text-2);margin-top:2px}.gift-balance-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border-radius:14px;background:linear-gradient(135deg,#3390ec2e,#7e57c229);border:1px solid rgba(255,255,255,.08);margin-bottom:14px}.gift-balance-label{font-size:12px;color:var(--text-2)}.gift-balance-value{font-size:24px;font-weight:800;margin-top:2px}.gift-balance-side{text-align:right}.gift-balance-commission{font-size:20px;font-weight:800;margin-top:2px}.gift-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--text-2);font-size:13px}.gift-inventory{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow-y:auto}.gift-card{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.06)}.gift-card.sold{opacity:.6}.gift-card-emoji{font-size:34px;line-height:1}.gift-card-info{flex:1;min-width:0}.gift-card-name{font-weight:600;font-size:15px}.gift-card-sub{font-size:12px;color:var(--text-2);margin-top:2px}.gift-sold-badge{font-size:12px;color:var(--green);font-weight:600;white-space:nowrap}.gift-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:28px 12px;text-align:center;color:var(--text-2)}.gift-empty-hint{font-size:13px;color:var(--text-3)}.gift-note{font-size:12px;color:var(--text-3)}.messages{flex:1;overflow-y:auto;padding:10px 0 14px;background-color:var(--bg-chat);background-image:radial-gradient(circle at 18% 12%,rgba(51,144,236,.07),transparent 42%),radial-gradient(circle at 84% 82%,rgba(126,87,194,.06),transparent 46%),radial-gradient(circle at 60% 30%,rgba(43,130,212,.04),transparent 50%);scroll-behavior:auto}.messages-inner{max-width:880px;margin:0 auto;padding:0 18px;display:flex;flex-direction:column}.load-more{display:flex;justify-content:center;padding:8px}.load-more button{background:#ffffff12;padding:6px 14px;border-radius:999px;font-size:12.5px;color:var(--text-2)}.chat-empty-note{text-align:center;color:var(--text-3);font-size:13px;padding:50px 0}.date-divider{display:flex;justify-content:center;margin:16px 0 8px}.date-divider span{background:#0e1621b3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--text-2);font-size:12px;font-weight:500;padding:4px 12px;border-radius:999px}.system-msg{text-align:center;color:var(--text-2);font-size:12.5px;background:#00000040;border-radius:999px;padding:4px 12px;align-self:center;margin:8px 0}.typing-row{display:flex;align-items:center;gap:8px;color:var(--text-2);font-size:12.5px;padding:8px 4px}.typing-dots{display:inline-flex;gap:3px}.typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--accent-2);animation:blink 1.2s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes blink{0%,70%,to{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}.msg-row{display:flex;align-items:flex-end;gap:8px;margin-top:2px;position:relative}.msg-row.with-avatar{margin-top:12px}.msg-row.out{justify-content:flex-end}.msg-avatar-slot{width:34px;flex:none;align-self:flex-end}.msg-row.no-avatar .msg-avatar-slot{height:0}.bubble-col{max-width:72%;display:flex;flex-direction:column;align-items:flex-start;position:relative}.msg-row.out .bubble-col{align-items:flex-end}.msg-author{font-size:12.5px;font-weight:600;color:var(--accent-2);margin:0 0 3px 4px}.bubble{background:var(--bubble-in);border-radius:12px 12px 12px 4px;padding:7px 10px 6px;font-size:14.5px;line-height:1.38;position:relative;min-width:86px;max-width:100%;box-shadow:0 1px 2px #0000002e;word-wrap:break-word;overflow-wrap:anywhere}.msg-row.with-avatar .bubble{border-bottom-left-radius:4px}.msg-row.out .bubble{background:var(--bubble-out);border-bottom-left-radius:12px;border-bottom-right-radius:4px}.bubble.deleted{opacity:.75}.bubble.media{padding:3px;overflow:hidden}.msg-text{white-space:pre-wrap}.deleted-text{font-style:italic;color:var(--text-2)}.msg-text a{color:#8fcafc;text-decoration:none}.msg-text a:hover{text-decoration:underline}.msg-meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:7px -2px -2px 10px;font-size:11px;color:#ffffff80;position:relative;top:3px;-webkit-user-select:none;user-select:none}.bubble.media .msg-meta{position:absolute;right:8px;bottom:8px;float:none;margin:0;top:auto;background:#0000008c;color:#ffffffe6;padding:2px 7px;border-radius:999px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.msg-meta .check{color:#fff9}.msg-meta .check.read{color:#7fd2ff}.edited{font-size:10.5px}.msg-image{max-width:320px;max-height:380px;width:auto;border-radius:9px;display:block;cursor:zoom-in;object-fit:cover}.msg-video{max-width:340px;max-height:400px;border-radius:9px;display:block;background:#000}.reply-quote{display:flex;flex-direction:column;gap:2px;border-left:3px solid var(--accent-2);background:#00000029;border-radius:6px;padding:4px 8px;margin-bottom:5px;max-width:100%;text-align:left;min-width:140px}.reply-author{font-size:12px;font-weight:600;color:var(--accent-2)}.reply-text{font-size:12.5px;color:#ffffffb3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.file-row{display:flex;align-items:center;gap:10px;padding:5px 2px;color:var(--text);text-decoration:none;min-width:210px}.file-icon{width:40px;height:40px;border-radius:50%;background:#3390ec40;color:#9ed3ff;display:flex;align-items:center;justify-content:center;flex:none}.file-info{display:flex;flex-direction:column;min-width:0;flex:1}.file-name{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.file-size{font-size:11.5px;color:#ffffff8c}.file-dl{color:#fff9;flex:none}.call-row{display:flex;align-items:center;gap:9px;padding:4px 2px;font-size:14px}.voice-player{display:flex;align-items:center;gap:9px;min-width:210px;padding:3px 2px}.voice-btn{width:36px;height:36px;border-radius:50%;background:#ffffff24;display:flex;align-items:center;justify-content:center;flex:none;color:#fff}.msg-row.out .voice-btn{background:#ffffff2e}.voice-wave{display:flex;align-items:center;gap:2px;flex:1;height:28px;cursor:pointer}.voice-wave i{width:2.5px;border-radius:2px;background:#ffffff4d;transition:background .1s ease}.voice-wave i.played{background:var(--accent-2)}.voice-time{font-size:11.5px;color:#fff9;min-width:32px;text-align:right;flex:none}.reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;clear:both}.reaction{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:#ffffff17;font-size:12.5px;color:#fff;border:1px solid transparent}.reaction b{font-weight:600;font-size:11.5px}.reaction.mine{background:#3390ec52;border-color:#3390ec80}.msg-actions{position:absolute;top:-17px;display:flex;gap:1px;background:var(--bg-elev);border-radius:999px;padding:3px;box-shadow:0 4px 14px #00000059;opacity:0;pointer-events:none;transition:opacity .12s ease;z-index:6}.msg-row.out .msg-actions{right:0}.msg-row.in .msg-actions{left:0}.msg-row:hover .msg-actions,.msg-actions:focus-within{opacity:1;pointer-events:auto}.action-btn{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--text-2)}.action-btn:hover{background:#ffffff14;color:var(--text)}.action-btn.danger:hover{color:#ff8b8b}.action-btn.active{color:var(--accent-2)}.emoji-pop{position:absolute;top:-50px;display:flex;gap:2px;background:var(--bg-elev);border-radius:999px;padding:4px;box-shadow:var(--shadow);z-index:20}.emoji-pop.left{left:0}.emoji-pop.right{right:0}.emoji-pop button{width:32px;height:32px;border-radius:50%;font-size:18px;display:flex;align-items:center;justify-content:center}.emoji-pop button:hover{background:#ffffff1a}.edit-box{display:flex;flex-direction:column;gap:8px;min-width:240px}.edit-box textarea{background:#00000038;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:8px;resize:vertical;outline:none;font-size:14px}.edit-actions{display:flex;justify-content:flex-end;gap:8px}.mini-btn{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;padding:5px 10px;border-radius:8px;background:#ffffff14}.mini-btn.primary{background:var(--accent);color:#fff}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:4000;cursor:zoom-out}.lightbox img{max-width:92vw;max-height:92vh;border-radius:6px}.flash{animation:flashHighlight 1.2s ease}@keyframes flashHighlight{0%,to{background:transparent}30%{background:#3390ec2e}}.composer{flex:none;background:var(--bg);border-top:1px solid var(--border);padding:8px 14px;position:relative}.composer.readonly{text-align:center;color:var(--text-3);font-size:13px;padding:16px}.composer-row{display:flex;align-items:flex-end;gap:6px}.composer-row textarea{flex:1;background:var(--bg-deep);border:none;outline:none;border-radius:14px;padding:10px 14px;font-size:14.5px;line-height:1.4;resize:none;max-height:180px;min-height:42px}.composer-row textarea::placeholder{color:var(--text-3)}.send-btn{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;transition:filter .15s ease}.send-btn:hover{filter:brightness(1.1)}.reply-bar{display:flex;align-items:center;gap:10px;padding:4px 4px 8px}.reply-bar-line{width:3px;align-self:stretch;background:var(--accent);border-radius:2px}.reply-bar-body{flex:1;min-width:0}.reply-bar-title{font-size:12.5px;font-weight:600;color:var(--accent-2)}.reply-bar-text{font-size:12.5px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recording-bar{display:flex;align-items:center;gap:12px;padding:4px;min-height:44px}.rec-dot{width:11px;height:11px;border-radius:50%;background:#ff5a5a;animation:pulseDot 1.1s infinite}@keyframes pulseDot{50%{opacity:.35}}.rec-time{font-variant-numeric:tabular-nums;font-weight:600}.rec-hint{flex:1;color:var(--text-2);font-size:13px}.composer-status{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-2);padding-top:6px}.emoji-panel{position:absolute;bottom:54px;right:0;width:300px;max-height:260px;overflow-y:auto;background:var(--bg-elev);border-radius:12px;padding:8px;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;box-shadow:var(--shadow);z-index:100;animation:pop .12s ease}.emoji-panel button{font-size:20px;height:34px;border-radius:6px}.emoji-panel button:hover{background:#ffffff14}.drop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0e1621c7;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:200;pointer-events:none}.drop-box{border:2px dashed var(--accent);border-radius:18px;padding:40px 54px;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--accent-2);background:#3390ec14}.uploading-pill{position:absolute;bottom:78px;left:50%;transform:translate(-50%);background:var(--bg-elev);border-radius:999px;padding:6px 14px;font-size:12.5px;display:flex;align-items:center;gap:8px;color:var(--text-2);box-shadow:var(--shadow)}.empty-chat{align-items:center;justify-content:center}.empty-chat-inner{max-width:340px;text-align:center;color:var(--text-2);display:flex;flex-direction:column;align-items:center;gap:10px}.empty-chat-logo{width:96px;height:96px;border-radius:50%;background:linear-gradient(135deg,#54b0f933,#2b7fd41f);color:var(--accent-2);display:flex;align-items:center;justify-content:center;margin-bottom:8px}.empty-chat-inner h2{color:var(--text);margin:0;font-size:22px}.empty-chat-inner p{margin:0;font-size:13.5px;line-height:1.5}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#04080da8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:3000;padding:20px}.modal{width:440px;max-width:100%;max-height:88vh;background:var(--bg);border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;animation:modalIn .16s ease}.modal.wide{width:500px}@keyframes modalIn{0%{opacity:0;transform:translateY(10px) scale(.98)}}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 10px 20px;flex:none}.modal-head h3{margin:0;font-size:17px}.modal-body{padding:4px 20px 20px;overflow-y:auto}.tabs{display:flex;background:#00000038;border-radius:10px;padding:4px;margin-bottom:16px}.tabs button{flex:1;padding:8px;border-radius:8px;font-size:13.5px;color:var(--text-2);font-weight:600}.tabs button.active{background:var(--accent);color:#fff}.create-form{margin-bottom:8px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.chip{display:inline-flex;align-items:center;gap:5px;background:var(--accent-soft);color:var(--accent-2);border-radius:999px;padding:4px 6px 4px 10px;font-size:12.5px}.chip button{width:18px;height:18px;border-radius:50%;background:#ffffff1f;display:flex;align-items:center;justify-content:center}.modal-search{display:flex;align-items:center;gap:8px;background:var(--bg-deep);border-radius:10px;padding:0 12px;height:42px;color:var(--text-2);margin:4px 0 10px}.modal-search input{flex:1;background:none;border:none;outline:none;font-size:14px}.user-results{max-height:300px;overflow-y:auto;margin:0 -8px}.user-results.compact{max-height:190px}.user-row{width:100%;display:flex;align-items:center;gap:11px;padding:7px 8px;border-radius:9px;text-align:left}.user-row:hover{background:#ffffff0d}.user-row.selected{background:var(--accent-soft)}.user-row-info{flex:1;display:flex;flex-direction:column;min-width:0}.user-row-info b{font-size:14px;font-weight:600}.user-row-info span{font-size:12.5px;color:var(--text-2)}.pick-box{width:22px;height:22px;border-radius:50%;border:2px solid var(--text-3);display:flex;align-items:center;justify-content:center;flex:none}.pick-box.on{background:var(--accent);border-color:var(--accent);color:#fff}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.modal-footer.between{justify-content:space-between}.modal-footer.between .btn-primary{margin-left:auto}.settings-avatar{display:flex;flex-direction:column;align-items:center;gap:12px;margin:6px 0 20px}.settings-section-title{display:flex;align-items:center;gap:8px;margin:18px 0 10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);font-size:14px;font-weight:700;color:var(--text)}.settings-password-btn{width:100%;margin-bottom:16px}.settings-hint{margin:0 0 12px;color:var(--text-2);font-size:12.5px;line-height:1.5}.session-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.session-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#ffffff0a}.session-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent-2)}.session-info{flex:1;min-width:0}.session-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;font-weight:600}.session-current{padding:2px 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent-2);font-size:10.5px;font-weight:600}.session-meta{margin-top:2px;color:var(--text-2);font-size:11.5px;line-height:1.4}.session-revoke{flex-shrink:0}.settings-section-title.danger{color:var(--danger)}.danger-zone{margin-bottom:16px;padding:12px;border:1px solid rgba(224,94,94,.35);border-radius:12px;background:#e05e5e12}.danger-zone>p{margin:0 0 10px;color:var(--text-2);font-size:12.5px;line-height:1.5}.danger-zone .field{margin-bottom:4px}.check-row{display:flex;align-items:flex-start;gap:8px;margin:10px 0 12px;color:var(--text-2);font-size:12.5px;line-height:1.45}.check-row input{margin-top:2px;accent-color:var(--danger)}.danger-actions{display:flex;justify-content:flex-end;gap:8px}.profile-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:10px 0 6px}.profile-card h2{margin:10px 0 0;font-size:21px}.profile-username{color:var(--accent-2);font-size:14px}.profile-status{color:var(--text-2);font-size:12.5px}.profile-bio{margin:14px 0 4px;color:var(--text-2);font-size:13.5px;line-height:1.5;max-width:340px}.chat-info-head{display:flex;align-items:center;gap:14px;padding:6px 0 16px}.chat-info-avatar{position:relative;cursor:pointer}.avatar-edit{position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg)}.chat-info-title{flex:1;min-width:0}.chat-info-title h2{margin:0;font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-info-title input{width:100%;background:var(--bg-deep);border:1px solid var(--accent);border-radius:8px;padding:8px 10px;font-size:16px;outline:none}.chat-info-sub{color:var(--text-2);font-size:12.5px;margin-top:3px}.chat-description{color:var(--text-2);font-size:13.5px;line-height:1.5;margin:0 0 14px;white-space:pre-wrap}.modal-section{border-top:1px solid rgba(255,255,255,.07);padding-top:12px;margin-top:6px}.section-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--text-2);font-weight:600;margin-bottom:6px}.add-member{margin-bottom:8px}.member-list{max-height:260px;overflow-y:auto;margin:0 -6px}.member-row{display:flex;align-items:center;gap:10px;padding:6px;border-radius:8px}.member-row:hover{background:#ffffff0a}.member-info{flex:1;display:flex;flex-direction:column;min-width:0}.member-info b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-info span{font-size:12px;color:var(--text-2)}.role-badge{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:var(--accent-2);background:var(--accent-soft);border-radius:999px;padding:2px 8px;flex:none}.call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4000;background:radial-gradient(900px 600px at 50% 30%,rgba(51,144,236,.18),transparent 60%),#0a1119;display:flex;align-items:center;justify-content:center;color:#fff;overflow:hidden}.call-incoming{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.call-incoming h2{margin:10px 0 0;font-size:26px}.call-incoming p{margin:0;color:var(--text-2);font-size:14px}.call-pulse{position:relative;display:flex;align-items:center;justify-content:center}.call-pulse:before,.call-pulse:after{content:"";position:absolute;top:-18px;right:-18px;bottom:-18px;left:-18px;border-radius:50%;border:1px solid rgba(51,144,236,.4);animation:ringPulse 2.2s infinite ease-out}.call-pulse:after{animation-delay:1.1s}@keyframes ringPulse{0%{transform:scale(.9);opacity:.8}to{transform:scale(1.45);opacity:0}}.call-buttons{display:flex;gap:30px;margin-top:34px}.call-btn{width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;transition:transform .15s ease,filter .15s ease}.call-btn:hover{transform:scale(1.06)}.call-btn.decline{background:#e04848}.call-btn.accept{background:#43b854}.call-overlay.video{background:#05080c}.remote-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;background:#000}.local-video{position:absolute;right:22px;bottom:118px;width:168px;height:112px;object-fit:cover;border-radius:12px;border:2px solid rgba(255,255,255,.16);background:#000;z-index:5;transform:scaleX(-1)}.local-video.hidden{display:none}.call-audio-bg{display:flex;flex-direction:column;align-items:center;gap:8px}.call-audio-bg h2{margin:16px 0 0;font-size:28px}.call-audio-bg p{margin:0;color:var(--text-2);font-size:15px}.call-top-info{position:absolute;top:26px;left:0;right:0;text-align:center}.call-top-name{font-size:17px;font-weight:600}.call-top-status{font-size:13px;color:var(--text-2);margin-top:3px}.call-error{position:absolute;top:70px;left:50%;transform:translate(-50%);background:#e04848e6;padding:8px 16px;border-radius:999px;font-size:13px;max-width:90vw;text-align:center}.remote-audio{display:none}.call-unlock-audio{position:absolute;top:70px;left:50%;transform:translate(-50%);display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;border:none;background:var(--accent);color:#fff;font-size:13px;font-weight:600;cursor:pointer;z-index:12}.call-controls{position:absolute;bottom:36px;display:flex;gap:16px;z-index:10}.call-ctrl{width:58px;height:58px;border-radius:50%;background:#ffffff21;color:#fff;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .15s ease}.call-ctrl:hover{background:#ffffff38}.call-ctrl.off{background:#fffffff2;color:#111}.call-ctrl.hangup{background:#e04848;width:64px;height:64px}.toasts{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:8px;z-index:5000;max-width:340px}.toast{background:var(--bg-elev);border-radius:12px;padding:11px 14px;box-shadow:var(--shadow);cursor:pointer;border-left:3px solid var(--accent);animation:toastIn .2s ease}.toast.error{border-left-color:var(--danger)}.toast.success{border-left-color:var(--green)}@keyframes toastIn{0%{opacity:0;transform:translate(20px)}}.toast-title{font-size:13.5px;font-weight:600}.toast-text{font-size:12.5px;color:var(--text-2);margin-top:2px}@media(max-width:900px){.auth{grid-template-columns:1fr}.auth-brand{display:none}}@media(max-width:860px){.sidebar{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;min-width:0;z-index:10}.chat{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;display:none}.app.chat-open .chat{display:flex}.app.chat-open .sidebar{display:none}.back-btn{display:flex}.bubble-col{max-width:82%}.messages-inner{padding:0 10px}.msg-image{max-width:260px}.msg-video{max-width:270px}.local-video{width:110px;height:78px;bottom:110px;right:14px}.toasts{left:12px;right:12px;max-width:none}.empty-chat{display:none}}@media(max-width:480px){.auth-card{padding:20px}.modal-backdrop{padding:10px;align-items:flex-end}.modal{border-radius:16px;max-height:92vh}.call-buttons{gap:20px}.composer{padding:6px 8px calc(6px + env(safe-area-inset-bottom))}}
