/* Radar de Dividendos: sistema visual compacto (D-121). Base: as telas originais de docs/img, com a paleta A (D-120).
   Feito para o computador (CLAUDE.md 10): letra 14 px, tabelas de linha única, detalhes recolhidos em "ver a conta".
   Cada tela pode ter o seu arquivo em static/telas/<tela>.css; o que vale para todas fica aqui. */

:root {
  --bg:          #101820;
  --surface:     #162230;
  --surface-2:   #1F2E3C;
  --border:      #2A3B4B;
  --text:        #EDF3F8;
  --text-muted:  #B4C1CC;
  --text-faint:  #A2B0BE;
  --control-border: #8196A8;
  --lateral: 68px;

  --accent:      #8ABAFF;
  --accent-soft: rgba(138, 186, 255, 0.14);
  --on-accent:   #0E1A26;
  --growth:      #C1B5E5;
  --growth-soft: rgba(193, 181, 229, 0.14);
  --warn:        #F1C478;
  --warn-soft:   rgba(241, 196, 120, 0.13);
  --danger:      #FFB3B3;
  --danger-soft: rgba(255, 179, 179, 0.13);

  --radius:      12px;
  --radius-sm:   6px;
  --space:       16px;
  --largura:     1280px;
  color-scheme: dark;
}

/* Tema claro (opcional, data-theme="light" no <html>) */
:root[data-theme="light"] {
  --bg: #F5F6F8; --surface: #FFFFFF; --surface-2: #F3F4F6; --border: #E5E7EB;
  --text: #111827; --text-muted: #4B5563; --text-faint: #626B78;
  --accent: #245B90; --accent-soft: rgba(36, 91, 144, 0.10); --on-accent: #FFFFFF;
  --growth: #624D82; --growth-soft: rgba(98, 77, 130, 0.10);
  --warn: #77500A; --warn-soft: rgba(119, 80, 10, 0.10);
  --danger: #9C3342; --danger-soft: rgba(156, 51, 66, 0.10);
  --control-border: #6A7E90;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; padding-left: var(--lateral);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num, .tabular, strong, b, meter { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a.link { color: var(--accent); }
a.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.titulo-tela { font-size: 20px; }
.titulo-card { font-size: 15px; }
h3 { font-size: 14px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.pequeno { font-size: 12px; color: var(--text-muted); }
.rotulo { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.heroi { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2; }
.forte { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salto { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.salto:focus { top: 8px; }

/* ---------------------------------------------------------------- topo: marca | título | busca | IA | pessoa */
.topo { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topo-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--space); min-height: 64px; display: flex; align-items: center; gap: 16px; }
.marca { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.marca b { font-weight: 700; font-size: 16px; }
.marca span { color: var(--text-muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.badge-alerta { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: #241A00;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.busca { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 0 10px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); color: var(--text-faint); }
.busca input { width: 150px; min-width: 0; background: transparent; border: 0; color: var(--text);
  border-radius: var(--radius-sm); padding: 7px 0; font: inherit; text-transform: uppercase; }
.busca kbd { border: 1px solid var(--border); padding: 0 5px; border-radius: 3px; font: inherit; font-size: 11px; }
.busca input::placeholder { text-transform: none; color: var(--text-faint); }
.status-ponto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.status-ponto.ok { background: var(--accent); }
.status-ponto.falha { background: var(--warn); }

/* sub-navegação do grupo ativo (abas finas logo abaixo do topo) */
.subnav { border-bottom: 1px solid var(--border); background: var(--bg); }
.subnav-in { max-width: var(--largura); margin: 0 auto; padding: 0 var(--space); display: flex; gap: 2px; }
.subnav a { padding: 9px 12px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.subnav a .qtd { color: var(--text-faint); font-size: 12px; margin-left: 4px; }

.conteudo { max-width: var(--largura); width: 100%; margin: 0 auto; padding: 20px var(--space) 36px; flex: 1; }
.rodape { border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12px; }
.rodape div { max-width: var(--largura); margin: 0 auto; padding: 12px var(--space); }

/* ---------------------------------------------------------------- cabeçalho de tela: título à esquerda, data/fontes à direita */
.cab-tela { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cab-tela .sub { font-size: 12px; color: var(--text-muted); }
.cab-tela .lado { font-size: 12px; color: var(--text-muted); text-align: right; }

/* ---------------------------------------------------------------- grid, cards, botões, campos */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-7 { grid-column: span 7; } .col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; min-width: 0; }
.card.justo { padding: 8px 12px; }
.card-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.empilha > * + * { margin-top: var(--space); }
.empilha-p > * + * { margin-top: 8px; }
.linha-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.espaco { flex: 1; }
.botao { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--on-accent); border: 0;
  border-radius: var(--radius-sm); padding: 7px 14px; font: 600 14px "Inter", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.botao:hover { color: var(--on-accent); filter: brightness(1.08); }
.botao.sec { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.botao.sec:hover { background: var(--surface-2); filter: none; }
.botao[disabled] { opacity: 0.45; cursor: not-allowed; }
.botao-discreto { color: var(--text-muted); font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: var(--radius-sm);
  white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit; }
.botao-discreto:hover { background: var(--surface-2); color: var(--text); }
.campo { background: var(--surface-2); border: 1px solid var(--control-border); color: var(--text); border-radius: var(--radius-sm); padding: 6px 10px; font: inherit; }
.campo.p { padding: 4px 8px; width: 90px; }
label.campo-rot { display: inline-flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-muted); }
.form-linha { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- estado de bloco, aviso de página, vazio */
.faixa { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--surface-2); color: var(--text-muted); border-left: 3px solid var(--text-faint); }
.faixa b { color: var(--text); font-weight: 600; white-space: nowrap; }
.faixa.desatualizado, .faixa.parcial, .faixa.atencao { background: var(--warn-soft); border-left-color: var(--warn); }
.faixa.desatualizado b, .faixa.parcial b, .faixa.atencao b { color: var(--warn); }
.faixa.indisponivel, .faixa.alerta { background: var(--danger-soft); border-left-color: var(--danger); }
.faixa.ok { background: var(--accent-soft); border-left-color: var(--accent); color: var(--text); }
.faixa.indisponivel b, .faixa.alerta b { color: var(--danger); }
.vazio { display: flex; gap: 10px; align-items: center; color: var(--text-muted); padding: 8px 0; }
.vazio .ico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center;
  justify-content: center; color: var(--text-faint); flex: none; }
.faixa.vazio { padding: 8px 12px; align-items: baseline; gap: 8px; }   /* estado "vazio" de c.estado é faixa, não .vazio */

/* ---------------------------------------------------------------- monograma */
.mono { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: hsl(var(--setor, 210) 55% 74%); font-weight: 700; font-size: 11px; letter-spacing: 0.02em; flex: none; }
:root[data-theme="light"] .mono { color: hsl(var(--setor, 210) 50% 30%); }
.mono.g { width: 52px; height: 52px; font-size: 17px; }

/* ---------------------------------------------------------------- nota (anel) */
.nota { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nota svg { transform: rotate(-90deg); }
.nota.p svg { width: 30px; height: 30px; }
.nota.g svg { width: 84px; height: 84px; }
.nota .trilho { stroke: var(--surface-2); }
.nota .arco { stroke-linecap: round; }
.nota.alta .arco { stroke: var(--accent); } .nota.media .arco { stroke: var(--text); } .nota.baixa .arco { stroke: var(--text-faint); }
.nota b { position: absolute; font-variant-numeric: tabular-nums; font-weight: 700; }
.nota.p b { font-size: 9px; } .nota.g b { font-size: 24px; }
.nota.alta b { color: var(--accent); } .nota.baixa b { color: var(--text-muted); }
.nota.sd { min-width: 30px; height: 30px; color: var(--text-faint); font-size: 10px; text-align: center; line-height: 1.2; }

/* ---------------------------------------------------------------- margem vs preço-teto (geometria do contrato) */
.margem { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.margem .trilho { position: relative; height: 6px; width: 70px; flex: none; background: var(--surface-2); border-radius: 3px; }
.margem .trecho { position: absolute; top: 0; height: 6px; border-radius: 3px; left: calc(min(var(--teto), var(--cotacao)) * 100%); width: calc((max(var(--teto), var(--cotacao)) - min(var(--teto), var(--cotacao))) * 100%); }
.margem .trecho.abaixo { background: var(--accent); }
.margem .trecho.acima { background: var(--text-faint); }
.margem .teto { position: absolute; top: -4px; left: calc(var(--teto) * 100%); width: 2px; height: 14px; background: var(--text); border-radius: 1px; }
.margem .ponto { position: absolute; top: -2px; left: calc(var(--cotacao) * 100%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); }
.margem .txt { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.margem .txt.abaixo { color: var(--accent); } .margem .txt.acima { color: var(--text-muted); }

/* ---------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap; line-height: 18px; border: 0; font-family: inherit; }
.chip.renda { background: var(--accent-soft); color: var(--accent); }
.chip.crescimento { background: var(--growth-soft); color: var(--growth); }
.chip.atencao, .chip.aviso { background: var(--warn-soft); color: var(--warn); }
.chip.alerta, .chip.reprovado { background: var(--danger-soft); color: var(--danger); }
.chip.info, .chip.neutro { background: var(--surface-2); color: var(--text-muted); }
.chip.ok { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
a.chip.filtro, button.chip.filtro { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); padding: 3px 10px; cursor: pointer; }
a.chip.filtro[aria-pressed="true"], button.chip.filtro[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* texto completo ao passar o mouse ou focar (chips de aviso, "sem dado", termos) */
.dica-alvo { position: relative; cursor: help; }
.dica-alvo .dica { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 25; width: min(340px, 80vw);
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 12.5px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; letter-spacing: normal; text-transform: none;
  font-style: normal; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.dica-alvo:hover .dica, .dica-alvo:focus .dica, .dica-alvo:focus-within .dica { display: block; }
.dica-alvo.dir .dica { left: auto; right: 0; }

/* "sem dado" / "não aplicável": mesmo tamanho do número, com o motivo na dica */
.sd { color: var(--text-faint); font-style: italic; text-decoration: underline dotted var(--text-faint); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- abas dentro da página */
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.abas a { padding: 8px 12px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.abas a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.abas a .qtd { color: var(--text-faint); font-size: 12px; margin-left: 4px; }

/* ---------------------------------------------------------------- tabela */
.tabela-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.t thead th { position: sticky; top: 64px; background: var(--surface); z-index: 1; font-size: 12px;
  color: var(--text-faint); font-weight: 500; text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t thead th.ord { cursor: pointer; user-select: none; }
table.t thead th.ord:hover { color: var(--text-muted); }
table.t thead th[aria-sort="ascending"]::after { content: " ▲"; }
table.t thead th[aria-sort="descending"]::after { content: " ▼"; }
table.t td { padding: 6px 10px; height: 44px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t.compacta td { height: 36px; padding: 4px 10px; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tbody tr.clicavel { cursor: pointer; }
table.t .dir, table.t th.dir { text-align: right; }
table.t .centro { text-align: center; }
table.t td.setor { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); font-size: 12px; }
table.t td .chips { max-width: 260px; }
table.t tr:last-child td { border-bottom: 0; }
.empresa-cel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.empresa-cel .nomes { min-width: 0; }
.empresa-cel .tk { font-weight: 600; }
.empresa-cel .nm { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; display: block; }

/* ---------------------------------------------------------------- pares rótulo/valor */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; margin: 0; }
.kv dt { color: var(--text-muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.numeros { display: flex; gap: 28px; flex-wrap: wrap; }
.numeros .n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.numeros .n strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- lista compacta (top 10, documentos, eventos) */
.lista li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); }
.lista li:last-child { border-bottom: 0; }
.lista .pos { color: var(--text-faint); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.lista .met { font-size: 12px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.itens > li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.itens > li:last-child { border-bottom: 0; }
.itens .tit { font-weight: 500; }
.itens .meta { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------- critério da nota */
.criterio { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 24px minmax(80px, 0.8fr); gap: 12px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.criterio:last-child { border-bottom: 0; }
.criterio .nome { font-weight: 500; }
.criterio .regra { font-size: 12px; color: var(--text-muted); grid-column: 1 / -1; margin-top: -4px; }
.criterio .valor { text-align: right; font-variant-numeric: tabular-nums; }
.criterio .st { text-align: center; }
.st.ok { color: var(--accent); } .st.falha { color: var(--danger); } .st.sd { color: var(--warn); }
.pontos { display: flex; align-items: center; gap: 8px; }
.pontos .barra { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.pontos .barra i { display: block; height: 100%; background: var(--accent); }
.pontos span { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- divisão Renda/Crescimento */
.dist { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); display: flex; }
.dist .r { width: calc(var(--renda) * 100%); background: var(--accent); border-radius: 5px 0 0 5px; }
.dist .c { width: calc((1 - var(--renda)) * 100%); background: var(--growth); border-radius: 0 5px 5px 0; }
.dist .alvo { position: absolute; top: -4px; left: calc(var(--alvo) * 100%); width: 2px; height: 18px; background: var(--text); }
.dist .faixa-alvo { position: absolute; top: -2px; left: calc(var(--faixa-de) * 100%); width: calc((var(--faixa-ate) - var(--faixa-de)) * 100%); height: 14px; border: 1px dashed var(--text-muted); border-radius: 3px; }

/* ---------------------------------------------------------------- detalhes ("ver a conta", fontes) */
details > summary { cursor: pointer; color: var(--text-muted); font-weight: 500; list-style: none; font-size: 13px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; } details[open] > summary::before { content: "▾ "; }
details.conta { margin-top: 10px; }
details.conta[open] > summary { margin-bottom: 8px; }
.carimbo { font-size: 12px; color: var(--text-faint); }

/* ---------------------------------------------------------------- gráficos SVG (geometria pronta do contrato) */
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; overflow: visible; }
.grafico .serie-1 { stroke: var(--text); fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.grafico .serie-2 { stroke: var(--text-muted); fill: none; stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.grafico .serie-3 { stroke: var(--accent); fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.grafico .grade { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grafico-eixo { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.legenda { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.legenda i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--text); vertical-align: middle; margin-right: 5px; }
.legenda i.tracejada { border-top: 2px dashed var(--text-muted); }

/* ---------------------------------------------------------------- paginação */
.paginacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); padding-top: 10px; }

/* Casca de produto: trilho de navegação, título e ferramentas da pessoa. */
.icone { flex: none; vertical-align: middle; }
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lateral); z-index: 40; display: flex; align-items: center;
  flex-direction: column; gap: 22px; padding: 12px 0; background: var(--surface); border-right: 1px solid var(--border); }
.lateral-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.lateral-link:hover { color: var(--text); background: var(--surface-2); }
.lateral-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.lateral-link[aria-current="page"]::before { content: ''; position: absolute; left: -13px; width: 3px; height: 22px; background: var(--accent); border-radius: 0 3px 3px 0; }
.marca-radar { color: var(--accent); }
.marca-radar .icone { width: 28px; height: 28px; }
.lateral-dica { display: none; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 7px 10px;
  background: var(--surface-2); border: 1px solid var(--control-border); color: var(--text); border-radius: 5px; white-space: nowrap; font: 500 12px/1.4 Inter, system-ui, sans-serif; }
.lateral-link:hover .lateral-dica, .lateral-link:focus-visible .lateral-dica { display: block; }
.lateral-fim { margin-top: auto; display: grid; gap: 6px; }
.lateral-link .status-ponto { position: absolute; right: 5px; top: 6px; width: 6px; height: 6px; }
.lateral-link .badge-alerta { position: absolute; right: -2px; top: -2px; min-width: 16px; padding: 0 4px; line-height: 16px; }
.topo-identidade { min-width: 0; display: flex; align-items: center; gap: 22px; }
.topo-identidade .marca { font-size: 13px; font-weight: 700; }
.topo-titulo { font-size: 16px; font-weight: 600; border-left: 1px solid var(--border); padding-left: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perguntar-ia { font-size: 13px; }
.perguntar-ia.botao.sec { background: var(--text); border-color: var(--text); color: var(--surface); }
.perguntar-ia.botao.sec:hover { background: var(--text-muted); border-color: var(--text-muted); }
.topo-tema { position: relative; width: 32px; height: 32px; color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.topo-tema:hover { background: var(--surface-2); color: var(--text); }
.topo-tema .lateral-dica { left: auto; right: 0; top: calc(100% + 8px); transform: none; }
.topo-tema:hover .lateral-dica, .topo-tema:focus-visible .lateral-dica { display: block; }
.pessoa-menu { position: relative; flex: none; }
.pessoa-menu > summary { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 4px; }
.pessoa-menu > summary::before { content: none; }
.pessoa-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--growth-soft); color: var(--growth); font-size: 11px; font-weight: 700; }
.pessoa-nome { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-opcoes { position: absolute; top: calc(100% + 8px); right: 0; width: 240px; max-width: 80vw; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 32px #0004; }
.pessoa-opcoes p { padding: 4px 8px; }
.pessoa-opcoes a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.pessoa-opcoes a:hover, .pessoa-opcoes a[aria-current] { background: var(--surface-2); }
.ia-dialogo { max-width: 520px; width: calc(100% - 32px); color: var(--text); background: var(--surface); padding: 24px;
  border: 1px solid var(--control-border); border-radius: var(--radius); overscroll-behavior: contain; }
.ia-dialogo::backdrop { background: #050c14b8; }
.ia-dialogo > * + * { margin-top: 14px; }
.grid > *, .linha-flex > *, .faixa > span { min-width: 0; }
.faixa > span, .carimbo { overflow-wrap: anywhere; }
.tabela-wrap table.t th { top: 0; }
button, a, summary { touch-action: manipulation; }
[id] { scroll-margin-top: 80px; }
@media (max-width: 1100px) {
  .topo-identidade .marca span { display: none; }
  .topo-identidade { gap: 12px; }
  .topo-titulo { padding-left: 12px; }
  .topo-in { gap: 10px; }
  .pessoa-nome { max-width: 70px; }
}
@media (max-width: 760px) {
  :root { --lateral: 52px; --space: 12px; }
  .topo-in { flex-wrap: wrap; padding-block: 10px; }
  .topo-identidade .marca, .topo-in > .espaco { display: none; }
  .topo-titulo { padding-left: 0; border: 0; }
  .busca input { width: 110px; }
  .subnav-in { overflow-x: auto; }
  .grid > [class*="col-"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
