:root{--bg:#eef2f5;--surface:#fff;--header:#1f2c34;--header-text:#e9edef;--accent:#00a884;--accent-dark:#008069;--bubble-own:#d9fdd3;--bubble-other:#fff;--text:#111b21;--text-muted:#667781;--border:#e9edef;--danger:#d0342c;--danger-bg:#fdecea;--radius-lg:16px;--radius-md:10px;--font:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100dvh}button,input{font-family:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-container{justify-content:center;align-items:center;min-height:100dvh;padding:1rem;display:flex}@media (width<=640px){.app-container{padding:0}}.login-container{background:var(--surface);border-radius:var(--radius-lg);text-align:center;width:100%;max-width:380px;margin:1rem;padding:2.5rem 2rem;box-shadow:0 10px 40px #00000014}.login-badge{background:var(--accent);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;margin:0 auto 1.25rem;font-size:1.5rem;font-weight:700;display:flex}.login-container h1{margin-bottom:.4rem;font-size:1.4rem;font-weight:700}.login-sub{color:var(--text-muted);margin-bottom:1.75rem;font-size:.9rem;line-height:1.5}.input-group{flex-direction:column;gap:1rem;display:flex}input{border:1.5px solid var(--border);border-radius:var(--radius-md);color:var(--text);background:#f7f8fa;outline:none;padding:.8rem .95rem;font-size:16px;transition:border-color .15s,background-color .15s}input::placeholder{color:#9aa3ab}input:focus{border-color:var(--accent);background:var(--surface)}button{background:var(--accent);color:#fff;border-radius:var(--radius-md);cursor:pointer;border:none;padding:.85rem;font-size:.95rem;font-weight:600;transition:transform .1s,background-color .15s}button:hover:not(:disabled){background:var(--accent-dark)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{color:#8a949c;cursor:not-allowed;background:#d1d7db}.chat-layout{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:1080px;height:calc(100dvh - 2rem);max-height:800px;margin:0 auto;display:flex;overflow:hidden;box-shadow:0 10px 50px #0000001a}@media (width<=640px){.chat-layout{border-radius:0;flex-direction:column;height:100dvh;max-height:none}}.sidebar{border-right:1px solid var(--border);background:#f7f8fa;flex-direction:column;flex-shrink:0;width:220px;padding:1.5rem 1.1rem;display:flex}@media (width<=640px){.sidebar{border-right:none;border-bottom:1px solid var(--border);flex-direction:row;align-items:center;gap:.9rem;width:100%;height:auto;padding:.85rem 1rem;overflow-x:auto}}.sidebar h3{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);border-bottom:1px solid var(--border);white-space:nowrap;flex-shrink:0;margin-bottom:1rem;padding-bottom:.6rem;font-size:.72rem;font-weight:700}@media (width<=640px){.sidebar h3{border:none;margin:0;padding:0}}.online-users-list{flex-direction:column;flex:1;gap:.7rem;list-style:none;display:flex;overflow-y:auto}@media (width<=640px){.online-users-list{flex-direction:row;overflow:auto visible}}.online-users-list li{color:var(--text);white-space:nowrap;align-items:center;gap:.6rem;font-size:.85rem;display:flex}.avatar{color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.7rem;font-weight:700;display:flex}.chat-container.main-chat{background:#f4f6f7;flex-direction:column;flex:1;min-width:0;display:flex}.chat-header{background:var(--header);color:var(--header-text);justify-content:space-between;align-items:center;padding:.9rem 1.25rem;display:flex}.chat-header h2{font-size:1.05rem;font-weight:600}.connection-status{color:#aeb9bd;align-items:center;gap:.45rem;font-size:.78rem;display:flex}.status-dot{background:#f15c5c;border-radius:50%;flex-shrink:0;width:8px;height:8px}.status-dot.online{background:#23d18b;box-shadow:0 0 0 3px #23d18b33}.error-banner{background:var(--danger-bg);color:var(--danger);text-align:center;padding:.6rem 1rem;font-size:.82rem;font-weight:500;line-height:1.4}.message-list{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:.55rem;padding:1.25rem;display:flex;overflow-y:auto}@media (width<=640px){.message-list{padding:1rem .85rem}}.empty-state{text-align:center;color:var(--text-muted);margin:auto;padding:2rem}.empty-state .empty-title{color:var(--text);font-size:1.1rem;font-weight:600}.empty-state .empty-sub{opacity:.8;margin-top:.4rem;font-size:.88rem}.message-bubble{word-wrap:break-word;border-radius:12px;max-width:78%;padding:.55rem .8rem;position:relative;box-shadow:0 1px 1px #0000000d}@media (width<=640px){.message-bubble{max-width:88%}}.message-bubble.own{background:var(--bubble-own);border-bottom-right-radius:3px;align-self:flex-end}.message-bubble.other{background:var(--bubble-other);border-bottom-left-radius:3px;align-self:flex-start}.message-sender{color:var(--accent-dark);margin-bottom:.2rem;font-size:.75rem;font-weight:700}.message-text{white-space:pre-wrap;font-size:.94rem;line-height:1.45}.message-time{color:var(--text-muted);text-align:right;justify-content:flex-end;align-items:center;gap:3px;margin-top:.3rem;font-size:.65rem;display:flex}.message-status{color:var(--accent-dark)}.typing-indicator{color:var(--text-muted);align-self:flex-start;padding:.3rem .6rem;font-size:.8rem;font-style:italic}.chat-input{background:var(--surface);border-top:1px solid var(--border);gap:.6rem;padding:.85rem 1.1rem;display:flex}.chat-input input{background:#f7f8fa;flex:1}.chat-input button{flex-shrink:0;justify-content:center;align-items:center;width:46px;padding:.85rem 0;display:flex}.chat-input button:disabled{background:#d1d7db}
