:root{--primary: #4e9f7e;--primary-fill: #2f6e56;--accent: #2f6e56;--soft: #e3f2eb;--bg: #f4f8f6;--surface: #ffffff;--text: #1e2b26;--muted: #687a72;--border: #dde8e3;--mine: #cfe8dc;--mine-text: #173d2e;--other: #ffffff;--chat-bg: #eaf2ee;--read: #2b8fd6;--danger: #c0392b;--danger-soft: #fdecec;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--primary: #5fb592;--accent: #8fd4b5;--soft: #1d3a2f;--bg: #0f1714;--surface: #17221e;--text: #e4eee9;--muted: #93a69d;--border: #26342e;--mine: #1f4a3a;--mine-text: #e4f5ec;--other: #1d2a25;--chat-bg: #0c1311;--read: #5ab8ff;--danger-soft: #3a1d1d;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Segoe UI,system-ui,-apple-system,Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:15px}button{font:inherit;color:inherit;cursor:pointer;background:none;border:none}input,textarea{font:inherit;color:var(--text)}a{color:var(--primary)}.muted{color:var(--muted)}.accent{color:var(--accent)}.small{font-size:12.5px}.strong{font-weight:600}.grow{flex:1;min-width:0}.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.pad{padding:16px}.center{text-align:center}.logo{border-radius:22%}.center-screen{min-height:100%;display:grid;place-items:center;padding:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:28px;box-shadow:0 8px 30px #00000014}.login{width:100%;max-width:400px;display:flex;flex-direction:column;gap:14px;text-align:center;align-items:center}.login h1{margin:0;font-size:22px}.login p{margin:0}.login label{width:100%;text-align:left;display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}.login input[type=tel],.login input[type=password]{padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--bg);font-size:16px;font-weight:400}.login .check{flex-direction:row;align-items:center;font-weight:400}.primary{width:100%;padding:13px;border-radius:12px;background:var(--primary-fill);color:#fff;font-weight:700}.primary:disabled{opacity:.6}.link{color:var(--primary);text-decoration:underline}.error{color:var(--danger);background:var(--danger-soft);padding:10px 12px;border-radius:10px;width:100%}.layout{display:flex;height:100%;max-width:1600px;margin:0 auto;background:var(--surface)}.sidebar{width:380px;min-width:300px;border-right:1px solid var(--border);display:flex;flex-direction:column}.side-head,.chat-head,.picker-head{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border);min-height:62px}.icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:18px;flex-shrink:0}.icon:hover{background:var(--soft)}.menu-wrap{position:relative}.menu{position:absolute;right:0;top:42px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #00000026;z-index:10;min-width:250px;padding:6px}.menu button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:8px}.menu button:hover{background:var(--soft)}.search{padding:8px 12px}.search input{width:100%;padding:9px 14px;border-radius:10px;border:1px solid var(--border);background:var(--bg);outline:none}.chips{display:flex;gap:6px;padding:0 12px 8px;flex-wrap:wrap}.chip{padding:5px 12px;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-size:13px}.chip.on{background:var(--soft);border-color:var(--primary);color:var(--accent);font-weight:600}.chat-list{overflow-y:auto;flex:1}.chat-row{display:flex;gap:12px;align-items:center;width:100%;padding:10px 14px;text-align:left;border-bottom:1px solid var(--border)}.chat-row:hover{background:var(--bg)}.chat-row.active{background:var(--soft)}.row-top,.row-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center}.row-bottom{margin-top:2px}.badges{display:flex;gap:4px;align-items:center;font-size:12px;flex-shrink:0}.badge{background:var(--primary);color:#fff;border-radius:999px;min-width:20px;height:20px;padding:0 6px;display:grid;place-items:center;font-size:12px;font-weight:700}.avatar{border-radius:50%;background:var(--soft);color:var(--accent);display:grid;place-items:center;font-weight:700;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.picker{display:flex;flex-direction:column;flex:1;min-height:0}.pane{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--chat-bg)}.empty{margin:auto;text-align:center;max-width:420px;padding:24px}.chat{display:flex;flex-direction:column;height:100%;position:relative}.back{display:none}.pinned-bar{display:flex;gap:8px;padding:8px 16px;background:var(--surface);border-bottom:1px solid var(--border);text-align:left;font-size:14px}.messages{flex:1;overflow-y:auto;padding:12px 6%;display:flex;flex-direction:column;gap:3px}.day{align-self:center;background:var(--surface);color:var(--muted);font-size:12px;padding:4px 12px;border-radius:8px;margin:10px 0;box-shadow:0 1px 2px #0000000f}.sys{align-self:center;font-size:12px;color:var(--muted);background:var(--surface);padding:4px 12px;border-radius:8px}.bubble-row{display:flex;flex-direction:column;align-items:flex-start}.bubble-row.mine{align-items:flex-end}.bubble{position:relative;max-width:min(65%,560px);background:var(--other);padding:6px 9px 4px;border-radius:10px;box-shadow:0 1px 1.5px #0000001a}.bubble.mine{background:var(--mine);color:var(--mine-text)}.bubble.sticker{background:none;box-shadow:none}.bubble.media{padding:4px}.bubble.sending{opacity:.8;font-style:italic}.text{white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;line-height:1.4}.meta{font-size:11px;color:var(--muted);text-align:right;margin-top:2px;white-space:nowrap}.tick.read{color:var(--read);font-weight:700}.sender{font-size:13px;font-weight:700;margin-bottom:2px}.fwd{font-size:12px;color:var(--muted);font-style:italic}.quote{border-left:4px solid var(--primary);background:#0000000d;border-radius:6px;padding:4px 8px;margin-bottom:4px;min-width:0}.hover-actions{position:absolute;top:2px;right:4px;display:none;gap:2px;z-index:2}.bubble:hover .hover-actions{display:flex}.hover-actions button{background:var(--surface);border-radius:50%;width:24px;height:24px;font-size:13px;box-shadow:0 1px 3px #0003}.bubble-menu{position:absolute;top:28px;right:0;z-index:5;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0000002e;padding:6px;min-width:210px}.bubble-row:not(.mine) .bubble-menu{right:auto;left:0}.bubble-menu>button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px}.bubble-menu>button:hover{background:var(--soft)}.reacts{display:flex;gap:2px;padding-bottom:4px;border-bottom:1px solid var(--border);margin-bottom:4px}.reacts button{font-size:20px;padding:2px 4px;border-radius:8px}.reacts button:hover,.reacts button.on{background:var(--soft)}.reactions{display:flex;gap:4px;margin-top:-4px;padding:0 6px}.reactions span{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:0 6px;font-size:13px}.img-box{border-radius:8px;overflow:hidden;background:#0000000f;max-width:100%}.img-box img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;display:block}.bubble.sticker .img-box{background:none}.bubble.sticker .img-box img{object-fit:contain;cursor:default}.loading{display:grid;place-items:center;height:100%;min-height:120px;font-size:32px;opacity:.5}.video{max-width:320px;width:100%;border-radius:8px;display:block}audio{max-width:280px;height:40px}.rich{display:flex;flex-direction:column;gap:2px;padding:4px 2px;text-decoration:none;color:inherit;min-width:200px}.poll{display:flex;flex-direction:column;gap:6px;min-width:240px;padding:2px}.poll-opt{position:relative;display:flex;justify-content:space-between;padding:8px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);overflow:hidden;text-align:left}.poll-opt.on{border-color:var(--primary)}.poll-fill{position:absolute;inset:0 auto 0 0;background:var(--soft)}.poll-label,.poll-opt .small{position:relative}.error-bar{background:var(--danger-soft);color:var(--danger);padding:8px 16px;cursor:pointer}.reply-bar{display:flex;align-items:center;gap:8px;padding:8px 12px 0;background:var(--surface)}.emoji-panel{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));max-height:180px;overflow-y:auto;background:var(--surface);padding:8px;border-top:1px solid var(--border)}.emoji-panel button{font-size:22px;padding:4px;border-radius:8px}.emoji-panel button:hover{background:var(--soft)}.composer{display:flex;align-items:flex-end;gap:6px;padding:8px 12px;background:var(--surface);border-top:1px solid var(--border)}.composer textarea{flex:1;resize:none;padding:10px 14px;border-radius:20px;border:1px solid var(--border);background:var(--bg);max-height:140px;outline:none;field-sizing:content;min-height:42px}.send{width:42px;height:42px;border-radius:50%;background:var(--primary-fill);color:#fff;font-size:18px;flex-shrink:0}.recording{display:flex;align-items:center;gap:8px;color:var(--danger);font-weight:600}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:blink 1s infinite}@keyframes blink{50%{opacity:.2}}.drop{position:absolute;top:0;right:0;bottom:0;left:0;background:#2f6e56d9;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:700;pointer-events:none}.viewer{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e0;display:grid;place-items:center;z-index:50;cursor:zoom-out;padding:16px}.viewer img{max-width:100%;max-height:100%}@media(max-width:760px){.sidebar{width:100%;min-width:0;border-right:none}.pane,.layout.has-chat .sidebar{display:none}.layout.has-chat .pane{display:flex}.back{display:grid}.messages{padding:10px 12px}.bubble{max-width:85%}.hover-actions{display:flex}}.pub-wrap{min-height:100%;background:var(--bg);color:var(--text);display:flex;flex-direction:column;align-items:center;padding:16px;gap:14px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.pub-card{width:100%;max-width:560px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 4px 14px #1e463714}.pub-center{text-align:center;padding:32px 16px;color:var(--muted)}.pub-big{font-size:40px}.pub-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}.pub-title{font-weight:700;font-size:17px}.pub-sub{color:var(--muted);font-size:13px;margin-top:2px}.pub-dot{width:12px;height:12px;border-radius:6px;background:#22c55e;box-shadow:0 0 0 4px #22c55e40;flex-shrink:0;animation:pub-pulse 1.6s infinite}.pub-dot-off{background:#9ca3af;box-shadow:none;animation:none}@keyframes pub-pulse{50%{box-shadow:0 0 0 8px #22c55e14}}.pub-map{width:100%;height:360px;border:0;border-radius:12px;background:var(--chat-bg)}.pub-actions{display:flex;gap:10px;margin-top:12px}.pub-btn{flex:1;text-align:center;padding:12px;border-radius:12px;background:var(--primary-fill);color:#fff;text-decoration:none;font-weight:700}.pub-btn-ghost{background:var(--soft);color:var(--accent)}.pub-note{color:var(--muted);font-size:12px;text-align:center;margin:12px 0 0}.pub-footer{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;text-decoration:none;opacity:.8;margin-top:auto}.pub-q{margin:4px 0 12px;font-size:19px}.pub-options{display:flex;flex-direction:column;gap:8px}.pub-opt{position:relative;overflow:hidden;display:flex;align-items:center;gap:10px;width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:15px;text-align:left;cursor:pointer}.pub-opt:disabled{cursor:default}.pub-opt-on{border-color:var(--primary-fill)}.pub-opt-bar{position:absolute;left:0;top:0;bottom:0;background:var(--soft);transition:width .4s ease}.pub-opt-mark,.pub-opt-label,.pub-opt-count{position:relative}.pub-opt-mark{color:var(--primary);width:18px}.pub-opt-label{flex:1}.pub-opt-count{font-weight:700;color:var(--muted)}
