:root,[data-theme=dark]{--bg: #0e1621;--panel: #17212b;--panel-2: #202b36;--hover: #232f3b;--chat-bg: linear-gradient(165deg, #0d1622 0%, #101d2c 50%, #0c1520 100%);--bubble-in: #1b2836;--bubble-out: linear-gradient(135deg, #2b5278, #245086);--text: #eef3f7;--muted: #7d8b99;--accent: #5288c1;--accent-2: #8fc0f0;--border: #0b131c;--danger: #e06060;--green: #4fae4e;--bubble-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 14px rgba(0, 0, 0, .12);--pattern: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);--glow: rgba(82, 136, 193, .35)}[data-theme=light]{--bg: #f2f5f8;--panel: #ffffff;--panel-2: #f1f4f7;--hover: #eef2f5;--chat-bg: linear-gradient(165deg, #e8edf3 0%, #dde6ef 55%, #e4ebf2 100%);--bubble-in: #ffffff;--bubble-out: linear-gradient(135deg, #dff1fc, #cfe8fa);--text: #14202b;--muted: #8a99a8;--accent: #3390ec;--accent-2: #1b7fd6;--border: #dde4ea;--danger: #d94747;--green: #4fae4e;--bubble-shadow: 0 1px 3px rgba(16, 35, 55, .08), 0 5px 18px rgba(16, 35, 55, .07);--pattern: radial-gradient(rgba(16, 35, 55, .05) 1px, transparent 1px);--glow: rgba(51, 144, 236, .3)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{overscroll-behavior:none}@media(max-width:860px){html,body,#root{height:100%;min-height:100%;overflow:hidden}body{position:fixed;width:100%;height:100%}input,textarea,select{font-size:16px!important}}body{font-family:Segoe UI,Segoe UI Variable Text,system-ui,-apple-system,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:15px;-webkit-font-smoothing:antialiased;overflow:hidden}button,input,textarea{font-family:inherit}button{-webkit-tap-highlight-color:transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:6px}[data-theme=light] ::-webkit-scrollbar-thumb{background:#1023372e}::-webkit-scrollbar-thumb:hover{background:#fff3}.app{display:grid;grid-template-columns:384px minmax(0,1fr);height:100vh;height:100dvh;overflow:hidden;background:var(--bg)}.boot-screen{height:100vh;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bg)}.boot-logo,.empty-logo,.auth-logo{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#5288c1,#2b5278 70%);color:#fff;font-weight:700;border-radius:50%;box-shadow:0 12px 32px #2b527873}.boot-logo{width:64px;height:64px;font-size:28px}.auth-screen{position:relative;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 20% 20%,#1b2b3d,#0e1621 55%);overflow:hidden}[data-theme=light] .auth-screen{background:radial-gradient(circle at 20% 20%,#e8f1fa,#f6f9fc 60%)}.auth-glow{position:absolute;border-radius:50%;filter:blur(80px);opacity:.4;pointer-events:none}.auth-glow-1{width:420px;height:420px;background:#2b5278;top:-120px;left:-80px}.auth-glow-2{width:360px;height:360px;background:#5288c1;bottom:-140px;right:-60px;opacity:.25}.auth-card{position:relative;width:100%;max-width:400px;padding:28px;border-radius:20px;background:#17212bdb;border:1px solid rgba(255,255,255,.07);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 30px 80px #00000073}[data-theme=light] .auth-card{background:#ffffffe6;border-color:#10233714;box-shadow:0 24px 60px #1023371f}.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}.auth-logo{width:54px;height:54px;font-size:24px;flex-shrink:0}.auth-brand h1{margin:0;font-size:24px;letter-spacing:-.01em}.auth-brand p{margin:2px 0 0;color:var(--muted);font-size:13px}.auth-tabs{display:flex;gap:4px;padding:4px;background:var(--panel-2);border-radius:11px;margin-bottom:18px}.auth-tabs button{flex:1;padding:9px;border:none;background:none;color:var(--muted);border-radius:8px;cursor:pointer;font-size:14px;transition:.15s}.auth-tabs button.active{background:var(--accent);color:#fff;font-weight:600}.auth-tabs button:not(.active):hover{color:var(--text)}.field{display:block;margin-bottom:12px}.field>span{display:block;margin-bottom:6px;font-size:12.5px;color:var(--muted)}.field input,.field textarea,.inline-edit input{width:100%;padding:11px 12px;border-radius:10px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);outline:none;font-size:14.5px;transition:border-color .15s,background .15s}.field textarea{resize:vertical;min-height:56px}.field input:focus,.field textarea:focus,.inline-edit input:focus{border-color:var(--accent)}.auth-form{display:flex;flex-direction:column}.auth-submit{width:100%;margin-top:6px;padding:12px;font-size:15px}.auth-error{background:#e0525224;color:#ffb0b0;border-radius:9px;padding:9px 11px;font-size:13px;margin-bottom:8px}[data-theme=light] .auth-error{color:#b12c2c}.auth-hint{display:flex;gap:8px;align-items:flex-start;margin-top:16px;color:var(--muted);font-size:12.5px;line-height:1.45}.auth-hint svg{flex-shrink:0;margin-top:1px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;border:1px solid transparent;cursor:pointer;font-size:14px;transition:.15s;white-space:nowrap}.btn:disabled{opacity:.55;cursor:default}.btn.primary{background:var(--accent);color:#fff}.btn.primary:hover:not(:disabled){filter:brightness(1.08)}.btn.ghost{background:var(--panel-2);color:var(--text);border-color:var(--border)}.btn.ghost:hover:not(:disabled){background:var(--hover)}.btn.danger-ghost{background:transparent;color:var(--danger);border-color:#e0606066}.btn.danger-ghost:hover{background:#e060601f}.btn.small{padding:6px 10px;font-size:13px}.icon-btn{width:38px;height:38px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:none;background:none;color:var(--muted);border-radius:50%;cursor:pointer;transition:.15s}.icon-btn:hover{background:var(--hover);color:var(--text)}.icon-btn.small{width:28px;height:28px}.icon-btn.active{color:var(--accent-2)}.icon-btn.danger:hover{color:var(--danger);background:#e060601f}.sidebar{display:flex;flex-direction:column;min-width:0;background:var(--panel);border-right:1px solid var(--border);overflow:hidden}.sidebar-head{height:60px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 10px 0 12px;border-bottom:1px solid var(--border)}.peer-btn{padding:0;border:none;background:none;cursor:pointer;display:flex;border-radius:50%}.sidebar-title{flex:1;display:flex;align-items:center;gap:8px;font-size:19px;font-weight:600;letter-spacing:-.01em}.sidebar-brand{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(90deg,var(--text),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}.sidebar-owl{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;color:#fff;background:linear-gradient(145deg,#5f96cf,#2f5c94);box-shadow:0 4px 14px #5288c159;animation:owl-tilt 6s ease-in-out infinite}.sidebar-owl svg{color:#fff}@keyframes owl-tilt{0%,82%,to{transform:none}86%{transform:rotate(-6deg)}90%{transform:rotate(5deg)}94%{transform:none}}.conn{width:8px;height:8px;border-radius:50%;background:var(--muted);transition:.2s}.conn.online{background:var(--green);box-shadow:0 0 0 3px #4fae4e2e}.conn.connecting{background:#e2a33d}.sidebar-actions{display:flex;align-items:center;gap:2px}.search-wrap{display:flex;align-items:center;gap:8px;margin:8px 12px;padding:8px 11px;background:var(--panel-2);border-radius:10px;color:var(--muted);flex-shrink:0}.search-wrap input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--text);font-size:14.5px}.search-wrap input::placeholder{color:var(--muted)}.chat-scroll{flex:1;overflow-y:auto;padding:0 6px 14px}.section-label{display:flex;align-items:center;gap:8px;padding:12px 10px 6px;font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:600}.chats-label{padding-top:14px}.unread-pill{background:var(--accent);color:#fff;font-size:11px;padding:1px 7px;border-radius:10px;letter-spacing:0}.chat-item{display:flex;gap:12px;width:100%;padding:8px 10px;margin-bottom:1px;border:none;background:none;color:inherit;text-align:left;border-radius:11px;cursor:pointer;transition:background .12s}.chat-item:hover{background:var(--hover)}.chat-item.active{background:var(--accent)}.chat-item.active .chat-item-title,.chat-item.active .chat-item-time,.chat-item.active .chat-item-preview,.chat-item.active .chat-item-author{color:#fff}.chat-item.active .chat-item-preview,.chat-item.active .chat-item-time{color:#ffffffc7}.chat-item.active .unread-badge{background:#fff;color:var(--accent)}.chat-item-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}.chat-item-top,.chat-item-bottom{display:flex;align-items:center;gap:8px;min-width:0}.chat-item-title{flex:1;min-width:0;font-size:14.8px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item-time{font-size:11.5px;color:var(--muted);flex-shrink:0}.chat-item-preview{flex:1;min-width:0;font-size:13.3px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item-author{color:var(--muted)}.typing-preview{color:var(--accent-2)}.chat-item.active .typing-preview{color:#fff}.unread-badge{flex-shrink:0;min-width:20px;padding:2px 6px;border-radius:10px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:600;text-align:center}.unread-badge.muted{background:var(--muted)}.user-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:none;background:none;color:inherit;text-align:left;border-radius:10px;cursor:pointer;transition:background .12s}.user-row:hover{background:var(--hover)}.user-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.user-row-name{font-size:14.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-row-sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-row-send{color:var(--accent)}.empty-hint{padding:12px 14px;color:var(--muted);font-size:13px;line-height:1.45}.chat-pane{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;background:var(--chat-bg)}.chat-pane:before,.chat-pane:after{content:"";position:absolute;border-radius:50%;filter:blur(80px);opacity:.14;pointer-events:none;z-index:0}.chat-pane:before{width:420px;height:420px;top:-140px;right:-120px;background:radial-gradient(circle,var(--accent),transparent 70%);animation:blob-drift 26s ease-in-out infinite alternate}.chat-pane:after{width:360px;height:360px;bottom:-120px;left:-100px;background:radial-gradient(circle,#7b5cd6,transparent 70%);animation:blob-drift 32s ease-in-out infinite alternate-reverse}@keyframes blob-drift{0%{transform:translate(0) scale(1)}50%{transform:translate(-60px,40px) scale(1.12)}to{transform:translate(50px,-30px) scale(.94)}}.chat-head{height:60px;flex-shrink:0;display:flex;align-items:center;gap:6px;padding:0 8px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--panel) 86%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:relative;z-index:5}.back-btn{display:none}.chat-head-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:4px 6px;border:none;background:none;color:inherit;text-align:left;border-radius:10px;cursor:pointer}.chat-head-main:hover{background:var(--hover)}.chat-head-text{display:flex;flex-direction:column;min-width:0;gap:1px}.chat-head-title{font-size:15.5px;font-weight:600;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;gap:7px}.chat-head-owl{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;color:var(--accent-2);background:color-mix(in srgb,var(--accent) 18%,transparent);animation:owl-blink 5s ease-in-out infinite;flex-shrink:0}@keyframes owl-blink{0%,88%,to{transform:none;opacity:.9}92%{transform:scaleY(.75);opacity:.6}96%{transform:scaleY(1);opacity:.9}}.chat-head-sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-head-actions{display:flex;align-items:center;gap:2px}.menu-anchor{position:relative}.dropdown{position:absolute;top:44px;right:0;min-width:232px;padding:6px;background:var(--panel-2);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 44px #00000061;z-index:30}.dropdown button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;background:none;color:var(--text);font-size:14px;border-radius:8px;cursor:pointer;text-align:left}.dropdown button:hover{background:var(--hover)}.dropdown button.danger{color:var(--danger)}.chat-body{flex:1;display:flex;min-height:0;height:100%;overflow:hidden;position:relative}.messages-wrap{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;position:relative}.messages-wrap.dragging:after{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border:2px dashed var(--accent);border-radius:16px;pointer-events:none}.drop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#0e1621c7;color:var(--accent-2);font-size:14px;pointer-events:none;z-index:6}.messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:14px 18px 8px;display:flex;flex-direction:column;gap:2px;background-image:var(--pattern);background-size:26px 26px;scroll-behavior:auto;scrollbar-width:thin}.messages::-webkit-scrollbar{width:8px;transition:opacity .3s}.pinned-banner{display:flex;align-items:center;gap:6px;padding:5px 8px 5px 12px;background:var(--panel);border-bottom:1px solid var(--border);flex-shrink:0}.pinned-main{flex:1;min-width:0;display:flex;align-items:stretch;gap:10px;padding:2px 0;border:none;background:none;color:inherit;text-align:left;cursor:pointer}.pinned-bar{width:3px;border-radius:2px;background:var(--accent);flex-shrink:0}.pinned-label{display:block;font-size:11.5px;font-weight:600;color:var(--accent-2)}.pinned-text{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date-sep{align-self:center;margin:12px 0 8px}.date-sep span{background:#00000042;color:#cfdae4;padding:3px 11px;border-radius:999px;font-size:12px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}[data-theme=light] .date-sep span{background:#fffc;color:#6a7b8a}.load-older{align-self:center;margin-bottom:8px}.load-older button{padding:5px 14px;border-radius:999px;border:none;background:#00000038;color:#cfdae4;font-size:12.5px;cursor:pointer}[data-theme=light] .load-older button{background:#ffffffd9;color:#58707f}.chat-empty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);font-size:13.5px;padding:20px;text-align:center}.chat-empty-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--panel-2);color:var(--accent-2)}.msg-row{display:flex;align-items:flex-end;gap:8px;max-width:100%;margin-top:3px;scroll-margin:80px;animation:msg-arrive .22s cubic-bezier(.2,.9,.3,1.15) both;position:relative;z-index:1}.msg-row.mine{justify-content:flex-end;animation-name:msg-arrive-mine}@keyframes msg-arrive{0%{opacity:0;transform:translate(-14px) scale(.97)}to{opacity:1;transform:none}}@keyframes msg-arrive-mine{0%{opacity:0;transform:translate(14px) scale(.97)}to{opacity:1;transform:none}}.msg-avatar-col{width:34px;flex-shrink:0;align-self:flex-end}.msg-bubble-wrap{position:relative;display:flex;flex-direction:column;max-width:min(600px,74%);min-width:0}.msg-row.mine .msg-bubble-wrap{align-items:flex-end}.msg-bubble{position:relative;padding:7px 11px 6px;border-radius:14px 14px 14px 5px;background:var(--bubble-in);box-shadow:var(--bubble-shadow);max-width:100%;transition:background .5s}.msg-row.mine .msg-bubble{background:linear-gradient(135deg,var(--bubble-out),color-mix(in srgb,var(--bubble-out) 86%,#000));border-radius:14px 14px 5px}.msg-row.highlight .msg-bubble{background:#5288c173;box-shadow:0 0 0 2px var(--accent);animation:highlight-pulse .6s ease-in-out 2}@keyframes highlight-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}.msg-author{font-size:12.8px;font-weight:600;color:var(--accent-2);margin-bottom:2px}.msg-text{font-size:15px;line-height:1.4;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}.msg-text a{color:#8ec6ff;text-decoration:none}.msg-text a:hover{text-decoration:underline}[data-theme=light] .msg-text a{color:#1b7fd6}.deleted-text{font-style:italic;color:var(--muted)}.msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:2px;font-size:11px;color:var(--muted);white-space:nowrap}.msg-row.mine .msg-meta{color:#ffffff9e}[data-theme=light] .msg-row.mine .msg-meta{color:#6f8b56}.edited{font-size:10.5px}.ticks{display:inline-flex;color:#ffffff8c;margin-left:1px}.ticks.read{color:#8ed0ff}[data-theme=light] .ticks{color:#8ba37a}[data-theme=light] .ticks.read{color:#3d9be9}.reply-quote{display:block;width:100%;text-align:left;padding:4px 8px;margin-bottom:4px;border:none;border-left:2px solid var(--accent-2);border-radius:5px;background:#0000002e;color:inherit;cursor:pointer;overflow:hidden}[data-theme=light] .reply-quote{background:#1023370f}.reply-quote-author{display:block;font-size:12.3px;font-weight:600;color:var(--accent-2)}.reply-quote-text{display:block;font-size:12.8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-image{display:block;padding:0;margin:2px 0 5px;border:none;background:none;border-radius:10px;overflow:hidden;cursor:zoom-in;max-width:100%}.msg-image img{display:block;max-width:min(400px,100%);max-height:380px;width:auto;height:auto;object-fit:cover}.msg-file{display:flex;align-items:center;gap:10px;padding:6px;margin:2px 0 5px;border-radius:9px;background:#0000002e;text-decoration:none;color:inherit}[data-theme=light] .msg-file{background:#1023370f}.file-icon{width:36px;height:36px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff}.file-info{display:flex;flex-direction:column;gap:1px;min-width:0}.file-name{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.file-size{font-size:11.5px;color:var(--muted)}.reactions-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.reaction{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border:none;border-radius:999px;background:#ffffff1a;color:var(--text);font-size:12.5px;cursor:pointer;transition:.12s}.reaction:hover{background:#ffffff2e}.reaction.mine{background:var(--accent);color:#fff}.reaction.add{color:var(--muted)}.reaction-count{font-size:11.5px}[data-theme=light] .reaction{background:#10233714}.msg-toolbar{position:absolute;top:-34px;display:flex;gap:1px;padding:3px;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 26px #00000059;opacity:0;pointer-events:none;transition:opacity .12s;z-index:4}.msg-row:hover .msg-toolbar{opacity:1;pointer-events:auto}.msg-row.mine .msg-toolbar{right:0}.msg-row.theirs .msg-toolbar{left:0}.msg-toolbar button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:none;background:none;color:var(--muted);border-radius:7px;cursor:pointer}.msg-toolbar button:hover{background:var(--hover);color:var(--text)}.msg-toolbar button.danger:hover{color:var(--danger)}.reaction-picker{position:absolute;top:-46px;display:flex;gap:2px;flex-wrap:wrap;max-width:min(300px,calc(100vw - 32px));padding:5px 6px;background:var(--panel-2);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 34px #0006;z-index:8;animation:pop-in .14s ease-out}.msg-row.mine .reaction-picker{right:0}.msg-row.theirs .reaction-picker{left:0;right:auto}.reaction-picker button{width:30px;height:30px;border:none;background:none;font-size:18px;line-height:1;border-radius:7px;cursor:pointer;transition:transform .12s ease,background .12s ease}.reaction-picker button:hover{background:var(--hover);transform:scale(1.18)}@keyframes pop-in{0%{opacity:0;transform:translateY(4px) scale(.96)}to{opacity:1;transform:none}}.editing-mark{font-size:10.5px;color:var(--muted);margin-top:2px}.typing-bubble{align-self:flex-start;display:flex;align-items:center;gap:4px;padding:12px 14px;margin:6px 0 2px 42px;border-radius:14px 14px 14px 5px;background:var(--bubble-in);box-shadow:var(--bubble-shadow)}.typing-bubble span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:typing 1.2s infinite}.typing-bubble span:nth-child(2){animation-delay:.18s}.typing-bubble span:nth-child(3){animation-delay:.36s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.scroll-down{position:absolute;right:18px;bottom:16px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:var(--panel-2);color:var(--text);box-shadow:0 10px 26px #00000059;cursor:pointer;z-index:5}.scroll-down:hover{background:var(--hover)}.chat-search{width:330px;flex-shrink:0;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--panel)}.chat-search-head{display:flex;align-items:center;gap:6px;padding:8px;border-bottom:1px solid var(--border)}.search-wrap.in-panel{flex:1;margin:0}.chat-search-results{flex:1;overflow-y:auto;padding:6px}.search-result{display:flex;flex-direction:column;gap:3px;width:100%;padding:9px 10px;border:none;background:none;color:inherit;text-align:left;border-radius:9px;cursor:pointer}.search-result:hover{background:var(--hover)}.search-result-top{display:flex;justify-content:space-between;gap:8px}.search-result-author{font-size:13px;font-weight:600;color:var(--accent-2)}.search-result-date{font-size:11px;color:var(--muted)}.search-result-text{font-size:13px;line-height:1.35;color:var(--text)}.search-result-text mark{background:#ffc40066;color:inherit;border-radius:3px;padding:0 2px}.composer{flex-shrink:0;padding:8px 12px 12px;background:var(--panel);border-top:1px solid var(--border);position:relative}.composer-row{display:flex;align-items:flex-end;gap:4px}.composer-row textarea{flex:1;min-width:0;resize:none;border:none;outline:none;padding:10px 13px;border-radius:13px;background:var(--panel-2);color:var(--text);font-size:15px;line-height:1.4;max-height:180px}.composer-row textarea::placeholder{color:var(--muted)}.send-btn{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:.15s}.send-btn.active{background:var(--accent);color:#fff}.send-btn.active:hover{filter:brightness(1.1)}.send-btn:disabled{cursor:default}.composer-quote,.composer-file{display:flex;align-items:center;gap:9px;margin-bottom:7px;padding:7px 9px;border-radius:10px;background:var(--panel-2);border-left:3px solid var(--accent)}.composer-quote.editing{border-left-color:#e2a33d}.composer-quote-body{flex:1;min-width:0;display:flex;flex-direction:column}.composer-quote-author{font-size:12.5px;font-weight:600;color:var(--accent-2)}.composer-quote-text{font-size:12.8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-file img{width:38px;height:38px;object-fit:cover;border-radius:7px}.composer-file .file-icon{width:34px;height:34px}.emoji-pop{position:absolute;right:12px;bottom:68px;width:min(296px,calc(100vw - 24px));max-height:min(260px,45vh);overflow-y:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding:8px;background:var(--panel-2);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 44px #0006;z-index:12;animation:pop-in .14s ease-out}.emoji-pop button{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:none;background:none;font-size:19px;border-radius:7px;cursor:pointer;transition:transform .12s ease,background .12s ease}.emoji-pop button:hover{background:var(--hover);transform:scale(1.15)}.empty-chat{display:flex;align-items:center;justify-content:center;background:var(--chat-bg);background-image:var(--pattern);background-size:26px 26px}.empty-chat-inner{text-align:center;max-width:420px;padding:24px}.empty-logo{width:78px;height:78px;font-size:34px;margin:0 auto 14px}.empty-chat-inner h2{margin:0 0 4px;font-size:24px}.empty-chat-inner p{margin:0;color:var(--muted);font-size:14px}.empty-tips{display:flex;flex-direction:column;gap:9px;margin-top:24px;font-size:13px;color:var(--muted)}.empty-tips span{display:inline-flex;align-items:center;justify-content:center;gap:8px}.avatar{position:relative;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;overflow:visible;-webkit-user-select:none;user-select:none}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.avatar-initials{font-weight:600;letter-spacing:.01em;line-height:1}.online-dot{position:absolute;right:-1px;bottom:-1px;width:13px;height:13px;border-radius:50%;background:var(--green);border:2.5px solid var(--panel)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;background:#040a1099;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{width:100%;max-height:90vh;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:0 30px 80px #00000080;overflow:hidden;animation:modal-in .16s ease-out}@keyframes modal-in{0%{transform:translateY(8px) scale(.99);opacity:0}}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 8px 18px}.modal-head h2{margin:0;font-size:18px;letter-spacing:-.01em}.modal-subtitle{margin:3px 0 0;font-size:13px;color:var(--muted)}.modal-body{padding:6px 18px 18px;overflow-y:auto}.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}.avatar-picker{display:flex;flex-direction:column;align-items:center;gap:9px;margin-bottom:16px}.avatar-upload{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;font-size:13px;color:var(--accent-2);border-radius:8px;cursor:pointer}.avatar-upload:hover{background:var(--hover)}.settings-block{margin-top:6px;padding-top:6px;border-top:1px solid var(--border)}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}.settings-row-text{display:flex;flex-direction:column;gap:2px;font-size:14px}.settings-row-text small{font-size:12px;color:var(--muted)}.segmented{display:flex;gap:2px;padding:3px;background:var(--panel-2);border-radius:9px}.segmented button{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border:none;background:none;color:var(--muted);border-radius:7px;font-size:13px;cursor:pointer}.segmented button.active{background:var(--accent);color:#fff}.switch{position:relative;width:44px;height:25px;flex-shrink:0;border-radius:13px;border:1px solid var(--border);background:var(--panel-2);cursor:pointer;transition:.18s}.switch span{position:absolute;top:2px;left:2px;width:19px;height:19px;border-radius:50%;background:var(--muted);transition:.18s}.switch.on{background:var(--accent);border-color:var(--accent)}.switch.on span{left:21px;background:#fff}.user-picker{margin-top:4px}.user-picker .search-wrap{margin:0 0 6px}.user-picker-list{max-height:250px;overflow-y:auto}.user-row.pick .pick-check{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1.5px solid var(--border);color:#fff;flex-shrink:0}.user-row.pick .pick-check.on{background:var(--accent);border-color:var(--accent)}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);font-size:13px;cursor:pointer}.group-head{display:flex;align-items:center;gap:16px;margin-bottom:10px}.group-head .avatar-picker{margin-bottom:0}.group-title-edit{flex:1;min-width:0}.group-title-edit h3{margin:0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-sub{display:flex;align-items:center;gap:8px;margin-top:3px;font-size:13px;color:var(--muted)}.inline-edit{display:flex;align-items:center;gap:6px}.inline-edit input{padding:7px 9px;font-size:14px}.link-btn{padding:0;border:none;background:none;color:var(--accent-2);font-size:13px;cursor:pointer}.members-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.member-list{display:flex;flex-direction:column;gap:2px;max-height:280px;overflow-y:auto}.member-row{display:flex;align-items:center;gap:2px}.member-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:6px 8px;border:none;background:none;color:inherit;text-align:left;border-radius:9px;cursor:pointer}.member-main:hover{background:var(--hover)}.profile-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 4px}.profile-avatar{width:112px;height:112px;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#fff;font-size:40px;font-weight:600;margin-bottom:6px}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-card h3{margin:0;font-size:19px}.profile-username{font-size:14px;color:var(--muted)}.profile-status{font-size:13px;color:var(--accent-2)}.profile-bio{margin:12px 0 0;text-align:center;font-size:13.5px;line-height:1.5;color:var(--muted);white-space:pre-wrap}.spinner{display:inline-block;border:2px solid rgba(255,255,255,.22);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%);max-width:90vw;padding:10px 18px;border-radius:999px;background:var(--panel-2);border:1px solid var(--border);color:var(--text);font-size:14px;box-shadow:0 16px 40px #0006;z-index:300;animation:toast-in .18s ease-out}@keyframes toast-in{0%{transform:translate(-50%,8px);opacity:0}}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:40px;background:#000000e0;cursor:zoom-out}.lightbox img,.lightbox video{max-width:92vw;max-height:88vh;border-radius:6px;box-shadow:0 20px 60px #0009}.lightbox video{background:#000}.msg-video{position:relative;display:block;border:none;padding:0;background:none;border-radius:12px;overflow:hidden;cursor:pointer;max-width:320px}.msg-video video{display:block;width:100%;max-width:320px;max-height:240px;object-fit:cover;border-radius:12px;background:#000}.video-play-badge{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#00000080;color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:transform .15s ease}.msg-video:hover .video-play-badge{transform:scale(1.08)}.lightbox-close,.lightbox-download{position:absolute;top:18px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:#ffffff1f;color:#fff;cursor:pointer}.lightbox-close{right:18px}.lightbox-download{right:70px}.lightbox-close:hover,.lightbox-download:hover{background:#ffffff3d}@media(max-width:1100px){.app{grid-template-columns:340px minmax(0,1fr)}.chat-search{width:290px}}@media(max-width:860px){.app{grid-template-columns:1fr}.app .chat-pane,.app.chat-open .sidebar{display:none}.app.chat-open .chat-pane{display:flex}.back-btn{display:inline-flex}.chat-search{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;width:auto;box-shadow:-12px 0 40px #00000059}.msg-bubble-wrap{max-width:86%}.messages{padding:10px 10px 6px}.composer{padding:6px 8px 10px}.modal{max-height:94vh}}@media(max-width:520px){.msg-bubble-wrap{max-width:92%}.emoji-pop{width:calc(100vw - 24px);grid-template-columns:repeat(7,1fr);right:12px;left:12px}.auth-card{padding:22px}.empty-tips{display:none}}.call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;justify-content:center;background:#060c14eb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:fade-in .18s ease-out}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.call-stage{position:relative;width:min(880px,92vw);height:min(620px,86vh);border-radius:24px;overflow:hidden;background:linear-gradient(160deg,#1c2b3c,#0f1925 60%);border:1px solid rgba(255,255,255,.08);box-shadow:0 30px 80px #0000008c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.call-overlay.audio .call-stage{width:min(420px,92vw);height:min(520px,82vh)}.call-remote-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;background:#0a121b}.call-local-video{position:absolute;right:16px;top:16px;width:132px;height:176px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 30px #0006;background:#0a121b;z-index:3;transition:opacity .16s ease}.call-local-video.hidden{opacity:0}.call-placeholder{display:flex;align-items:center;justify-content:center;z-index:2}.call-avatar{width:124px;height:124px;border-radius:50%;display:grid;place-items:center;font-size:48px;font-weight:600;color:#fff;background:linear-gradient(145deg,#5f96cf,#2f5c94);box-shadow:0 18px 46px #00000073;animation:pulse-ring 2.4s ease-in-out infinite}@keyframes pulse-ring{0%,to{box-shadow:0 0 #5f96cf80,0 18px 46px #00000073}50%{box-shadow:0 0 0 18px #5f96cf00,0 18px 46px #00000073}}.call-info{position:relative;z-index:4;text-align:center;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.6)}.call-title{font-size:21px;font-weight:600}.call-status{font-size:13px;color:#ffffffa8;margin-top:2px;font-variant-numeric:tabular-nums}.call-actions{position:relative;z-index:4;display:flex;gap:14px;margin-top:6px}.call-btn{width:56px;height:56px;border-radius:50%;border:none;display:grid;place-items:center;cursor:pointer;color:#fff;background:#ffffff24;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .14s ease,background .14s ease}.call-btn:hover{transform:translateY(-2px) scale(1.04);background:#ffffff38}.call-btn.active{background:#e0606052}.call-btn.accept{background:#35a34a}.call-btn.accept:hover{background:#3fbb57}.call-btn.decline{background:#d64545}.call-btn.decline:hover{background:#e85454}.admin-modal{width:min(860px,94vw);max-height:min(760px,90vh)}.admin-body{padding:16px 18px 20px;overflow-y:auto}.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px;margin-bottom:16px}.stat-card{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;background:var(--panel-2);border:1px solid var(--border)}.stat-value{font-size:20px;font-weight:650}.stat-label{font-size:11.5px;color:var(--muted)}.admin-search{width:100%;margin-bottom:12px}.admin-users{display:flex;flex-direction:column;gap:6px}.admin-user{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:12px;background:var(--panel-2);border:1px solid var(--border)}.admin-user-info{flex:1;min-width:0}.admin-user-name{display:flex;align-items:center;gap:7px;font-weight:600;flex-wrap:wrap}.admin-user-sub{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user-actions{display:flex;gap:4px}.badge{font-size:10.5px;padding:2px 7px;border-radius:20px;font-weight:600;letter-spacing:.2px}.badge.admin{background:#8fc0f02e;color:var(--accent-2)}.field-label{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}.email-row{display:flex;gap:8px;align-items:stretch}.email-row input{flex:1;min-width:0}.email-msg{display:block;margin-top:6px;color:var(--muted);font-size:12px}.field .btn.small{margin-top:8px}.security-block{margin-top:14px}.security-title{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;color:var(--accent-2);margin-bottom:8px;letter-spacing:.2px}.security-row{align-items:center}.security-field{padding:0 0 4px}.password-row{flex-direction:column;align-items:stretch;gap:8px}.password-fields{display:flex;flex-direction:column;gap:8px}.password-fields input{padding:10px 13px;border-radius:10px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);outline:none;font-size:14px}.password-fields input:focus{border-color:var(--accent)}.password-msg{padding:8px 11px;border-radius:9px;font-size:12.5px;margin-top:8px}.password-msg.ok{background:#4fae4e1f;color:#6fce6d}.password-msg.err{background:#e060601f;color:var(--danger)}.privacy-block{margin-top:14px}.privacy-segmented{flex-wrap:wrap;justify-content:flex-end}.privacy-segmented button{font-size:12px;padding:6px 10px}.voice-note{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:13px;background:#ffffff0f;min-width:210px}.voice-note.mine{background:#ffffff1a}.voice-play{width:36px;height:36px;flex-shrink:0;border:none;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;cursor:pointer;transition:transform .14s ease,background .14s ease}.voice-play:hover{background:var(--accent-2);transform:scale(1.07)}.voice-wave{display:flex;align-items:center;gap:2px;flex:1;cursor:pointer;min-width:0;overflow:hidden}.voice-bar{width:3px;border-radius:2px;background:var(--muted);transition:background .15s ease,height .15s ease;flex-shrink:0}.voice-bar.played{background:var(--accent-2)}.voice-time{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0}.video-circle{position:relative;width:180px;height:180px;border-radius:50%;overflow:hidden;border:2px solid var(--accent);box-shadow:0 10px 30px #00000059;animation:pop-in .18s ease-out}.video-circle video{width:100%;height:100%;object-fit:cover;cursor:pointer}.video-circle.playing{border-radius:18px;transition:border-radius .25s ease;width:240px;height:320px}.circle-play{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:52px;height:52px;border-radius:50%;border:none;display:grid;place-items:center;background:#00000080;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.circle-play:hover{background:#000000a8}.rec-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:none;border-radius:11px;background:#e0606024;color:var(--danger);font-weight:600;font-size:13px;cursor:pointer;font-variant-numeric:tabular-nums;animation:pop-in .16s ease-out}.rec-btn:hover{background:#e0606038}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:pulse-ring 1.4s ease-in-out infinite}.rec-inline{color:var(--danger);font-size:13px;font-weight:600;animation:pulse-ring 1.4s ease-in-out infinite;padding:0 4px}.rec-preview{border-color:var(--danger)}.rec-video{width:72px;height:72px;border-radius:12px;object-fit:cover;background:#000}.circle-rec-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;display:flex;align-items:center;justify-content:center;background:#080e16d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:fade-in .2s ease-out}.circle-rec-stage{position:relative;width:min(360px,78vw);height:min(360px,78vw);border-radius:50%;overflow:hidden;border:3px solid var(--accent);box-shadow:0 0 0 10px #5288c11f,0 30px 80px #0000008c;animation:circle-pop .28s cubic-bezier(.2,.9,.3,1.25)}@keyframes circle-pop{0%{transform:scale(.82);opacity:0}to{transform:scale(1);opacity:1}}.circle-rec-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.circle-rec-top{position:absolute;top:18px;left:0;right:0;display:flex;justify-content:center;z-index:2}.rec-timer{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:20px;background:#0000008c;color:#fff;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.rec-timer .rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:pulse-ring 1.4s ease-in-out infinite}.circle-rec-actions{position:absolute;bottom:22px;left:0;right:0;display:flex;justify-content:center;gap:22px;z-index:2}.circle-rec-btn{width:58px;height:58px;border-radius:50%;border:none;display:grid;place-items:center;color:#fff;cursor:pointer;transition:transform .15s cubic-bezier(.2,.9,.3,1.3),box-shadow .15s ease}.circle-rec-btn:hover{transform:scale(1.1)}.circle-rec-btn.cancel{background:#e06060d9;box-shadow:0 6px 20px #e0606066}.circle-rec-btn.send{background:var(--green);box-shadow:0 6px 20px #4fae4e66}.circle-rec-hint{position:absolute;bottom:-44px;left:0;right:0;text-align:center;color:#fff9;font-size:13px;z-index:2}@media(max-width:520px){.circle-rec-stage{width:72vw;height:72vw}}.music-card{display:flex;align-items:center;gap:11px;padding:9px 12px;border:none;border-radius:13px;background:#ffffff12;color:inherit;cursor:pointer;min-width:230px;max-width:320px;text-align:left;transition:background .15s ease,transform .15s ease}.music-card:hover{background:#ffffff1f;transform:translateY(-1px)}.music-card.mine{background:#ffffff24}.music-cover{width:44px;height:44px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#7b5cd6,#4c3a9e);color:#fff;font-size:22px;font-weight:700}.music-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.music-title{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-sub{font-size:11px;color:var(--muted)}.music-play{flex-shrink:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ffffff24}.music-bar{position:fixed;left:50%;bottom:14px;transform:translate(-50%);z-index:45;display:flex;align-items:center;gap:12px;width:min(560px,calc(100vw - 20px));padding:10px 14px;border-radius:20px;background:linear-gradient(100deg,#5288c138,#7b5cd629),color-mix(in srgb,var(--panel-2) 90%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);border:1px solid rgba(143,192,240,.22);box-shadow:0 20px 50px #00000073,inset 0 1px #ffffff14;overflow:hidden;animation:bar-in .28s cubic-bezier(.2,.9,.3,1.2)}.music-bar:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent,rgba(143,192,240,.09),transparent);animation:sheen 4.5s ease-in-out infinite;pointer-events:none}@keyframes sheen{0%,to{transform:translate(-80%);opacity:0}50%{transform:translate(80%);opacity:1}}@keyframes bar-in{0%{transform:translate(-50%) translateY(24px);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.music-bar.playing:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:22px;border:1px solid rgba(143,192,240,.35);animation:bar-glow 2.4s ease-in-out infinite;pointer-events:none}@keyframes bar-glow{0%,to{opacity:.25}50%{opacity:.8}}.music-bar-cover{width:46px;height:46px;flex-shrink:0;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#7b5cd6,#2f5c94 80%);box-shadow:0 8px 22px #506ebe66;position:relative;z-index:1}.music-eq{display:flex;align-items:flex-end;gap:3px;height:18px}.music-eq i{width:3px;border-radius:2px;background:#ffffffd9;height:6px;transition:height .2s ease}.music-eq.on i{animation:eq-bounce .9s ease-in-out infinite}.music-eq.on i:nth-child(1){animation-delay:0s;height:10px}.music-eq.on i:nth-child(2){animation-delay:.15s;height:16px}.music-eq.on i:nth-child(3){animation-delay:.3s;height:12px}.music-eq.on i:nth-child(4){animation-delay:.45s;height:18px}.music-eq.on i:nth-child(5){animation-delay:.6s;height:8px}@keyframes eq-bounce{0%,to{transform:scaleY(.4)}50%{transform:scaleY(1.15)}}.music-bar-play{width:44px;height:44px;flex-shrink:0;border:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--accent-2),var(--accent));color:#fff;cursor:pointer;transition:transform .16s cubic-bezier(.2,.9,.3,1.3),box-shadow .16s ease;box-shadow:0 6px 18px #5288c173;position:relative;z-index:1}.music-bar-play:hover{transform:scale(1.09);box-shadow:0 8px 24px #5288c199}.music-bar-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;position:relative;z-index:1}.music-bar-title{font-size:13.5px;font-weight:650;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-bar-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-bar-progress{height:5px;border-radius:4px;background:#ffffff24;cursor:pointer;overflow:hidden;position:relative}.music-bar-progress:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent 30%,rgba(255,255,255,.12) 50%,transparent 70%);animation:sheen 2.8s linear infinite}.music-bar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .2s linear;position:relative}.music-bar-fill:after{content:"";position:absolute;right:-4px;top:50%;transform:translateY(-50%);width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 6px #0006;opacity:0;transition:opacity .15s ease}.music-bar-progress:hover .music-bar-fill:after{opacity:1}.music-bar-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;position:relative;z-index:1}@media(max-width:520px){.music-bar{bottom:74px;width:calc(100vw - 16px)}.music-bar-time{display:none}}@media(max-width:520px){.voice-note{min-width:160px}.video-circle{width:150px;height:150px}.video-circle.playing{width:200px;height:270px}}.badge.ok{background:#4fae4e29;color:#6fce6d}.badge.warn{background:#e2a83f29;color:#e2a83f}.badge.danger{background:#e0606029;color:var(--danger)}.admin-error,.admin-notice{padding:9px 12px;border-radius:10px;font-size:13px;margin-bottom:10px}.admin-error{background:#e060601f;color:var(--danger)}.admin-notice{background:#4fae4e1f;color:#6fce6d}.admin-loading,.admin-empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}.btn.small{padding:6px 10px;font-size:12.5px}.btn.ghost.small{padding:7px;border-radius:9px}.btn.ghost.small.danger{color:var(--danger)}.email-banner{position:fixed;left:50%;bottom:18px;transform:translate(-50%);z-index:40;display:flex;align-items:center;gap:10px;max-width:min(680px,calc(100vw - 24px));padding:10px 12px;border-radius:14px;background:var(--panel-2);border:1px solid var(--border);box-shadow:0 16px 40px #0000005c;font-size:13px;color:var(--text);animation:pop-in .2s ease-out}.email-banner span{flex:1;line-height:1.4}.verify-card{text-align:center;align-items:center}.verify-card h2{margin:12px 0 6px;font-size:20px}.verify-card p{color:var(--muted);font-size:14px;margin:0 0 16px}.verify-icon{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:0 auto}.verify-icon.ok{background:#4fae4e24;color:#6fce6d}.verify-icon.error{background:#e0606024;color:var(--danger)}.auth-notice{padding:9px 11px;border-radius:10px;background:#4fae4e1f;color:#6fce6d;font-size:12.5px}.chat-item,.user-row,.btn,.icon-btn,.call-btn-head{transition:background .16s ease,transform .16s ease,color .16s ease,box-shadow .16s ease}.chat-item:hover{transform:translate(2px)}.icon-btn:hover{background:var(--hover)}.icon-btn.admin-btn{color:var(--accent-2)}.call-btn-head:hover{color:var(--green)}.msg-row .bubble{transition:transform .12s ease}.msg-row:hover .bubble{transform:translateY(-1px)}@keyframes msg-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(max-width:1024px){.app{grid-template-columns:320px minmax(0,1fr)}}@media(max-width:860px){.app{grid-template-columns:1fr}.chat-head{padding:8px;gap:6px}.chat-head-actions{gap:2px}.chat-head-actions .icon-btn{width:38px;height:38px}.chat-head-title{font-size:15px}.email-banner{bottom:74px;flex-wrap:wrap}.email-banner span{min-width:100%}.call-local-video{width:96px;height:128px;right:10px;top:10px}.admin-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.admin-user{flex-wrap:wrap}.admin-user-actions{width:100%;justify-content:flex-end}}@media(max-width:520px){.call-stage,.call-overlay.audio .call-stage{width:100vw;height:100dvh;border-radius:0;border:none}.call-avatar{width:96px;height:96px;font-size:38px}.call-actions{gap:10px}.call-btn{width:50px;height:50px}.modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
