/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-cgx8qkykhe] {
    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-cgx8qkykhe] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-5r9o70v9ly],
.components-reconnect-repeated-attempt-visible[b-5r9o70v9ly],
.components-reconnect-failed-visible[b-5r9o70v9ly],
.components-pause-visible[b-5r9o70v9ly],
.components-resume-failed-visible[b-5r9o70v9ly],
.components-rejoining-animation[b-5r9o70v9ly] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-retrying[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-failed[b-5r9o70v9ly],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-5r9o70v9ly] {
    display: block;
}


#components-reconnect-modal[b-5r9o70v9ly] {
    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-5r9o70v9ly 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-5r9o70v9ly 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-5r9o70v9ly 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-5r9o70v9ly]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-5r9o70v9ly 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-5r9o70v9ly {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-5r9o70v9ly {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-5r9o70v9ly {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-5r9o70v9ly] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-5r9o70v9ly] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-5r9o70v9ly] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-5r9o70v9ly] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-5r9o70v9ly] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-5r9o70v9ly] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-5r9o70v9ly] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-5r9o70v9ly 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-5r9o70v9ly] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-5r9o70v9ly {
    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/Pages/Admin.razor.rz.scp.css */
.admin-dashboard[b-p3ft24ncvq] {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    box-sizing: border-box;
}

.admin-topbar[b-p3ft24ncvq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.admin-topbar-right[b-p3ft24ncvq] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-back-link[b-p3ft24ncvq] {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

    .admin-back-link:hover[b-p3ft24ncvq] {
        color: #2563eb;
        text-decoration: underline;
    }

.admin-logout-button[b-p3ft24ncvq] {
    padding: 0.4rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
}

    .admin-logout-button:hover[b-p3ft24ncvq] {
        border-color: #cbd5e1;
        color: #0f172a;
    }

.admin-dashboard h1[b-p3ft24ncvq] {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #0f172a;
}

.admin-dashboard h2[b-p3ft24ncvq] {
    font-size: 1.05rem;
    margin: 2rem 0 0.75rem;
    color: #0f172a;
}

.admin-error[b-p3ft24ncvq] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
}

.admin-loading[b-p3ft24ncvq],
.admin-empty-hint[b-p3ft24ncvq] {
    color: #64748b;
}

.admin-stat-grid[b-p3ft24ncvq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem;
}

.admin-stat-card[b-p3ft24ncvq] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.admin-stat-value[b-p3ft24ncvq] {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.admin-stat-label[b-p3ft24ncvq] {
    font-size: 0.8rem;
    color: #64748b;
}

.admin-table[b-p3ft24ncvq] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th[b-p3ft24ncvq] {
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td[b-p3ft24ncvq] {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.admin-table-num[b-p3ft24ncvq] {
    font-variant-numeric: tabular-nums;
}

.admin-refresh-button[b-p3ft24ncvq] {
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    color: #334155;
    font-size: 0.85rem;
    cursor: pointer;
}

    .admin-refresh-button:hover[b-p3ft24ncvq] {
        border-color: #2563eb;
        color: #2563eb;
    }
/* /Components/Pages/AdminChangePassword.razor.rz.scp.css */
.admin-dashboard[b-hbkwlz0vjv] {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    box-sizing: border-box;
}

.admin-topbar[b-hbkwlz0vjv] {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-back-link[b-hbkwlz0vjv] {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

    .admin-back-link:hover[b-hbkwlz0vjv] {
        color: #2563eb;
        text-decoration: underline;
    }

.admin-dashboard h1[b-hbkwlz0vjv] {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: #0f172a;
}

.admin-password-card[b-hbkwlz0vjv] {
    max-width: 24rem;
}

.admin-password-success[b-hbkwlz0vjv] {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.admin-password-error[b-hbkwlz0vjv] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.admin-password-card form[b-hbkwlz0vjv] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-password-card label[b-hbkwlz0vjv] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}

.admin-password-card input[b-hbkwlz0vjv] {
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    font: inherit;
    font-weight: 400;
}

.admin-password-hint[b-hbkwlz0vjv] {
    margin: -0.5rem 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
}

.admin-password-card button[b-hbkwlz0vjv] {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 0.6rem;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .admin-password-card button:disabled[b-hbkwlz0vjv] {
        background: #93c5fd;
        cursor: not-allowed;
    }
/* /Components/Pages/AdminLogin.razor.rz.scp.css */
.admin-login[b-coqvb622vi] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 1.5rem;
    box-sizing: border-box;
}

.admin-login-card[b-coqvb622vi] {
    width: 100%;
    max-width: 22rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 2rem;
    box-sizing: border-box;
}

.admin-login-card h1[b-coqvb622vi] {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: #0f172a;
}

.admin-login-hint[b-coqvb622vi] {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
}

.admin-login-error[b-coqvb622vi] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.admin-login-card form[b-coqvb622vi] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-login-card label[b-coqvb622vi] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}

.admin-login-card input[b-coqvb622vi] {
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    font: inherit;
    font-weight: 400;
}

.admin-login-card button[b-coqvb622vi] {
    margin-top: 0.25rem;
    padding: 0.7rem;
    border: none;
    border-radius: 0.6rem;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.admin-login-back[b-coqvb622vi] {
    display: inline-block;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: none;
}

    .admin-login-back:hover[b-coqvb622vi] {
        color: #2563eb;
        text-decoration: underline;
    }
/* /Components/Pages/Home.razor.rz.scp.css */
.app-shell[b-9n8z324le6] {
    display: flex;
    height: 100vh;
    position: relative;
}

/* ---------- sidebar (histórico de conversas) ---------- */

.sidebar[b-9n8z324le6] {
    width: 17rem;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.sidebar-portal-link[b-9n8z324le6] {
    display: inline-block;
    padding: 0.3rem 0.1rem 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: none;
}

    .sidebar-portal-link:hover[b-9n8z324le6] {
        color: #2563eb;
        text-decoration: underline;
    }

.sidebar-model-picker[b-9n8z324le6] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.1rem 0.2rem;
    font-size: 0.72rem;
    color: #64748b;
}

    .sidebar-model-picker select[b-9n8z324le6] {
        padding: 0.4rem 0.5rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        background: white;
        font: inherit;
        font-size: 0.8rem;
        color: #1e293b;
    }

    .sidebar-model-picker select:disabled[b-9n8z324le6] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.sidebar-new-button[b-9n8z324le6] {
    padding: 0.6rem 0.75rem;
    border: 1px dashed #94a3b8;
    border-radius: 0.6rem;
    background: white;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

    .sidebar-new-button:hover:not(:disabled)[b-9n8z324le6] {
        background: #eff6ff;
        border-color: #2563eb;
        color: #2563eb;
    }

    .sidebar-new-button:disabled[b-9n8z324le6] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.sidebar-list[b-9n8z324le6] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-empty-hint[b-9n8z324le6] {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.5rem;
    text-align: center;
}

.sidebar-item[b-9n8z324le6] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #334155;
}

    .sidebar-item:hover[b-9n8z324le6] {
        background: #eef2f7;
    }

.sidebar-item-active[b-9n8z324le6] {
    background: #e0e7ff;
    color: #1e293b;
}

    .sidebar-item-active:hover[b-9n8z324le6] {
        background: #e0e7ff;
    }

.sidebar-item-text[b-9n8z324le6] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-item-title[b-9n8z324le6] {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-time[b-9n8z324le6] {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Sempre visível (não só no hover) — um "×" que só aparece com hover do
   mouse fica permanentemente inacessível em touch/mobile, onde não existe
   hover de verdade. Opacidade baixa por padrão pra não competir
   visualmente com o título/hora da conversa; sobe no hover/foco do item
   inteiro, igual antes. */
.sidebar-item-delete[b-9n8z324le6] {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.55;
}

.sidebar-item:hover .sidebar-item-delete[b-9n8z324le6],
.sidebar-item-delete:focus-visible[b-9n8z324le6] {
    opacity: 1;
}

    .sidebar-item-delete:hover:not(:disabled)[b-9n8z324le6] {
        background: #fee2e2;
        color: #b91c1c;
    }

    .sidebar-item-delete:disabled[b-9n8z324le6] {
        cursor: not-allowed;
        opacity: 0.3;
    }

.sidebar-toggle[b-9n8z324le6] {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 48rem) {
    .sidebar-toggle[b-9n8z324le6] {
        display: block;
    }

    .sidebar[b-9n8z324le6] {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 15;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 0.5rem 0 1.5rem rgba(15, 23, 42, 0.15);
    }

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

/* ---------- área de chat ---------- */

.chat-container[b-9n8z324le6] {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}

/* Modelo fixado da conversa aberta — só informativo, não dá pra trocar
   sem começar uma conversa nova (ver seletor .sidebar-model-picker). */
.chat-model-header[b-9n8z324le6] {
    flex: none;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: default;
}

.chat-token-total[b-9n8z324le6] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.4rem 1rem 0;
    box-sizing: border-box;
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

.chat-token-live-dot[b-9n8z324le6] {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #22c55e;
    flex: none;
}

@media (prefers-reduced-motion: no-preference) {
    .chat-token-live-dot[b-9n8z324le6] {
        animation: chat-token-live-pulse-b-9n8z324le6 1.2s ease-in-out infinite;
    }
}

@keyframes chat-token-live-pulse-b-9n8z324le6 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.chat-messages[b-9n8z324le6] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem 0.5rem;
    box-sizing: border-box;
}

.chat-empty-hint[b-9n8z324le6] {
    color: #6b7280;
    text-align: center;
    margin-top: 2rem;
}

.chat-bubble[b-9n8z324le6] {
    max-width: 75%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Mensagem do usuário é texto puro (o que a pessoa digitou, sem
   interpretar como markdown) — preserva quebra de linha manual.
   A do assistente vira HTML de verdade (ver chat-bubble-markdown
   abaixo), que já cuida do próprio espaçamento via parágrafo/lista/etc. */
.chat-bubble-user .chat-bubble-text[b-9n8z324le6] {
    white-space: pre-wrap;
}

.chat-bubble-user[b-9n8z324le6] {
    align-self: flex-end;
    background: #2563eb;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-bubble-assistant[b-9n8z324le6] {
    align-self: flex-start;
    background: #f1f5f9;
    color: #0f172a;
    border-bottom-left-radius: 0.25rem;
}

/* Conteúdo vindo do Markdig (ver MarkdownRenderer) — a resposta do
   modelo costuma vir com ###, listas e **negrito**; sem isso, apareciam
   como texto literal com os marcadores e tudo. */
.chat-bubble-markdown :first-child[b-9n8z324le6] {
    margin-top: 0;
}

.chat-bubble-markdown :last-child[b-9n8z324le6] {
    margin-bottom: 0;
}

.chat-bubble-markdown p[b-9n8z324le6],
.chat-bubble-markdown ul[b-9n8z324le6],
.chat-bubble-markdown ol[b-9n8z324le6],
.chat-bubble-markdown pre[b-9n8z324le6],
.chat-bubble-markdown blockquote[b-9n8z324le6],
.chat-bubble-markdown table[b-9n8z324le6] {
    margin: 0.6rem 0;
}

.chat-bubble-markdown h1[b-9n8z324le6],
.chat-bubble-markdown h2[b-9n8z324le6],
.chat-bubble-markdown h3[b-9n8z324le6],
.chat-bubble-markdown h4[b-9n8z324le6],
.chat-bubble-markdown h5[b-9n8z324le6],
.chat-bubble-markdown h6[b-9n8z324le6] {
    margin: 0.9rem 0 0.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.chat-bubble-markdown h1[b-9n8z324le6] { font-size: 1.25rem; }
.chat-bubble-markdown h2[b-9n8z324le6] { font-size: 1.15rem; }
.chat-bubble-markdown h3[b-9n8z324le6] { font-size: 1.05rem; }
.chat-bubble-markdown h4[b-9n8z324le6],
.chat-bubble-markdown h5[b-9n8z324le6],
.chat-bubble-markdown h6[b-9n8z324le6] { font-size: 1rem; }

.chat-bubble-markdown ul[b-9n8z324le6],
.chat-bubble-markdown ol[b-9n8z324le6] {
    padding-left: 1.3rem;
}

.chat-bubble-markdown li[b-9n8z324le6] {
    margin: 0.2rem 0;
}

.chat-bubble-markdown li > p[b-9n8z324le6] {
    margin: 0;
}

.chat-bubble-markdown code[b-9n8z324le6] {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(15, 23, 42, 0.08);
    padding: 0.15em 0.35em;
    border-radius: 0.35em;
}

.chat-bubble-user .chat-bubble-markdown code[b-9n8z324le6] {
    background: rgba(255, 255, 255, 0.2);
}

.chat-bubble-markdown pre[b-9n8z324le6] {
    background: rgba(15, 23, 42, 0.06);
    padding: 0.75rem 0.9rem;
    border-radius: 0.6rem;
    overflow-x: auto;
}

.chat-bubble-markdown pre code[b-9n8z324le6] {
    background: none;
    padding: 0;
    font-size: 0.82rem;
}

.chat-bubble-markdown blockquote[b-9n8z324le6] {
    border-left: 3px solid #cbd5e1;
    padding-left: 0.75rem;
    color: #475569;
}

.chat-bubble-markdown a[b-9n8z324le6] {
    color: #2563eb;
    text-decoration: underline;
}

.chat-bubble-markdown table[b-9n8z324le6] {
    border-collapse: collapse;
    font-size: 0.9em;
    display: block;
    overflow-x: auto;
}

.chat-bubble-markdown th[b-9n8z324le6],
.chat-bubble-markdown td[b-9n8z324le6] {
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.6rem;
    text-align: left;
}

/* ---------- anexos de arquivo ---------- */

.chat-bubble-attachments[b-9n8z324le6] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.chat-bubble-attachment-chip[b-9n8z324le6] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.15);
}

.chat-bubble-assistant .chat-bubble-attachment-chip[b-9n8z324le6] {
    background: rgba(15, 23, 42, 0.06);
}

.chat-pending-attachments[b-9n8z324le6] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.chat-attachment-chip[b-9n8z324le6] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem 0.3rem 0.7rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.8rem;
}

.chat-attachment-chip-loading[b-9n8z324le6] {
    background: #f1f5f9;
    color: #64748b;
}

.chat-attachment-chip-meta[b-9n8z324le6] {
    color: #6366f1;
    opacity: 0.8;
    font-size: 0.72rem;
}

.chat-attachment-chip-remove[b-9n8z324le6] {
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #4338ca;
    font-size: 0.9rem;
    cursor: pointer;
}

    .chat-attachment-chip-remove:hover:not(:disabled)[b-9n8z324le6] {
        background: rgba(67, 56, 202, 0.15);
    }

    .chat-attachment-chip-remove:disabled[b-9n8z324le6] {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* Label envolvendo o <InputFile> real (escondido via chat-attach-input) —
   clicar em qualquer lugar do label abre o seletor de arquivo nativo, sem
   precisar de JS pra disparar o input escondido. */
.chat-attach-button[b-9n8z324le6] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: white;
    font-size: 1.1rem;
    cursor: pointer;
}

    .chat-attach-button:hover[b-9n8z324le6] {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .chat-attach-button[aria-disabled="true"][b-9n8z324le6] {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* "Visualmente escondido" (não display:none) — mantém o clique do label
   funcionando em todos os navegadores pra abrir o seletor de arquivo.
   ::deep é obrigatório aqui: o <input> real é renderizado por dentro do
   componente <InputFile> (não por marcação escrita neste .razor), então
   não recebe o atributo de escopo do CSS isolation da jcloud-web — sem
   ::deep essa regra nunca batia com o elemento de verdade, e o seletor de
   arquivo nativo do navegador (feio, full-size) ficava visível por cima
   do botão estilizado. */
[b-9n8z324le6] .chat-attach-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-bubble-tokens[b-9n8z324le6] {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    cursor: default;
}

.chat-bubble-tokens-detail[b-9n8z324le6] {
    opacity: 0.75;
}

.chat-typing-indicator[b-9n8z324le6] {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.15rem 0;
}

    .chat-typing-indicator span[b-9n8z324le6] {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background: #94a3b8;
        animation: chat-typing-bounce-b-9n8z324le6 1.2s infinite ease-in-out;
    }

    .chat-typing-indicator span:nth-child(2)[b-9n8z324le6] {
        animation-delay: 0.15s;
    }

    .chat-typing-indicator span:nth-child(3)[b-9n8z324le6] {
        animation-delay: 0.3s;
    }

@keyframes chat-typing-bounce-b-9n8z324le6 {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-0.25rem);
        opacity: 1;
    }
}

.chat-error[b-9n8z324le6] {
    max-width: 48rem;
    width: 100%;
    margin: 0.5rem auto 0;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    box-sizing: border-box;
}

.chat-input-row[b-9n8z324le6] {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1rem 1.25rem;
    box-sizing: border-box;
}

.chat-input[b-9n8z324le6] {
    flex: 1 1 auto;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    resize: none;
    /* ~4 linhas antes de rolar por dentro — cresce até lá via JS
       (autoGrowTextarea), depois disso vira scroll normal do campo. */
    max-height: 9rem;
    overflow-y: auto;
}

    .chat-input:disabled[b-9n8z324le6] {
        background: #f8fafc;
    }

.chat-send-button[b-9n8z324le6] {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.9rem;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .chat-send-button:disabled[b-9n8z324le6] {
        background: #93c5fd;
        cursor: not-allowed;
    }

.chat-stop-button[b-9n8z324le6] {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.9rem;
    background: #b91c1c;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .chat-stop-button:hover[b-9n8z324le6] {
        background: #991b1b;
    }
