:root{--bg:#07111f;--panel:#07111fbd;--panel-strong:#0a172beb;--border:#abccff24;--text:#eff6ff;--muted:#8da3c4;--primary:#5eead4;--primary-strong:#14b8a6;--danger:#fb7185;--shadow:0 24px 80px #02061773}*{box-sizing:border-box}html,body{min-height:100%;color:var(--text);background:radial-gradient(circle at 0 0,#5eead433,#0000 32%),radial-gradient(circle at 100%,#1d4ed859,#0000 34%),linear-gradient(160deg,#030712 0%,#07111f 55%,#0c1f36 100%);margin:0;font-family:Arial,Helvetica,sans-serif}body{min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}.page-shell{min-height:100vh;padding:32px}.glass-panel{background:var(--panel);border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.auth-screen{place-items:center;min-height:calc(100vh - 64px);display:grid}.auth-panel{border-radius:28px;width:min(100%,560px);padding:36px}.brand-logo{height:auto;display:block}.brand-logo-auth{width:min(100%,320px);margin:0 auto 18px}.brand-logo-sidebar{width:190px}.avatar{object-fit:cover;background:#0a172beb;border:1px solid #abccff2e;border-radius:50%;flex-shrink:0;display:block}.avatar-fallback{color:#dff7ff;letter-spacing:.08em;background:linear-gradient(135deg,#14b8a64d,#1d4ed83d);place-items:center;font-weight:800;display:grid}.avatar-large{width:76px;height:76px;font-size:1.25rem}.avatar-medium{width:46px;height:46px;font-size:.95rem}.brand-block h1{letter-spacing:-.04em;margin:10px 0 14px;font-size:clamp(2.4rem,6vw,3.5rem);line-height:1}.eyebrow{color:var(--primary);text-transform:uppercase;letter-spacing:.16em;margin:0;font-size:.74rem;font-weight:800}.lede,.section-heading p,.chat-subtitle,.empty-state p,.status-message,.user-handle,.helper-text{color:var(--muted)}.auth-tabs{gap:12px;margin:28px 0 22px;display:flex}.tab-button,.ghost-button,.secondary-button,.primary-button{border:0;border-radius:999px;transition:transform .2s,background .2s,opacity .2s}.tab-button{color:var(--text);background:#94a3b81f;padding:12px 18px}.tab-button.is-active{color:var(--primary);background:#14b8a633}.auth-form{gap:14px;display:grid}label{gap:8px;font-size:.95rem;display:grid}input,textarea{color:var(--text);background:#050b16d1;border:1px solid #abccff29;border-radius:18px;outline:none;padding:14px 16px}input:focus,textarea:focus{border-color:#5eead4bf;box-shadow:0 0 0 4px #5eead41f}.primary-button,.secondary-button,.ghost-button{padding:13px 18px;font-weight:700}.primary-button{background:linear-gradient(135deg, var(--primary) 0%, #67e8f9 100%);color:#04111f}.secondary-button{color:#c9dcff;background:#1d4ed82e}.ghost-button{color:var(--text);background:#94a3b81f}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.tab-button:hover,.contact-card:hover,.composer-file:hover{transform:translateY(-1px)}.status-message{min-height:24px;margin:16px 0 0}.status-message.is-error{color:var(--danger)}.status-message.is-success{color:var(--primary)}.app-shell{grid-template-columns:minmax(290px,360px) 1fr;gap:24px;min-height:calc(100vh - 64px);display:grid}.sidebar,.chat-panel{border-radius:30px}.sidebar{flex-direction:column;gap:24px;padding:24px;display:flex}.sidebar-brand-row,.sidebar-top,.section-heading,.chat-header,.composer-row{justify-content:space-between;align-items:center;gap:16px;display:flex}.sidebar-brand-row{align-items:flex-start}.profile-panel,.profile-identity,.profile-actions,.person-summary,.chat-heading{gap:14px;display:flex}.profile-panel,.profile-actions{flex-direction:column}.profile-panel{flex:1}.profile-identity{align-items:center}.profile-actions{gap:12px}.avatar-upload-button{width:fit-content}.avatar-upload-button input{display:none}.panel-section{gap:14px;display:grid}.search-results,.contact-list,.message-list,.attachment-preview{gap:12px;display:grid}.search-results,.contact-list{max-height:280px;padding-right:4px;overflow:auto}.person-card,.contact-card,.message-card,.attachment-chip{background:#0a172bc7;border:1px solid #abccff1f;border-radius:22px}.person-card{justify-content:space-between;align-items:center;gap:16px;padding:16px;display:flex}.person-card h4,.contact-card strong,.empty-state h3,.chat-header h2{margin:0 0 4px}.person-card p,.contact-card span{color:var(--muted);margin:0}.person-summary{align-items:center}.contact-card{text-align:left;color:var(--text);width:100%;padding:16px}.contact-card.is-active{background:#14b8a624;border-color:#5eead499}.chat-panel{grid-template-rows:auto 1fr auto;gap:18px;padding:26px;display:grid}.chat-header{border-bottom:1px solid #abccff1f;padding-bottom:16px}.chat-subtitle{text-align:right;max-width:280px}.chat-header-meta{justify-items:end;gap:12px;display:grid}.chat-heading{align-items:center}.system-badges{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.system-badges-sidebar{justify-content:flex-end;margin-left:auto}.version-badge,.status-badge{letter-spacing:.06em;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:.82rem;font-weight:700;display:inline-flex}.version-badge{color:#dce8ff;background:#94a3b81f;border:1px solid #abccff24}.status-badge{color:#b6f6c8;background:#22c55e24;border:1px solid #4ade8057;box-shadow:0 0 0 1px #22c55e14,0 0 20px #22c55e33}.status-dot{background:#4ade80;border-radius:999px;width:10px;height:10px;box-shadow:0 0 0 3px #4ade8029,0 0 18px #4ade80f2}.admin-badge{letter-spacing:.1em;color:#ffe5ae;background:#f59e0b24;border:1px solid #f59e0b47;border-radius:999px;align-items:center;margin:12px 0 0;padding:7px 12px;font-size:.78rem;font-weight:800;display:inline-flex;box-shadow:0 0 18px #f59e0b29}.presence-picker{flex-wrap:wrap;gap:8px;display:flex}.presence-option{color:var(--muted);background:#0a172bc7;border:1px solid #abccff29;border-radius:999px;padding:8px 12px;font-weight:700}.presence-option.is-selected{color:var(--text);border-color:#abccff57}.presence-option.is-active.is-selected{color:#91f0b6;border-color:#4ade8073;box-shadow:0 0 18px #4ade801f}.presence-option.is-away.is-selected{color:#ffe08b;border-color:#facc1573;box-shadow:0 0 18px #facc151f}.presence-option.is-busy.is-selected{color:#ffb4b4;border-color:#f8717173;box-shadow:0 0 18px #f871711f}.presence-readout{margin:0;font-size:.88rem;font-weight:700}.presence-active{color:#4ade80}.presence-away{color:#facc15}.presence-busy{color:#f87171}.clock-panel{background:#0a172b8c;border:1px solid #abccff1f;border-radius:24px;padding:16px}.clock-card{gap:6px;display:grid}.clock-time{letter-spacing:.06em;font-size:clamp(1.6rem,3vw,2.25rem)}.clock-date{color:var(--muted);text-transform:capitalize}.message-list{align-content:start;padding-right:4px;overflow:auto}.empty-state{text-align:center;border:1px dashed #abccff2e;border-radius:28px;padding:32px}.message-card{width:min(100%,720px);padding:16px}.message-card.is-own{background:linear-gradient(140deg,#14b8a62e,#07111feb);margin-left:auto}.message-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;font-size:.9rem;display:flex}.message-text{white-space:pre-wrap;margin:0;line-height:1.6}.message-attachments{gap:12px;margin-top:14px;display:grid}.message-attachments img,.message-attachments video{border:1px solid #abccff24;border-radius:18px;width:100%;max-width:360px}.attachment-link{color:#d9ecff;background:#1d4ed829;border-radius:16px;align-items:center;gap:10px;width:fit-content;padding:12px 16px;text-decoration:none;display:inline-flex}.composer{border-top:1px solid #abccff1f;gap:12px;padding-top:18px;display:grid}.composer-file{background:#94a3b814;border:1px dashed #abccff3d;border-radius:999px;width:fit-content;padding:12px 16px}.composer-file input{display:none}.composer textarea{resize:none;width:100%;min-height:56px;max-height:180px}.attachment-preview{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.attachment-chip{gap:10px;padding:12px;display:grid}.attachment-chip img,.attachment-chip video{object-fit:cover;border-radius:14px;width:100%;max-height:180px}.attachment-chip p{color:var(--muted);overflow-wrap:anywhere;margin:0}.loading-screen{place-items:center;min-height:calc(100vh - 64px);display:grid}@media (max-width:960px){.page-shell{padding:18px}.app-shell{grid-template-columns:1fr}.chat-header,.sidebar-brand-row,.sidebar-top,.section-heading,.composer-row{flex-direction:column;align-items:stretch}.chat-subtitle{text-align:left;max-width:none}.chat-header-meta,.system-badges{justify-content:flex-start;justify-items:start}.brand-logo-sidebar{width:170px}.system-badges-sidebar{margin-left:0}.profile-identity,.person-summary,.chat-heading{align-items:center}}
