/* ===== Fontes (locais) =====================================================
   IBM Plex Sans e Mono vêm de frontend/fonts/, não de CDN: o RNF-2 pede zero
   dependência externa e o CA-4 pede nenhuma requisição a domínio externo
   (specs/migracao-frontend-vanilla.md). Também evita expor o IP do cliente a
   terceiros. Licença e origem em fonts/IBM-Plex.NOTICE.txt.
   ========================================================================== */
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================================
   Grupo Bio — Portal de boletos
   Tema escuro do handoff (design_handoff_portal_boletos/README.md).
   Cores amostradas do site institucional: petróleo #1f3643 domina a tela,
   dourado #baa26e nas ações. Tema único — não há alternância claro/escuro.
   ========================================================================== */

:root {
  --app-bg: #1a2c37;
  --surface: #1f3643;
  --surface-sunk: #1b2f3a;
  --subtle: #294454;
  --border: #35505f;
  --border-input: #446374;

  --text: #eff1f1;
  --text-2: #bcc9cf;
  --muted: #93a2aa;
  --faint: #79858c;

  --slate: #2c4b5d;
  --gold: #baa26e;
  --gold-hover: #c9b384;
  --gold-press: #a58b56;
  --gold-text: #cbb489;
  --on-gold: #16262f;
  --tint: #24404f;
  --tint-2: #2e4a5b;

  /* Status do título */
  --st-vencido-fg: #ff9d92;
  --st-vencido-bg: #38201e;
  --st-vencido-bd: #5c332f;
  --st-vencido-dot: #f04438;

  --st-breve-fg: #f0b464;
  --st-breve-bg: #372c17;
  --st-breve-bd: #57451f;
  --st-breve-dot: #f79009;

  --st-aberto-fg: #bcc9cf;
  --st-aberto-bg: #294454;
  --st-aberto-dot: #79858c;

  --st-pago-fg: #6fe3a0;
  --st-pago-bg: #16301f;
  --st-pago-dot: #12b76a;

  --sombra-cartao: 0 1px 2px rgba(0, 0, 0, 0.35);
  --transicao: background 150ms ease, border-color 150ms ease, color 150ms ease,
               box-shadow 180ms ease, transform 90ms ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* No portal a rolagem acontece dentro da conversa e do extrato, não na página */
body.travada { height: 100vh; overflow: hidden; }

a { color: var(--gold-text); text-underline-offset: 2px; }
a:hover { color: #dcc9a0; }
::selection { background: var(--tint-2); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hidden { display: none !important; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.num { font-variant-numeric: tabular-nums; }

@keyframes sobe {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pisca {
  0%, 80%, 100% { opacity: .25; }
  40%           { opacity: .9; }
}
.sobe { animation: sobe 260ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ===== Ícones ============================================================= */
.ico {
  /* Tamanho base: sem ele, um ico-N sem regra correspondente (foi o que
     aconteceu com ico-13 em 21/08/2026) nasce sem width/height e o SVG estica
     até ocupar a ficha inteira. Assim o pior caso é um ícone de 16px. */
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-14 { width: 14px; height: 14px; }
.ico-15 { width: 15px; height: 15px; }
.ico-16 { width: 16px; height: 16px; stroke-width: 2; }
.ico-18 { width: 18px; height: 18px; }
.ico-20 { width: 20px; height: 20px; }
.ico-ouro { color: var(--gold); }
.ico-check { color: #7fd4a3; stroke-width: 2.2; }

/* ===== Botões ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transicao);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* O botão de "Atualizar boleto" (item 5) é um <a> de verdade, para o navegador
   dar menu de contexto, abrir em nova aba e mostrar o destino na barra de
   status — coisas que um <button> com window.open não oferece. Precisa então
   perder o sublinhado e herdar a cor do .btn. */
a.btn { text-decoration: none; }

.btn-primario { background: var(--gold); color: var(--on-gold); }
.btn-primario:hover:not(:disabled) {
  background: var(--gold-hover);
  box-shadow: 0 6px 16px rgba(186, 162, 110, 0.30);
  transform: translateY(-1px);
}
.btn-primario:active:not(:disabled) {
  background: var(--gold-press);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transform: translateY(1px);
}

.btn-secundario {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}
.btn-secundario:hover:not(:disabled) {
  background: var(--tint);
  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.btn-secundario:active:not(:disabled) {
  background: var(--app-bg);
  box-shadow: none;
  transform: translateY(1px);
}
.btn-contorno { border-color: var(--border-input); }

.btn-bloco { width: 100%; margin-top: 18px; }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-xs { flex: none; font-size: 12px; padding: 6px 12px; }
.btn-acao { font-size: 13px; padding: 9px 14px; gap: 7px; }

.link-acao {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-text);
  cursor: pointer;
  transition: var(--transicao);
}
.link-acao:disabled { color: var(--faint); opacity: .7; cursor: not-allowed; }

/* ===== Campos ============================================================= */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.campo {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: var(--transicao);
}
.campo-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  padding: 11px 12px;
  border-radius: 8px;
}
.campo:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(122, 178, 209, 0.28);
}
.campo::placeholder { color: var(--muted); }

.dica { margin: 6px 0 0; font-size: 12px; color: var(--muted); min-height: 18px; }
.dica-centro { text-align: center; }
.rotulo {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.alerta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--st-vencido-bd);
  border-radius: 8px;
  background: var(--st-vencido-bg);
  color: var(--st-vencido-fg);
}
.alerta .ico { margin-top: 2px; }
.alerta p { margin: 0; font-size: 13px; }

.acoes { margin-top: 18px; display: flex; gap: 10px; }
.acoes-cresce { flex: 1; }

/* ===== Cartões ============================================================ */
.cartao {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--sombra-cartao);
}
.cartao h1, .cartao h2 { letter-spacing: -0.01em; }

.chip-etapa {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--tint-2);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ===== Cabeçalho ========================================================= */
.topbar {
  flex: none;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca-signo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--slate);
  color: #f2f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.marca-texto { display: flex; flex-direction: column; }
.marca-nome { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.marca-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.sessao { display: flex; align-items: center; gap: 16px; }
.sessao-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-sunk);
  color: var(--muted);
}
.sessao-doc { font-size: 12px; font-weight: 500; color: var(--text); }
.sessao-div { width: 1px; height: 14px; background: var(--border); }
.sessao-relogio { font-size: 12px; color: var(--muted); }

/* ===== Telas de login e código =========================================== */
.tela { flex: 1; display: flex; justify-content: center; }
.tela-centro { align-items: flex-start; padding: 64px 24px; }
#tela-otp { padding: 48px 24px 64px; }

.login-grid {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.pitch h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pitch-lead { margin: 14px 0 0; font-size: 15px; color: var(--text-2); max-width: 46ch; }
.pitch-lista { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.pitch-lista li { display: flex; gap: 12px; }
.pitch-lista .ico { margin-top: 2px; }
.pitch-titulo { margin: 0; font-size: 14px; font-weight: 600; }
.pitch-desc { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.cartao-acesso { padding: 28px; }
.cartao-acesso h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.cartao-sub { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.cartao-rodape {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--subtle);
  font-size: 12px;
  color: var(--muted);
}

.otp-wrap { width: 100%; max-width: 900px; }
.passos {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.passo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.passo-bola {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.passo-feito { color: var(--muted); }
.passo-feito .passo-bola { background: var(--tint-2); color: var(--gold-text); }
.passo-atual { font-weight: 600; color: var(--text); }
.passo-atual .passo-bola { background: var(--slate); color: #f2f8fb; }
.passo-futuro { color: var(--faint); }
.passo-futuro .passo-bola { border: 1px solid var(--border-input); font-weight: 400; }
.passo-traco { flex: none; width: 32px; height: 1px; background: var(--border-input); }

.otp-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cartao-otp { overflow: hidden; }
.otp-cabeca { padding: 28px 28px 0; }
.otp-cabeca h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.otp-cabeca p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.otp-cabeca strong { font-weight: 600; }

.bloco-email {
  margin: 22px 28px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-sunk);
}
.bloco-email-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.bloco-email-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bloco-email-texto { min-width: 0; }
.email-endereco {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bloco-email-lista { padding: 0 16px 16px; display: grid; gap: 6px; }
.bloco-email-lista .dica { margin: 0 0 4px; }

.opcao-email {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: var(--transicao);
}
.opcao-email:hover { border-color: var(--gold); background: var(--tint); }
.opcao-email:active { transform: translateY(1px); }
.opcao-email[aria-checked="true"] { border-color: var(--slate); background: var(--tint); }
.opcao-radio {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-input);
  background: var(--surface);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.opcao-email[aria-checked="true"] .opcao-radio { border-color: var(--gold); }
.opcao-radio i { width: 8px; height: 8px; border-radius: 9999px; background: transparent; }
.opcao-email[aria-checked="true"] .opcao-radio i { background: var(--gold); }
.opcao-endereco {
  flex: 1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  min-width: 0;
  overflow-wrap: anywhere;
}
.opcao-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--subtle);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.otp-corpo { padding: 24px 28px 28px; }
.otp-caixas { display: flex; gap: 8px; }
.otp-caixa {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0;
  transition: var(--transicao);
}
.otp-caixa:focus { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(122, 178, 209, 0.28); }
.otp-caixas.erro .otp-caixa { border-color: var(--st-vencido-bd); }

.otp-rodape {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.otp-lado { display: grid; gap: 16px; }
.cartao-ajuda { padding: 20px; }
.ajuda-titulo { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.ajuda-itens { display: grid; gap: 12px; }
.ajuda-itens > div + div { border-top: 1px solid var(--subtle); padding-top: 12px; }
.ajuda-item-titulo { margin: 0; font-size: 13px; font-weight: 500; }
.ajuda-item-texto { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.aviso-seguranca {
  display: flex;
  gap: 10px;
  border: 1px solid var(--tint-2);
  border-radius: 12px;
  background: var(--tint);
  padding: 16px;
}
.aviso-seguranca .ico { margin-top: 1px; }
.aviso-titulo { margin: 0; font-size: 13px; font-weight: 600; color: #d8c79b; }
.aviso-texto { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }

/* ===== Portal: faixa de resumo =========================================== */
.portal { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.faixa-resumo {
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.resumo-valor {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.resumo-nota { font-size: 13px; font-weight: 400; color: var(--muted); }
.resumo-div { width: 1px; height: 34px; background: var(--border); }
.st-vencido-fg { color: var(--st-vencido-fg); }
/* Sem nada vencido o número não usa a cor de alerta */
.st-zerado { color: var(--text) !important; }

/* ===== Portal: conversa ================================================== */
.portal-grid { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
/* Sem a conversa, o extrato ocupa a largura toda em vez de ficar numa coluna
   de 340px com um vazio ao lado. */
.portal-grid--so-extrato { grid-template-columns: 1fr; }
.conversa-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conversa { flex: 1 1 0%; min-height: 0; overflow-y: auto; padding: 28px 24px; }
.conversa-fluxo {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.msg { display: flex; gap: 12px; animation: sobe 200ms ease-out; }
.msg--agente { justify-content: flex-start; }
.msg--cliente { justify-content: flex-end; }
.msg-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--slate);
  color: #f2f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-corpo { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.msg--agente .msg-corpo { flex: 1; align-items: flex-start; }
.msg--cliente .msg-corpo { max-width: 80%; align-items: flex-end; }

.bolha-agente {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  font-size: 14px;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow-wrap: anywhere;
}
.bolha-cliente {
  background: var(--slate);
  color: #f2f8fb;
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.digitando {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 14px 16px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.digitando i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--faint);
  animation: pisca 1.2s infinite;
}
.digitando i:nth-child(2) { animation-delay: .2s; }
.digitando i:nth-child(3) { animation-delay: .4s; }
.msg-hora { margin: 0; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ===== Ficha de boleto =================================================== */
.grupo { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.grupo + .grupo { margin-top: 6px; }
.grupo-cabeca { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.grupo-nome { font-size: 12px; font-weight: 600; }
.grupo-resumo { font-size: 11px; color: var(--muted); }
.grupo-regua { flex: 1; height: 1px; background: var(--border); }

.ficha {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--sombra-cartao);
  overflow: hidden;
}
.ficha.st-vencido { border-color: var(--st-vencido-bd); }
.ficha-topo {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ficha-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ficha-nosso, .ficha-banco { font-size: 12px; color: var(--muted); }
.ficha-valor {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ficha-venc { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.ficha-venc strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-detalhes { flex: none; font-size: 12.5px; font-weight: 500; padding: 7px 12px; gap: 6px; }
.btn-detalhes .ico { transition: transform 150ms ease; }
.btn-detalhes[aria-expanded="true"] .ico { transform: rotate(180deg); }

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.chip-status i { width: 5px; height: 5px; border-radius: 9999px; }
.chip-vencido { background: var(--st-vencido-bg); color: var(--st-vencido-fg); }
.chip-vencido i { background: var(--st-vencido-dot); }
.chip-hoje, .chip-breve { background: var(--st-breve-bg); color: var(--st-breve-fg); }
.chip-hoje i, .chip-breve i { background: var(--st-breve-dot); }
.chip-aberto { background: var(--st-aberto-bg); color: var(--st-aberto-fg); }
.chip-aberto i { background: var(--st-aberto-dot); }
.chip-pago { background: var(--st-pago-bg); color: var(--st-pago-fg); }
.chip-pago i { background: var(--st-pago-dot); }

.ficha-acoes {
  padding: 12px 16px;
  border-top: 1px solid var(--subtle);
  background: var(--surface-sunk);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ficha-detalhe { border-top: 1px solid var(--subtle); padding: 16px; }

.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: var(--subtle);
  width: fit-content;
  margin-bottom: 16px;
}
.segmented button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transicao);
}
.segmented button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.aba-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linha-digitavel {
  margin: 0;
  flex: 1 1 340px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.01em;
  word-break: break-all;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-sunk);
}
.nota-aba { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.pix-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.pix-qr {
  flex: none;
  width: 148px;
  height: 148px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
}
.pix-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}
.pix-lado { flex: 1 1 280px; min-width: 0; }
.pix-emv {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  word-break: break-all;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-sunk);
  max-height: 76px;
  overflow-y: auto;
  line-height: 1.45;
}
.pix-lado .btn { margin-top: 10px; }

.dados-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.dados-valor { margin: 4px 0 0; font-size: 13.5px; }
.dados-extra { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.dados-ok { color: var(--st-pago-fg); }

/* ===== Composer =========================================================== */
.composer {
  flex: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 24px 18px;
}
.composer-wrap { max-width: 720px; margin: 0 auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-sugestao {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transicao);
}
.chip-sugestao:hover {
  border-color: var(--gold);
  color: #e6d6ab;
  background: var(--tint);
  transform: translateY(-1px);
}
.chip-sugestao:active { transform: translateY(1px); background: var(--surface-sunk); }

.composer-linha { display: flex; align-items: center; gap: 10px; }
.btn-aviao {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-gold);
  cursor: pointer;
  transition: var(--transicao);
}
.btn-aviao:hover:not(:disabled) {
  background: var(--gold-hover);
  box-shadow: 0 6px 16px rgba(186, 162, 110, 0.30);
  transform: translateY(-1px);
}
.btn-aviao:active:not(:disabled) { background: var(--gold-press); transform: translateY(1px); }
.btn-aviao:disabled { opacity: .45; cursor: not-allowed; }
.composer-nota { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }

/* ===== Extrato ============================================================ */
.extrato {
  border-left: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  min-width: 0;
}
.extrato-cabeca {
  padding: 18px 20px;
  border-bottom: 1px solid var(--subtle);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.extrato-titulo { margin: 0; font-size: 14px; font-weight: 600; }
.extrato-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
/* Item 4 (21/08/2026): o nome da unidade recebe o MESMO FORMATO das etiquetas
   de status dos títulos vencidos — mesmo tamanho, peso, raio e recuo de
   .chip-status. A cor é a do acento da marca, e não a de "vencido": pintar o
   nome da empresa de vermelho leria como alerta sobre a empresa. */
.extrato-empresa {
  margin: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--subtle);
}
.chip-unidade {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--tint-2);
  color: var(--gold-text);
  white-space: nowrap;
}
.extrato-empresa-total {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.extrato-linha {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 12px 20px;
  border: none;
  border-bottom: 1px solid var(--subtle);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: var(--transicao);
}
.extrato-linha:hover { background: var(--tint); box-shadow: inset 3px 0 0 var(--gold); }
.extrato-linha:active { background: var(--surface-sunk); }
.extrato-topo, .extrato-baixo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.extrato-baixo { margin-top: 3px; }
.extrato-valor { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.extrato-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.extrato-nosso { font-size: 12px; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; }
.extrato-venc { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.extrato-nota { margin: 0; padding: 16px 20px 24px; font-size: 12px; color: var(--muted); }
.extrato-vazio { margin: 0; padding: 20px; font-size: 13px; color: var(--muted); }

/* ===== Sessão expirada e toast =========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 14, 0.65);
  padding: 24px;
}
.modal-caixa {
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  padding: 28px;
}
.modal-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal-caixa h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.modal-caixa p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.modal-caixa .acoes { margin-top: 22px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e1a22;
  color: #eaf1f5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 12px 18px;
  font-size: 13.5px;
  max-width: calc(100vw - 48px);
  animation: sobe 160ms ease-out;
}
.toast-erro { background: #2a1614; color: #ffd9d4; }
.toast-erro .ico-check { color: var(--st-vencido-fg); }

/* ===== Responsivo ======================================================== */
@media (max-width: 1023px) {
  /* Abaixo de 1024px a página volta a rolar inteira e o extrato desce para
     baixo da conversa, ocupando a largura toda. */
  body.travada { height: auto; overflow: visible; }
  .tela-centro { padding: 32px 16px; }
  #tela-otp { padding: 24px 16px 48px; }
  .login-grid, .otp-grid { grid-template-columns: 1fr; gap: 28px; }
  .portal-grid { grid-template-columns: 1fr; }
  .conversa { max-height: 65vh; }
  .extrato {
    border-left: none;
    border-top: 1px solid var(--border);
    overflow: visible;
  }
  .extrato-cabeca { position: static; }
  .faixa-resumo { gap: 20px; }
  .resumo-div { display: none; }
  .pitch h1 { font-size: 26px; }
  .cartao-acesso, .otp-cabeca, .otp-corpo { padding-left: 20px; padding-right: 20px; }
  .bloco-email { margin-left: 20px; margin-right: 20px; }
  .otp-caixa { width: 100%; min-width: 0; height: 56px; font-size: 20px; }
  .passos { flex-wrap: wrap; }
  .btn, .extrato-linha, .chip-sugestao, .opcao-email { min-height: 44px; }
  .btn-xs, .btn-detalhes { min-height: 36px; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .sessao { gap: 8px; }
  .sessao-doc { display: none; }
  .conversa, .composer { padding-left: 16px; padding-right: 16px; }
  .msg--cliente .msg-corpo { max-width: 92%; }
  .otp-caixas { gap: 6px; }
}

/* E-mail de contato do financeiro na 2ª página (item 2, 21/08/2026). */
.ajuda-email {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold-text) 45%, transparent);
  text-underline-offset: 2px;
  /* break-all quebrava "contasareceber" no meio ("contas / areceber@..."), o que
     dificulta ler e copiar o endereço. break-word só quebra quando a palavra
     não cabe sozinha na linha. */
  overflow-wrap: break-word;
}
.ajuda-email:hover { color: var(--gold-hover); }

/* ===== Portal sem conversa (bloqueador 5 da auditoria de 04/09/2026) ===== */
.aviso-sem-agente {
  padding: 16px 18px;
  margin-bottom: 18px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.aviso-sem-agente .aviso-titulo {
  margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text);
}
.aviso-sem-agente .aviso-texto {
  margin: 0; font-size: 13px; color: var(--text-2); max-width: 68ch;
}
/* Piscada ao clicar no extrato, para o olho achar a ficha correspondente. */
.ficha-destacada { box-shadow: 0 0 0 2px var(--gold); transition: box-shadow 180ms ease; }
