/* /Components/Avatar.razor.rz.scp.css */
.avatar[b-lcgljdwsbn] {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    user-select: none;
}

.avatar-small[b-lcgljdwsbn] {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
}

.avatar-medium[b-lcgljdwsbn] {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.avatar-large[b-lcgljdwsbn] {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.avatar-image[b-lcgljdwsbn] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials[b-lcgljdwsbn] {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}
/* /Components/ChatHeader.razor.rz.scp.css */
.chat-header[b-iviv6e0p8y] {
    background: var(--bg-header);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(4,4,5,0.2),0 1.5px 0 rgba(6,6,7,0.05),0 2px 0 rgba(4,4,5,0.05);
}

.chat-header h3[b-iviv6e0p8y] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-header-title[b-iviv6e0p8y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.dm-header-title[b-iviv6e0p8y]  .avatar {
    flex-shrink: 0;
}

.header-controls[b-iviv6e0p8y] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mailbox button */
.mailbox-button[b-iviv6e0p8y] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.mailbox-button:hover[b-iviv6e0p8y] {
    background: rgba(79, 84, 92, 0.4);
    color: var(--text-primary);
}

.mailbox-button.has-unread[b-iviv6e0p8y] {
    color: var(--status-away);
}

.mailbox-button.has-unread:hover[b-iviv6e0p8y] {
    color: var(--status-away-hover);
}

.mailbox-badge[b-iviv6e0p8y] {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    line-height: 1.2;
}

.users-toggle[b-iviv6e0p8y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.users-toggle:hover[b-iviv6e0p8y] {
    background: rgba(79, 84, 92, 0.4);
    color: var(--text-primary);
}

.users-toggle svg[b-iviv6e0p8y] {
    width: 20px;
    height: 20px;
}

/* Desktop: people icon, Mobile: hamburger */
.icon-hamburger[b-iviv6e0p8y] {
    display: none;
}

@media (max-width: 768px) {
    .icon-people[b-iviv6e0p8y] {
        display: none;
    }

    .icon-hamburger[b-iviv6e0p8y] {
        display: block;
    }

    .online-count[b-iviv6e0p8y] {
        display: none;
    }
}

.online-count[b-iviv6e0p8y] {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Status dropdown container */
.status-dropdown-container[b-iviv6e0p8y] {
    position: relative;
}

.status-button[b-iviv6e0p8y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--status-online);
    border: none;
    color: var(--text-white);
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    transition: filter 0.2s;
}

.status-button:hover[b-iviv6e0p8y] {
    filter: brightness(1.1);
}

.status-button.status-online[b-iviv6e0p8y] {
    background: var(--status-online);
}

.status-button.status-away[b-iviv6e0p8y] {
    background: var(--status-away);
}

.status-button.status-invisible[b-iviv6e0p8y] {
    background: var(--status-invisible);
}

.status-indicator[b-iviv6e0p8y] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-username[b-iviv6e0p8y] {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-gear[b-iviv6e0p8y] {
    opacity: 0.7;
    margin-left: -0.125rem;
}

/* Backdrop for closing dropdown */
.dropdown-backdrop[b-iviv6e0p8y] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

/* Dropdown menu */
.status-dropdown[b-iviv6e0p8y] {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-darkest);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
    min-width: 150px;
    padding: 0.375rem;
    z-index: 1000;
}

.dropdown-item[b-iviv6e0p8y] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: left;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover:not(:disabled)[b-iviv6e0p8y] {
    background: rgba(79, 84, 92, 0.4);
    color: var(--text-white);
}

.dropdown-item:disabled[b-iviv6e0p8y] {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-item.active[b-iviv6e0p8y] {
    background: rgba(88, 101, 242, 0.2);
    color: var(--text-white);
}

.dropdown-item.signout[b-iviv6e0p8y] {
    color: var(--color-danger);
}

.dropdown-item.signout:hover[b-iviv6e0p8y] {
    background: rgba(237, 66, 69, 0.2);
    color: var(--color-danger);
}

.dropdown-divider[b-iviv6e0p8y] {
    height: 1px;
    background: var(--bg-sidebar);
    margin: 0.375rem 0;
}

/* Status dots in dropdown */
.status-dot[b-iviv6e0p8y] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online[b-iviv6e0p8y] {
    background: var(--status-online);
}

.status-dot.away[b-iviv6e0p8y] {
    background: var(--status-away);
}

.status-dot.invisible[b-iviv6e0p8y] {
    background: var(--status-invisible);
}

/* Checkmark for active items */
.checkmark[b-iviv6e0p8y] {
    margin-left: auto;
    color: var(--status-online);
    font-weight: 600;
}

@media (max-width: 600px) {
    .chat-header[b-iviv6e0p8y] {
        padding: 0.75rem 1rem;
    }

    .chat-header h3[b-iviv6e0p8y] {
        font-size: 1.25rem;
    }

    .status-username[b-iviv6e0p8y] {
        max-width: 80px;
    }
}
/* /Components/ChatSidebar.razor.rz.scp.css */
/* Desktop: always visible */
.users-sidebar[b-l97ijzk6hg] {
    width: 240px;
    background: var(--bg-sidebar);
    padding: 1rem;
    overflow: hidden;
}

/* Mobile: slide-in overlay */
@media (max-width: 768px) {
    .users-sidebar[b-l97ijzk6hg] {
        position: fixed;
        right: 0;
        top: 41px;
        height: calc(100vh - 41px);
        transform: translateX(100%);
        transition: transform 0.2s ease;
        z-index: 99;
    }

    .users-sidebar.sidebar-open[b-l97ijzk6hg] {
        transform: translateX(0);
    }
}

/* Sidebar sections */
.sidebar-section[b-l97ijzk6hg] {
    margin-bottom: 1.5rem;
}

.sidebar-section h4[b-l97ijzk6hg] {
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

/* Rooms list */
.rooms-list[b-l97ijzk6hg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-item[b-l97ijzk6hg] {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.15s;
}

.room-item:hover[b-l97ijzk6hg] {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.room-item.active[b-l97ijzk6hg] {
    background: var(--bg-secondary);
    color: var(--text-white);
}

.room-icon[b-l97ijzk6hg] {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    color: var(--text-placeholder);
    font-weight: 500;
}

.room-item.active .room-icon[b-l97ijzk6hg],
.room-item:hover .room-icon[b-l97ijzk6hg] {
    color: var(--text-primary);
}

.room-name[b-l97ijzk6hg] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-delete[b-l97ijzk6hg] {
    background: transparent;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.25rem;
    line-height: 1;
    border-radius: 3px;
    opacity: 0;
    transition: all 0.15s;
}

.room-item:hover .room-delete[b-l97ijzk6hg] {
    opacity: 1;
}

.room-delete-spacer[b-l97ijzk6hg],
.room-item:hover .room-delete-spacer[b-l97ijzk6hg] {
    visibility: hidden;
}

.room-delete:hover[b-l97ijzk6hg] {
    color: var(--color-danger);
    background: rgba(237, 66, 69, 0.1);
}

.room-item.add-room[b-l97ijzk6hg] {
    color: var(--color-success);
}

.room-item.add-room:hover[b-l97ijzk6hg] {
    background: rgba(59, 165, 92, 0.1);
}

.room-item.add-room .room-icon[b-l97ijzk6hg] {
    color: var(--color-success);
}

/* New room input */
.new-room-input[b-l97ijzk6hg] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
}

.room-name-input[b-l97ijzk6hg] {
    flex: 1;
    min-width: 0;
    padding: 0.375rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.room-name-input:focus[b-l97ijzk6hg] {
    outline: none;
    border-color: var(--accent-primary);
}

.room-create-btn[b-l97ijzk6hg],
.room-cancel-btn[b-l97ijzk6hg] {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.room-create-btn[b-l97ijzk6hg] {
    color: var(--color-success);
}

.room-create-btn:hover[b-l97ijzk6hg] {
    background: rgba(59, 165, 92, 0.2);
}

.room-cancel-btn[b-l97ijzk6hg] {
    color: var(--text-placeholder);
}

.room-cancel-btn:hover[b-l97ijzk6hg] {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Users list */
.users-list[b-l97ijzk6hg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-item[b-l97ijzk6hg] {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.15s;
}

.user-item:hover[b-l97ijzk6hg] {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.user-item.current-user[b-l97ijzk6hg] {
    color: var(--text-white);
    cursor: default;
}

.user-item.current-user:hover[b-l97ijzk6hg] {
    background: transparent;
}

.user-item.active-dm[b-l97ijzk6hg] {
    background: var(--bg-secondary);
    color: var(--text-white);
}

.user-name[b-l97ijzk6hg] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User status dot */
.user-status-dot[b-l97ijzk6hg] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.user-status-dot.online[b-l97ijzk6hg] {
    background: var(--status-online);
}

.user-status-dot.away[b-l97ijzk6hg] {
    background: var(--status-away);
}

.user-status-dot.invisible[b-l97ijzk6hg] {
    background: var(--status-invisible);
}

/* Admin badge */
.admin-badge[b-l97ijzk6hg] {
    margin-left: 0.25rem;
    opacity: 0.8;
}

/* Room unread dot */
.room-unread-dot[b-l97ijzk6hg] {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.room-item.has-unread[b-l97ijzk6hg] {
    color: var(--text-primary);
}

/* DM unread badge */
.dm-unread-badge[b-l97ijzk6hg] {
    background: var(--color-danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
/* /Components/EmojiPicker.razor.rz.scp.css */
.emoji-picker[b-hnilkmjlme] {
    display: flex;
    flex-direction: row;
    width: 460px;
    height: 450px;
    background: var(--bg-sidebar);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    z-index: 1000;
}

/* Left sidebar with category icons */
.emoji-sidebar[b-hnilkmjlme] {
    display: flex;
    flex-direction: column;
    width: 40px;
    padding: 6px 4px;
    gap: 2px;
    background: var(--bg-header);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}

.emoji-sidebar[b-hnilkmjlme]::-webkit-scrollbar {
    display: none;
}

.category-btn[b-hnilkmjlme] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.15s, background-color 0.15s;
}

.category-btn:hover[b-hnilkmjlme] {
    opacity: 1;
    background: var(--bg-input);
}

.category-btn.active[b-hnilkmjlme] {
    opacity: 1;
    background: var(--bg-input);
}

/* Right scrollable content area */
.emoji-content[b-hnilkmjlme] {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

.emoji-content[b-hnilkmjlme]::-webkit-scrollbar {
    width: 8px;
}

.emoji-content[b-hnilkmjlme]::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-content[b-hnilkmjlme]::-webkit-scrollbar-thumb {
    background: var(--bg-header);
    border-radius: 4px;
}

/* Each category section */
.emoji-section[b-hnilkmjlme] {
    /* No extra spacing needed — header + grid handle it */
}

/* Sticky category header */
.section-header[b-hnilkmjlme] {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-sidebar);
    letter-spacing: 0.02em;
}

/* Emoji grid within each section */
.emoji-grid[b-hnilkmjlme] {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 6px 8px;
    align-content: flex-start;
}

.emoji-btn[b-hnilkmjlme] {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.emoji-btn:hover[b-hnilkmjlme] {
    background: var(--bg-input);
    transform: scale(1.1);
}

/* Override inline 18px from forceSmall */
.emoji-btn[b-hnilkmjlme]  .emoji {
    width: 40px !important;
    height: 40px !important;
}

.emoji-empty[b-hnilkmjlme] {
    width: 100%;
    text-align: center;
    color: var(--text-placeholder);
    padding: 2rem;
    font-size: 0.875rem;
}

/* Mobile adjustments - match parent's 600px breakpoint */
@media (max-width: 600px) {
    .emoji-sidebar[b-hnilkmjlme] {
        width: 36px;
    }

    .category-btn[b-hnilkmjlme] {
        width: 28px;
        height: 28px;
    }

    .emoji-btn[b-hnilkmjlme] {
        width: 36px;
        height: 36px;
    }

    .emoji-btn[b-hnilkmjlme]  .emoji {
        width: 28px !important;
        height: 28px !important;
    }
}
/* /Components/ImageGalleryModal.razor.rz.scp.css */
.image-modal[b-m9fvu9z89i] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal img[b-m9fvu9z89i] {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    cursor: default;
}

.modal-close[b-m9fvu9z89i] {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover[b-m9fvu9z89i] {
    background: rgba(255, 255, 255, 0.2);
}

.modal-nav[b-m9fvu9z89i] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-nav:hover[b-m9fvu9z89i] {
    background: rgba(255, 255, 255, 0.25);
}

.modal-nav.prev[b-m9fvu9z89i] {
    left: 20px;
}

.modal-nav.next[b-m9fvu9z89i] {
    right: 20px;
}

.modal-counter[b-m9fvu9z89i] {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}
/* /Components/Layout/ChatLayout.razor.rz.scp.css */
.chat-container[b-5ysvdl9h6i] {
    height: 100vh; /* fallback for older browsers */
    height: 100svh; /* small viewport height - consistent on mobile */
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
}

.chat-main[b-5ysvdl9h6i] {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.messages-container[b-5ysvdl9h6i] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden;
}

/* Messages area - use ::deep to style page content */
[b-5ysvdl9h6i] .messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0 0.25rem 0;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow flex item to shrink below content size */
}

/* Hide message action popups when scroll-dismissing on mobile */
[b-5ysvdl9h6i] .messages.scroll-dismissing .message-actions {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Spacer pushes messages to bottom when few messages */
[b-5ysvdl9h6i] .messages-spacer {
    flex: 1 1 auto;
}

/* Scrollbar styling */
[b-5ysvdl9h6i] .messages::-webkit-scrollbar {
    width: 16px;
}

[b-5ysvdl9h6i] .messages::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 8px;
}

[b-5ysvdl9h6i] .messages::-webkit-scrollbar-thumb {
    background: var(--bg-header);
    border: 4px solid var(--bg-primary);
    border-radius: 8px;
}

[b-5ysvdl9h6i] .messages::-webkit-scrollbar-thumb:hover {
    background: var(--bg-darkest);
}

/* System messages (for DM notice) */
[b-5ysvdl9h6i] .system-message {
    text-align: center;
    margin: 0 !important;
    padding: 0.0625rem 1rem !important;
}

[b-5ysvdl9h6i] .system-message .message-content {
    display: inline-block;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8125rem;
    padding: 0;
    background: transparent;
    line-height: 1.4;
}

/* Loading indicator for infinite scroll */
[b-5ysvdl9h6i] .loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

[b-5ysvdl9h6i] .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-muted);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin-b-5ysvdl9h6i 0.8s linear infinite;
}

@keyframes spin-b-5ysvdl9h6i {
    to { transform: rotate(360deg); }
}

/* History start message */
[b-5ysvdl9h6i] .history-start {
    text-align: center;
    padding: 1rem;
    color: var(--text-placeholder);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Backdrop for mobile sidebar */
.sidebar-backdrop[b-5ysvdl9h6i] {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-backdrop.show[b-5ysvdl9h6i] {
        display: block;
        position: fixed;
        top: 41px;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        z-index: 98;
    }

    .chat-main[b-5ysvdl9h6i] {
        width: 100%;
    }
}

/* Error boundary content */
.error-content[b-5ysvdl9h6i] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.error-content h3[b-5ysvdl9h6i] {
    color: var(--color-danger);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.error-content p[b-5ysvdl9h6i] {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    max-width: 400px;
}

.error-retry-button[b-5ysvdl9h6i],
.error-reload-button[b-5ysvdl9h6i] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: background-color 0.15s ease;
}

.error-retry-button[b-5ysvdl9h6i] {
    background: var(--accent-primary);
    color: white;
}

.error-retry-button:hover[b-5ysvdl9h6i] {
    background: var(--accent-hover);
}

.error-reload-button[b-5ysvdl9h6i] {
    background: var(--bg-input);
    color: var(--text-primary);
}

.error-reload-button:hover[b-5ysvdl9h6i] {
    background: var(--bg-muted);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-67qt6x78as] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-67qt6x78as] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* =============================================================================
   RECONNECTION BANNER STYLES (.NET 10)
   =============================================================================
   Discord-style top banner for connection status. Non-blocking UI that
   allows users to still see the chat content behind it.

   States (CSS classes applied by Blazor):
   - components-reconnect-show: First reconnection attempt
   - components-reconnect-retrying: Subsequent attempts with countdown
   - components-reconnect-failed: All retries exhausted (manual action needed)
   - components-reconnect-paused: Circuit paused by server
   - components-reconnect-resume-failed: Resume attempt failed

   The banner slides down from the top when visible and slides back up when hidden.
   ============================================================================= */

/* =============================================================================
   DEFAULT STATE: Hidden
   ============================================================================= */

/* Hide the banner by default - positioned above viewport */
#components-reconnect-modal[b-79ihxbgqkf] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    /* Hidden by default - use both visibility and transform */
    visibility: hidden;
    transform: translateY(calc(-100% - 10px));
    /*
     * IMPORTANT: Blazor uses visibility transition to control when the UI appears.
     * Default is 500ms delay. Set to 0ms to appear immediately when connection lost.
     */
    transition: visibility 0s linear 0ms;
}

/* Hide ALL state-specific content by default (including dots) */
.components-reconnect-first-attempt-visible[b-79ihxbgqkf],
.components-reconnect-repeated-attempt-visible[b-79ihxbgqkf],
.components-reconnect-failed-visible[b-79ihxbgqkf],
.components-pause-visible[b-79ihxbgqkf],
.components-resume-failed-visible[b-79ihxbgqkf],
.reconnect-dots[b-79ihxbgqkf] {
    display: none !important;
}

/* =============================================================================
   VISIBLE STATES: Show banner
   ============================================================================= */

/* Show banner when any "active" state is applied */
#components-reconnect-modal.components-reconnect-show[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-retrying[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-failed[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-paused[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-resume-failed[b-79ihxbgqkf] {
    visibility: visible;
    transform: translateY(0);
}

/* =============================================================================
   STATE-SPECIFIC CONTENT VISIBILITY
   Use high specificity to override the !important above
   ============================================================================= */

/* Show state: "Reconnecting to server..." - but NOT if also retrying */
#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-retrying):not(.components-reconnect-failed) .components-reconnect-first-attempt-visible[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-retrying):not(.components-reconnect-failed) .reconnect-dots[b-79ihxbgqkf] {
    display: inline-flex !important;
}

/* Retrying state: "Connection lost. Retrying in Xs..." */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-retrying .reconnect-dots[b-79ihxbgqkf] {
    display: inline-flex !important;
}

/* Paused state: "Session paused. Resuming..." */
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-79ihxbgqkf],
#components-reconnect-modal.components-reconnect-paused .reconnect-dots[b-79ihxbgqkf] {
    display: inline-flex !important;
}

/* Failed state: "Connection failed. [Retry Now]" - NO dots */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-79ihxbgqkf] {
    display: inline !important;
}

/* Resume failed state: "Failed to resume session. [Reload Page]" - NO dots */
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-79ihxbgqkf] {
    display: inline !important;
}

/* =============================================================================
   BANNER STYLING
   ============================================================================= */

/* Banner content container - Discord-style yellow/orange warning */
.reconnect-banner-content[b-79ihxbgqkf] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    /* Discord-style warning yellow/orange - uses status-away color */
    background: linear-gradient(135deg, var(--status-away) 0%, #f57731 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    /* Subtle shadow for depth */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   ANIMATED DOTS
   ============================================================================= */

/* Container for the loading dots */
.reconnect-dots[b-79ihxbgqkf] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Individual dot styling */
.reconnect-dots .dot[b-79ihxbgqkf] {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: reconnect-dot-pulse-b-79ihxbgqkf 1.4s ease-in-out infinite both;
}

/* Stagger the animation for each dot */
.reconnect-dots .dot:nth-child(1)[b-79ihxbgqkf] {
    animation-delay: 0s;
}

.reconnect-dots .dot:nth-child(2)[b-79ihxbgqkf] {
    animation-delay: 0.2s;
}

.reconnect-dots .dot:nth-child(3)[b-79ihxbgqkf] {
    animation-delay: 0.4s;
}

/* Dot pulse animation */
@keyframes reconnect-dot-pulse-b-79ihxbgqkf {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

/* Retry and Reload buttons */
#components-reconnect-modal button[b-79ihxbgqkf] {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-left: 0.5rem;
}

#components-reconnect-modal button:hover[b-79ihxbgqkf] {
    background-color: rgba(255, 255, 255, 0.3);
}

#components-reconnect-modal button:active[b-79ihxbgqkf] {
    background-color: rgba(255, 255, 255, 0.4);
}

/* =============================================================================
   COUNTDOWN STYLING
   ============================================================================= */

/* Make the countdown number slightly emphasized */
#components-seconds-to-next-attempt[b-79ihxbgqkf] {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
/* /Components/MessageInput.razor.rz.scp.css */
/* Reply bar above message input */
.reply-bar[b-36jla8vlnc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin: 0 8px;
    background: var(--bg-sidebar);
    border-radius: 8px 8px 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.reply-bar-text[b-36jla8vlnc] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-bar-close[b-36jla8vlnc] {
    background: transparent;
    border: none;
    color: var(--text-placeholder);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.reply-bar-close:hover[b-36jla8vlnc] {
    color: var(--text-primary);
}

.message-input-container[b-36jla8vlnc] {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.25rem;
    width: 100%;
    padding: 4px 8px 16px;
    background: var(--bg-primary);
    transition: background-color 0.2s, box-shadow 0.2s;
    position: relative;
}

/* When reply bar is shown, connect input visually */
.message-input-container.has-reply-bar[b-36jla8vlnc] {
    padding-top: 0;
}

.message-input-container.has-reply-bar .message-input[b-36jla8vlnc] {
    border-radius: 0 0 8px 8px;
}

/* Keep some breathing room between textarea and the buttons */
.message-input[b-36jla8vlnc] {
    margin-right: 0.25rem;
}

.message-input-container.drag-over[b-36jla8vlnc] {
    background: var(--bg-secondary);
    box-shadow: inset 0 0 0 2px var(--accent-primary);
}

.message-input-container.drag-over[b-36jla8vlnc]::after {
    content: "Drop images here";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    pointer-events: none;
}

.message-input[b-36jla8vlnc] {
    flex: 1 1 0%;
    min-width: 0;
    padding: 0.6875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
    resize: none;
    min-height: 44px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.375;
    font-family: inherit;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-appearance: none;
}

.message-input[b-36jla8vlnc]::-webkit-scrollbar {
    display: none;
}

.message-input:focus[b-36jla8vlnc] {
    outline: none;
}

.message-input[b-36jla8vlnc]::placeholder {
    color: var(--text-placeholder);
}

.send-button[b-36jla8vlnc] {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.send-button:hover:not(:disabled)[b-36jla8vlnc] {
    background: var(--accent-hover);
}

.send-button:disabled[b-36jla8vlnc],
.send-button.disabled[b-36jla8vlnc] {
    background: var(--bg-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image upload button */
.image-upload-button[b-36jla8vlnc] {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.image-upload-button:hover[b-36jla8vlnc] {
    color: var(--text-primary);
}

/* Emoji toggle button */
.emoji-toggle-wrapper[b-36jla8vlnc] {
    position: relative;
    margin-left: -0.5rem;
}

.emoji-toggle-button[b-36jla8vlnc] {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Sprite icon: 960x192 source, 48px cells, displayed at 22px
   Scale: 22/48 = 0.4583x -> sprite display size: 440px x 88px */
.emoji-toggle-icon[b-36jla8vlnc] {
    display: block;
    width: 22px;
    height: 22px;

    /* Grey state: silhouette sprite as mask, filled with grey */
    -webkit-mask-image: url(/emoji_selection_greys.png);
    mask-image: url(/emoji_selection_greys.png);
    -webkit-mask-size: 440px 88px;
    mask-size: 440px 88px;
    -webkit-mask-position: calc(var(--grey-col) * -22px) calc(var(--grey-row) * -22px);
    mask-position: calc(var(--grey-col) * -22px) calc(var(--grey-row) * -22px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--text-secondary);

    /* Preload color sprite to avoid flash on first hover */
    background-image: url(/emoji_selection_color.png);
    background-size: 0;
}

.emoji-toggle-button:hover .emoji-toggle-icon[b-36jla8vlnc],
.emoji-toggle-button.active .emoji-toggle-icon[b-36jla8vlnc] {
    /* Color state: remove mask, show color sprite */
    -webkit-mask-image: none;
    mask-image: none;
    background-color: transparent;
    background-image: url(/emoji_selection_color.png);
    background-size: 440px 88px;
    background-position: calc(var(--color-col) * -22px) calc(var(--color-row) * -22px);
    background-repeat: no-repeat;
}

/* Emoji picker positioned above the button */
.emoji-picker-container[b-36jla8vlnc] {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    z-index: 1000;
}

/* Invisible backdrop to catch outside clicks */
.emoji-picker-backdrop[b-36jla8vlnc] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

/* Typing indicator styles */
.typing-indicator-container[b-36jla8vlnc] {
    height: 18px;
    background: var(--bg-primary);
    overflow: hidden;
}

.typing-indicator[b-36jla8vlnc] {
    height: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: flex-end;
    font-size: 12px;
    animation: fadeIn-b-36jla8vlnc 0.2s ease;
}

.typing-dots[b-36jla8vlnc] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: fadeIn-b-36jla8vlnc 0.3s ease;
}

.typing-dots .dot[b-36jla8vlnc] {
    width: 6px;
    height: 6px;
    background-color: var(--text-placeholder);
    border-radius: 50%;
    animation: discordBounce-b-36jla8vlnc 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1)[b-36jla8vlnc] {
    animation-delay: -0.32s;
}

.typing-dots .dot:nth-child(2)[b-36jla8vlnc] {
    animation-delay: -0.16s;
}

.typing-dots .dot:nth-child(3)[b-36jla8vlnc] {
    animation-delay: 0s;
}

/* Upload indicator - blue dots */
.upload-indicator .upload-dot[b-36jla8vlnc] {
    background-color: var(--accent-primary);
}

@keyframes discordBounce-b-36jla8vlnc {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes fadeIn-b-36jla8vlnc {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .message-input-container[b-36jla8vlnc] {
        padding: 4px 8px 16px;
        gap: 0;
    }

    .message-input[b-36jla8vlnc] {
        margin-right: 0.125rem;
    }

    .typing-indicator-container[b-36jla8vlnc] {
        height: 18px;
    }

    .typing-indicator[b-36jla8vlnc] {
        font-size: 12px;
        padding: 0 0.5rem;
    }

    .message-input[b-36jla8vlnc] {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .image-upload-button[b-36jla8vlnc] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .send-button[b-36jla8vlnc] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .emoji-toggle-button[b-36jla8vlnc] {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .emoji-picker-container[b-36jla8vlnc] {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin-bottom: 0;
    }

    .emoji-picker-container[b-36jla8vlnc]  .emoji-picker {
        width: 100%;
        height: 50vh;
        max-height: 400px;
        border-radius: 12px 12px 0 0;
    }

    .emoji-picker-backdrop[b-36jla8vlnc] {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Warning modal */
.warning-modal-backdrop[b-36jla8vlnc] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.warning-modal[b-36jla8vlnc] {
    position: relative;
    background: var(--bg-sidebar);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.warning-modal-close[b-36jla8vlnc] {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-placeholder);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

.warning-modal-close:hover[b-36jla8vlnc] {
    color: var(--text-primary);
}

.warning-modal-title[b-36jla8vlnc] {
    margin: 0 0 0.5rem 0;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.warning-modal-message[b-36jla8vlnc] {
    margin: 0 0 1.25rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

.warning-modal-button[b-36jla8vlnc] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.warning-modal-button:hover[b-36jla8vlnc] {
    background: var(--accent-hover);
}
/* /Components/MessageItem.razor.rz.scp.css */
/* Message group container - Discord-style with avatar on left */
.message-group[b-a8g17rct63] {
    display: flex;
    gap: 1rem;
    padding: 0.125rem 1rem 0.125rem calc(1rem + 40px + 1rem); /* Always reserve avatar space on left */
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.message-group:hover:not(.system-message)[b-a8g17rct63] {
    background: var(--bg-hover);
}

/* Messages with header show avatar in the reserved space */
.message-group.has-header[b-a8g17rct63] {
    padding-left: 1rem;
    margin-top: 1.0625rem;
    padding-top: 0.25rem;
}

/* Reply messages: flex-wrap so reply-preview takes its own row above avatar+body */
.message-group.has-reply[b-a8g17rct63] {
    flex-wrap: wrap;
    row-gap: 0;
}

/* Reply preview - full-width first row, indented to align with message text */
.reply-preview[b-a8g17rct63] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding-left: calc(40px + 1rem); /* avatar + gap */
    margin-bottom: 0.25rem;
}

.reply-preview:hover .reply-author[b-a8g17rct63] {
    text-decoration: underline;
}

/* Small avatar in reply preview */
.reply-preview[b-a8g17rct63]  .avatar {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.45rem !important;
    flex-shrink: 0;
}

.reply-author[b-a8g17rct63] {
    font-weight: 600;
    color: var(--text-white);
    flex-shrink: 0;
}

.reply-text[b-a8g17rct63] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Connector: curves from reply-preview down to the main avatar.
 *        ╭── [16px] @name  text
 *        │
 * [40px]  username  time
 *
 * Drawn on message-group (not a child) so it can't be clipped.
 * Avatar z-index sits above the line so it appears to go behind the circle.
 */
.message-group.has-reply[b-a8g17rct63]::before {
    content: '';
    position: absolute;
    left: calc(1rem + 19px); /* avatar center, minus 1px to center 2px border */
    top: calc(0.25rem + 7px); /* vertical center of 16px reply avatar */
    width: calc(20px + 0.75rem); /* half avatar + most of gap */
    height: calc(0.25rem + 32px); /* down to main avatar center */
    border-left: 2px solid var(--bg-muted);
    border-top: 2px solid var(--bg-muted);
    border-top-left-radius: 6px;
    z-index: 1;
}

.message-group.has-reply[b-a8g17rct63]  .avatar {
    position: relative;
    z-index: 2;
}

/* Highlight animation for scroll-to-message */
.message-group.highlight-message[b-a8g17rct63] {
    background: rgba(88, 101, 242, 0.12);
    transition: background-color 1.5s ease;
}

/* Highlight the source message while composing a reply */
.message-group.reply-target[b-a8g17rct63] {
    background: var(--accent-tint);
}

.message-group:first-child[b-a8g17rct63] {
    margin-top: 0;
}

/* Message body - contains meta and content */
.message-body[b-a8g17rct63] {
    flex: 1;
    min-width: 0;
}

/* Message meta (username + time) */
.message-meta[b-a8g17rct63] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.125rem;
}

.message-username[b-a8g17rct63] {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
}

.message-time[b-a8g17rct63] {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Message content */
.message-content[b-a8g17rct63] {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.375;
    padding-left: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap; /* Preserve newlines from multiline input */
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* System messages */
.system-message[b-a8g17rct63] {
    display: block;
    text-align: center;
    margin: 0 !important;
    padding: 0.0625rem 1rem !important;
}

.system-message .message-body[b-a8g17rct63] {
    display: inline-block;
}

.system-message .message-content[b-a8g17rct63] {
    display: inline-block;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8125rem;
    padding: 0;
    background: transparent;
    line-height: 1.4;
}

/* Image gallery styles */
/* Discord-style: rows of max 3, each row fills same width */
.image-gallery[b-a8g17rct63] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.25rem;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px; /* Consistent width for all image content */
}

/* Each row of images */
.gallery-row[b-a8g17rct63] {
    display: flex;
    gap: 4px;
}

/* Items in a row stretch equally */
.gallery-row .gallery-item[b-a8g17rct63] {
    flex: 1 1 0%;
    min-width: 0;
}

.gallery-item[b-a8g17rct63] {
    position: relative;
    cursor: pointer;
}

/* Multi-image: square thumbnails that fill their container */
.gallery-row .gallery-image[b-a8g17rct63] {
    width: 100%;
    height: auto; /* Override HTML height attribute */
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.15s;
    display: block;
}

/* Single image: preserve aspect ratio, constrain size */
/* Discord uses ~350px height for vertical images, ~400px width for horizontal */
.gallery-single .gallery-image[b-a8g17rct63] {
    height: auto;
    width: auto;
    max-height: 350px;
    max-width: 100%;
    aspect-ratio: auto 4 / 3; /* Fallback ratio until image loads, then use intrinsic */
    object-fit: contain;
    background: var(--bg-sidebar);
    border-radius: 4px;
    transition: opacity 0.15s;
    display: block;
}

.gallery-item:hover .gallery-image[b-a8g17rct63] {
    opacity: 0.85;
}

/* Message actions popup - hidden by default, shown via CSS :hover */
.message-actions[b-a8g17rct63] {
    position: absolute;
    top: -16px;
    right: 16px;
    display: flex;
    gap: 2px;
    background: var(--bg-sidebar);
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(4,4,5,0.15), 0 4px 4px rgba(0,0,0,0.1);
    z-index: 100;
    /* Hidden by default, smooth transition */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Show on hover or when picker is open - pure CSS, no server round-trip */
.message-group:hover:not(.system-message) .message-actions[b-a8g17rct63],
.message-group.picker-open .message-actions[b-a8g17rct63] {
    opacity: 1;
    pointer-events: auto;
}

/* Hide actions when reply-preview is hovered/tapped (sibling combinator).
   On mobile: sticky :hover from tap hides actions so reply-preview click works.
   On desktop: actions hide only while mouse is over the reply reference. */
.reply-preview:hover ~ .message-actions[b-a8g17rct63] {
    opacity: 0 !important;
    pointer-events: none !important;
}

.action-btn[b-a8g17rct63] {
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.1s;
}

.action-btn:hover[b-a8g17rct63] {
    background: var(--bg-primary);
}

/* Divider between reactions and actions */
.action-divider[b-a8g17rct63] {
    width: 1px;
    height: 24px;
    background: var(--bg-muted);
    margin: 0 4px;
    align-self: center;
}

/* Grey icon buttons (picker, edit, delete, reply) */
.action-picker[b-a8g17rct63],
.action-edit[b-a8g17rct63],
.action-delete[b-a8g17rct63],
.action-reply[b-a8g17rct63] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.action-picker:hover[b-a8g17rct63],
.action-edit:hover[b-a8g17rct63],
.action-reply:hover[b-a8g17rct63] {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.action-delete:hover[b-a8g17rct63] {
    background: var(--bg-primary);
    color: var(--color-danger);
}

/* Keep hover state when picker is open */
.message-group.picker-open[b-a8g17rct63] {
    background: var(--bg-hover);
}

/* Invisible backdrop to catch clicks outside emoji picker */
.emoji-picker-backdrop[b-a8g17rct63] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

/* Fixed-position wrapper for emoji picker (JS-positioned on desktop, CSS bottom sheet on mobile) */
.emoji-picker-wrapper[b-a8g17rct63] {
    position: fixed;
    z-index: 1000;
}

/* Reactions display */
.reactions-display[b-a8g17rct63] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.reaction-pill[b-a8g17rct63] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-sidebar);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.1s, border-color 0.1s;
}

.reaction-pill:hover[b-a8g17rct63] {
    background: var(--bg-primary);
    border-color: var(--bg-muted);
}

.reaction-pill.reacted[b-a8g17rct63] {
    background: rgba(88, 101, 242, 0.3);
    border-color: var(--accent-primary);
}

.reaction-count[b-a8g17rct63] {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.reaction-pill.reacted .reaction-count[b-a8g17rct63] {
    color: var(--accent-light);
}

/* Edit mode */
.edit-container[b-a8g17rct63] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-input[b-a8g17rct63] {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.edit-input:focus[b-a8g17rct63] {
    outline: none;
    border-color: var(--accent-primary);
}

.edit-actions[b-a8g17rct63] {
    display: flex;
    gap: 8px;
}

.edit-save[b-a8g17rct63],
.edit-cancel[b-a8g17rct63] {
    padding: 4px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.1s;
}

.edit-save[b-a8g17rct63] {
    background: var(--color-success);
    color: white;
}

.edit-save:hover[b-a8g17rct63] {
    background: var(--status-online-hover);
}

.edit-cancel[b-a8g17rct63] {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.edit-cancel:hover[b-a8g17rct63] {
    background: #5d6269;
}

/* Edited indicator */
.edited-indicator[b-a8g17rct63] {
    color: var(--text-placeholder);
    font-size: 0.625rem;
    margin-left: 4px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .message-actions[b-a8g17rct63] {
        right: 8px;
        top: -12px;
    }

    .action-btn[b-a8g17rct63] {
        padding: 4px 6px;
        font-size: 0.875rem;
    }

    .message-group[b-a8g17rct63] {
        padding: 0.125rem 0.5rem 0.125rem calc(0.5rem + 40px + 0.75rem);
        gap: 0.75rem;
    }

    .message-group.has-header[b-a8g17rct63] {
        padding-left: 0.5rem;
    }

    .reply-preview[b-a8g17rct63] {
        padding-left: calc(40px + 0.75rem);
    }

    .message-group.has-reply[b-a8g17rct63]::before {
        left: calc(0.5rem + 19px);
        width: calc(20px + 0.5rem);
    }

    .reply-text[b-a8g17rct63] {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    /* Mobile: full-width galleries with taller single images */
    .image-gallery[b-a8g17rct63] {
        max-width: 100%;
    }

    .gallery-single .gallery-image[b-a8g17rct63] {
        max-height: 450px;
    }

    /* Mobile: bottom sheet emoji picker */
    .emoji-picker-wrapper[b-a8g17rct63] {
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
    }

    .emoji-picker-wrapper[b-a8g17rct63]  .emoji-picker {
        width: 100%;
        height: 50vh;
        max-height: 400px;
        border-radius: 12px 12px 0 0;
    }

    .emoji-picker-backdrop[b-a8g17rct63] {
        background: rgba(0, 0, 0, 0.5);
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Discord-style dark theme */
.username-container[b-59fitzc2t3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg-header);
}

.username-container h2[b-59fitzc2t3] {
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.username-form[b-59fitzc2t3] {
    display: flex;
    gap: 1rem;
    background: var(--bg-sidebar);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.2);
    margin: 0 1rem;
}

@media (max-width: 600px) {
    .username-form[b-59fitzc2t3] {
        flex-direction: column;
        width: 90%;
        max-width: 300px;
    }

    .username-container h2[b-59fitzc2t3] {
        font-size: 1.75rem;
        text-align: center;
        padding: 0 1rem;
    }
}

.username-input[b-59fitzc2t3] {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    width: 300px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

@media (max-width: 600px) {
    .username-input[b-59fitzc2t3] {
        width: 100%;
    }
}

.username-input:focus[b-59fitzc2t3] {
    outline: none;
    border-color: var(--accent-focus);
}

.join-button[b-59fitzc2t3] {
    padding: 0.75rem 2rem;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 600px) {
    .join-button[b-59fitzc2t3] {
        width: 100%;
    }
}

.join-button:hover:not(:disabled)[b-59fitzc2t3] {
    background: var(--accent-hover);
}

.join-button:disabled[b-59fitzc2t3] {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-wrapper[b-59fitzc2t3] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.username-input.invalid[b-59fitzc2t3] {
    border-color: var(--color-danger);
}

.username-input.invalid:focus[b-59fitzc2t3] {
    border-color: var(--color-danger);
}

.validation-error[b-59fitzc2t3] {
    color: var(--color-danger);
    font-size: 0.75rem;
}

.build-info[b-59fitzc2t3] {
    position: absolute;
    bottom: 1rem;
    color: var(--bg-muted);
    font-size: 0.7rem;
    font-family: monospace;
}
/* /Components/Pages/Settings.razor.rz.scp.css */
.settings-container[b-fit3rrzlka] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
}

.settings-header[b-fit3rrzlka] {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.settings-header h2[b-fit3rrzlka] {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.back-button[b-fit3rrzlka] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-sidebar);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.back-button:hover[b-fit3rrzlka] {
    background: var(--bg-hover);
    color: var(--text-white);
}

.settings-content[b-fit3rrzlka] {
    max-width: 600px;
    width: 100%;
}

.settings-section[b-fit3rrzlka] {
    background: var(--bg-sidebar);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h3[b-fit3rrzlka] {
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.profile-picture-section[b-fit3rrzlka] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-picture-actions[b-fit3rrzlka] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-input[b-fit3rrzlka] {
    display: none;
}

.upload-button[b-fit3rrzlka] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: var(--text-white);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.upload-button:hover[b-fit3rrzlka] {
    background: var(--accent-hover);
}

.remove-button[b-fit3rrzlka] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.remove-button:hover:not(:disabled)[b-fit3rrzlka] {
    background: var(--bg-hover);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.remove-button:disabled[b-fit3rrzlka] {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-group[b-fit3rrzlka] {
    margin-bottom: 1.25rem;
}

.form-group:last-child[b-fit3rrzlka] {
    margin-bottom: 0;
}

.form-group label[b-fit3rrzlka] {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.form-input[b-fit3rrzlka],
.form-textarea[b-fit3rrzlka] {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-input:focus[b-fit3rrzlka],
.form-textarea:focus[b-fit3rrzlka] {
    outline: none;
    border-color: var(--accent-primary);
}

.form-input[b-fit3rrzlka]::placeholder,
.form-textarea[b-fit3rrzlka]::placeholder {
    color: var(--text-placeholder);
}

.form-textarea[b-fit3rrzlka] {
    min-height: 80px;
    resize: vertical;
}

.form-hint[b-fit3rrzlka] {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-counter[b-fit3rrzlka] {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
    margin-top: 0.25rem;
}

.settings-actions[b-fit3rrzlka] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cancel-button[b-fit3rrzlka],
.save-button[b-fit3rrzlka] {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.cancel-button[b-fit3rrzlka] {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.cancel-button:hover[b-fit3rrzlka] {
    background: var(--bg-hover);
}

.save-button[b-fit3rrzlka] {
    background: var(--accent-primary);
    border: none;
    color: var(--text-white);
}

.save-button:hover:not(:disabled)[b-fit3rrzlka] {
    background: var(--accent-hover);
}

.save-button:disabled[b-fit3rrzlka] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .settings-container[b-fit3rrzlka] {
        padding: 1rem;
    }

    .settings-section[b-fit3rrzlka] {
        padding: 1rem;
    }

    .profile-picture-section[b-fit3rrzlka] {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-actions[b-fit3rrzlka] {
        flex-direction: column-reverse;
    }

    .cancel-button[b-fit3rrzlka],
    .save-button[b-fit3rrzlka] {
        width: 100%;
    }
}
/* /Components/PwaInstallBanner.razor.rz.scp.css */
.pwa-install-banner[b-a74boyr8gc] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-header);
    border-top: 1px solid var(--bg-muted);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    animation: slideUp-b-a74boyr8gc 1.0s ease-out;
}

.pwa-install-banner.hiding[b-a74boyr8gc] {
    animation: slideDown-b-a74boyr8gc 0.3s ease-in forwards;
}

.pwa-banner-content[b-a74boyr8gc] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-banner-illustration[b-a74boyr8gc] {
    width: 40px;
    height: 60px;
    flex-shrink: 0;
}

.pwa-banner-text[b-a74boyr8gc] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pwa-banner-text strong[b-a74boyr8gc] {
    color: var(--text-white);
    font-size: 0.9375rem;
}

.pwa-banner-text span[b-a74boyr8gc] {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.3;
}

.pwa-banner-actions[b-a74boyr8gc] {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex-shrink: 0;
}

.pwa-install-btn[b-a74boyr8gc] {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.pwa-install-btn:hover[b-a74boyr8gc] {
    background: var(--accent-hover);
}

.pwa-dismiss-btn[b-a74boyr8gc] {
    background: none;
    border: none;
    color: var(--text-placeholder);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.125rem 0;
    text-align: center;
    transition: color 0.15s ease;
}

.pwa-dismiss-btn:hover[b-a74boyr8gc] {
    color: var(--text-muted);
}

@keyframes slideUp-b-a74boyr8gc {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown-b-a74boyr8gc {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}
