.avatar-wrap{position:relative;display:inline-flex;width:max-content;height:max-content;flex:0 0 auto}.avatar-status{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border:2px solid #fff;border-radius:50%}.avatar-status-online{background:#2f9e68}.avatar-status-offline{background:#9aa3ad}.chat-panel{position:relative}.chat-panel.is-dragging-image:after{content:"Drop image to attach · Enter to send";position:absolute;inset:8px;z-index:5;display:grid;place-items:center;border:2px dashed #9cb8d4;border-radius:5px;background:#f8fafcf0;color:#3569a8;font-size:14px;pointer-events:none}.composer-error{padding:6px 10px 0;color:#a3473c;font-size:12px}.message-row{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;width:100%;margin:2px 0;padding:2px 0;color:#20262d;text-align:left}.message-row.message-group-start{margin-top:12px}.message-row.message-continuation{margin-top:0}.message-row:focus-visible{outline:2px solid #3569a8;outline-offset:3px;border-radius:4px}.message-avatar-gutter,.message-row>.avatar{width:38px;height:38px;flex:0 0 38px}.message-row>.avatar{font-size:13px}.message-avatar-gutter{height:20px}.message-row:hover{background:#f7f8fa}.message-row .avatar-fallback{background:#e8edf2;color:#3569a8}.message-main{position:relative;min-width:0;flex:1;max-width:680px}.message-header{display:flex;align-items:baseline;gap:8px;min-height:18px}.message-sender{display:block;min-width:0;overflow-wrap:anywhere;color:#20262d;font-size:13px;line-height:1.35;font-weight:650}.message-time{color:#6b7280;font-size:10px;line-height:1.3;white-space:nowrap}.message-time-header{flex:0 0 auto}.message-time-gutter{position:absolute;top:2px;left:-53px;opacity:0;pointer-events:none;transition:opacity .12s ease}.message-row:hover .message-time-gutter,.message-row:focus .message-time-gutter,.message-row:focus-within .message-time-gutter{opacity:1}.message-content{min-width:0;color:#20262d}.message-content p{margin:0;color:inherit;font-size:13px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.message-content a{color:#3569a8;text-decoration:underline;text-underline-offset:2px}.message-content p a{color:#3569a8}.message-meta{min-height:0;margin-top:3px;color:#6b7280;font-size:10px;line-height:1.3}.message-meta:empty{display:none}.message-actions{display:flex;gap:2px;position:absolute;z-index:1;top:-8px;right:0;opacity:0;pointer-events:none;background:#fff;border:1px solid #e1e5e9;border-radius:4px}.message-row:hover .message-actions,.message-row:focus-within .message-actions,.message-actions:focus-within{opacity:1;pointer-events:auto}.message-actions button{display:grid;place-items:center;width:32px;height:32px;border:0;padding:6px;color:#515c69;background:#fff;border-radius:3px}.message-actions svg{display:block;width:18px;height:18px}.message-actions button:hover{color:#3569a8;background:#eef3f8}.reply-quote{display:flex;min-width:0;flex-direction:column;gap:2px;margin:0 0 5px;padding:3px 8px;border-left:2px solid #9cb8d4;color:#6b7280;font-size:10px}.reply-quote strong{color:#3569a8;font-size:10px}.reply-quote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-quote-deleted{border-color:#c4cbd2}.message-tombstone{color:#6b7280;font-style:italic}.edited-mark{color:#6b7280;font-size:9px}.message-edit textarea{display:block;width:min(100%,520px);min-height:54px;resize:vertical;padding:7px;border:1px solid #b9c7d5;border-radius:5px;color:#20262d;background:#fff;font:inherit;font-size:13px}.message-edit-actions{display:flex;gap:6px;margin-top:5px}.message-edit-actions button{border:1px solid #c5d0db;border-radius:4px;padding:3px 7px;color:#3569a8;background:#fff;font-size:10px}.message-edit-actions button:hover{background:#eef3f8}.message-action-error{margin-top:3px;color:#a3473c;font-size:10px}.message-failed .message-content{color:#20262d}.retry-button{border:0;padding:0;color:#a3473c;background:transparent;font-size:10px;text-decoration:underline}.message-image{display:block;width:min(320px,100%);max-width:100%;max-height:240px;margin:6px 0 0;padding:0;overflow:hidden;border:0;border-radius:5px;background:#eef1f4;cursor:pointer}.message-image img{display:block;width:100%;height:auto;max-width:100%;max-height:240px;object-fit:contain;border-radius:5px}.preview-card{display:flex;align-items:center;gap:9px;width:min(320px,100%);max-width:100%;min-height:52px;margin-top:7px;padding:6px 8px 6px 6px;overflow:hidden;border:1px solid #e1e5e9;border-radius:5px;color:#20262d;background:#f7f8f9;text-decoration:none}.preview-card:hover{border-color:#b9c7d5;background:#f1f4f7}.preview-card img{width:80px;height:45px;flex:0 0 80px;border-radius:4px;object-fit:cover}.preview-card span{display:flex;min-width:0;flex-direction:column;gap:3px}.preview-card small{overflow:hidden;color:#6b7280;font-size:9px;line-height:1;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.08em}.preview-card strong{overflow:hidden;color:#20262d;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.day-divider,.unread-divider{display:flex;align-items:center;gap:12px;color:#6b7280;font-size:10px;line-height:1;text-align:center}.day-divider{margin:22px 0 12px}.unread-divider{margin:20px 0 10px;color:#3569a8;font-size:9px;font-weight:700;letter-spacing:.1em}.day-divider:before,.day-divider:after,.unread-divider:before,.unread-divider:after{content:"";height:1px;flex:1;background:#e1e5e9}.unread-divider:before,.unread-divider:after{background:#b9cce1}.day-divider span,.unread-divider span{white-space:nowrap}.reply-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-bottom:1px solid #dfe5ea;color:#3569a8;background:#f7f9fb;font-size:10px}.reply-bar span{display:flex;min-width:0;flex-direction:column;gap:2px}.reply-bar strong{font-size:10px}.reply-bar small{overflow:hidden;color:#6b7280;text-overflow:ellipsis;white-space:nowrap}.reply-bar button{border:0;color:#6b7280;background:transparent;font-size:15px;line-height:1}@media(max-width:800px){.message-main{max-width:none}.message-time-gutter{left:-48px}.preview-card{width:min(300px,100%)}}@media(max-width:800px),(hover:none){.message-time-gutter,.message-actions{display:none}.message-row{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.message-row a,.message-row img{-webkit-touch-callout:none}.message-row:hover{background:transparent}.message-edit textarea{user-select:text;-webkit-user-select:text;font-size:16px}}.message-action-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:560px;max-height:80dvh;margin:0 auto;padding:0;border:0;border-radius:14px 14px 0 0;color:#20262d;background:#fff;overflow-y:auto;overscroll-behavior:contain}.message-action-sheet::backdrop{background:#0f172066}.message-sheet-content{padding:10px 16px max(16px,env(safe-area-inset-bottom))}.message-sheet-handle{width:32px;height:4px;margin:0 auto 12px;border-radius:2px;background:#ccd2d9}.message-sheet-header{display:flex;align-items:flex-start;gap:8px;padding-bottom:12px;border-bottom:1px solid #e1e5e9}.message-sheet-header>div{min-width:0;flex:1}.message-sheet-header strong{font-size:14px;overflow-wrap:anywhere}.message-sheet-header time{margin-left:8px;color:#6b7280;font-size:11px}.message-sheet-header p{margin:5px 0 0;color:#6b7280;font-size:13px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.message-sheet-header .icon-button{flex:0 0 40px;width:40px;height:40px}.message-sheet-actions{display:flex;flex-direction:column;padding-top:4px}.message-sheet-actions button{display:flex;align-items:center;gap:16px;width:100%;min-height:52px;padding:12px 8px;border:0;border-radius:4px;background:transparent;color:#303943;text-align:left;font:inherit;font-size:15px}.message-sheet-actions button:hover,.message-sheet-actions button:focus-visible{background:#f1f4f7}.message-sheet-actions svg{width:22px;height:22px;flex:0 0 22px}.message-sheet-actions .message-sheet-delete{color:#b03c3c}.profile-trigger{border:0;padding:0;background:transparent;text-align:inherit;cursor:pointer}.message-avatar-button{display:inline-flex;flex:0 0 38px;width:38px;height:38px;border-radius:50%}.message-sender.profile-trigger:hover,.header-profile-trigger:hover{text-decoration:underline}.header-profile-trigger{color:inherit;font:inherit;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.message-action-sheet[open]{animation:tandem-sheet-enter .16s cubic-bezier(.2,.8,.2,1)}@keyframes tandem-sheet-enter{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.message-action-sheet[open]{animation:none}}.user-profile-popup{position:fixed;z-index:40;top:var(--user-profile-top);left:var(--user-profile-left);width:min(300px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:0;padding:0;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}.user-profile-popup::backdrop{background:transparent}.user-profile-card{padding:16px}.user-profile-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.user-profile-heading{display:flex;min-width:0;align-items:center;gap:11px}.user-profile-heading>div{min-width:0}.user-profile-heading h2{margin:0 0 4px;font-size:16px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}.user-profile-header .icon-button{flex-shrink:0}.user-profile-presence{display:flex;align-items:center;gap:5px;margin:0;color:var(--muted);font-size:11px}.user-profile-presence span{width:7px;height:7px;border-radius:50%;background:var(--muted)}.user-profile-presence.is-online span{background:#2f9e68}.user-profile-details{display:grid;gap:10px;margin:17px 0 0;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.user-profile-details>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-profile-details dt{color:var(--muted);font-size:10px}.user-profile-details dd{display:flex;min-width:0;align-items:center;gap:7px;margin:0;color:var(--ink);font-size:11px;text-align:right}.user-profile-self{margin:9px 0 0;color:var(--muted);font-size:10px}.user-profile-actions{display:flex;align-items:center;gap:8px;margin-top:14px}.user-profile-actions .primary-button{flex:1}.user-profile-error{margin:9px 0 0;color:var(--danger);font-size:10px;line-height:1.35}@media(max-width:800px),(hover:none){.user-profile-popup{inset:auto 0 0;width:min(100%,560px);max-width:560px;max-height:min(560px,calc(100dvh - 24px));margin:0 auto;border-right:0;border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0;animation:tandem-sheet-enter .16s cubic-bezier(.2,.8,.2,1) both}.user-profile-popup:before{content:"";display:block;width:36px;height:4px;margin:10px auto 0;border-radius:2px;background:var(--subtle)}.user-profile-card{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.user-profile-popup::backdrop{background:#19233052}}@media(prefers-reduced-motion:reduce){.user-profile-popup{animation:none}}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202a35;background:#f7f8fa;font-synthesis:none;text-rendering:optimizeLegibility;--sidebar: #f2f4f7;--sidebar-hover: #e9edf2;--sidebar-active: #e3ebf8;--paper: #ffffff;--canvas: #f7f8fa;--ink: #202a35;--muted: #778391;--subtle: #98a2ad;--line: #e1e5ea;--accent: #3569a8;--accent-hover: #2a588e;--accent-soft: #e7effc;--danger: #b85d5b;--shadow: 0 12px 36px rgba(35, 45, 58, .14)}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%}body{margin:0;background:var(--canvas)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #78a3e4;outline-offset:2px}.app-shell{display:grid;grid-template-columns:272px minmax(0,1fr);height:100dvh;overflow:hidden;background:var(--paper)}.chat-panel,.chat-empty{min-width:0;min-height:0}.sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--line);background:var(--sidebar)}.sidebar-header{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 14px 0 18px;border-bottom:1px solid var(--line)}.sidebar-header h1{margin:0;color:var(--ink);font-size:16px;font-weight:700;letter-spacing:-.015em}.eyebrow{margin:0 0 3px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.total-unread{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:9px;background:var(--accent);color:#fff;font-size:9px;letter-spacing:0;vertical-align:1px}.sidebar-section-label{margin:14px 18px 6px;color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.icon-button{display:grid;width:32px;height:32px;padding:7px;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--sidebar-hover);color:var(--ink)}.icon-button svg,.primary-button svg,.action-icon svg{width:100%;height:100%}.primary-button svg{width:16px;height:16px;flex-shrink:0}.add-button{width:28px;height:28px;padding:6px;border-radius:6px;background:var(--accent);color:#fff}.add-button:hover{background:var(--accent-hover);color:#fff}.search-box{display:flex;align-items:center;height:34px;margin:12px 12px 8px;padding:0 9px;border:1px solid #dfe3e8;border-radius:5px;background:#fff;color:var(--subtle)}.search-box svg{width:16px;height:16px;margin-right:7px}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.search-box input::placeholder{color:var(--subtle)}.sidebar-actions{display:flex;gap:4px;padding:0 12px 10px}.sidebar-actions button{display:flex;align-items:center;gap:5px;padding:6px 7px;border:0;border-radius:5px;background:transparent;color:#596675;font-size:11px;font-weight:650}.sidebar-actions button:hover{background:var(--sidebar-hover);color:var(--ink)}.sidebar-actions em{padding:1px 5px;border-radius:8px;background:var(--accent);color:#fff;font-size:9px;font-style:normal}.action-icon{display:grid;width:14px;height:14px;place-items:center}.conversation-list{flex:1;min-height:0;overflow:auto;padding:2px 8px 8px}.conversation-item{display:flex;width:100%;min-width:0;align-items:center;gap:9px;margin:1px 0;padding:9px;border:0;border-radius:3px;background:transparent;color:var(--ink);text-align:left}.conversation-item:hover{background:var(--sidebar-hover)}.conversation-item.active{background:var(--sidebar-active)}.conversation-item.unread .conversation-copy strong,.conversation-item.unread .conversation-side time{color:var(--ink);font-weight:700}.conversation-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.conversation-copy strong,.conversation-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation-copy strong{font-size:12px;font-weight:600}.conversation-copy small{color:var(--muted);font-size:11px}.conversation-side{display:flex;align-self:stretch;flex-shrink:0;align-items:flex-end;flex-direction:column;gap:5px}.conversation-side time{color:var(--subtle);font-size:9px}.conversation-side b{min-width:17px;padding:2px 5px;border-radius:8px;background:var(--accent);color:#fff;font-size:9px;text-align:center}.sidebar-footer{padding:10px 12px 12px;border-top:1px solid var(--line)}.connection{display:flex;align-items:center;gap:6px;margin:0 4px 8px;color:var(--subtle);font-size:10px}.connection i{display:block;width:6px;height:6px;border-radius:50%;background:#c58b45}.connection.connected i{background:#4d9b68}.profile-strip{display:flex;width:100%;align-items:center;gap:8px;padding:6px;border:0;border-radius:5px;background:transparent;color:#596675;font-size:12px;text-align:left}.profile-strip:hover{background:var(--sidebar-hover);color:var(--ink)}.profile-strip svg{width:14px;height:14px;margin-left:auto}.sidebar-brand{display:flex;align-items:center;gap:7px}.compact-navigation{padding:0 12px 4px}.compact-navigation button{display:flex;width:100%;align-items:center;gap:9px;padding:7px 8px;border:0;border-radius:4px;background:transparent;color:#596675;text-align:left;font-size:12px;font-weight:600}.compact-navigation button:hover{background:var(--sidebar-hover);color:var(--ink)}.compact-navigation em{margin-left:auto;font-size:10px;font-style:normal;color:var(--accent)}.profile-controls{display:flex;align-items:center;gap:3px}.profile-strip{min-width:0;flex:1}.profile-strip>span:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-strip svg{flex-shrink:0}.notification-toggle{position:relative;display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;padding:7px;border:0;border-radius:4px;color:var(--muted);background:transparent}.notification-toggle:hover{background:var(--sidebar-hover)}.notification-toggle svg{width:16px;height:16px}.status-dot{position:absolute;top:4px;right:3px;width:5px;height:5px;border-radius:50%;background:var(--subtle)}.status-dot.on{background:#4d9b68}.mobile-alerts{display:none}.avatar{display:inline-grid;flex-shrink:0;width:38px;height:38px;place-items:center;border-radius:50%;background:#dbe4ef;color:#3b5b7d;font-size:13px;font-weight:700;object-fit:cover}.avatar-sm{width:28px;height:28px;font-size:10px}.avatar-md{width:38px;height:38px;font-size:13px}.avatar-lg{width:72px;height:72px;font-size:24px}.avatar-fallback{background:#dbe4ef}.chat-panel{display:flex;flex-direction:column;background:var(--paper)}.chat-header{display:flex;height:56px;flex-shrink:0;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid var(--line)}.chat-heading{min-width:0;flex:1}.chat-heading h2{overflow:hidden;margin:0 0 2px;color:var(--ink);font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.chat-heading p{margin:0;color:var(--muted);font-size:10px}.back-button{display:none}.messages{min-height:0;flex:1;overflow:auto;padding:12px 24px 16px;overflow-anchor:none;scroll-behavior:auto;scroll-padding-block:16px}.load-older{display:block;margin:0 auto 16px;padding:4px 8px;border:0;background:transparent;color:var(--accent);font-size:11px}.load-older:hover{text-decoration:underline}.jump-latest{display:block;position:sticky;z-index:1;bottom:4px;margin:10px auto 0;padding:7px 12px;border:1px solid #cbd9ee;border-radius:6px;background:#fff;color:var(--accent);box-shadow:0 3px 12px #2a48701f;font-size:11px;font-weight:650}.chat-empty{display:grid;align-content:center;min-width:0;text-align:center;color:var(--muted)}.chat-empty h2{margin:14px 0 6px;color:var(--ink);font-size:20px;font-weight:650}.chat-empty p{margin:0;font-size:12px}.hero-symbol,.empty-dot{display:grid;width:38px;height:38px;margin:0 auto 6px;place-items:center;border-radius:50%;background:#edf1f5;color:#6f87a2}.hero-symbol{width:52px;height:52px}.empty-dot svg,.hero-symbol svg{width:20px;height:20px}.hero-symbol svg{width:27px;height:27px}.empty-block{display:flex;align-items:center;flex-direction:column;gap:6px;padding:30px 20px;color:var(--muted);text-align:center}.empty-block strong{color:#4d5966;font-size:14px;font-weight:650}.empty-block p{max-width:240px;margin:0;font-size:11px;line-height:1.5}.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 24px 14px;border-top:1px solid var(--line);background:var(--paper)}.composer-tool{flex-shrink:0;margin-bottom:2px}.composer-main{position:relative;min-height:38px;flex:1;border:1px solid #d8dee6;border-radius:6px;background:#f8f9fb}.composer-main:focus-within{border-color:#9bb9e5;background:#fff}.composer textarea{display:block;width:100%;max-height:130px;padding:10px 12px;resize:none;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.4}.composer textarea::placeholder{color:var(--subtle)}.send-button{display:grid;width:36px;height:36px;flex-shrink:0;margin-bottom:1px;padding:9px;place-items:center;border:0;border-radius:6px;background:var(--accent);color:#fff}.send-button:hover{background:var(--accent-hover)}.attachment-pending{display:flex;position:relative;align-items:center;gap:7px;padding:6px 8px 0}.attachment-pending img{width:42px;height:42px;border-radius:4px;object-fit:cover}.attachment-pending span{color:var(--muted);font-size:10px}.attachment-pending button{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#dce2e9;color:#536171;line-height:15px}.boot-screen{display:flex;height:100dvh;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#f3f5f8;color:var(--muted);font-size:12px}.boot-screen .brand-mark{display:grid;width:42px;height:42px;padding:9px;place-items:center;border-radius:6px;background:var(--accent);color:#fff}.brand-mark svg{width:100%;height:100%}.auth-shell{display:grid;place-items:center;min-height:100dvh;background:#f3f5f8}.auth-card{display:flex;width:min(380px,100%);justify-content:center;flex-direction:column;padding:28px}.auth-card .brand-mark{display:grid;width:40px;height:40px;margin-bottom:30px;padding:9px;place-items:center;border-radius:6px;background:var(--accent);color:#fff}.auth-card h1{max-width:350px;margin:10px 0;color:var(--ink);font-size:24px;font-weight:700;letter-spacing:-.035em;line-height:1.12}.auth-intro{max-width:300px;margin:0 0 28px;color:var(--muted);font-size:13px;line-height:1.55}.auth-form,.profile-form,.group-form{display:flex;max-width:340px;flex-direction:column;gap:14px}.auth-form label,.profile-form label,.group-form label,.conversation-details label{display:flex;flex-direction:column;gap:6px;color:#53606e;font-size:11px;font-weight:700}.auth-form input,.profile-form input,.group-form input,.conversation-details input,.conversation-details select{padding:9px 10px;border:1px solid #d8dee5;border-radius:5px;outline:0;background:#fff;color:var(--ink);font-size:13px;font-weight:400}.auth-form input:focus,.profile-form input:focus,.group-form input:focus,.conversation-details input:focus,.conversation-details select:focus{border-color:#8eafe0}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 13px;border:0;border-radius:5px;background:var(--accent);color:#fff;font-size:12px;font-weight:700}.primary-button:hover{background:var(--accent-hover)}.auth-submit{height:39px;margin-top:4px}.text-button{padding:4px 0;border:0;background:transparent;color:var(--accent);font-size:11px;text-align:left}.text-button:hover{text-decoration:underline}.switch-auth{margin-top:14px}.form-error{padding:8px 10px;border-radius:4px;background:#fcebea;color:var(--danger);font-size:11px}.auth-aside{display:flex;align-items:flex-end;padding:54px;background:#edf1f6;color:#60738c}.auth-aside span{font-size:28px;font-weight:700;letter-spacing:-.04em}.auth-aside p{margin:0 0 4px 12px;color:#8493a5;font-size:12px}.modal-backdrop{display:grid;position:fixed;z-index:20;inset:0;align-items:center;justify-items:center;padding:18px;background:#1923306b}.modal{width:min(440px,100%);max-height:min(720px,calc(100dvh - 36px));overflow:auto;padding:20px;border:1px solid var(--line);border-radius:6px;background:var(--paper);box-shadow:var(--shadow)}.modal-wide{width:min(760px,100%)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-header h2{margin:0;color:var(--ink);font-size:18px;font-weight:700}.profile-form,.group-form{max-width:none}.profile-preview{display:flex;align-items:center;gap:12px}.upload-label{cursor:pointer!important;color:var(--accent)!important;font-size:11px!important}.upload-label input{display:none}.friend-code{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:5px}.friend-code span{display:flex;min-width:0;flex-direction:column;gap:3px}.friend-code small,.person-main small,.request-row small,.member-item small{color:var(--subtle);font-size:9px}.friend-code strong{color:var(--ink);font-size:13px;letter-spacing:.08em}.secondary-button{padding:7px 10px;border:1px solid #cbd7e5;border-radius:5px;background:#f3f6fa;color:#4f6680;font-size:11px;font-weight:700}.secondary-button:hover{background:#e9eff7}.logout-button{width:100%;margin-top:20px;padding:15px 0 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--danger);font-size:11px;text-align:left}.friends-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.add-friend{display:flex;gap:7px}.add-friend input{min-width:0;flex:1;padding:8px 10px;border:1px solid #d8dee5;border-radius:5px;outline:0;font-size:12px}.inline-notice{margin:8px 0;color:#4e8a66;font-size:11px}.friends-layout h3{margin:19px 0 7px;color:var(--subtle);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.friends-layout h3 span{padding:2px 5px;border-radius:7px;background:#edf1f5;font-size:9px;letter-spacing:0}.people-list,.requests-column{min-width:0}.person-row,.request-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #edf0f3}.person-main,.request-row>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.person-main strong,.request-row strong{overflow:hidden;color:var(--ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.compact{padding:6px 8px;font-size:10px}.quiet,.accept{width:27px;height:27px;padding:6px}.accept{color:#43835d}.request-row .cancel-request{font-size:10px}.outgoing-heading{margin-top:25px!important}.muted-copy{color:var(--subtle);font-size:11px;line-height:1.5}.group-form fieldset{margin:0;padding:8px;border:1px solid var(--line);border-radius:5px}.group-form legend{padding:0 4px;color:var(--subtle);font-size:10px}.select-person{flex-direction:row!important;align-items:center;padding:7px 2px;font-size:12px!important;font-weight:500!important}.select-person input{width:16px;height:16px;accent-color:var(--accent)}.select-person span{font-size:12px}.conversation-details{display:flex;flex-direction:column;gap:14px}.details-hero{display:flex;align-items:center;flex-direction:column;padding:2px 0 12px;text-align:center}.details-hero h3{margin:9px 0 3px;color:var(--ink);font-size:17px;font-weight:700}.details-hero p{margin:0;color:var(--muted);font-size:11px}.save-inline{align-self:flex-start;margin-top:5px}.member-list{padding:5px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.member-item{display:flex;align-items:center;gap:9px;padding:7px 0;color:var(--ink);font-size:12px}.member-item>span{display:flex;flex:1;flex-direction:column;gap:2px}.leave-button{padding:0;border:0;background:transparent;color:var(--danger);font-size:11px;text-align:left}.group-image-pick{display:flex;align-items:center;gap:12px}.group-image-preview{display:grid;width:54px;height:54px;overflow:hidden;place-items:center;border-radius:6px;background:#edf1f5;color:#6f87a2}.group-image-preview svg{width:24px;height:24px}.group-image-preview img{width:100%;height:100%;object-fit:cover}.lightbox{display:grid;position:fixed;z-index:30;inset:0;align-items:center;justify-items:center;padding:30px;background:#0c141ed6}.lightbox img{max-width:min(92vw,1100px);max-height:90vh;border-radius:4px;object-fit:contain}.lightbox-close{position:absolute;top:18px;right:18px;color:#fff}.app-notice{display:flex;position:fixed;z-index:50;bottom:18px;left:50%;max-width:calc(100vw - 32px);align-items:center;gap:16px;padding:11px 14px;transform:translate(-50%);border:1px solid #e4d6bb;border-radius:5px;background:#fff8e9;color:#6b522d;box-shadow:0 4px 18px #232d3a1f;font-size:12px}.app-notice button{padding:0;border:0;background:transparent;color:inherit;font-size:20px}@media(max-width:800px){.app-shell{display:block;position:relative}.sidebar{position:absolute;z-index:3;inset:0;width:100%;border:0}.app-shell:has(.chat-panel:not(.chat-empty)) .sidebar{transform:translate(-100%);visibility:hidden}.chat-panel{width:100%;height:100dvh}.back-button{display:grid}.chat-header{padding:0 12px}.messages,.composer{padding-right:12px;padding-left:12px}.chat-empty{height:100dvh;padding:20px}.auth-shell{display:block}.auth-aside{display:none}.auth-card{min-height:100dvh;padding:32px}.friends-layout{grid-template-columns:1fr}.requests-column{padding-top:1px;border-top:1px solid var(--line)}.modal{padding:18px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}html[data-theme=dark]{color-scheme:dark;--sidebar: #202428;--sidebar-hover: #2b3035;--sidebar-active: #313b48;--paper: #292d31;--canvas: #1b1e21;--ink: #edf0f2;--muted: #a6afb8;--subtle: #7e8994;--line: #3a4148;--accent: #95bcec;--accent-hover: #aecdf3;--accent-soft: #2c3b4f;--danger: #e28b87;--shadow: 0 12px 36px rgb(0 0 0 / 34%)}html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .chat-panel,html[data-theme=dark] .chat-empty{background:var(--canvas);color:var(--ink)}html[data-theme=dark] .sidebar,html[data-theme=dark] .sidebar-header,html[data-theme=dark] .sidebar-footer{background:var(--sidebar)}html[data-theme=dark] .total-unread,html[data-theme=dark] .conversation-side b,html[data-theme=dark] .sidebar-actions em,html[data-theme=dark] .primary-button,html[data-theme=dark] .send-button,html[data-theme=dark] .boot-screen .brand-mark,html[data-theme=dark] .auth-card .brand-mark{background:#3569a8;color:#fff}html[data-theme=dark] .search-box,html[data-theme=dark] .composer-main,html[data-theme=dark] .auth-form input,html[data-theme=dark] .profile-form input,html[data-theme=dark] .group-form input,html[data-theme=dark] .conversation-details input,html[data-theme=dark] .conversation-details select,html[data-theme=dark] .add-friend input{border-color:var(--line);background:#23272b;color:var(--ink)}html[data-theme=dark] .composer-main:focus-within{border-color:var(--accent);background:#252a2f}html[data-theme=dark] .chat-panel,html[data-theme=dark] .composer{background:var(--paper)}html[data-theme=dark] .icon-button,html[data-theme=dark] .profile-strip,html[data-theme=dark] .notification-toggle,html[data-theme=dark] .compact-navigation button,html[data-theme=dark] .sidebar-actions button{color:var(--muted)}html[data-theme=dark] .icon-button:hover,html[data-theme=dark] .profile-strip:hover,html[data-theme=dark] .notification-toggle:hover,html[data-theme=dark] .compact-navigation button:hover,html[data-theme=dark] .sidebar-actions button:hover,html[data-theme=dark] .conversation-item:hover{background:var(--sidebar-hover);color:var(--ink)}html[data-theme=dark] .conversation-item.active{background:var(--sidebar-active)}html[data-theme=dark] .avatar,html[data-theme=dark] .avatar-fallback,html[data-theme=dark] .message-row .avatar-fallback{background:#354252;color:#b9d2ee}html[data-theme=dark] .avatar-status{border-color:var(--paper)}html[data-theme=dark] .hero-symbol,html[data-theme=dark] .empty-dot,html[data-theme=dark] .group-image-preview{background:#303840;color:#9db8d5}html[data-theme=dark] .jump-latest{border-color:#536d8d;background:#262d35;color:var(--accent);box-shadow:0 3px 12px #00000047}html[data-theme=dark] .boot-screen,html[data-theme=dark] .auth-shell{background:var(--canvas)}html[data-theme=dark] .auth-form label,html[data-theme=dark] .profile-form label,html[data-theme=dark] .group-form label,html[data-theme=dark] .conversation-details label{color:#b5bec7}html[data-theme=dark] .auth-aside{background:#252a2f;color:#a9bed7}html[data-theme=dark] .auth-aside p{color:#8797a8}html[data-theme=dark] .modal{background:var(--paper)}html[data-theme=dark] .secondary-button{border-color:#536273;background:#303840;color:#c0d0e1}html[data-theme=dark] .secondary-button:hover{background:#3a4550}html[data-theme=dark] .friend-code,html[data-theme=dark] .group-form fieldset{border-color:var(--line)}html[data-theme=dark] .details-hero p,html[data-theme=dark] .muted-copy,html[data-theme=dark] .group-form legend{color:#9aa5af}html[data-theme=dark] .friends-layout h3 span{background:#303840}html[data-theme=dark] .person-row,html[data-theme=dark] .request-row{border-color:#343b42}html[data-theme=dark] .app-notice{border-color:#765f3b;background:#352d20;color:#e4c58c}html[data-theme=dark] .form-error{background:#43282a;color:#f1a4a0}html[data-theme=dark] .attachment-pending button{background:#48515a;color:#d5dce3}html[data-theme=dark] .message-row{color:#e5e9ed}html[data-theme=dark] .message-row:hover{background:#24282c}html[data-theme=dark] .message-sender,html[data-theme=dark] .message-content,html[data-theme=dark] .message-failed .message-content,html[data-theme=dark] .preview-card strong{color:#e5e9ed}html[data-theme=dark] .empty-block strong{color:#dce3e8}html[data-theme=dark] .message-time,html[data-theme=dark] .message-meta,html[data-theme=dark] .reply-quote,html[data-theme=dark] .message-tombstone,html[data-theme=dark] .edited-mark,html[data-theme=dark] .preview-card small{color:#9aa5af}html[data-theme=dark] .message-content a,html[data-theme=dark] .message-content p a,html[data-theme=dark] .reply-quote strong,html[data-theme=dark] .unread-divider{color:var(--accent)}html[data-theme=dark] .message-actions,html[data-theme=dark] .message-actions button,html[data-theme=dark] .message-edit textarea,html[data-theme=dark] .message-edit-actions button{border-color:#46505a;background:#2b3035;color:#d8dee4}html[data-theme=dark] .message-actions button:hover,html[data-theme=dark] .message-edit-actions button:hover{background:#39434d;color:var(--accent)}html[data-theme=dark] .preview-card{border-color:#414b55;background:#252a2f;color:#e5e9ed}html[data-theme=dark] .preview-card:hover{border-color:#5b6d80;background:#2d343b}html[data-theme=dark] .day-divider:before,html[data-theme=dark] .day-divider:after{background:#3c454d}html[data-theme=dark] .unread-divider:before,html[data-theme=dark] .unread-divider:after{background:#4c6682}html[data-theme=dark] .reply-bar{border-color:#3d4750;background:#252b30;color:var(--accent)}html[data-theme=dark] .reply-bar small{color:#b6c0c9}html[data-theme=dark] .message-action-sheet{color:#e5e9ed;background:#292e33}html[data-theme=dark] .message-sheet-header{border-color:#414a53}html[data-theme=dark] .message-sheet-header time,html[data-theme=dark] .message-sheet-header p{color:#9aa5af}html[data-theme=dark] .message-sheet-handle{background:#68747f}html[data-theme=dark] .message-sheet-actions button{color:#d7dde2}html[data-theme=dark] .message-sheet-actions button:hover,html[data-theme=dark] .message-sheet-actions button:focus-visible{background:#394149}html[data-theme=dark] .message-sheet-actions .message-sheet-delete{color:#f09a94}@media(prefers-color-scheme:dark){html:not([data-theme]){color-scheme:light}}html[data-theme=light]{color-scheme:light}html[data-theme=dark] .primary-button:hover,html[data-theme=dark] .send-button:hover{background:#3d75b8}html[data-theme=dark] .day-divider,html[data-theme=dark] .reply-bar button{color:var(--muted)}html[data-theme=dark] .composer-error,html[data-theme=dark] .retry-button{color:var(--danger)}
