/* /Components/ThreadSidebar.razor.rz.scp.css */
.thread-sidebar[b-rslc8gcl3j] {
    width: 280px;
    flex-shrink: 0;
    background: var(--color-bg-elevated);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
    gap: 0.85rem;
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
}

.sidebar-header[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
}

.header-actions[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.theme-toggle-btn[b-rslc8gcl3j] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
}

    .theme-toggle-btn:hover[b-rslc8gcl3j] {
        background: var(--overlay-hover);
        color: var(--color-text);
    }

.profile-btn[b-rslc8gcl3j] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    cursor: pointer;
}

    .profile-btn img[b-rslc8gcl3j] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sidebar-brand[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.new-chat-btn[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

    .new-chat-btn:hover:not(:disabled)[b-rslc8gcl3j] {
        filter: brightness(1.08);
    }

    .new-chat-btn:active[b-rslc8gcl3j] {
        transform: scale(0.97);
    }

    .new-chat-btn:disabled[b-rslc8gcl3j] {
        opacity: 0.6;
        cursor: not-allowed;
    }

.thread-section[b-rslc8gcl3j] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.thread-item[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s ease;
}

    .thread-item:hover[b-rslc8gcl3j] {
        background: var(--overlay-hover);
    }

    .thread-item.selected[b-rslc8gcl3j] {
        background: var(--overlay-tint);
    }

    .thread-item.archived[b-rslc8gcl3j] {
        opacity: 0.65;
    }

.thread-avatar[b-rslc8gcl3j] {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-deep));
}

    .thread-avatar img[b-rslc8gcl3j] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thread-avatar .presence-dot[b-rslc8gcl3j] {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3fd66b;
    border: 2px solid var(--color-bg-elevated);
}

.thread-text[b-rslc8gcl3j] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.thread-title[b-rslc8gcl3j] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
}

.thread-preview[b-rslc8gcl3j] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.thread-meta[b-rslc8gcl3j] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    margin-top: 0.15rem;
}

.thread-time[b-rslc8gcl3j] {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.unread-badge[b-rslc8gcl3j] {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn[b-rslc8gcl3j] {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
}

    .icon-btn:hover[b-rslc8gcl3j] {
        background: var(--overlay-hover);
        color: var(--color-text);
    }

/* Always visible (not hover-gated) - a hover-only trigger is unreachable on touch
   devices, and this app is mobile-first. */
.thread-menu-anchor[b-rslc8gcl3j] {
    position: relative;
    flex-shrink: 0;
}

.thread-menu[b-rslc8gcl3j] {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 6;
    min-width: 150px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    animation: pop-in-b-rslc8gcl3j 0.12s ease-out;
}

    .thread-menu button[b-rslc8gcl3j] {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        border-radius: 0.45rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.88rem;
        color: var(--color-text);
        cursor: pointer;
    }

        .thread-menu button:hover[b-rslc8gcl3j] {
            background: var(--overlay-hover);
        }

        .thread-menu button.danger[b-rslc8gcl3j] {
            color: var(--color-danger);
        }

.menu-backdrop[b-rslc8gcl3j] {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: transparent;
}

.rename-input[b-rslc8gcl3j] {
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    border-radius: 0.4rem;
    padding: 0.15rem 0.4rem;
    width: 100%;
    outline: none;
}

.modal-backdrop-custom[b-rslc8gcl3j] {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 24, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in-b-rslc8gcl3j 0.15s ease-out;
    z-index: 10;
}

.delete-modal[b-rslc8gcl3j] {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: min(320px, 90vw);
    box-shadow: var(--shadow-soft);
    animation: pop-in-b-rslc8gcl3j 0.18s ease-out;
}

    .delete-modal h3[b-rslc8gcl3j] {
        margin: 0 0 0.4rem;
        font-size: 1.05rem;
    }

    .delete-modal p[b-rslc8gcl3j] {
        margin: 0;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

.modal-actions[b-rslc8gcl3j] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@keyframes fade-in-b-rslc8gcl3j {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-in-b-rslc8gcl3j {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.status-text[b-rslc8gcl3j] {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
}

.archived-section[b-rslc8gcl3j] {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
}

.archived-toggle[b-rslc8gcl3j] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text-muted);
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

    .archived-toggle:hover[b-rslc8gcl3j] {
        color: var(--color-text);
    }

.chevron[b-rslc8gcl3j] {
    transition: transform 0.15s ease;
}

    .chevron.open[b-rslc8gcl3j] {
        transform: rotate(90deg);
    }
/* /Layout/MainLayout.razor.rz.scp.css */
main[b-9917j60uji] {
    min-height: 100vh;
}

.install-banner[b-9917j60uji] {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-soft);
    max-width: 380px;
    margin: 0 auto;
    animation: rise-in-b-9917j60uji 0.2s ease-out;
}

.install-banner-row[b-9917j60uji] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.install-banner-icon[b-9917j60uji] {
    flex-shrink: 0;
}

.install-banner-text[b-9917j60uji] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.install-banner-title[b-9917j60uji] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.install-banner-subtitle[b-9917j60uji] {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.install-banner-actions[b-9917j60uji] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

    .install-banner-actions .btn[b-9917j60uji] {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

@keyframes rise-in-b-9917j60uji {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .install-banner[b-9917j60uji] {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 380px;
        margin: 0;
    }
}
/* /Pages/Chat.razor.rz.scp.css */
/* Mobile-first base: one full-screen pane at a time, toggled by the
   show-list/show-chat class from Chat.razor.cs's ThreadId state. */
.chat-shell[b-5wrg5nmiov] {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.chat-shell[b-5wrg5nmiov]  .thread-sidebar {
    width: 100%;
}

.chat-shell.show-list .chat-page[b-5wrg5nmiov] {
    display: none;
}

.chat-shell.show-chat[b-5wrg5nmiov]  .thread-sidebar {
    display: none;
}

.chat-page[b-5wrg5nmiov] {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
    background: var(--color-bg);
}

.chat-header[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.back-btn[b-5wrg5nmiov] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
}

    .back-btn:hover[b-5wrg5nmiov] {
        background: var(--overlay-hover);
    }

.chat-header-brand[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
}

    .chat-header-brand span[b-5wrg5nmiov] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.chat-header-partner[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
}

.partner-avatar[b-5wrg5nmiov] {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-deep));
}

    .partner-avatar img[b-5wrg5nmiov] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.presence-dot[b-5wrg5nmiov] {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3fd66b;
    border: 2px solid var(--color-bg-elevated);
}

.chat-header-text[b-5wrg5nmiov] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.chat-header-title[b-5wrg5nmiov] {
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header-status[b-5wrg5nmiov] {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop: both panes visible side by side, no back button needed. */
@media (min-width: 768px) {
    .chat-shell[b-5wrg5nmiov]  .thread-sidebar {
        width: 280px;
    }

    .chat-shell.show-list .chat-page[b-5wrg5nmiov],
    .chat-shell.show-chat[b-5wrg5nmiov]  .thread-sidebar {
        display: flex;
    }

    .back-btn[b-5wrg5nmiov] {
        display: none;
    }
}

.empty-state[b-5wrg5nmiov] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-list[b-5wrg5nmiov] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.message-row[b-5wrg5nmiov] {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    animation: rise-in-b-5wrg5nmiov 0.18s ease-out;
}

    .message-row.mine[b-5wrg5nmiov] {
        justify-content: flex-end;
    }

    .message-row.theirs[b-5wrg5nmiov] {
        justify-content: flex-start;
    }

.message-avatar[b-5wrg5nmiov],
.message-avatar-spacer[b-5wrg5nmiov] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.message-avatar[b-5wrg5nmiov] {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-deep));
}

    .message-avatar img[b-5wrg5nmiov] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.message-bubble-col[b-5wrg5nmiov] {
    display: flex;
    flex-direction: column;
    max-width: 65%;
}

    .message-row.mine .message-bubble-col[b-5wrg5nmiov] {
        align-items: flex-end;
    }

    .message-row.theirs .message-bubble-col[b-5wrg5nmiov] {
        align-items: flex-start;
    }

.swipe-wrap[b-5wrg5nmiov] {
    position: relative;
    display: flex;
    align-items: center;
}

.swipe-reply-hint[b-5wrg5nmiov] {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .swipe-reply-hint.left[b-5wrg5nmiov] {
        left: -32px;
    }

    .swipe-reply-hint.right[b-5wrg5nmiov] {
        right: -32px;
    }

.message-bubble[b-5wrg5nmiov] {
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-md);
    touch-action: pan-y;
    user-select: none;
    cursor: pointer;
}

.heart-pop[b-5wrg5nmiov] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    pointer-events: none;
    z-index: 2;
    animation: heart-pop-b-5wrg5nmiov 0.7s ease-out forwards;
}

@keyframes heart-pop-b-5wrg5nmiov {
    0% { opacity: 0; transform: scale(0.3); }
    25% { opacity: 1; transform: scale(1.15); }
    45% { opacity: 1; transform: scale(0.95); }
    100% { opacity: 0; transform: scale(1.05); }
}

    .message-bubble.unsent[b-5wrg5nmiov] {
        background: var(--color-surface);
        opacity: 0.7;
    }

.unsent-text[b-5wrg5nmiov] {
    font-style: italic;
    color: var(--color-text-muted);
}

.reply-quote[b-5wrg5nmiov] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
}

.message-row.theirs .reply-quote[b-5wrg5nmiov] {
    border-left-color: var(--color-accent);
    background: var(--overlay-on-surface);
}

.reply-quote-author[b-5wrg5nmiov] {
    font-weight: 600;
}

.reply-quote-text[b-5wrg5nmiov] {
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.reaction-badges[b-5wrg5nmiov] {
    display: flex;
    gap: 0.15rem;
    margin-top: -0.45rem;
    z-index: 1;
}

.message-row.mine .reaction-badges[b-5wrg5nmiov] {
    align-self: flex-end;
}

.reaction-badge[b-5wrg5nmiov] {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.05rem 0.3rem;
    box-shadow: var(--shadow-soft);
}

.message-actions[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.3rem 0.4rem;
    box-shadow: var(--shadow-soft);
    margin-top: 0.3rem;
    position: relative;
    z-index: 6;
    animation: pop-in-b-5wrg5nmiov 0.12s ease-out;
}

.reaction-pick[b-5wrg5nmiov] {
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

    .reaction-pick:hover[b-5wrg5nmiov] {
        transform: scale(1.2);
    }

.action-btn[b-5wrg5nmiov] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
}

    .action-btn:hover[b-5wrg5nmiov] {
        background: var(--overlay-hover);
        color: var(--color-text);
    }

    .action-btn.danger[b-5wrg5nmiov] {
        color: var(--color-danger);
    }

.menu-backdrop[b-5wrg5nmiov] {
    position: fixed;
    inset: 0;
    z-index: 5;
    background: transparent;
}

.reply-composer-bar[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.reply-composer-quote[b-5wrg5nmiov] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 0.5rem;
}

    .reply-composer-quote .reply-quote-author[b-5wrg5nmiov] {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--color-accent);
    }

    .reply-composer-quote .reply-quote-text[b-5wrg5nmiov] {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: none;
    }

.reply-cancel-btn[b-5wrg5nmiov] {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
}

    .reply-cancel-btn:hover[b-5wrg5nmiov] {
        background: var(--overlay-hover);
        color: var(--color-text);
    }

.message-row.mine .message-bubble[b-5wrg5nmiov] {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    color: #fff;
    border-bottom-right-radius: 0.3rem;
}

.message-row.theirs .message-bubble[b-5wrg5nmiov] {
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom-left-radius: 0.3rem;
}

.message-content[b-5wrg5nmiov] {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.message-timestamp[b-5wrg5nmiov] {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.message-status[b-5wrg5nmiov] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.status-avatar[b-5wrg5nmiov] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-deep));
}

    .status-avatar img[b-5wrg5nmiov] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* EditForm renders its own <form> root from its own component template, so it
   never carries this component's CSS-isolation scope attribute - same ::deep
   gotcha as ThreadSidebar's root and InputFile's <input> (see CLAUDE.md). Without
   ::deep here this rule silently never matches, the form stays block-level, and
   the send button wraps onto its own line below a full-width input. */
[b-5wrg5nmiov] .message-input-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.1rem;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

    [b-5wrg5nmiov] .message-input-bar .form-control {
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 999px;
        background: var(--color-surface);
        border: 1px solid transparent;
        padding: 0.65rem 1.1rem;
        transition: border-color 0.15s ease;
    }

        [b-5wrg5nmiov] .message-input-bar .form-control:focus {
            border-color: var(--color-accent);
            outline: none;
        }

.send-btn[b-5wrg5nmiov] {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    color: #fff;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease, opacity 0.15s ease, width 0.15s ease, height 0.15s ease;
}

    .send-btn:hover:not(:disabled)[b-5wrg5nmiov] {
        filter: brightness(1.08);
    }

    .send-btn:active[b-5wrg5nmiov] {
        transform: scale(0.9);
    }

    .send-btn:disabled[b-5wrg5nmiov] {
        width: 0;
        height: 0;
        opacity: 0;
        margin: 0 -0.275rem;
        pointer-events: none;
    }

@keyframes rise-in-b-5wrg5nmiov {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in-b-5wrg5nmiov {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
/* /Pages/Login.razor.rz.scp.css */
.entrance[b-i50ybnr4jm] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 0.75rem;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 151, 240, 0.07), transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(24, 100, 171, 0.06), transparent 55%),
        var(--color-bg);
}

.entrance-brand[b-i50ybnr4jm] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.25rem;
}

.entrance-title[b-i50ybnr4jm] {
    font-size: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    outline: none;
}

.entrance-subtitle[b-i50ybnr4jm] {
    color: var(--color-text-muted);
    margin: 0 0 2.5rem;
    font-size: 0.95rem;
}

.profile-row[b-i50ybnr4jm] {
    display: flex;
    gap: 2.5rem;
}

.profile-card[b-i50ybnr4jm] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    transition: transform 0.18s ease;
}

    .profile-card:active[b-i50ybnr4jm] {
        transform: scale(0.97);
    }

    .profile-card:hover[b-i50ybnr4jm] {
        transform: translateY(-4px);
    }

        .profile-card:hover .profile-avatar[b-i50ybnr4jm] {
            box-shadow: 0 0 0 4px rgba(56, 151, 240, 0.3), var(--shadow-soft);
        }

.profile-avatar[b-i50ybnr4jm] {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.25rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.18s ease;
}

    .profile-avatar img[b-i50ybnr4jm] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-name[b-i50ybnr4jm] {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.modal-backdrop-custom[b-i50ybnr4jm] {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 24, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in-b-i50ybnr4jm 0.15s ease-out;
    z-index: 10;
}

.password-modal[b-i50ybnr4jm] {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: min(320px, 90vw);
    box-shadow: var(--shadow-soft);
    animation: pop-in-b-i50ybnr4jm 0.18s ease-out;
}

.password-modal[b-i50ybnr4jm]  form {
    width: 100%;
}

.modal-avatar[b-i50ybnr4jm] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    margin-bottom: 0.75rem;
}

    .modal-avatar img[b-i50ybnr4jm] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.password-modal h2[b-i50ybnr4jm] {
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.modal-actions[b-i50ybnr4jm] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@keyframes fade-in-b-i50ybnr4jm {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-in-b-i50ybnr4jm {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 420px) {
    .entrance-title[b-i50ybnr4jm] {
        font-size: 1.6rem;
    }

    .profile-row[b-i50ybnr4jm] {
        gap: 1.5rem;
    }

    .profile-avatar[b-i50ybnr4jm] {
        width: 76px;
        height: 76px;
        font-size: 1.9rem;
    }
}
/* /Pages/Profile.razor.rz.scp.css */
.profile-page[b-0j1qcnmtk0] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

.profile-header[b-0j1qcnmtk0] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
}

.icon-btn[b-0j1qcnmtk0] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
}

    .icon-btn:hover[b-0j1qcnmtk0] {
        background: var(--overlay-hover);
    }

.profile-body[b-0j1qcnmtk0] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    gap: 1.75rem;
}

.avatar-upload[b-0j1qcnmtk0] {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-circle[b-0j1qcnmtk0] {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.6rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

    .avatar-circle img[b-0j1qcnmtk0] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-spinner[b-0j1qcnmtk0] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(5, 11, 24, 0.55);
}

    .avatar-spinner[b-0j1qcnmtk0]::after {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 28px;
        height: 28px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin-b-0j1qcnmtk0 0.7s linear infinite;
    }

.camera-btn[b-0j1qcnmtk0] {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
}

    .camera-btn:hover[b-0j1qcnmtk0] {
        background: var(--color-accent);
    }

[b-0j1qcnmtk0] .avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.remove-photo-btn[b-0j1qcnmtk0] {
    margin-top: -1.25rem;
    color: var(--color-danger);
}

.profile-form[b-0j1qcnmtk0] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(360px, 100%);
}

.field-label[b-0j1qcnmtk0] {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.save-btn[b-0j1qcnmtk0] {
    align-self: flex-start;
    margin-top: 0.4rem;
}

.status-success[b-0j1qcnmtk0] {
    color: var(--color-accent-soft);
}

.settings-row[b-0j1qcnmtk0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(360px, 100%);
    padding: 0.6rem 0.1rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.theme-switch[b-0j1qcnmtk0] {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

    .theme-switch input[b-0j1qcnmtk0] {
        opacity: 0;
        width: 0;
        height: 0;
    }

.theme-switch-track[b-0j1qcnmtk0] {
    position: absolute;
    inset: 0;
    background: var(--color-border);
    border-radius: 999px;
    transition: background 0.2s ease;
    pointer-events: none;
}

.theme-switch-thumb[b-0j1qcnmtk0] {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.theme-switch input:checked ~ .theme-switch-track[b-0j1qcnmtk0] {
    background: var(--color-accent);
}

.theme-switch input:checked ~ .theme-switch-thumb[b-0j1qcnmtk0] {
    transform: translateX(18px);
}

.sign-out-btn[b-0j1qcnmtk0] {
    color: var(--color-danger);
}

@keyframes spin-b-0j1qcnmtk0 {
    to { transform: rotate(360deg); }
}
