@import "https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap";:root{--bg:#eae6df;--bg-strong:#d7dbd6;--surface:#fff;--surface-2:#f0f2f5;--surface-3:#e9edef;--text:#111b21;--text-muted:#667781;--accent:#00a884;--accent-2:#008069;--border:#111b2114;--shadow:0 8px 24px #111b211f;--shadow-soft:0 4px 16px #111b2114;--radius-lg:14px;--radius-md:12px;--radius-sm:10px;--font-body:"Source Sans 3", "Rubik", sans-serif;--font-display:"Rubik", "Source Sans 3", sans-serif}*{box-sizing:border-box}body{font-family:var(--font-body);color:var(--text);background:linear-gradient(180deg, #0a8d76 0 120px, var(--bg) 120px);min-height:100vh;margin:0}#root{min-height:100vh}h1,h2,h3{font-family:var(--font-display);margin:0}a{color:inherit;text-decoration:none}button{font-family:var(--font-body)}.app-loading{min-height:100vh;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.loading-ring{border:3px solid #2f8f6d33;border-top-color:var(--accent);border-radius:50%;width:40px;height:40px;animation:1s linear infinite spin}.auth-shell{place-items:center;min-height:100vh;padding:32px 16px;display:grid}.auth-card{background:var(--surface);border-radius:var(--radius-lg);width:min(440px,100%);box-shadow:var(--shadow);flex-direction:column;gap:24px;padding:32px;animation:.5s fadeIn;display:flex}.auth-brand{flex-direction:column;gap:8px;display:flex}.auth-mark{color:var(--accent-2);font-size:28px;font-weight:600}.auth-form{flex-direction:column;gap:16px;display:flex}.auth-form label{color:var(--text-muted);flex-direction:column;gap:6px;font-size:14px;display:flex}.auth-form input{border-radius:var(--radius-sm);border:1px solid var(--border);font-size:15px;font-family:var(--font-body);padding:12px 14px}.auth-footer{color:var(--text-muted);gap:8px;font-size:14px;display:flex}.auth-footer a{color:var(--accent-2);font-weight:600}.primary{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:999px;padding:10px 16px;font-weight:600;transition:transform .2s,box-shadow .2s}.primary:hover{box-shadow:var(--shadow-soft);transform:translateY(-1px)}.ghost{border:1px solid var(--border);cursor:pointer;color:var(--text-muted);background:0 0;border-radius:999px;padding:8px 12px}.icon-button{cursor:pointer;width:36px;height:36px;color:var(--text-muted);background:0 0;border:none;border-radius:50%;place-items:center;font-size:18px;display:grid}.icon-button:hover{background:#111b210f}.form-error{color:#9a2d2a;border-radius:var(--radius-sm);background:#d246411f;padding:10px 12px;font-size:14px}.invite-status{border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-muted);padding:6px 10px;font-size:13px}.invite-valid{color:var(--accent-2);background:#2f8f6d1f}.invite-invalid{color:#9a2d2a;background:#d246411f}.app-shell{grid-template-columns:360px minmax(0,1fr);gap:0;max-width:1400px;min-height:100vh;margin:0 auto;padding:24px 32px;display:grid}.panel{background:var(--surface);border-radius:var(--radius-md);box-shadow:var(--shadow-soft);flex-direction:column;min-height:0;display:flex}.sidebar{border-right:1px solid var(--border);border-top-right-radius:0;border-bottom-right-radius:0;gap:12px;min-height:calc(100vh - 48px);padding:12px 0 0;overflow-y:auto}.sidebar-header{background:var(--surface-2);justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.sidebar-user{cursor:pointer;align-items:center;gap:12px;display:flex}.sidebar-name{font-weight:600}.sidebar-actions{gap:6px;display:flex}.subtle{color:var(--text-muted);font-size:13px}.search-box input{border:1px solid var(--border);background:#fff;border-radius:999px;width:100%;padding:10px 14px}.search-box{padding:0 12px}.sidebar-section{flex-direction:column;gap:8px;padding:0 8px 12px;display:flex}.section-title{text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);padding:8px 12px 0;font-size:12px}.conversation-list,.contact-list{flex-direction:column;gap:2px;display:flex}.conversation-item,.contact-item{cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:12px;padding:10px 12px;transition:background .2s;display:flex}.badge{background:var(--accent);color:#fff;border-radius:999px;margin-left:auto;padding:4px 8px;font-size:11px;font-weight:600}.conversation-item.active{background:#e9f5ef}.conversation-meta{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.conversation-meta span{font-weight:600}.conversation-meta small{font-size:12px}.conversation-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.conversation-row small{color:var(--text-muted)}.conversation-preview{text-overflow:ellipsis;white-space:nowrap;max-width:200px;overflow:hidden}.avatar{background:var(--surface-3);width:44px;height:44px;color:var(--accent-2);border-radius:50%;place-items:center;font-weight:600;display:grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.avatar-sm{width:32px;height:32px;font-size:12px}.avatar-md{width:40px;height:40px;font-size:14px}.avatar-lg{width:96px;height:96px;font-size:28px}.empty-hint{color:var(--text-muted);padding:8px;font-size:13px}.chat{border-top-left-radius:0;border-bottom-left-radius:0;min-height:calc(100vh - 48px);overflow:hidden}.chat-header{border-bottom:1px solid var(--border);background:var(--surface-2);align-items:center;gap:16px;padding:12px 20px;display:flex}.chat-header .ghost{color:var(--text-muted);background:0 0;border:none;padding:0}.chat-title{cursor:pointer;color:inherit;text-align:left;background:0 0;border:none;align-items:center;gap:12px;padding:0;display:flex}.banner{color:#9a2d2a;background:#d246411f;border-bottom:1px solid #d2464133;padding:10px 16px;font-size:14px}.modal-backdrop{z-index:50;background:#111b2173;place-items:center;display:grid;position:fixed;inset:0}.modal{width:min(620px,92vw);box-shadow:var(--shadow);background:#fff;border-radius:12px;overflow:hidden}.modal-header{background:var(--surface-2);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-header h3{color:#111b21;font-size:34px;font-weight:500}.modal-body{flex-direction:column;gap:14px;padding:16px 20px 20px;display:flex}.new-chat-modal input[type=search]{border:1px solid var(--border);border-radius:999px;width:100%;padding:12px 16px;font-size:16px}.new-chat-modal .contact-list{max-height:380px;padding-right:4px;overflow-y:auto}.new-chat-modal .contact-item{border-radius:12px;padding:10px}.new-chat-modal .contact-item div{flex-direction:column;gap:3px;display:flex}.new-chat-modal .contact-item span{font-size:16px;font-weight:500}.new-chat-modal .contact-item small{color:var(--text-muted);font-size:13px}.new-chat-modal .contact-item:hover{background:#f0f2f5}.profile-modal{gap:16px;display:grid}.profile-avatar{flex-direction:column;align-items:center;gap:10px;display:flex}.profile-fields{flex-direction:column;gap:12px;display:flex}.profile-fields label{color:var(--text-muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.profile-fields input{border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:14px}.profile-status{color:var(--text-muted);font-size:13px}.message-list{background-color:#efeae2;background-image:radial-gradient(#fff6 1px,#0000 1px);background-size:18px 18px;flex-direction:column;flex:1;gap:10px;padding:18px 24px 24px;display:flex;overflow-y:auto}.message-group{flex-direction:column;gap:8px;display:flex}.message-row{align-items:flex-start;gap:8px;display:flex}.message-row.outgoing{justify-content:flex-end}.message-avatar-slot{flex:0 0 32px;justify-content:center;align-items:flex-start;width:32px;display:flex}.date-pill{color:var(--text-muted);background:#ffffffb3;border-radius:999px;align-self:center;padding:6px 12px;font-size:12px}.message-bubble{max-width:72%;box-shadow:none;word-break:break-word;background:#fff;border-radius:10px;padding:10px 12px 8px;position:relative}.message-bubble.incoming{background:#fff;border-top-left-radius:2px;align-self:flex-start}.message-bubble.outgoing{background:#d9fdd3;border-top-right-radius:2px;align-self:flex-end}.message-bubble.incoming:before,.message-bubble.outgoing:before{content:"";background:inherit;clip-path:polygon(0 0,100% 0,0 100%);width:12px;height:12px;position:absolute;top:0}.message-bubble.incoming:before{left:-6px}.message-bubble.outgoing:before{right:-6px;transform:scaleX(-1)}.message-bubble p{margin:0 0 8px}.message-meta{color:var(--text-muted);text-align:right;align-items:center;gap:6px;margin-left:auto;font-size:11px;display:inline-flex}.receipt{letter-spacing:-2px;font-size:12px}.receipt-delivered{color:#7d8f8a}.receipt-read{color:#53bdeb}.receipt-sent{color:var(--text-muted)}.attachment-list{flex-direction:column;gap:6px;margin-bottom:8px;display:flex}.attachment-item{background:var(--surface-2);border-radius:var(--radius-sm);flex-direction:column;gap:2px;padding:8px 10px;font-size:12px;display:flex}.composer{border-top:1px solid var(--border);background:var(--surface-2);padding:10px 16px 16px}.composer-row{background:#fff;border-radius:999px;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:6px 10px;display:grid}.composer-row input[type=text]{background:0 0;border:none;border-radius:999px;outline:none;padding:8px 6px;font-size:15px}.composer-attachments{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.attachment-chip{background:#fff;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;display:flex}.attachment-chip button{cursor:pointer;color:var(--text-muted);background:0 0;border:none}.primary.send{width:36px;height:36px;padding:0;font-weight:700}.load-hint{color:var(--text-muted);align-self:center;font-size:12px}@media (width<=1100px){.app-shell{grid-template-columns:300px minmax(0,1fr);padding:16px 20px}}@media (width<=860px){.app-shell{grid-template-columns:1fr;padding:16px}.sidebar,.chat{border-radius:var(--radius-md);min-height:calc(100vh - 32px)}.sidebar{display:none}.app-shell[data-view=list] .sidebar{display:flex}.app-shell[data-view=list] .chat,.app-shell[data-view=chat] .sidebar{display:none}.app-shell[data-view=chat] .chat{display:flex}.chat-header{flex-wrap:wrap}.message-bubble{max-width:90%}}@keyframes fadeIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}
