/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-nn1d1n85ri] {
    /* Dark theme (default) — a near-solid slate surface rather than the old loud diagonal
       blue-to-purple gradient, with a thin brand-accent underline for a touch of color. */
    --topbar-bg: #10141c;
    --topbar-text: #e7e9ee;
    --topbar-border: rgba(255, 255, 255, 0.08);
    --topbar-hover: rgba(255, 255, 255, 0.12);
    --topbar-accent: #cc5d68;

    --sidebar-bg: #14171f;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #b8bcc6;
    --sidebar-text-active: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: rgba(204, 93, 104, 0.18);
    --sidebar-muted: #6b7280;

    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

[data-bs-theme="light"] .app-shell[b-nn1d1n85ri] {
    --topbar-bg: #ffffff;
    --topbar-text: #1f2430;
    --topbar-border: #e4e6ea;
    --topbar-hover: rgba(15, 23, 42, 0.06);
    --topbar-accent: #c0323f;

    --sidebar-bg: #f7f8fa;
    --sidebar-border: #e4e6ea;
    --sidebar-text: #4b5262;
    --sidebar-text-active: #14171f;
    --sidebar-hover-bg: rgba(15, 23, 42, 0.05);
    --sidebar-active-bg: rgba(192, 50, 63, 0.1);
    --sidebar-muted: #8a90a0;
}

.app-topbar[b-nn1d1n85ri] {
    flex: 0 0 auto;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    box-shadow: inset 0 -2px 0 0 var(--topbar-accent);
    z-index: 3;
}

.app-brand[b-nn1d1n85ri] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--topbar-text);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

    .app-brand:hover[b-nn1d1n85ri] {
        color: var(--topbar-text);
        text-decoration: none;
    }

.app-brand-logo[b-nn1d1n85ri] {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.app-brand-logo-light[b-nn1d1n85ri] {
    display: none;
}

[data-bs-theme="light"] .app-brand-logo-dark[b-nn1d1n85ri] {
    display: none;
}

[data-bs-theme="light"] .app-brand-logo-light[b-nn1d1n85ri] {
    display: inline-block;
}

.app-topbar-right[b-nn1d1n85ri] {
    display: flex;
    align-items: center;
    margin-left: auto;
}

    .app-topbar-right[b-nn1d1n85ri]  a, .app-topbar-right[b-nn1d1n85ri]  .btn-link {
        color: var(--topbar-text);
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .app-topbar-right[b-nn1d1n85ri]  a:hover, .app-topbar-right[b-nn1d1n85ri]  .btn-link:hover {
        text-decoration: underline;
    }

.hamburger-btn[b-nn1d1n85ri] {
    appearance: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--topbar-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

    .hamburger-btn:hover[b-nn1d1n85ri] {
        background-color: var(--topbar-hover);
    }

.hamburger-icon[b-nn1d1n85ri], .hamburger-icon[b-nn1d1n85ri]::before, .hamburger-icon[b-nn1d1n85ri]::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
}

.hamburger-icon[b-nn1d1n85ri] {
    position: relative;
}

    .hamburger-icon[b-nn1d1n85ri]::before, .hamburger-icon[b-nn1d1n85ri]::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .hamburger-icon[b-nn1d1n85ri]::before {
        top: -6px;
    }

    .hamburger-icon[b-nn1d1n85ri]::after {
        top: 6px;
    }

.page[b-nn1d1n85ri] {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

main[b-nn1d1n85ri] {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.page-backdrop[b-nn1d1n85ri] {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.sidebar[b-nn1d1n85ri] {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    transition: transform 0.2s ease-in-out;
}

    .sidebar.collapsed[b-nn1d1n85ri] {
        transform: translateX(-100%);
        box-shadow: none;
    }

article[b-nn1d1n85ri] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 641px) {
    article[b-nn1d1n85ri] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-nn1d1n85ri] {
    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-nn1d1n85ri] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Icons are the actual Bootstrap Icons webfont (wwwroot/lib/bootstrap-icons) — add a new one by
   using its real class name (e.g. bi-gear-fill), no per-icon CSS block needed. */
.nav-menu-icon[b-isprs31n5d] {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 1.25rem;
    display: inline-block;
    text-align: center;
}

/* Section label above a logical group of nav-items — an h6 (not a div) so it doesn't count
   toward .nav-item's :first-of-type/:last-of-type spacing, which is keyed off element type. */
.nav-section-header[b-isprs31n5d] {
    margin: 1rem 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
}

    .nav-section-header:first-child[b-isprs31n5d] {
        margin-top: 1rem;
    }

.nav-item[b-isprs31n5d] {
    font-size: 0.9rem;
    padding-bottom: 0.15rem;
}

    .nav-item:first-of-type[b-isprs31n5d] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-isprs31n5d] {
        padding-bottom: 0.5rem;
    }

    .nav-item[b-isprs31n5d]  .nav-link {
        color: var(--sidebar-text);
        background: none;
        border: none;
        border-radius: 4px;
        display: flex;
        align-items: center;
        line-height: 1.4;
        padding: 0.45rem 0.5rem;
        width: 100%;
    }

.nav-item[b-isprs31n5d]  a.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
}

.nav-item[b-isprs31n5d]  .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-text-active);
}

.nav-scrollable[b-isprs31n5d] {
    display: block;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lalnk8dz1u],
.components-reconnect-repeated-attempt-visible[b-lalnk8dz1u],
.components-reconnect-failed-visible[b-lalnk8dz1u],
.components-pause-visible[b-lalnk8dz1u],
.components-resume-failed-visible[b-lalnk8dz1u],
.components-rejoining-animation[b-lalnk8dz1u] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-retrying[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-failed[b-lalnk8dz1u],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-lalnk8dz1u] {
    display: block;
}


#components-reconnect-modal[b-lalnk8dz1u] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-lalnk8dz1u 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-lalnk8dz1u 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-lalnk8dz1u 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-lalnk8dz1u]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-lalnk8dz1u 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-lalnk8dz1u {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-lalnk8dz1u {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-lalnk8dz1u {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-lalnk8dz1u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-lalnk8dz1u] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-lalnk8dz1u] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-lalnk8dz1u] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-lalnk8dz1u] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-lalnk8dz1u] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-lalnk8dz1u] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-lalnk8dz1u 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-lalnk8dz1u] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-lalnk8dz1u {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/ThemeToggle.razor.rz.scp.css */
.theme-toggle-btn[b-d92441wsax] {
    appearance: none;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .theme-toggle-btn:hover[b-d92441wsax] {
        background-color: var(--topbar-hover);
    }

    .theme-toggle-btn span[b-d92441wsax] {
        display: inline-block;
        width: 1.25rem;
        height: 1.25rem;
        background-size: cover;
    }

.bi-moon-fill[b-d92441wsax] {
    /* Light fill for the dark topbar. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dee2e6' class='bi bi-moon-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278Z'/%3E%3C/svg%3E");
}

[data-bs-theme="light"] .bi-moon-fill[b-d92441wsax] {
    /* The dark-topbar fill above is nearly invisible against the light theme's white topbar. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234b5262' class='bi bi-moon-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278Z'/%3E%3C/svg%3E");
}

.bi-sun-fill[b-d92441wsax] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffc107' class='bi bi-sun-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0Zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13Zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5ZM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8Zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.414a.5.5 0 1 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0Zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0Zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707ZM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707L4.464 3.757a.5.5 0 0 1 0 .708Z'/%3E%3C/svg%3E");
}
/* /Components/Layout/ToastHost.razor.rz.scp.css */
.toast-host[b-i0sp9kvge7] {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    max-width: 22rem;
}

.toast-item[b-i0sp9kvge7] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.9rem;
    animation: toast-in-b-i0sp9kvge7 0.15s ease-out;
}

.toast-text[b-i0sp9kvge7] {
    flex: 1 1 auto;
}

.toast-close[b-i0sp9kvge7] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

    .toast-close:hover[b-i0sp9kvge7] {
        opacity: 1;
    }

.toast-info[b-i0sp9kvge7] {
    background-color: var(--bs-primary, #0d6efd);
}

.toast-success[b-i0sp9kvge7] {
    background-color: var(--bs-success, #198754);
}

.toast-warning[b-i0sp9kvge7] {
    background-color: var(--bs-warning, #ffc107);
    color: #212529;
}

.toast-error[b-i0sp9kvge7] {
    background-color: var(--bs-danger, #dc3545);
}

@keyframes toast-in-b-i0sp9kvge7 {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* /Components/Pages/ChatWorkspace.razor.rz.scp.css */
/* Monospaced "console" look with a red accent, following the app-wide light/dark toggle. */
.chat-shell[b-rkzzx267qi] {
    --chat-bg: #0e1015;
    --chat-panel-bg: #14171d;
    --chat-composer-bg: #1a1d24;
    --chat-border: #262a33;
    --chat-text: #d7dae0;
    --chat-text-muted: #6b7280;
    --chat-accent: #cc5d68;
    --chat-accent-dim: #7a333b;
    --chat-accent-contrast: #f3e3e5;
    --chat-overlay: rgba(255, 255, 255, 0.04);
    --chat-overlay-strong: rgba(255, 255, 255, 0.09);

    display: flex;
    flex-direction: column;
    height: calc(100vh - 4.6rem);
    margin: -1.1rem -1rem 0;
    padding: 1rem;
    background-color: var(--chat-bg);
    color: var(--chat-text);
    font-family: ui-monospace, "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
    border-radius: 0.5rem;

    /* Establishes its own stacking context so the chat page's internal z-index scale (the session
       menu dropdown, tool-log flyout, delete modal, etc.) can never paint above the app shell's
       hamburger nav sidebar/backdrop (z-index 1-2) — without this, nothing between .chat-shell and
       the app root creates a stacking context, so those z-index values compete directly against the
       nav's instead of being contained within the chat page. */
    isolation: isolate;
}

@media (min-width: 641px) {
    .chat-shell[b-rkzzx267qi] {
        margin: -1.1rem -1.5rem 0 -2rem;
        padding: 1rem 1.5rem 1rem 2rem;
    }
}

[data-bs-theme="light"] .chat-shell[b-rkzzx267qi] {
    --chat-bg: #f7f7f8;
    --chat-panel-bg: #ffffff;
    --chat-composer-bg: #ffffff;
    --chat-border: #e0e0e3;
    --chat-text: #2b2d33;
    --chat-text-muted: #7a7d85;
    --chat-accent: #c0323f;
    --chat-accent-dim: #e3a3aa;
    --chat-accent-contrast: #6e1420;
    --chat-overlay: rgba(0, 0, 0, 0.035);
    --chat-overlay-strong: rgba(0, 0, 0, 0.07);
}

.chat-body[b-rkzzx267qi] {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 0.75rem;
}

/* Left-hand session panel. */
.chat-sessions[b-rkzzx267qi] {
    flex: 0 0 auto;
    width: 320px;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
}

    .chat-sessions.expanded[b-rkzzx267qi] {
        width: 380px;
    }

    .chat-sessions.collapsed[b-rkzzx267qi],
    .chat-sessions.collapsed.expanded[b-rkzzx267qi] {
        width: 0;
    }

.chat-sessions-inner[b-rkzzx267qi] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--chat-border);
    border-radius: 0.6rem;
    background-color: var(--chat-panel-bg);
    padding: 0.75rem;
}

.chat-sessions-header[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--chat-text-muted);
    padding-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.chat-sessions-new[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    background-color: var(--chat-overlay);
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
}

    .chat-sessions-new:hover:not(:disabled)[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
    }

.chat-sessions-list[b-rkzzx267qi] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-sessions-empty[b-rkzzx267qi] {
    color: var(--chat-text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding-top: 1.5rem;
}

/* Chat mode's knowledge-base picker, pinned below .chat-sessions-list. flex: 0 0 auto keeps it a
   fixed size while .chat-sessions-list (flex: 1 1 auto, overflow-y: auto) yields whatever space it
   needs -- deliberately NOT an absolutely-positioned popover like .chat-select-menu, since .chat-
   sessions clips overflow and a floating menu there would need the same JS-repositioning workaround
   .chat-session-menu does. Expanding in normal flow avoids that entirely. */
.chat-sessions-ragsource[b-rkzzx267qi] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--chat-border);
}

.chat-ragsource-trigger[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    background-color: var(--chat-overlay);
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

    .chat-ragsource-trigger span[b-rkzzx267qi] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-ragsource-trigger:hover:not(:disabled)[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
    }

    .chat-ragsource-trigger:disabled[b-rkzzx267qi] {
        cursor: default;
        opacity: 0.6;
    }

.chat-ragsource-panel[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background-color: var(--chat-overlay);
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    padding: 0.4rem;
}

.chat-ragsource-search[b-rkzzx267qi] {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--chat-border);
    border-radius: 0.4rem;
    background-color: var(--chat-panel-bg);
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

.chat-ragsource-options[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-height: 200px;
    overflow-y: auto;
}

.chat-ragsource-empty[b-rkzzx267qi] {
    color: var(--chat-text-muted);
    font-size: 0.78rem;
    text-align: center;
    padding: 0.4rem;
}

.chat-session-row[b-rkzzx267qi] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.chat-session-item[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    text-align: left;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

    .chat-session-item:hover:not(:disabled)[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay);
    }

    .chat-session-item.active[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: rgba(204, 93, 104, 0.14);
    }

.chat-session-menu-wrap[b-rkzzx267qi] {
    flex: 0 0 auto;
}

    .chat-session-menu-wrap.menu-open[b-rkzzx267qi] {
        position: relative;
        isolation: isolate;
        z-index: 20;
    }

.chat-session-menu-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    padding: 0.4rem 0.35rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
}

    .chat-session-menu-btn:hover:not(:disabled)[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay-strong);
    }

    .chat-session-menu-btn:disabled[b-rkzzx267qi] {
        opacity: 0.4;
        cursor: default;
    }

.chat-session-menu[b-rkzzx267qi] {
    /* The list this lives in scrolls (overflow-y: auto) and is itself clipped by .chat-sessions'
       overflow: hidden, so any CSS-only absolute position near the top/bottom edge gets sliced by
       that clip boundary -- the unclipped row(s) behind then show through the gaps, looking like a
       transparent popup rather than a clipping bug. chatUi.positionSessionMenu (chat.js) escapes
       this by switching the element to position: fixed with coordinates computed from the trigger
       button's actual screen position. Hidden until that runs so it doesn't flash at the wrong
       (clipped) spot first. */
    visibility: hidden;
}

.chat-select-menu.chat-session-menu[b-rkzzx267qi] {
    /* .chat-select-menu's min-width: 100% resolves against the tiny trigger wrap under
       position: absolute, but once JS flips this to position: fixed, percentages resolve against
       the viewport instead -- min-width: 100% would then mean "100% of the screen". Give it a
       real fixed size instead. The compound selector (two classes) beats .chat-select-menu's
       single-class specificity regardless of source order. */
    min-width: 9rem;
}

.chat-select-option-danger[b-rkzzx267qi] {
    color: var(--chat-accent);
}

    .chat-select-option-danger:hover[b-rkzzx267qi] {
        background-color: rgba(204, 93, 104, 0.14);
    }

.chat-session-rename-input[b-rkzzx267qi] {
    flex: 1 1 auto;
    min-width: 0;
    font-family: inherit;
    font-size: 0.82rem;
    padding: 0.44rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid var(--chat-accent-dim);
    background-color: var(--chat-overlay-strong);
    color: var(--chat-text);
}

    .chat-session-rename-input:focus[b-rkzzx267qi] {
        outline: none;
        border-color: var(--chat-accent);
    }

/* Center column. */
.chat-main[b-rkzzx267qi] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chat-column[b-rkzzx267qi] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.chat-toolbar[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
    padding-bottom: 0.5rem;
}

.chat-sessions-toggle[b-rkzzx267qi] {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

/* Right-hand tool rail and its fly-out panels. */
.chat-rail[b-rkzzx267qi] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.chat-flyout[b-rkzzx267qi] {
    flex: 0 0 auto;
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
}

    .chat-flyout.open[b-rkzzx267qi] {
        width: 280px;
    }

    .chat-flyout.open.expanded[b-rkzzx267qi] {
        width: 800px;
    }

.chat-flyout-inner[b-rkzzx267qi] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--chat-border);
    border-radius: 0.6rem;
    background-color: var(--chat-panel-bg);
}

.chat-flyout-header[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--chat-border);
    font-size: 0.85rem;
}

.chat-flyout-header-actions[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-flyout-expand[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

    .chat-flyout-expand:hover[b-rkzzx267qi] {
        color: var(--chat-text);
    }

.chat-flyout-close[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    font-size: 1.1rem;
    line-height: 1;
}

    .chat-flyout-close:hover[b-rkzzx267qi] {
        color: var(--chat-text);
    }

.chat-flyout-body[b-rkzzx267qi] {
    padding: 0.75rem;
    color: var(--chat-text-muted);
    font-size: 0.85rem;
    overflow-y: auto;
}

.chat-tool-log[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-tool-log-empty[b-rkzzx267qi] {
    text-align: center;
    padding-top: 1.5rem;
}

.chat-tool-call[b-rkzzx267qi] {
    border: 1px solid var(--chat-border);
    border-radius: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
}

    .chat-tool-call summary[b-rkzzx267qi] {
        cursor: pointer;
        color: var(--chat-text);
        font-weight: 600;
    }

.chat-tool-call-label[b-rkzzx267qi] {
    margin-top: 0.5rem;
    color: var(--chat-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chat-tool-call-label-row[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

    .chat-tool-call-label-row .chat-tool-call-label[b-rkzzx267qi] {
        margin-top: 0.5rem;
    }

    .chat-tool-call-label-row .chat-bubble-action-btn[b-rkzzx267qi] {
        flex: 0 0 auto;
        opacity: 1;
    }

.chat-plan-markdown[b-rkzzx267qi] {
    margin-top: 0.25rem;
    padding: 0.5rem;
    background-color: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: 0.35rem;
    font-size: 0.8rem;
}

.chat-plan-build-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--chat-accent-dim);
    border-radius: 0.3rem;
    background-color: var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
    font-family: inherit;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
}

    .chat-plan-build-btn:hover[b-rkzzx267qi] {
        background-color: var(--chat-accent);
        border-color: var(--chat-accent);
    }

.chat-tool-call pre[b-rkzzx267qi] {
    margin: 0.25rem 0 0;
    padding: 0.5rem;
    background-color: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: 0.35rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--chat-text);
}

.chat-settings[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-artifacts[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-artifact-item[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--chat-border);
    border-radius: 0.4rem;
    padding: 0.55rem 0.7rem;
    color: var(--chat-text);
    text-decoration: none;
}

    .chat-artifact-item:hover[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
        border-color: var(--chat-accent-dim);
    }

.chat-artifact-item-details[b-rkzzx267qi] {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-artifact-item-name[b-rkzzx267qi] {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-artifact-item-meta[b-rkzzx267qi] {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--chat-text-muted);
}

.chat-backdrop[b-rkzzx267qi] {
    display: none;
}

.chat-modal-backdrop[b-rkzzx267qi] {
    position: fixed;
    inset: 0;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.55);
}

.chat-modal[b-rkzzx267qi] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 21;
    width: min(22rem, calc(100vw - 2rem));
    background-color: var(--chat-panel-bg);
    border: 1px solid var(--chat-border);
    border-radius: 0.7rem;
    padding: 1.1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.chat-modal-title[b-rkzzx267qi] {
    color: var(--chat-text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.chat-modal-body[b-rkzzx267qi] {
    color: var(--chat-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-modal-actions[b-rkzzx267qi] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.chat-modal-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    background-color: var(--chat-overlay);
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.82rem;
    padding: 0.45rem 0.9rem;
}

    .chat-modal-btn:hover[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
    }

.chat-modal-btn-danger[b-rkzzx267qi] {
    border-color: var(--chat-accent-dim);
    background-color: var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
}

    .chat-modal-btn-danger:hover[b-rkzzx267qi] {
        background-color: var(--chat-accent);
        border-color: var(--chat-accent);
    }

.chat-modal-btn-primary[b-rkzzx267qi] {
    border-color: var(--chat-accent-dim);
    background-color: var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
}

    .chat-modal-btn-primary:hover:not(:disabled)[b-rkzzx267qi] {
        background-color: var(--chat-accent);
        border-color: var(--chat-accent);
    }

    .chat-modal-btn-primary:disabled[b-rkzzx267qi] {
        opacity: 0.5;
        cursor: default;
    }

.chat-modal-wide[b-rkzzx267qi] {
    width: min(28rem, calc(100vw - 2rem));
}

.chat-modal-title[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-repo-picker-back[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    padding: 0.1rem 0.3rem;
    border-radius: 0.3rem;
    display: inline-flex;
}

    .chat-repo-picker-back:hover[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay-strong);
    }

.chat-repo-picker-filter[b-rkzzx267qi] {
    width: 100%;
    margin-top: 0.5rem;
    box-sizing: border-box;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    background-color: var(--chat-overlay);
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
}

    .chat-repo-picker-filter:focus[b-rkzzx267qi] {
        outline: none;
        border-color: var(--chat-accent-dim);
    }

.chat-repo-picker-list[b-rkzzx267qi] {
    max-height: min(20rem, 50vh);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.4rem;
}

.chat-repo-picker-item[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: none;
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
}

    .chat-repo-picker-item:hover:not(:disabled)[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
        border-color: var(--chat-border);
    }

    .chat-repo-picker-item:disabled[b-rkzzx267qi] {
        opacity: 0.5;
        cursor: default;
    }

    .chat-repo-picker-item.selected[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
        border-color: var(--chat-accent-dim);
    }

.chat-repo-picker-badge[b-rkzzx267qi] {
    margin-left: auto;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.6;
}

.chat-repo-picker-error[b-rkzzx267qi] {
    margin-top: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    background-color: rgba(204, 93, 104, 0.14);
    color: var(--chat-accent);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    /* Below this width there isn't room for session panel + 750px column + rail + flyout,
       so the side panels become full-height drawers over the content, with a dismissible
       backdrop behind them instead of leaving the composer bar peeking out at the edges. */
    .chat-backdrop[b-rkzzx267qi] {
        display: block;
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    .chat-sessions[b-rkzzx267qi], .chat-flyout.open[b-rkzzx267qi] {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 2;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }

    .chat-sessions-inner[b-rkzzx267qi], .chat-flyout-inner[b-rkzzx267qi] {
        border-radius: 0;
        height: 100%;
    }

    .chat-sessions[b-rkzzx267qi] {
        left: 0;
    }

    .chat-sessions.expanded[b-rkzzx267qi] {
        width: min(380px, calc(100vw - 2rem));
    }

    .chat-flyout.open[b-rkzzx267qi] {
        right: 0;
    }

    .chat-flyout.open.expanded[b-rkzzx267qi] {
        width: min(480px, calc(100vw - 2rem));
    }

    /* Default the session panel (and its backdrop) closed on first load here - CSS-only, so it's
       correct in the very first server-rendered HTML with no JS/viewport-detection race to flash
       it open first. Once the user actually clicks a toggle, .sessions-user-toggled (set by
       Chat.razor's _sessionsToggledByUser) takes over and this stops applying, so opening/closing
       from then on works exactly like it always did. Desktop is unaffected: outside this media
       query .chat-sessions's default width still applies. */
    .chat-body:not(.sessions-user-toggled) .chat-sessions:not(.collapsed)[b-rkzzx267qi] {
        width: 0;
    }

    .chat-body:not(.sessions-user-toggled) .chat-backdrop[b-rkzzx267qi] {
        display: none;
    }

    /* Settings/Tool Log/Info aren't essential on a phone-width screen and just eat into the
       already-tight layout - drop the rail (and whatever flyout it would've opened) entirely. */
    .chat-rail[b-rkzzx267qi], .chat-flyout[b-rkzzx267qi] {
        display: none;
    }
}

.chat-newchat-pill[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--chat-text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

    .chat-newchat-pill:hover:not(:disabled)[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay);
    }

.chat-toolbar-caret[b-rkzzx267qi] {
    font-size: 0.7rem;
}

.chat-messages[b-rkzzx267qi] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 1rem;
}

.chat-hero[b-rkzzx267qi] {
    margin: auto;
    text-align: center;
    color: var(--chat-text-muted);
}

.chat-hero-logo[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--chat-accent);
    letter-spacing: 0.02em;
}

.chat-hero-glyph[b-rkzzx267qi] {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
}

.chat-hero-glyph-light[b-rkzzx267qi] {
    display: none;
}

[data-bs-theme="light"] .chat-hero-glyph-dark[b-rkzzx267qi] {
    display: none;
}

[data-bs-theme="light"] .chat-hero-glyph-light[b-rkzzx267qi] {
    display: inline-block;
}

.chat-hero-tagline[b-rkzzx267qi] {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: var(--chat-text);
    opacity: 0.7;
}

.chat-hero-hint[b-rkzzx267qi] {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.55;
}

.chat-hero-cta[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    border: 1px solid var(--chat-accent-dim);
    border-radius: 0.5rem;
    background-color: var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
}

    .chat-hero-cta:hover[b-rkzzx267qi] {
        background-color: var(--chat-accent);
        border-color: var(--chat-accent);
    }

    .chat-hero-cta.disabled[b-rkzzx267qi] {
        pointer-events: none;
        opacity: 0.5;
    }

.chat-bubble-row[b-rkzzx267qi] {
    display: flex;
}

    .chat-bubble-row.from-user[b-rkzzx267qi] {
        justify-content: flex-end;
    }

    .chat-bubble-row.from-assistant[b-rkzzx267qi] {
        justify-content: flex-start;
    }

.chat-bubble-col[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
}

    .from-user .chat-bubble-col[b-rkzzx267qi] {
        align-items: flex-end;
    }

    .from-assistant .chat-bubble-col[b-rkzzx267qi] {
        align-items: flex-start;
    }

.chat-bubble[b-rkzzx267qi] {
    max-width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    background-color: var(--chat-panel-bg);
    border: 1px solid var(--chat-border);
    font-size: 0.9rem;
}

.chat-inline-artifacts[b-rkzzx267qi] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.chat-inline-artifact[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 20rem;
    border: 1px solid var(--chat-border);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    color: var(--chat-text);
    text-decoration: none;
    font-size: 0.85rem;
}

    .chat-inline-artifact:hover[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
        border-color: var(--chat-accent-dim);
        color: var(--chat-text);
    }

.chat-inline-artifact-name[b-rkzzx267qi] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-bubble-actions[b-rkzzx267qi] {
    display: flex;
    gap: 0.15rem;
    margin-top: 0.15rem;
    opacity: 0;
    transition: opacity 0.1s ease;
}

    .chat-bubble-row:hover .chat-bubble-actions[b-rkzzx267qi] {
        opacity: 1;
    }

.chat-bubble-action-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
}

    .chat-bubble-action-btn:hover[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay-strong);
    }

.from-user .chat-bubble[b-rkzzx267qi] {
    background-color: var(--chat-accent-dim);
    border-color: var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
}

.chat-bubble-content[b-rkzzx267qi] {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Rendered assistant markdown — no white-space: pre-wrap here, since HTML block elements
   (p, ul, pre, ...) already carry their own spacing. */
.markdown-body[b-rkzzx267qi] {
    word-break: break-word;
}

    .markdown-body > :first-child[b-rkzzx267qi] {
        margin-top: 0;
    }

    .markdown-body > :last-child[b-rkzzx267qi] {
        margin-bottom: 0;
    }

    .markdown-body p[b-rkzzx267qi], .markdown-body ul[b-rkzzx267qi], .markdown-body ol[b-rkzzx267qi], .markdown-body blockquote[b-rkzzx267qi],
    .markdown-body pre[b-rkzzx267qi], .markdown-body table[b-rkzzx267qi] {
        margin: 0 0 0.6rem;
    }

    .markdown-body h1[b-rkzzx267qi], .markdown-body h2[b-rkzzx267qi], .markdown-body h3[b-rkzzx267qi],
    .markdown-body h4[b-rkzzx267qi], .markdown-body h5[b-rkzzx267qi], .markdown-body h6[b-rkzzx267qi] {
        margin: 0.9rem 0 0.5rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .markdown-body h1[b-rkzzx267qi] { font-size: 1.3rem; }
    .markdown-body h2[b-rkzzx267qi] { font-size: 1.15rem; }
    .markdown-body h3[b-rkzzx267qi] { font-size: 1.05rem; }
    .markdown-body h4[b-rkzzx267qi], .markdown-body h5[b-rkzzx267qi], .markdown-body h6[b-rkzzx267qi] { font-size: 0.95rem; }

    .markdown-body ul[b-rkzzx267qi], .markdown-body ol[b-rkzzx267qi] {
        padding-left: 1.4rem;
    }

    .markdown-body li[b-rkzzx267qi] {
        margin-bottom: 0.2rem;
    }

    .markdown-body a[b-rkzzx267qi] {
        color: var(--chat-accent);
    }

    .markdown-body strong[b-rkzzx267qi] {
        font-weight: 700;
    }

    .markdown-body blockquote[b-rkzzx267qi] {
        padding: 0.1rem 0.75rem;
        border-left: 3px solid var(--chat-accent-dim);
        color: var(--chat-text-muted);
    }

        .markdown-body blockquote > :last-child[b-rkzzx267qi] {
            margin-bottom: 0;
        }

    .markdown-body hr[b-rkzzx267qi] {
        border: none;
        border-top: 1px solid var(--chat-border);
        margin: 0.75rem 0;
    }

    .markdown-body code[b-rkzzx267qi] {
        font-family: inherit;
        background-color: var(--chat-overlay-strong);
        border-radius: 0.25rem;
        padding: 0.1rem 0.3rem;
        font-size: 0.85em;
    }

    .markdown-body pre[b-rkzzx267qi] {
        background-color: var(--chat-bg);
        border: 1px solid var(--chat-border);
        border-radius: 0.5rem;
        padding: 0.6rem 0.75rem;
        overflow-x: auto;
    }

        .markdown-body pre code[b-rkzzx267qi] {
            background: none;
            padding: 0;
            font-size: 0.85rem;
        }

    .markdown-body table[b-rkzzx267qi] {
        border-collapse: collapse;
        width: 100%;
        font-size: 0.85rem;
    }

    .markdown-body th[b-rkzzx267qi], .markdown-body td[b-rkzzx267qi] {
        border: 1px solid var(--chat-border);
        padding: 0.3rem 0.5rem;
        text-align: left;
    }

    .markdown-body th[b-rkzzx267qi] {
        background-color: var(--chat-overlay);
    }

.chat-thinking[b-rkzzx267qi] {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--chat-text-muted);
}

    .chat-thinking summary[b-rkzzx267qi] {
        cursor: pointer;
    }

.chat-thinking-content[b-rkzzx267qi] {
    margin-top: 0.35rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--chat-border);
}

.chat-status[b-rkzzx267qi] {
    color: var(--chat-text-muted);
    font-style: italic;
    font-size: 0.85rem;
    padding-left: 0.5rem;
}

.chat-error[b-rkzzx267qi] {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(204, 93, 104, 0.12);
    border: 1px solid var(--chat-accent-dim);
    color: var(--chat-accent-contrast);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 0.85rem;
}

.chat-composer-dock[b-rkzzx267qi] {
    flex: 0 0 auto;
    padding-top: 0.75rem;
}

.chat-composer-card[b-rkzzx267qi] {
    background-color: var(--chat-composer-bg);
    border: 1px solid var(--chat-border);
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem 0.6rem;
}

.chat-composer-input[b-rkzzx267qi] {
    width: 100%;
    resize: none;
    border: none;
    outline: none;
    background: none;
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 1.6rem;
    max-height: 8rem;
}

    .chat-composer-input[b-rkzzx267qi]::placeholder {
        color: var(--chat-text-muted);
    }

.chat-composer-toolbar[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.chat-composer-left[b-rkzzx267qi], .chat-composer-right[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.chat-composer-right[b-rkzzx267qi] {
    justify-content: flex-end;
    min-width: 0;
    flex-shrink: 1;
}

.chat-history-usage[b-rkzzx267qi] {
    margin-top: 0.5rem;
}

.chat-history-usage-label[b-rkzzx267qi] {
    font-size: 0.72rem;
    color: var(--chat-text-muted);
}

.chat-history-usage-track[b-rkzzx267qi] {
    margin-top: 0.25rem;
    height: 0.25rem;
    border-radius: 0.15rem;
    background: var(--chat-overlay-strong);
    overflow: hidden;
}

.chat-history-usage-fill[b-rkzzx267qi] {
    height: 100%;
    border-radius: 0.15rem;
    transition: width 0.2s ease;
}

.chat-history-usage-normal[b-rkzzx267qi] {
    background: #5DC76D;
}

.chat-history-usage-warning[b-rkzzx267qi] {
    background: #d99a2b;
}

.chat-history-usage-danger[b-rkzzx267qi] {
    background: #d1493f;
}

/* Dropped/browsed files staged for the next turn (ChatSessionAttachment, ChatLogId still null). */
.chat-attachment-chips[b-rkzzx267qi] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.chat-attachment-chip[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 12rem;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    padding: 0.3rem 0.4rem 0.3rem 0.55rem;
    background-color: var(--chat-overlay);
    font-size: 0.78rem;
    color: var(--chat-text-muted);
}

.chat-attachment-chip-name[b-rkzzx267qi] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-attachment-chip-remove[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    flex: 0 0 auto;
    border: none;
    background: none;
    color: var(--chat-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.3rem;
}

    .chat-attachment-chip-remove:hover:not(:disabled)[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay-strong);
    }

    .chat-attachment-chip-remove:disabled[b-rkzzx267qi] {
        opacity: 0.5;
        cursor: default;
    }

.chat-attachment-error[b-rkzzx267qi] {
    font-size: 0.78rem;
    color: var(--chat-accent);
    margin-bottom: 0.5rem;
}

/* Toggled by chatUi.wireAttachmentDropZone (chat.js) while a file is dragged over the composer
   input itself -- that's the actual drop target, not just the surrounding card. */
.chat-composer-input.drag-over[b-rkzzx267qi] {
    outline: 2px dashed var(--chat-accent);
    outline-offset: -2px;
    background-color: rgba(204, 93, 104, 0.06);
}

.chat-icon-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--chat-border);
    border-radius: 0.5rem;
    background-color: var(--chat-overlay);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--chat-text-muted);
}

    .chat-icon-btn:hover:not(:disabled)[b-rkzzx267qi] {
        color: var(--chat-text);
        background-color: var(--chat-overlay-strong);
    }

    .chat-icon-btn.active[b-rkzzx267qi] {
        color: var(--chat-accent);
        border-color: var(--chat-accent-dim);
        background-color: rgba(204, 93, 104, 0.12);
    }

.chat-model-pill[b-rkzzx267qi] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--chat-border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem 0.25rem 0.55rem;
    background-color: var(--chat-overlay);
}

.chat-select[b-rkzzx267qi] {
    position: relative;
    z-index: 5;
}

.chat-select-trigger[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0;
    max-width: 12rem;
}

    .chat-select-trigger span:last-child[b-rkzzx267qi] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-select-trigger:disabled[b-rkzzx267qi] {
        cursor: default;
        opacity: 0.6;
    }

@media (max-width: 480px) {
    /* Not enough room for full pill labels ("General Chat", "Enigma-27B") next to the thinking
       and send buttons on a phone - drop to icon-only pills (still tap to open the picker) so
       the whole toolbar fits on the one row instead of wrapping across two or three. */
    .chat-select-trigger span:last-child[b-rkzzx267qi] {
        display: none;
    }

    .chat-model-pill[b-rkzzx267qi] {
        padding: 0.35rem;
    }

    .chat-composer-right[b-rkzzx267qi] {
        gap: 0.35rem;
    }
}

.chat-select-backdrop[b-rkzzx267qi] {
    position: fixed;
    inset: 0;
    z-index: 4;
}

.chat-select-menu[b-rkzzx267qi] {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    z-index: 5;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background-color: var(--chat-panel-bg);
    border: 1px solid var(--chat-border);
    border-radius: 0.6rem;
    padding: 0.3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.chat-select-option[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    text-align: left;
    border: none;
    background: none;
    color: var(--chat-text);
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
}

    .chat-select-option:hover[b-rkzzx267qi] {
        background-color: var(--chat-overlay-strong);
    }

    .chat-select-option.active[b-rkzzx267qi] {
        color: var(--chat-accent);
        background-color: rgba(204, 93, 104, 0.14);
    }

.chat-send-btn[b-rkzzx267qi] {
    appearance: none;
    cursor: pointer;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid var(--chat-accent-dim);
    border-radius: 0.6rem;
    background-color: var(--chat-accent-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--chat-accent-contrast);
}

    .chat-send-btn:hover:not(:disabled)[b-rkzzx267qi] {
        background-color: var(--chat-accent);
        border-color: var(--chat-accent);
    }

    .chat-send-btn:disabled[b-rkzzx267qi] {
        opacity: 0.4;
        cursor: default;
    }

/* /Components/Pages/Home.razor.rz.scp.css */
.home-hero[b-1tn58jj0ne] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.home-hero-logo[b-1tn58jj0ne] {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
}

.home-hero-logo-light[b-1tn58jj0ne] {
    display: none;
}

[data-bs-theme="light"] .home-hero-logo-dark[b-1tn58jj0ne] {
    display: none;
}

[data-bs-theme="light"] .home-hero-logo-light[b-1tn58jj0ne] {
    display: inline-block;
}

.home-hero-title[b-1tn58jj0ne] {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-hero-tagline[b-1tn58jj0ne] {
    color: var(--bs-secondary-color);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.home-hero-cta[b-1tn58jj0ne] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
