:root{--bg-primary: #0f1117;--bg-secondary: #0d1117;--bg-elevated: #161b22;--bg-tertiary: #21262d;--text-primary: #f0f2f5;--text-secondary: #e1e4e8;--text-muted: #8b949e;--text-dim: #6e7681;--border-subtle: #30363d;--accent-primary: #00d4aa;--accent-hover: #00c99e;--avatar-color: #00d4aa;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .12);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .15);--radius-md: 8px;--radius-lg: 12px;--transition-fast: .18s ease;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem}.messenger-app.svelte-y7b4yy{display:flex;height:100%;width:100%;background:var(--bg-primary);color:var(--text-primary);font-family:inherit;position:relative}.messenger-app.svelte-y7b4yy.floating{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:900px;height:650px;max-width:95vw;max-height:85vh;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;z-index:1000;border:1px solid var(--border-subtle)}.messenger-app.svelte-y7b4yy .global-close-btn:where(.svelte-y7b4yy){position:absolute;top:12px;right:12px;background:transparent;border:none;color:var(--text-primary);font-size:1.75rem;line-height:1;padding:0;cursor:pointer;z-index:1010;transition:color var(--transition-fast)}.messenger-app.svelte-y7b4yy .global-close-btn:where(.svelte-y7b4yy):hover{color:#fff}.sidebar.svelte-y7b4yy{width:280px;border-right:1px solid var(--border-subtle);display:flex;flex-direction:column;background:color-mix(in srgb,black 12%,transparent);flex-shrink:0}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy){display:flex;flex-direction:column;gap:12px;padding:14px 12px;border-bottom:1px solid var(--border-subtle);box-sizing:border-box}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy){display:flex;justify-content:space-between;align-items:center;gap:8px}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) h2:where(.svelte-y7b4yy){margin:0;font-size:.95rem;font-weight:600;color:var(--text-primary);letter-spacing:.05em}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .actions:where(.svelte-y7b4yy){display:flex;gap:6px;flex-shrink:0}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy){width:32px;height:32px;border-radius:6px;background:color-mix(in srgb,var(--bg-elevated) 56%,transparent);border:1px solid color-mix(in srgb,var(--border-subtle) 60%,transparent);color:var(--text-secondary);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;padding:0;flex-shrink:0}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy):hover{background:color-mix(in srgb,var(--bg-elevated) 68%,transparent);color:var(--text-primary);border-color:var(--border-subtle);transform:translateY(-1px)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy).active{background:color-mix(in srgb,var(--accent-primary) 16%,var(--bg-elevated));color:var(--text-primary);border-color:var(--accent-primary)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy).new-chat-btn{color:var(--accent-primary)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy).new-chat-btn.active{background:color-mix(in srgb,var(--accent-primary) 24%,var(--bg-elevated));color:var(--accent-primary);border-color:var(--accent-primary)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .top-bar:where(.svelte-y7b4yy) .icon-btn:where(.svelte-y7b4yy).new-chat-btn:hover:not(.active){background:color-mix(in srgb,var(--bg-elevated) 68%,transparent);color:var(--accent-primary);border-color:var(--accent-primary)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .search-bar:where(.svelte-y7b4yy){box-sizing:border-box}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .search-bar:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy){width:100%;padding:8px 10px;background:color-mix(in srgb,var(--bg-elevated) 42%,transparent);border:1px solid var(--border-subtle);border-radius:8px;color:var(--text-primary);outline:none;font-size:.85rem;font-family:inherit;transition:border-color .18s ease;box-sizing:border-box}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .search-bar:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy):focus{border-color:var(--accent-primary)}.sidebar.svelte-y7b4yy .sidebar-header:where(.svelte-y7b4yy) .search-bar:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy)::placeholder{color:color-mix(in srgb,var(--text-secondary) 70%,transparent)}.sidebar.svelte-y7b4yy .conversation-list:where(.svelte-y7b4yy){flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:8px 12px;min-height:0}.sidebar.svelte-y7b4yy .conversation-list:where(.svelte-y7b4yy) .empty-state:where(.svelte-y7b4yy){text-align:center;padding:24px 12px;color:color-mix(in srgb,var(--text-secondary) 70%,transparent);font-size:.85rem}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy){width:100%;display:flex;align-items:center;padding:10px;gap:12px;border:none;background:none;cursor:pointer;text-align:left;transition:background .18s ease,color .18s ease,transform .18s ease;border-radius:8px}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy):hover{background:color-mix(in srgb,var(--accent-primary) 16%,var(--bg-elevated));transform:translateY(-1px)}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy).active{background:color-mix(in srgb,var(--accent-primary) 16%,var(--bg-elevated));color:var(--text-primary)}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .avatar:where(.svelte-y7b4yy){width:40px;height:40px;background:color-mix(in srgb,var(--avatar-color) 82%,black 18%);color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;flex-shrink:0;text-shadow:0 1px 1px rgba(0,0,0,.18)}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy){flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .top-row:where(.svelte-y7b4yy){display:flex;justify-content:space-between;align-items:baseline;gap:8px}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .top-row:where(.svelte-y7b4yy) .conv-name:where(.svelte-y7b4yy){font-weight:500;color:var(--text-primary);font-size:.9rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .top-row:where(.svelte-y7b4yy) .date:where(.svelte-y7b4yy){font-size:.75rem;color:color-mix(in srgb,var(--text-secondary) 70%,transparent);flex-shrink:0}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .bottom-row:where(.svelte-y7b4yy){display:flex;align-items:center;gap:8px;min-width:0}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .last-msg:where(.svelte-y7b4yy){margin:0;font-size:.8rem;color:color-mix(in srgb,var(--text-secondary) 70%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .last-msg:where(.svelte-y7b4yy) .you-prefix:where(.svelte-y7b4yy){color:color-mix(in srgb,var(--text-secondary) 60%,transparent)}.sidebar.svelte-y7b4yy .conversation-item:where(.svelte-y7b4yy) .details:where(.svelte-y7b4yy) .unread-badge:where(.svelte-y7b4yy){min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent-primary);color:#0f1117;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0}.chat-area.svelte-y7b4yy{flex:1;display:flex;flex-direction:column;background:var(--bg-primary);min-width:0}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy){display:flex;flex-direction:column;height:100%}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .chat-header:where(.svelte-y7b4yy){padding:16px 24px;border-bottom:1px solid var(--border-subtle);background:var(--bg-secondary);min-height:64px;display:flex;align-items:center}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .chat-header:where(.svelte-y7b4yy) h3:where(.svelte-y7b4yy){margin:0;font-size:1rem;font-weight:600;color:var(--text-primary)}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy){flex:1;overflow-y:auto;padding:32px 24px;max-width:600px;margin:0 auto;width:100%}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy){display:flex;flex-direction:column;gap:16px;padding-bottom:32px;border-bottom:1px solid var(--border-subtle)}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .to-row:where(.svelte-y7b4yy){display:flex;flex-direction:column;gap:8px}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .to-row:where(.svelte-y7b4yy) label:where(.svelte-y7b4yy){color:var(--text-muted);font-weight:500;font-size:.9rem}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .to-row:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy){flex:1;background:var(--bg-elevated);border:1px solid var(--border-subtle);border-radius:8px;color:var(--text-primary);padding:12px 16px;font-size:1rem;font-family:inherit;outline:none;transition:border-color .18s ease}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .to-row:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy):focus{border-color:var(--accent-primary)}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .to-row:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy)::placeholder{color:var(--text-muted)}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .hint:where(.svelte-y7b4yy){font-size:.8rem;color:var(--text-muted);margin:0;text-align:center}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .compose-form:where(.svelte-y7b4yy) .error-msg:where(.svelte-y7b4yy){font-size:.8rem;color:#ff6b6b;margin:0;text-align:center}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy){margin-top:32px}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) h4:where(.svelte-y7b4yy){margin:0 0 16px;color:var(--text-muted);text-transform:uppercase;font-size:.75rem;font-weight:600;letter-spacing:.08em}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) .user-chips:where(.svelte-y7b4yy){display:flex;flex-wrap:wrap;gap:12px}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) .user-chip:where(.svelte-y7b4yy){display:flex;align-items:center;gap:8px;padding:8px 16px;background:color-mix(in srgb,var(--bg-elevated) 42%,transparent);border:1px solid var(--border-subtle);border-radius:20px;color:var(--text-primary);font-size:.9rem;cursor:pointer;transition:all .18s ease}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) .user-chip:where(.svelte-y7b4yy):hover{border-color:var(--accent-primary);background:color-mix(in srgb,var(--accent-primary) 16%,var(--bg-elevated));transform:translateY(-1px)}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) .user-chip:where(.svelte-y7b4yy) .chip-color:where(.svelte-y7b4yy){width:10px;height:10px;border-radius:50%;flex-shrink:0}.chat-area.svelte-y7b4yy .new-chat-view:where(.svelte-y7b4yy) .new-chat-content:where(.svelte-y7b4yy) .recent-users:where(.svelte-y7b4yy) .no-users:where(.svelte-y7b4yy){color:var(--text-muted);font-size:.9rem;font-style:italic;text-align:center;padding:24px}.chat-area.svelte-y7b4yy .chat-header:where(.svelte-y7b4yy){padding:var(--space-4) var(--space-6);border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;gap:var(--space-4);background:var(--bg-secondary);height:64px}.chat-area.svelte-y7b4yy .chat-header:where(.svelte-y7b4yy) .username-btn:where(.svelte-y7b4yy){background:none;border:none;margin:0;padding:0;font-size:var(--text-lg);color:var(--text-primary);cursor:pointer;font-weight:600;transition:color .15s ease}.chat-area.svelte-y7b4yy .chat-header:where(.svelte-y7b4yy) .username-btn:where(.svelte-y7b4yy):hover{color:var(--accent-primary)}.chat-area.svelte-y7b4yy .message-feed:where(.svelte-y7b4yy){flex:1;overflow-y:auto;padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-4);background:var(--bg-primary)}.chat-area.svelte-y7b4yy .date-divider:where(.svelte-y7b4yy){text-align:center;margin:var(--space-4) 0;position:relative}.chat-area.svelte-y7b4yy .date-divider:where(.svelte-y7b4yy):before{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:var(--border-subtle);z-index:1}.chat-area.svelte-y7b4yy .date-divider:where(.svelte-y7b4yy) span:where(.svelte-y7b4yy){position:relative;z-index:2;background:var(--bg-primary);padding:0 var(--space-4);font-size:var(--text-xs);color:var(--text-muted)}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy){display:flex}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy).own{justify-content:flex-end}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy).own .message:where(.svelte-y7b4yy){background:var(--accent-primary);color:var(--bg-primary);border-radius:var(--radius-md) var(--radius-md) 2px var(--radius-md)}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy).own .message:where(.svelte-y7b4yy) .time:where(.svelte-y7b4yy){color:#00000080}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy):not(.own){justify-content:flex-start}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy):not(.own) .message:where(.svelte-y7b4yy){background:var(--bg-elevated);color:var(--text-primary);border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 2px}.chat-area.svelte-y7b4yy .message-wrapper:where(.svelte-y7b4yy):not(.own) .message:where(.svelte-y7b4yy) .time:where(.svelte-y7b4yy){color:var(--text-muted)}.chat-area.svelte-y7b4yy .message:where(.svelte-y7b4yy){max-width:75%;padding:var(--space-3) var(--space-4);box-shadow:var(--shadow-sm)}.chat-area.svelte-y7b4yy .message:where(.svelte-y7b4yy) p:where(.svelte-y7b4yy){margin:0;font-size:var(--text-base);line-height:1.5;word-break:break-word}.chat-area.svelte-y7b4yy .message:where(.svelte-y7b4yy) .time:where(.svelte-y7b4yy){display:block;font-size:var(--text-xs);margin-top:var(--space-2);text-align:right}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy){padding:var(--space-4) var(--space-6);border-top:1px solid var(--border-subtle);display:flex;gap:var(--space-4);background:var(--bg-secondary)}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy){flex:1;padding:var(--space-3) var(--space-5);background:var(--bg-tertiary);border:1px solid var(--border-subtle);border-radius:30px;color:var(--text-primary);outline:none;font-size:var(--text-base)}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy) input:where(.svelte-y7b4yy):focus{border-color:var(--accent-primary)}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy) button:where(.svelte-y7b4yy){padding:0 var(--space-6);background:var(--accent-primary);color:var(--bg-primary);border:none;border-radius:30px;font-weight:600;cursor:pointer;font-size:var(--text-base);transition:background var(--transition-fast)}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy) button:where(.svelte-y7b4yy):hover:not(:disabled){background:var(--accent-hover)}.chat-area.svelte-y7b4yy .input-area:where(.svelte-y7b4yy) button:where(.svelte-y7b4yy):disabled{opacity:.5;cursor:not-allowed}.chat-area.svelte-y7b4yy .no-selection:where(.svelte-y7b4yy){flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);text-align:center;padding:var(--space-10)}.chat-area.svelte-y7b4yy .no-selection:where(.svelte-y7b4yy) .icon:where(.svelte-y7b4yy){font-size:5rem;margin-bottom:var(--space-6);opacity:.15}.chat-area.svelte-y7b4yy .no-selection:where(.svelte-y7b4yy) h3:where(.svelte-y7b4yy){color:var(--text-secondary);margin-bottom:var(--space-2);font-size:var(--text-xl)}.chat-area.svelte-y7b4yy .no-selection:where(.svelte-y7b4yy) p:where(.svelte-y7b4yy){max-width:300px;margin-bottom:var(--space-6)}.primary-btn.svelte-y7b4yy{padding:12px 24px;background:var(--accent-primary);color:#0f1117;border:none;border-radius:8px;font-weight:600;font-size:1rem;font-family:inherit;cursor:pointer;transition:all .18s ease}.primary-btn.svelte-y7b4yy:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px)}.primary-btn.svelte-y7b4yy:active{transform:translateY(0)}.primary-btn.svelte-y7b4yy:disabled{opacity:.5;cursor:not-allowed}.primary-btn.svelte-y7b4yy.wide{width:100%;max-width:300px}@media (max-width: 768px){.messenger-app.floating.svelte-y7b4yy{width:100%;height:100%;top:0;left:0;transform:none;border-radius:0}}
