/* Portal Reaver Organic calibrado 2.1.0 — camada de tela.
   Carrega depois de fontes.css e tokens.css (copia de design/reaver-organic).
   Use papeis semanticos --re-* e aliases de transicao --ro-*; nao escreva HEX aqui.
   Regras: Caprasimo so em titulos; Figtree em texto e dados; IBM Plex Mono so
   em identificadores; controles >= 44px; foco visivel; numeros tabulares;
   informacao nunca so por cor. */

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ro-text);
  background: var(--ro-background);
  font-family: var(--ro-font-body);
  font-size: var(--ro-size-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0 0 var(--ro-space-4); font-family: var(--ro-font-heading); font-weight: 400; line-height: 1.15; color: var(--ro-brand); }
h1 { font-size: var(--ro-size-h2); }
h2 { font-size: var(--ro-size-h3); }
h3 { font-size: var(--ro-size-lead); }
p { margin: 0 0 var(--ro-space-4); }
a { color: var(--ro-action); text-underline-offset: 0.2em; }
a:hover { color: var(--ro-hover); }
a:active { color: var(--ro-active); }
.identificador, code, kbd { font-family: var(--ro-font-mono); font-size: 0.95em; }
.numero, td, .tabular { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--re-focus-light); outline-offset: 3px; border-radius: var(--ro-radius-sm); }

.skip-link { position: absolute; left: var(--ro-space-4); top: 0; transform: translateY(-150%); max-width: calc(100% - var(--ro-space-8)); z-index: 10; padding: var(--ro-space-3) var(--ro-space-6); background: var(--ro-action); color: var(--ro-on-action); border-radius: var(--ro-radius-pill); font-weight: 700; }
.skip-link:focus { top: var(--ro-space-4); transform: none; color: var(--ro-on-action); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- estrutura ---- */
.topo { border-bottom: 1px solid var(--ro-border); background: var(--ro-surface); }
.topo-conteudo { max-width: var(--ro-layout-content); margin: 0 auto; padding: var(--ro-space-3) var(--ro-space-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--ro-space-4); }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca img { display: block; height: 36px; width: auto; }
.marca .marca-clara { display: none; }
[data-theme="escuro"] .marca-salvia { display: none; }
[data-theme="escuro"] .marca-clara { display: block; }
.operadora-atual { margin-left: auto; color: var(--ro-muted); font-size: var(--ro-size-small); }
.operadora-atual strong { color: var(--ro-text); font-weight: 600; }

.menu { max-width: var(--ro-layout-content); margin: 0 auto; padding: 0 var(--ro-space-6) var(--ro-space-3); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ro-space-2); }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--ro-space-6); border-radius: var(--ro-radius-pill); color: var(--ro-text); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.menu a:hover { border-color: var(--ro-border); }
/* Item atual: forma (borda + sublinhado) e texto (aria-current), nao so cor. */
.menu a[aria-current="page"] { border-color: var(--ro-brand); text-decoration: underline; text-decoration-thickness: 2px; }

.principal { max-width: var(--ro-layout-content); margin: 0 auto; padding: var(--ro-space-8) var(--ro-space-6) var(--ro-space-16); overflow-wrap: anywhere; }
.leitura { max-width: var(--ro-layout-reading); }
.rodape { border-top: 1px solid var(--ro-border); color: var(--ro-muted); font-size: var(--ro-size-small); }
.rodape-conteudo { max-width: var(--ro-layout-content); margin: 0 auto; padding: var(--ro-space-6); display: flex; flex-wrap: wrap; gap: var(--ro-space-4); align-items: center; justify-content: space-between; }

/* ---- controles ---- */
.botao, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ro-space-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--ro-space-6);
  border: 1px solid var(--ro-action); border-radius: var(--re-op-radius);
  background: var(--ro-action); color: var(--ro-on-action);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background-color var(--ro-motion-duration) var(--ro-motion-easing);
}
.botao:hover, button:hover { background: var(--ro-hover); border-color: var(--ro-hover); color: var(--ro-on-action); }
.botao:active, button:active { background: var(--ro-active); border-color: var(--ro-active); }
.botao-secundario { background: transparent; color: var(--ro-action); }
.botao-secundario:hover { color: var(--ro-on-action); }
.botao-perigo { background: transparent; color: var(--ro-text); border-color: var(--ro-border); }
.botao-perigo:hover { color: var(--ro-on-action); }
/* Acao destrutiva em duas etapas, sem JavaScript: abre, explica o efeito e so entao envia. */
.confirmacao summary { list-style: none; }
.confirmacao summary::-webkit-details-marker { display: none; }
.confirmacao[open] summary { margin-bottom: var(--ro-space-2); }
.confirmacao form { max-width: 22rem; padding: var(--ro-space-3) var(--ro-space-4); border: 2px solid var(--ro-border); border-radius: var(--ro-radius-md); background: var(--ro-surface); }
.confirmacao p { margin-bottom: var(--ro-space-3); font-size: var(--ro-size-small); }

label { display: block; margin-bottom: var(--ro-space-1); font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"], select {
  display: block; width: 100%; max-width: 28rem; min-height: 44px; padding: var(--ro-space-2) var(--ro-space-4);
  border: 1px solid var(--ro-border); border-radius: var(--ro-radius-sm);
  background: var(--ro-surface); color: var(--ro-text); font: inherit;
}
.campo { margin-bottom: var(--ro-space-6); }
.ajuda { color: var(--ro-muted); font-size: var(--ro-size-small); }
.erro { margin: var(--ro-space-1) 0 0; font-weight: 600; }
.erro::before { content: "Erro: "; }

.tema-visual { display: flex; gap: var(--ro-space-2); align-items: center; flex-wrap: wrap; }
.tema-visual label { margin: 0; font-weight: 400; }
.tema-visual select { width: auto; }

/* ---- conteudo ---- */
.cartoes { list-style: none; margin: 0 0 var(--ro-space-8); padding: 0; display: grid; gap: var(--ro-space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.cartao { padding: var(--ro-space-6); border: 1px solid var(--ro-border); border-radius: var(--ro-radius-md); background: var(--ro-surface); }
.cartao h3 { margin-bottom: var(--ro-space-2); }
.rotulo { display: inline-block; padding: 0 var(--ro-space-3); border: 1px solid var(--ro-border); border-radius: var(--ro-radius-pill); font-size: var(--ro-size-caption); font-weight: 600; color: var(--ro-text); }
.lista { list-style: none; margin: 0 0 var(--ro-space-8); padding: 0; }
.lista li { padding: var(--ro-space-3) 0; border-bottom: 1px solid var(--ro-border); }
.meta { color: var(--ro-muted); font-size: var(--ro-size-small); }

/* Avisos sempre com texto de rotulo, nunca so cor. */
.aviso { margin: 0 0 var(--ro-space-6); padding: var(--ro-space-4) var(--ro-space-6); border: 2px solid var(--ro-border); border-radius: var(--ro-radius-md); background: var(--ro-surface); }
.aviso strong:first-child { display: block; margin-bottom: var(--ro-space-1); }
.mensagens { list-style: none; margin: 0 0 var(--ro-space-6); padding: 0; }
.mensagens li { margin-bottom: var(--ro-space-2); padding: var(--ro-space-3) var(--ro-space-6); border-left: 6px solid var(--ro-brand); background: var(--ro-surface); border-radius: var(--ro-radius-sm); }

table { width: 100%; border-collapse: collapse; margin-bottom: var(--ro-space-8); }
th, td { text-align: left; padding: var(--ro-space-3); border-bottom: 1px solid var(--ro-border); vertical-align: top; }
th { font-weight: 700; }

.player { position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin-bottom: var(--ro-space-6); border-radius: var(--ro-radius-md); overflow: hidden; background: var(--ro-surface); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- entrada ---- */
.entrada { min-height: 100vh; display: grid; place-items: center; padding: var(--ro-space-6); }
.entrada-cartao { width: 100%; min-width: 0; max-width: 30rem; padding: var(--ro-space-8); border: 1px solid var(--ro-border); border-radius: var(--re-form-card-radius); background: var(--ro-surface); }
.entrada-cartao .marca { margin-bottom: var(--ro-space-6); }

/* ---- Situacao da Operadora ---- */
/* Estagio: sempre com rotulo de texto; a borda muda de forma, nunca so de cor. */
.estagio { display: inline-block; padding: 0 var(--ro-space-3); border: 2px solid var(--ro-border); border-radius: var(--ro-radius-pill); background: var(--ro-surface); color: var(--ro-text); font-size: var(--ro-size-small); font-weight: 600; white-space: nowrap; }
.estagio-divergencia { border-style: double; border-width: 4px; border-color: var(--ro-brand); }
.estagio-sem_evidencia, .estagio-nenhum { border-style: dashed; color: var(--ro-muted); }
/* Estagios com decisao: forma (preenchimento), nunca a cor de acao (terracota e so de acao). */
.estagio-decidido_1, .estagio-decidido_2, .estagio-cobrado_ou_encerrado { border-color: var(--ro-text); background: var(--ro-background); }
.aviso-atencao { border-color: var(--ro-brand); border-width: 4px; }
.aviso-divergencia { border-style: double; border-width: 4px; border-color: var(--ro-brand); }
.data-situacao-linha { font-size: var(--ro-size-lead); }
.atalhos { display: flex; flex-wrap: wrap; gap: var(--ro-space-3); margin: 0 0 var(--ro-space-8); }
.contagem-estagios { list-style: none; margin: 0 0 var(--ro-space-8); padding: 0; display: flex; flex-wrap: wrap; gap: var(--ro-space-2); }
.contagem-estagios a { display: inline-flex; align-items: center; gap: var(--ro-space-2); min-height: 44px; padding: 0 var(--ro-space-3); border: 1px solid var(--ro-border); border-radius: var(--ro-radius-md); color: var(--ro-text); text-decoration: none; }
.contagem-estagios a[aria-current="true"] { border-width: 3px; border-color: var(--ro-action); }
.tabela-rolavel { max-width: 100%; overflow-x: auto; margin-bottom: var(--ro-space-8); border: 1px solid var(--ro-border); border-radius: var(--re-card-radius); background: var(--ro-surface); }
/* Ressalva compacta: uma linha, detalhe sob demanda. */
.ressalva { margin: 0 0 var(--ro-space-6); color: var(--ro-muted); font-size: var(--ro-size-small); }
.ressalva summary { display: list-item; min-height: 44px; padding-top: var(--ro-space-3); cursor: pointer; }
.ressalva p { margin: 0 0 var(--ro-space-2); max-width: var(--ro-layout-reading); }
/* Prazos: resumo por faixa, sempre em texto. */
.faixas-prazo { list-style: none; margin: 0 0 var(--ro-space-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--ro-space-2) var(--ro-space-6); }
.faixas-prazo .numero { font-weight: 700; font-size: var(--ro-size-lead); }
.ficha .valor { text-align: left; font-weight: 700; }
td .identificador, td.identificador { white-space: nowrap; }
.tabela-rolavel table { margin-bottom: 0; }
caption { text-align: left; font-weight: 700; padding-bottom: var(--ro-space-2); }
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--ro-space-3) var(--ro-space-6); margin: 0 0 var(--ro-space-8); }
.ficha dt { font-weight: 600; font-size: var(--ro-size-small); color: var(--ro-muted); }
.ficha dd { margin: 0; overflow-wrap: anywhere; }
.hash { word-break: break-all; }
.painel { position: relative; aspect-ratio: 16 / 10; max-width: 100%; margin-bottom: var(--ro-space-4); border: 1px solid var(--ro-border); border-radius: var(--ro-radius-md); overflow: hidden; background: var(--ro-surface); }
.painel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 560px) {
  .topo-conteudo, .menu, .principal { padding-left: var(--ro-space-4); padding-right: var(--ro-space-4); }
  .operadora-atual { margin-left: 0; width: 100%; }
  .menu a { padding: 0 var(--ro-space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topo, .menu, .rodape, .skip-link, .tema-visual { display: none; }
  body { background: var(--ro-color-neutral-100); color: var(--ro-color-text); }
}

/* Contexto operacional: compactação explícita sobre a identidade Organic. */
.portal-operacional { font-size: var(--re-op-body); }
.portal-operacional h1, .portal-operacional h2, .portal-operacional h3 { font-family: var(--re-op-heading); font-weight: 700; color: var(--ro-text); overflow-wrap: anywhere; }
.portal-operacional h1 { font-size: var(--re-size-h1-operational); letter-spacing: -.025em; }
.portal-operacional h2 { font-size: 1.35rem; margin-top: var(--ro-space-8); }
.portal-operacional h3 { font-size: 1.1rem; margin-top: var(--ro-space-6); }
.portal-operacional .principal { max-width: var(--re-layout-console); min-width: 0; padding-top: var(--ro-space-6); }
.portal-operacional table { font-size: var(--re-op-table); }
.portal-operacional th { font-size: var(--re-size-caption); color: var(--ro-muted); background: var(--ro-surface); }
.portal-operacional th, .portal-operacional td { padding: 8px var(--ro-space-3); }
.portal-operacional td.numero, .portal-operacional th.numero { text-align: right; }
.portal-operacional td > a, .portal-operacional td > .identificador > a { display: inline-flex; align-items: center; min-height: 44px; }
.portal-operacional .estagio { font-size: var(--re-size-caption); white-space: normal; }
.portal-operacional .contagem-estagios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--ro-space-2); }
.portal-operacional .contagem-estagios li { min-width: 0; }
.portal-operacional .contagem-estagios a { display: flex; justify-content: space-between; height: 100%; padding: var(--ro-space-2) var(--ro-space-3); border-radius: var(--re-op-radius); background: var(--ro-surface); }
.portal-operacional .contagem-estagios .estagio { border: 0; padding: 0; background: transparent; color: inherit; }
.portal-operacional .contagem-estagios a[aria-current="true"] { border-width: 2px; border-color: var(--ro-brand); background: var(--re-brand-light); color: var(--re-brand); }
.portal-operacional .contagem-estagios a > .numero { font-size: 1.25rem; font-weight: 700; }
.portal-operacional .data-situacao-linha { font-size: 1rem; }
.portal-operacional .ficha { background: var(--ro-surface); border: 1px solid var(--ro-border); border-radius: var(--re-card-radius); padding: var(--ro-space-4); }
.portal-operacional .ficha > div { min-width: 0; }
.portal-operacional .cartao h2 { margin-top: 0; }
.portal-operacional .atalhos .botao { font-size: var(--re-size-table); font-weight: 600; }
.portal-operacional .paginacao { display: flex; flex-wrap: wrap; gap: var(--ro-space-3); align-items: center; margin-block: var(--ro-space-4) var(--ro-space-8); }
.portal-operacional .paginacao a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--ro-space-3); }
.topo-conteudo { max-width: var(--re-layout-console); min-height: var(--re-op-header-min); padding-block: var(--ro-space-2); }
.topo-conteudo .marca img { height: 30px; }
.operadora-atual { margin-bottom: 0; max-width: 65ch; font-size: var(--re-size-caption); }
.navegacao-global { font: 600 var(--re-size-table)/1.4 var(--ro-font-body); }
.topo > .navegacao-global, .acv-header > .navegacao-global { max-width: var(--re-layout-console); margin: auto; padding: 0 var(--ro-space-6) var(--ro-space-3); }
.navegacao-global ul { display: flex; flex-wrap: wrap; gap: var(--ro-space-2); padding: 0; margin: 0; list-style: none; }
.navegacao-global li { min-width: 0; }
.navegacao-global a { display: inline-flex; align-items: center; justify-content: center; gap: var(--ro-space-2); min-height: 44px; max-width: 100%; padding: var(--ro-space-2) var(--ro-space-3); border: 1px solid var(--ro-border); border-radius: var(--re-op-radius); color: var(--ro-text); text-decoration: none; overflow-wrap: anywhere; }
.navegacao-global a:hover { border-color: var(--ro-action); background: var(--ro-background); }
.navegacao-global a[aria-current="page"] { border: 2px solid var(--ro-brand); background: var(--re-brand-light); color: var(--re-brand); font-weight: 700; }
.navegacao-global .destino-institucional { border-color: var(--ro-border); color: var(--ro-text); }
.menu-toggle { display: none; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.rodape-conteudo { max-width: var(--re-layout-console); align-items: flex-start; justify-content: space-between; }
.rodape-conteudo > p { margin-bottom: 0; max-width: 46ch; }
.rodape-conteudo .navegacao-global { flex: 1 1 30rem; }
.rodape-conteudo .navegacao-global a { font-size: var(--re-size-caption); }
.rodape-conta { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--ro-space-4); width: 100%; }
.mensagens .mensagem { display: flex; align-items: flex-start; gap: var(--ro-space-3); border: 1px solid var(--ro-border); border-radius: var(--re-card-radius); }
.mensagem-icone { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mensagens .mensagem-success { color: var(--re-success-text); background: var(--re-success-bg); border-color: var(--re-success-text); }
.mensagens .mensagem-error { color: var(--re-error-text); background: var(--re-error-bg); border-color: var(--re-error-text); }
.mensagens .mensagem-info { color: var(--re-info-text); background: var(--re-info-bg); }
.mensagens .mensagem-warning { border: 2px solid var(--ro-action); }
.erro { color: var(--re-error-text); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--re-error-text); }
button:disabled, .botao[aria-disabled="true"] { cursor: not-allowed; background: var(--ro-background); color: var(--ro-muted); border-color: var(--ro-border); }
input[type="search"], textarea { min-height: 44px; max-width: 100%; font: inherit; color: var(--ro-text); background: var(--ro-surface); border: 1px solid var(--ro-border); border-radius: var(--re-op-radius); padding: var(--ro-space-2) var(--ro-space-3); }
input::placeholder, textarea::placeholder { color: var(--ro-muted); opacity: 1; }
.entrada-cartao input, .entrada-cartao select { min-height: var(--re-control-form); }
.entrada-cartao h1 { font-size: 2rem; }
.entrada-cartao .meta { margin-top: var(--ro-space-6); }
[data-theme="escuro"] .navegacao-global a[aria-current="page"], [data-theme="escuro"] .portal-operacional .contagem-estagios a[aria-current="true"] { color: var(--ro-text); background: var(--ro-background); }
@media (max-width: 850px) {
  .portal-js .menu-toggle { display: inline-flex; margin-left: auto; }
  .portal-js [data-menu-panel][data-open="false"] { display: none; }
  .topo > .navegacao-global ul, .acv-header > .navegacao-global ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topo > .navegacao-global a, .acv-header > .navegacao-global a { width: 100%; justify-content: flex-start; }
  .operadora-atual { order: 3; width: 100%; max-width: none; margin-left: 0; }
  .topo-conteudo { min-height: 76px; }
}
@media (max-width: 540px) {
  .portal-operacional h1 { font-size: 1.85rem; }
  .portal-operacional .principal { padding-inline: var(--ro-space-4); }
  .topo > .navegacao-global, .acv-header > .navegacao-global { padding-inline: var(--ro-space-4); }
  .topo > .navegacao-global ul, .acv-header > .navegacao-global ul { grid-template-columns: 1fr; }
  .portal-operacional .atalhos { display: grid; grid-template-columns: 1fr; }
  .portal-operacional .atalhos a { justify-content: flex-start; text-align: left; padding-block: var(--ro-space-2); }
  .rodape-conteudo { padding-inline: var(--ro-space-4); }
  .rodape-conteudo .navegacao-global ul { display: grid; grid-template-columns: 1fr; }
  .entrada { padding: var(--ro-space-4); }
  .entrada-cartao { padding: var(--ro-space-6); }
}

/* Mesa de trabalho e identidade comum — 22/11/2026. */
body { font-synthesis: none; }
.portal-cabecalho .topo-conteudo { min-height:88px; padding-block:var(--re-s4); gap:var(--re-s6); }
.portal-cabecalho .marca img { height:auto; width:160px; }
.portal-cabecalho .navegacao-global a { border:1px solid transparent; border-radius:var(--re-r-pill); padding:var(--re-s2) var(--re-s4); }
.portal-cabecalho .navegacao-global a:hover { background:var(--re-sand); border-color:var(--re-divider); }
.portal-cabecalho .navegacao-global a[aria-current] { background:var(--re-brand); color:var(--re-on-action); border-color:var(--re-brand); text-decoration:underline; }
.portal-identidade { border-top:1px solid var(--re-divider); background:var(--re-bg); }
.portal-identidade p { max-width:var(--re-layout-console); padding:var(--re-s2) var(--re-s6); margin:auto; display:flex; flex-wrap:wrap; gap:var(--re-s2) var(--re-s6); font-size:var(--re-size-caption); color:var(--re-muted); }
.portal-identidade strong { color:var(--re-brand); font-weight:600; }
.portal-conta { position:relative; margin-left:auto; flex:none; }
.portal-conta summary { display:flex; align-items:center; gap:var(--re-s3); min-height:44px; padding:var(--re-s2) var(--re-s3); font-size:var(--re-size-table); font-weight:600; cursor:pointer; list-style:none; border:1px solid transparent; border-radius:var(--re-r-pill); }
.portal-conta summary::-webkit-details-marker { display:none; }
.portal-conta[open] summary,.portal-conta summary:hover { border-color:var(--re-border); background:var(--re-bg); }
.portal-conta-menu { position:absolute; right:0; top:calc(100% + var(--re-s2)); z-index:40; width:320px; max-width:calc(100vw - 35.2px); padding:var(--re-s6); background:var(--re-surface); border:1px solid var(--re-border); border-radius:var(--re-r-md); box-shadow:0 12px 36px color-mix(in srgb,var(--re-text) 12%,transparent); overflow-wrap:anywhere; }
.portal-conta-menu>strong { display:block; margin-bottom:var(--re-s2); }
.portal-conta-menu>a { min-height:44px; display:flex; align-items:center; padding-block:var(--re-s2); font-size:var(--re-size-table); font-weight:600; }
.portal-conta-menu form { margin-top:var(--re-s3); padding-top:var(--re-s3); border-top:1px solid var(--re-divider); }
.portal-sair { padding:var(--re-s2) 0; background:transparent; color:var(--re-action); border:0; font-size:var(--re-size-table); border-radius:var(--re-r-sm); }
.portal-sair:hover { background:var(--re-bg); color:var(--re-hover); }
.portal-sobretitulo { margin:0 0 var(--re-s4); font-size:var(--re-size-caption); font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--re-brand); }
.rodape-conteudo { align-items:center; gap:var(--re-s6); padding-block:var(--re-s6); }
.rodape-assinatura .marca img { width:120px; height:auto; }
.rodape-assinatura p { margin:var(--re-s2) 0 0; font-size:var(--re-size-caption); }
.rodape-mensagem { margin:0; font-size:var(--re-size-table); }
.rodape-institucional { display:inline-flex; align-items:center; gap:var(--re-s3); min-height:44px; font-weight:600; }
.portal-inicio .principal { max-width:var(--re-layout-content); padding:var(--re-s12) var(--re-s6) var(--re-s8); }
.portal-inicio h1,.portal-inicio h2 { font-family:var(--re-display); font-weight:400; letter-spacing:-.025em; }
.portal-inicio h1 { font-size:clamp(2.4rem,4.1vw,4rem); line-height:1.12; margin:0; }
.portal-inicio h2 { font-size:clamp(1.6rem,2.2vw,2.1rem); line-height:1.2; margin:0; color:inherit; }
.inicio-abertura { display:flex; justify-content:space-between; align-items:end; gap:var(--re-s8); margin-bottom:var(--re-s12); }
.inicio-apresentacao { color:var(--re-muted); max-width:340px; margin:0; line-height:1.8; }
.inicio-espacos { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:var(--re-s6); }
.inicio-espacos-acervo { grid-template-columns:1fr; }
.inicio-situacao { background:var(--re-brand); color:var(--re-on-action); padding:var(--re-s8); border-radius:var(--re-r-lg); display:flex; flex-direction:column; align-items:start; }
.inicio-rotulo { display:flex; align-items:center; justify-content:space-between; gap:var(--re-s4); width:100%; margin:0 0 var(--re-s8); font-size:var(--re-size-caption); font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.inicio-rotulo svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.inicio-situacao h2 { font-size:clamp(1.8rem,2.7vw,2.6rem); }
.inicio-situacao>p:not(.inicio-rotulo):not(.inicio-ressalva) { max-width:44ch; margin:var(--re-s4) 0 var(--re-s6); }
.inicio-acao { display:inline-flex; align-items:center; justify-content:space-between; gap:var(--re-s6); min-height:48px; padding:var(--re-s3) var(--re-s6); border-radius:var(--re-r-pill); text-decoration:none; font-weight:600; transition:background-color var(--re-duration) var(--re-easing); }
.inicio-acao-clara { background:var(--re-surface); color:var(--re-brand); }
.inicio-acao-clara:hover { background:var(--re-sand); color:var(--re-brand); }
.inicio-situacao :focus-visible { outline-color:var(--re-focus-dark); }
.inicio-origem { margin-top:var(--re-s8); padding-top:var(--re-s4); border-top:1px solid var(--re-on-action); width:100%; }
.inicio-origem p { margin:0 0 var(--re-s1); font-size:var(--re-size-table); }
.inicio-origem .inicio-origem-rotulo { font-size:var(--re-size-caption); letter-spacing:.08em; text-transform:uppercase; }
.inicio-origem time { font-weight:600; font-variant-numeric:tabular-nums; }
.inicio-situacao .inicio-ressalva { margin:var(--re-s4) 0 0; font-size:var(--re-size-caption); max-width:52ch; }
.inicio-acervo { background:var(--re-surface); border:1px solid var(--re-divider); border-radius:var(--re-r-lg); padding:var(--re-s8) var(--re-s8) var(--re-s4); }
.inicio-acervo>p:not(.portal-sobretitulo) { color:var(--re-muted); margin:var(--re-s4) 0; max-width:45ch; }
.inicio-recursos { margin-top:var(--re-s6); }
.inicio-recursos a { display:flex; justify-content:space-between; align-items:center; gap:var(--re-s4); min-height:70px; padding:var(--re-s4) 0; border-top:1px solid var(--re-divider); text-decoration:none; color:var(--re-text); transition:color var(--re-duration); }
.inicio-recursos a:hover { color:var(--re-action); }
.inicio-recursos small { display:block; color:var(--re-muted); font-size:var(--re-size-table); margin-top:var(--re-s1); }
.inicio-mercado { display:flex; align-items:center; gap:var(--re-s6); background:var(--re-sand); border:1px solid transparent; border-radius:var(--re-r-lg); padding:var(--re-s6) var(--re-s8); margin-top:var(--re-s6); text-decoration:none; color:var(--re-text); transition:border-color var(--re-duration); }
.inicio-mercado:hover { border-color:var(--re-brand); color:var(--re-text); }
.inicio-mercado>svg { width:64px; height:64px; flex:none; fill:none; stroke:var(--re-brand); stroke-width:1.6; stroke-linecap:round; }
.inicio-mercado .portal-sobretitulo { margin-bottom:var(--re-s2); }
.inicio-mercado h2 { font-size:1.65rem; }
.inicio-mercado p:last-child { color:var(--re-muted); margin:var(--re-s2) 0 0; }
.inicio-mercado-acao { display:inline-flex; align-items:center; gap:var(--re-s4); margin-left:auto; min-height:44px; font-weight:600; color:var(--re-action); white-space:nowrap; }
@media(max-width:1100px) { .inicio-abertura { align-items:start; }.inicio-mercado { flex-wrap:wrap; }.inicio-mercado-acao { margin-left:90px; } }
@media(max-width:850px) { .portal-cabecalho .topo-conteudo { gap:var(--re-s2); }.portal-cabecalho .menu-toggle { margin-left:auto; }.portal-conta { margin-left:auto; }.portal-inicio .principal { padding-top:var(--re-s8); }.inicio-abertura { display:block; }.inicio-apresentacao { margin-top:var(--re-s6); }.inicio-espacos { grid-template-columns:1fr; }.inicio-mercado>svg { display:none; }.inicio-mercado-acao { margin-left:0; }.rodape-mensagem { display:none; } }
@media(max-width:540px) { .portal-cabecalho .marca img { width:125px; }.portal-cabecalho .topo-conteudo { padding-inline:var(--re-s4); }.portal-conta summary { font-size:var(--re-size-caption); padding-inline:var(--re-s2); }.portal-cabecalho .menu-toggle { padding-inline:var(--re-s3); font-size:var(--re-size-caption); }.portal-cabecalho .menu-toggle svg { display:none; }.portal-identidade p { padding-inline:var(--re-s4); }.portal-inicio .principal { padding-inline:var(--re-s4); }.inicio-abertura h1 br { display:none; }.inicio-situacao,.inicio-acervo,.inicio-mercado { padding:var(--re-s6); }.inicio-mercado-acao { white-space:normal; }.rodape-conteudo { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .inicio-acao,.inicio-recursos a,.inicio-mercado { transition:none; } }

/* Composição das tabelas: quantidade em destaque, participação na linha. */
.numero .quantidade { display: block; font-variant-numeric: tabular-nums; }
.numero .participacao { display: block; font-size: .875em; font-weight: 400; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* A comparação mantém as instâncias do mesmo ABI juntas, sem exigir JS. */
.comparacao-decisoes summary { min-height:44px; padding:var(--re-s3) var(--re-s4); cursor:pointer; font-weight:600; background:var(--re-surface); border:1px solid var(--re-border); border-radius:var(--re-r-sm); }
.comparacao-decisoes[open] summary { margin-bottom:var(--re-s4); }
