:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*,:before,:after{box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizelegibility;color:#0f172a;background:#f8fafc;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html,body,#root{color:#0f172a;background-color:#f8fafc;width:100%;height:100%;margin:0;padding:0}body{overflow:hidden}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}.app{background:#f8fafc;width:100%;height:100vh;overflow:hidden}.login-page{background:#f1f5f9;justify-content:center;align-items:center;width:100vw;height:100vh;padding:24px;display:flex}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;flex-direction:column;gap:16px;width:100%;max-width:380px;padding:32px;animation:.2s ease-out nexaconnect-login-in;display:flex;box-shadow:0 10px 25px -3px #0f172a14,0 4px 6px -4px #0f172a0a}@keyframes nexaconnect-login-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.brand{align-items:center;gap:12px;margin-bottom:4px;display:flex}.brand-icon{color:#fff;background:#2563eb;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;min-width:42px;height:42px;font-size:16px;font-weight:700;display:flex}.brand h1{color:#0f172a;margin:0;font-size:20px;font-weight:700;line-height:1.2}.brand p{color:#64748b;margin:2px 0 0;font-size:12px}.login-card label{color:#0f172a;text-align:left;flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.login-card input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;height:42px;padding:0 12px;font-size:13px;transition:border-color .15s,box-shadow .15s}.login-card input::placeholder{color:#94a3b8}.login-card input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.login-card button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;width:100%;height:42px;margin-top:4px;font-size:14px;font-weight:600;transition:background-color .15s,transform .1s}.login-card button:hover{background:#1d4ed8}.login-card button:active{transform:translateY(1px)}.connection-status{text-align:center;color:#64748b;margin-top:2px;font-size:11px}.topbar{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;width:100%;height:48px;min-height:48px;padding:0 16px;display:flex}.topbar h1{color:#0f172a;letter-spacing:-.2px;margin:0;font-size:16px;font-weight:600}.topbar .status{margin-top:2px;font-size:10px;display:block}.status.online{color:#15803d}.user-area{align-items:center;gap:12px;font-size:12px;display:flex}.user-area span{color:#475569}.user-area button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;height:30px;padding:0 10px;font-size:11px;transition:background-color .15s,border-color .15s}.user-area button:hover{background:#f8fafc}.user-area button:focus-visible,.login-card button:focus-visible,.message-form button:focus-visible,.contact:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.chat-layout{width:100%;height:calc(100vh - 48px);display:flex;overflow:hidden}.sidebar{scrollbar-gutter:stable;background:#fff;border-right:1px solid #e2e8f0;width:240px;min-width:240px;height:100%;padding:12px 8px;overflow-y:auto}.sidebar h2{color:#0f172a;margin:0 0 10px 6px;padding:0 2px;font-size:13px;font-weight:600}.contact{cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:10px;width:100%;min-height:64px;margin-bottom:4px;padding:8px;transition:background-color .15s,border-color .15s;display:flex}.contact:hover{background:#f8fafc}.contact.active{background:#eff6ff;border-color:#bfdbfe #bfdbfe #bfdbfe #2563eb;border-left-style:solid;border-left-width:3px}.avatar{color:#fff;background:#2563eb;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;font-size:13px;font-weight:700;display:flex}.contact-content{flex:1;min-width:0;overflow:hidden}.contact-topline{justify-content:space-between;align-items:center;gap:6px;display:flex}.contact-topline strong{white-space:nowrap;text-overflow:ellipsis;color:#0f172a;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.contact-time{color:#64748b;flex-shrink:0;font-size:10px}.contact-message-row{justify-content:space-between;align-items:center;gap:6px;margin-top:2px;display:flex}.contact-last-message{white-space:nowrap;text-overflow:ellipsis;color:#64748b;flex:1;min-width:0;font-size:11px;line-height:1.25;overflow:hidden}.unread-badge{color:#fff;background:#2563eb;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:700;display:inline-flex}.presence{font-size:10px;font-weight:500;display:block}.contact .presence{margin-top:3px}.presence.online{color:#15803d}.presence.away{color:#ca8a04}.presence.busy{color:#dc2626}.presence.offline{color:#64748b}.conversation{background:#f8fafc;flex-direction:column;flex:1;min-width:0;height:100%;display:flex}.conversation-header{background:#fff;border-bottom:1px solid #e2e8f0;flex-shrink:0;align-items:center;gap:10px;width:100%;height:56px;min-height:56px;padding:0 16px;display:flex}.conversation-header>div:last-child{min-width:0}.conversation-header strong{white-space:nowrap;text-overflow:ellipsis;color:#0f172a;font-size:14px;display:block;overflow:hidden}.conversation-header .presence{margin-top:2px}.messages{scroll-behavior:smooth;overscroll-behavior:contain;flex-direction:column;flex:1;gap:8px;padding:16px;display:flex;overflow-y:auto}.message-row{width:100%;display:flex}.message-row.incoming{justify-content:flex-start}.message-row.outgoing{justify-content:flex-end}.message-row+.message-row{margin-top:1px}.message-bubble{word-break:break-word;overflow-wrap:anywhere;border-radius:12px;max-width:min(65%,680px);padding:10px 14px;font-size:13px;line-height:1.4;box-shadow:0 1px 2px #0f172a0d}.message-row.incoming .message-bubble{color:#0f172a;background:#fff;border:1px solid #e2e8f0}.message-row.outgoing .message-bubble{color:#fff;background:#2563eb}.message-bubble small{text-align:right;margin-top:4px;font-size:9px;display:block}.message-row.incoming .message-bubble small{color:#64748b}.message-row.outgoing .message-bubble small{color:#bfdbfe}.message-form{background:#fff;border-top:1px solid #e2e8f0;flex-shrink:0;align-items:center;gap:10px;width:100%;min-height:60px;padding:10px 16px;display:flex}.message-form input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;flex:1;min-width:0;height:40px;padding:0 14px;font-size:13px;transition:border-color .15s,box-shadow .15s}.message-form input::placeholder{color:#94a3b8}.message-form input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.message-form button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;flex-shrink:0;height:40px;padding:0 20px;font-size:13px;font-weight:600;transition:background-color .15s,transform .1s}.message-form button:hover{background:#1d4ed8}.message-form button:active{transform:translateY(1px)}.empty-state{color:#64748b;text-align:center;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;padding:20px;display:flex}.empty-state h2{color:#0f172a;margin:0 0 6px;font-size:16px}.empty-state p{margin:0;font-size:12px}.sidebar::-webkit-scrollbar{width:6px}.messages::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:0 0}.messages::-webkit-scrollbar-track{background:0 0}.sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.messages::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}@media (width<=1000px){.sidebar{width:220px;min-width:220px}.message-bubble{max-width:72%}}@media (width<=760px){.sidebar{width:200px;min-width:200px}.contact{gap:8px}.avatar{width:32px;min-width:32px;height:32px;font-size:12px}.message-bubble{max-width:80%}.message-form{padding-left:10px;padding-right:10px}}@media (width<=560px){.sidebar{width:175px;min-width:175px}.contact-time{display:none}.contact-last-message{font-size:10px}.message-bubble{max-width:88%}.topbar{padding-left:10px;padding-right:10px}}.organization-label{white-space:nowrap;text-overflow:ellipsis;background:#eff6ff;border:1px solid #dbeafe;border-radius:6px;max-width:220px;padding:4px 8px;font-size:10px;font-weight:600;overflow:hidden;color:#1d4ed8!important}.sidebar-empty{color:#64748b;text-align:center;margin:20px 8px;font-size:11px}
