html, body { font-family: Roboto, Helvetica, Arial, sans-serif; }
h1:focus { outline: none; }

.app-loading { padding: 2rem; font-size: 1.1rem; color: #555; }

#blazor-error-ui {
    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: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.mono { font-family: Consolas, "Courier New", monospace; }
.clickable { cursor: pointer; }
.dev-badge { background: #ff9800 !important; color: #000 !important; font-weight: bold; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Prévia de texto longo em resultados: até 3 linhas. */
.preview { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* Corpo do e-mail (texto puro). */
.email-body {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--mud-palette-background-gray);
    padding: 12px;
    border-radius: 4px;
    max-height: 55vh;
    overflow: auto;
    margin: 0;
}

/* Páginas de conta (renderização estática no servidor). */
.account-input { width: 100%; box-sizing: border-box; padding: 12px; font-size: 1rem; border: 1px solid rgba(0,0,0,0.3); border-radius: 4px; }
.account-input:focus { outline: 2px solid var(--mud-palette-primary); border-color: transparent; }
.account-form { display: flex; flex-direction: column; gap: 16px; }

/* Classificação automática corrigida na revisão. */
.intent-wrong { text-decoration: line-through; opacity: .7; }

/* Painel */
.kpi { cursor: default; height: 100%; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { box-shadow: var(--mud-elevation-6); }
.kpi-value { font-size: 2rem; font-weight: 500; line-height: 1.1; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.barlist-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.barlist-row.clickable:hover { background: var(--mud-palette-action-default-hover); }
.barlist-label { flex: 0 0 160px; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist-track { flex: 1; background: var(--mud-palette-background-gray); border-radius: 3px; height: 14px; overflow: hidden; }
.barlist-fill { height: 100%; border-radius: 3px; min-width: 2px; }
.barlist-value { flex: 0 0 48px; text-align: right; font-size: .85rem; font-variant-numeric: tabular-nums; }
.json-view { font-family: Consolas, "Courier New", monospace; font-size: .8rem; white-space: pre-wrap; word-break: break-word; background: var(--mud-palette-background-gray); padding: 12px; border-radius: 4px; max-height: 50vh; overflow: auto; margin: 0; }
.comment-text { white-space: pre-wrap; word-break: break-word; }
