:root{--bg: #0b141a;--bg-2: #111b21;--bg-3: #202c33;--panel: #1a242b;--chat: #0b141a;--text: #e9edef;--muted: #8696a0;--accent: #00a884;--accent-2: #027a63;--out: #005c4b;--in: #202c33;--danger: #f15c6d;--line: rgba(255, 255, 255, .08);--shadow: 0 18px 50px rgba(0, 0, 0, .35);font-family:Outfit,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;height:100dvh;max-height:100%;margin:0;overflow:hidden}body{background:#0a1014;color:var(--text)}button,input{font:inherit}button{cursor:pointer}input{width:100%;background:var(--bg-3);border:1px solid transparent;color:var(--text);border-radius:10px;padding:12px 14px;outline:none}input:focus{border-color:var(--accent)}.primary,.send{background:var(--accent);color:#06281f;border:0;border-radius:10px;padding:12px 16px;font-weight:700}.primary:disabled,.send:disabled{opacity:.45}.link{background:none;border:0;color:var(--accent);padding:8px 0;width:100%}.danger{margin-top:8px;width:100%;background:transparent;border:1px solid var(--danger);color:var(--danger);border-radius:10px;padding:10px}.icon{background:transparent;border:0;color:var(--text);width:40px;height:40px;border-radius:50%;font-size:18px}.icon:hover{background:var(--bg-3)}.boot{display:grid;place-items:center;height:100%;color:var(--muted)}.auth{min-height:100%;height:100%;display:grid;place-items:center;padding:24px;overflow:auto}.auth-card{width:min(420px,100%);background:var(--bg-2);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow)}.brand{text-align:center;margin-bottom:22px}.brand img{border-radius:0;background:transparent}.empty-pane img[alt=ICQ]{border-radius:18px}.old-mark{opacity:.9;margin:4px auto 12px;display:block}.brand h1{margin:10px 0 6px;letter-spacing:-.03em}.brand p,.muted{color:var(--muted);line-height:1.45}.auth-card form{display:grid;gap:10px}.auth-card label{font-size:13px;color:var(--muted)}.error{color:#ffd6db;font-size:15px;background:#4a1820;border-radius:8px;padding:10px 12px}.dev-otp{background:#1f3b34;color:#9ff5df;border-radius:8px;padding:8px 10px;font-family:ui-monospace,monospace}.app-frame{height:100%;min-height:0}.shell{height:100%;display:grid;grid-template-columns:380px 1fr;grid-template-rows:minmax(0,1fr);background:var(--bg-2);min-height:0;overflow:hidden}.sidebar{display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--bg-2);min-height:0}.brand-mini{border-radius:0;background:transparent;flex:none}.side-head,.pane-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--panel);min-height:64px;flex:none}.me-btn{flex:1;display:flex;gap:10px;align-items:center;background:none;border:0;color:inherit;text-align:left}.me-btn strong,.pane-head strong,.meta strong{display:block}.me-btn em,.pane-head em,.meta em{color:var(--muted);font-style:normal;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search{padding:8px 12px 12px;display:grid;gap:8px}.start-chat label{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}.start-row{display:flex;gap:8px}.start-row input{flex:1}.start-row .primary{width:auto;padding:10px 16px}.start-chat.compact label{display:none}.lookup{margin:8px 0 0;font-size:13px}.lookup.ok{color:#9ff5df}.lookup.miss{color:#f7b731}.found-user{width:100%;margin-top:10px;display:flex;gap:12px;align-items:center;background:#1f3b34;border:1px solid var(--accent);color:inherit;border-radius:10px;padding:10px 12px;text-align:left}.found-user span,.user-results li button span{min-width:0;display:grid}.found-user strong,.user-results li button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.found-user em{display:block;color:#9ff5df;font-style:normal;font-size:13px}.user-results li button em{display:block;color:var(--muted);font-style:normal;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggle-row{display:flex;align-items:center;gap:12px;padding:10px 0 4px;cursor:pointer}.toggle-row span{flex:1;min-width:0;display:grid;gap:4px}.toggle-row strong{color:var(--text);font-size:14px}.toggle-row em{color:var(--muted);font-style:normal;font-size:13px;line-height:1.4}.toggle-row input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--accent)}.filter-chats{background:#0e171c}.user-results{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:320px;overflow:auto}.user-results li{background:var(--bg-3);border-radius:10px}.chats{list-style:none;margin:0;padding:0;overflow:auto;flex:1}.chats li button,.user-results li button{width:100%;display:flex;gap:12px;align-items:center;background:none;border:0;color:inherit;padding:10px 14px;text-align:left}.chats li.on,.chats li button:hover,.user-results li button:hover{background:var(--bg-3)}.meta{flex:1;min-width:0}.row{display:flex;justify-content:space-between;gap:8px}.row.sub em{flex:1}.row time,.stamp{color:var(--muted);font-size:12px}.row b{background:var(--accent);color:#06281f;border-radius:999px;min-width:18px;height:18px;display:inline-grid;place-items:center;font-size:11px}.empty-chats,.empty,.empty-pane{color:var(--muted);text-align:center;padding:28px 16px}.side-foot{color:var(--muted);font-size:11px;padding:8px 14px;border-top:1px solid var(--line)}.pane{position:relative;width:100%;min-width:0;height:100%;max-height:100%;min-height:0;overflow:hidden;background:linear-gradient(#0b141aeb,#0b141aeb),repeating-linear-gradient(135deg,#122027 0,#122027 12px,#0e1a20 12px,#0e1a20 24px)}.empty-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;margin:auto;max-width:420px;height:fit-content}.pane-chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.pane-chat .pane-head{position:relative;z-index:3}.pane-chat .messages{position:relative;min-height:0;overflow-x:hidden;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain;padding:18px 8vw 12px;display:flex;flex-direction:column;gap:6px}.pane-chat .composer-wrap{position:relative;z-index:4}.messages:before{content:"";flex:1 1 0;min-height:0}.messages-end{height:1px;flex:none}.msg-row{display:flex;width:100%;flex:none}.msg-row.mine{justify-content:flex-end}.msg-row.theirs{justify-content:flex-start}.who{display:block;font-size:11px;font-weight:700;margin-bottom:2px;opacity:.85}.msg-row.theirs .who{color:#53bdeb}.msg-row.mine .who{color:#9ff5df}.bubble{max-width:min(72%,560px);padding:8px 10px 4px;border-radius:10px;box-shadow:0 1px #0003;white-space:pre-wrap;word-break:break-word}.bubble p{margin:0 0 4px}.bubble.in{align-self:flex-start;background:#202c33;color:#e9edef;border-top-left-radius:0}.bubble.out{align-self:flex-end;background:#005c4b;color:#e9edef;border-top-right-radius:0}.bubble-img{display:block;max-width:min(280px,70vw);max-height:320px;border-radius:8px;margin-bottom:6px}.attach-btn{position:relative;display:grid;place-items:center;overflow:hidden;cursor:pointer}.attach-btn input[type=file]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;font-size:16px;cursor:pointer}.bubble.typing{letter-spacing:3px;color:var(--muted);flex:none}.stamp{display:flex;justify-content:flex-end;gap:6px;align-items:center}.checks{font-size:11px;color:#99beb5}.checks.read{color:#53bdeb}.composer-wrap{position:relative;background:var(--panel);z-index:4}.composer{display:flex;gap:8px;padding:10px 12px 16px;align-items:center}.composer input{border-radius:24px}.emoji-btn{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--bg-3);font-size:22px;line-height:1}.emoji-pop{position:absolute;left:10px;right:10px;bottom:72px;background:var(--bg-2);border:1px solid var(--line);border-radius:14px;padding:8px 10px 12px;box-shadow:var(--shadow);z-index:8}.emoji-pop header{display:flex;justify-content:space-between;align-items:center}.emoji-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-height:220px;overflow:auto}.emoji-grid button{border:0;background:transparent;font-size:22px;height:40px;border-radius:8px}.emoji-grid button:hover{background:var(--bg-3)}.send{width:46px;height:46px;border-radius:50%;padding:0;font-size:18px}.avatar-wrap{position:relative;flex:none}.avatar{border-radius:50%;display:grid;place-items:center;font-weight:700;color:#06281f}.online-dot{position:absolute;right:0;bottom:0;width:10px;height:10px;background:#26d367;border:2px solid var(--bg-2);border-radius:50%}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:grid;place-items:center;padding:16px;z-index:20}.modal{width:min(440px,100%);background:var(--bg-2);border-radius:16px;border:1px solid var(--line);padding:8px 16px 16px}.modal header{display:flex;justify-content:space-between;align-items:center}.modal form{display:grid;gap:8px}html[data-layout=desktop] body{background:linear-gradient(#0b3b34 0 127px,transparent 127px),#0a1014}html[data-layout=desktop] .app-frame.layout-desktop{display:flex;align-items:center;justify-content:center;height:100%;max-height:100%;padding:16px 20px 20px;box-sizing:border-box}html[data-layout=desktop] .shell.layout-desktop{width:min(1440px,100%);height:min(920px,100%);min-height:0;border-radius:6px;overflow:hidden;box-shadow:var(--shadow);grid-template-columns:420px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}html[data-layout=desktop] .auth{background:transparent}html[data-layout=mobile] body,html[data-layout=mobile] #root,html[data-layout=mobile] .app-frame,html[data-layout=mobile] .shell{height:100%;max-height:100%;overflow:hidden}html[data-layout=mobile] .shell.layout-mobile{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:100%;max-width:none;border-radius:0;box-shadow:none;overflow:hidden}html[data-layout=mobile] .sidebar,html[data-layout=mobile] .pane{min-height:0;height:100%}html[data-layout=mobile] .side-head,html[data-layout=mobile] .pane-head{padding-top:calc(10px + env(safe-area-inset-top));min-height:calc(64px + env(safe-area-inset-top))}html[data-layout=mobile] .empty-pane{padding:20px 16px 80px}html[data-layout=mobile] .chats li button{padding:14px 16px;min-height:72px}html[data-layout=mobile] .messages{padding:12px 12px 8px}html[data-layout=mobile] .bubble{max-width:84%}html[data-layout=mobile] .composer{padding:8px 10px calc(10px + env(safe-area-inset-bottom))}html[data-layout=mobile] .emoji-grid{grid-template-columns:repeat(8,1fr)}html[data-layout=mobile] .composer input{font-size:16px;min-height:44px}html[data-layout=mobile] .send{width:48px;height:48px}html[data-layout=mobile] .auth{padding:0;align-items:stretch}html[data-layout=mobile] .auth-card{width:100%;min-height:100%;border:0;border-radius:0;padding:calc(36px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));box-shadow:none}html[data-layout=mobile] .auth-card input,html[data-layout=mobile] .auth-card .primary{min-height:48px;font-size:16px}html[data-layout=mobile] .modal-backdrop{padding:0;align-items:stretch}html[data-layout=mobile] .modal{width:100%;min-height:100%;border-radius:0;border:0;padding:calc(12px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom))}html[data-layout=mobile] .fab{display:grid;place-items:center;position:absolute;right:18px;bottom:calc(20px + env(safe-area-inset-bottom));width:56px;height:56px;border:0;border-radius:50%;background:var(--accent);color:#06281f;font-size:22px;box-shadow:0 8px 20px #00000059}html[data-layout=desktop] .fab{display:none}html[data-layout=mobile] .sidebar{position:relative}@media(hover:none){.chats li button:hover,.user-results li button:hover{background:transparent}.chats li.on{background:var(--bg-3)}}
