/*
 * grupos.css — CSS canônico extraído de _grupos_v2.py (R-2.1 refundação)
 *
 * Fonte: apps/analytics-rh/pages/_internal/styles/_grupos_v2.py (1.453 LOC)
 * Extração: byte-identical — removido apenas wrapper Python (def/import/CSS = """...""")
 * Story: 2.4.2 — Sub-aba Grupos AMS/N2
 * Owner: design-multicamadas (Forge) + analytics-rh
 * Proto canônico: prototipos/2026-05-06-final-v01/geral-grupos-final.html linhas 257-414
 * Validation: rh-manager >= 9.5/10 (G7)
 *
 * Namespaces preservados:
 *   .arh-grupo-*  .arh-grupos-*  .arh-card-*  .arh-kpi-*
 *   .arh-chip*    .arh-hc-*      .arh-badge-*  .arh-sparkline-*
 *   .arh-vol-*    .arh-flx-*     .arh-n2-*     .arh-footer-*
 *   .arh-dot-*    .arh-sub-*     .arh-volumetria-*
 *
 * INVENTÁRIO HEX HARDCODED (R-2.6 — NÃO substituído aqui, apenas catalogado):
 *   Vide comentário ao final deste arquivo.
 *
 * ⚠ NÃO editar manualmente — fonte canônica é _grupos_v2.py no projeto ativo.
 *    Substituições de token via R-2.6 consolidado.
 */

/* ════════════════════════════════════════════════════════════════════════
   TOKENS DE GRUPO E TIPO — migrados p/ appdata/design_tokens.py (R-2.6, 2026-07-04).
   --g-* (8 grupos AMS)      → ROOT_INVARIANTS (derivados de GRUPO_CORES, zero drift).
   --t-inc/-prazo/-sol/-evol → THEME_TOKENS['dark'/'light'] (badge/tipo; distintos
                               de TIPO_CORES por design — Gate-3 2026-05-09).
   Emitidos pelo styles_loader no bloco de tokens ANTES deste arquivo carregar →
   mesma cascata, mesmo resultado visual; só muda ONDE a declaração mora. O
   consumo via var(--g-*)/var(--t-*) no resto deste arquivo permanece inalterado.
   ════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   GRUPOS V2 — segmented AMS/N2 + cards enriquecidos + hover-tooltip
   Story 2.4.2 · Fonte: geral-grupos-final.html linhas 257-414
   ════════════════════════════════════════════════════════════════════════ */

/* ── Sub-tabs Geral (Volumetria / Grupos / Fluxos) ──────────────────────
   Modelo: geral-grupos-final.html .sub-tab — pill com border + border-radius 8px.
   Implementação usa st.columns + ui_components.button.tab_toggle (stBaseButton).
   KB §4: [data-testid="stBaseButton-secondary"] seletor estável.

   Estratégia (fix G-4 audit 2026-05-09):
   O sentinel .arh-geral-subtabs-sentinel é emitido em st.markdown() que cria
   um stElementContainer. O st.columns(3) subsequente cria um stHorizontalBlock
   irmão no mesmo stVerticalBlock pai.

   DOM estrutura real (KB §2):
     stVerticalBlock
       stElementContainer   ← tem .arh-geral-subtabs-sentinel
       stHorizontalBlock    ← contém as 3 colunas com os botões

   Seletor: stElementContainer:has(sentinel) + stHorizontalBlock (adjacent sibling).
   KB §5.2: :has() e + são suportados no Streamlit 1.55+ (Chrome 105+).
   ────────────────────────────────────────────────────────────────────────── */
.arh-geral-subtabs-sentinel { display: none; }

/* Container das sub-tabs: flex row, gap 4px, margin-bottom 24px
   Seletor: stHorizontalBlock que SEGUE imediatamente o stElementContainer com sentinel */
[data-testid="stElementContainer"]:has(.arh-geral-subtabs-sentinel)
+ [data-testid="stHorizontalBlock"] {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  align-items: center;
}

/* Cada coluna dentro do bloco de sub-tabs ocupa apenas o necessário */
[data-testid="stElementContainer"]:has(.arh-geral-subtabs-sentinel)
+ [data-testid="stHorizontalBlock"]
> [data-testid="stColumn"] {
  flex: 0 1 auto !important;
  min-width: 0;
  width: auto !important;
}

/* Botão secondary (inativo) — pill outline */
[data-testid="stElementContainer"]:has(.arh-geral-subtabs-sentinel)
+ [data-testid="stHorizontalBlock"]
[data-testid="stBaseButton-secondary"] {
  padding: 8px 20px !important;
  border-radius: var(--radius-md, 8px) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid var(--border-subtle) !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  white-space: nowrap;
}

[data-testid="stElementContainer"]:has(.arh-geral-subtabs-sentinel)
+ [data-testid="stHorizontalBlock"]
[data-testid="stBaseButton-secondary"]:hover {
  background: var(--surface-hover) !important;
  color: var(--text-primary) !important;
}

/* Botão primary (ativo) — accent sólido */
[data-testid="stElementContainer"]:has(.arh-geral-subtabs-sentinel)
+ [data-testid="stHorizontalBlock"]
[data-testid="stBaseButton-primary"] {
  padding: 8px 20px !important;
  border-radius: var(--radius-md, 8px) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid var(--accent-brand) !important;
  background: var(--accent-brand) !important;
  color: #fff !important;
}

/* ── Segmented wrapper ── */
.arh-grupos-segmented-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  /* PRINCÍPIO CRAVADO Matias R9 2026-05-21: remoção de título exige RESTAURAR
     respiro top no 1º elemento visível. Título antes dava 24+breadcrumb+title = ~60px.
     Agora segmented é o 1º elemento → margin-top: 24px compensa. */
  margin-top: 24px;
  margin-bottom: 20px;
}

/* #4 fix: margin-bottom no stElementContainer que contém o segmented wrapper.
   KB §2: gap:0 no stVerticalBlock raiz zera o gap entre stElementContainers —
   margin-bottom INTERNO (.arh-grupos-segmented-wrapper) não move o flex item.
   KB §5.2: atingir o stElementContainer pai via :has(.marker).
   Fonte canônica: geral-grupos-final.html .segmented-wrapper margin-bottom: 24px */
[data-testid="stElementContainer"]:has(.arh-grupos-segmented-wrapper) {
  margin-bottom: 24px !important;
}

.arh-grupos-segmented-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.arh-grupos-segmented-control {
  display: inline-flex;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.arh-grupos-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans, 'Inter', sans-serif);
  position: relative;
  transition: background-color 150ms ease, color 150ms ease;
}

.arh-grupos-seg-btn:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.arh-grupos-seg-btn.active {
  background: var(--accent-brand);
  color: #fff;
  box-shadow: 0 1px 4px rgba(29,78,216,.4);
}

.arh-grupos-seg-btn.active.n2-style {
  background: #2A3F58;
  color: var(--text-primary);
  box-shadow: none;
}

.arh-grupos-seg-btn:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent-brand));
  outline-offset: 2px;
}

.arh-grupos-seg-counter {
  font-size: 10px;
  font-weight: 500;
  opacity: .8;
  white-space: nowrap;
}

.arh-grupos-badge-soon {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ── Section header ── */
.arh-grupos-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  /* Fix R5 2026-05-20: garante 100% width do container (900px) — sem isso,
     o flex auto-shrinks ao min-content e o botão Gerenciar não alinha à
     borda direita real. */
  width: 100%;
}

.arh-grupos-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.arh-grupos-btn-gerenciar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(29,78,216,.4);
  color: var(--accent-brand-text);
  font-size: 11px;
  font-weight: 600;
  background: rgba(29,78,216,.08);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.arh-grupos-btn-gerenciar:hover {
  background: rgba(29,78,216,.15);
  border-color: rgba(29,78,216,.65);
}

/* ── Grid 4×2 ── */
.arh-grupos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;  /* Matias R8 2026-05-21: gap 16→12 (mais compacto entre cards) */
}

@media (max-width: 1100px) { .arh-grupos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .arh-grupos-grid { grid-template-columns: 1fr; } }

/* ── Card v2 ── */
.arh-grupo-card-v2 {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  /* Fix R5 2026-05-20: sem min-width:0 cada card respeita seu min-content
     (nome do grupo) e quebra `repeat(4, 1fr)` — cards transbordam à direita.
     min-width:0 permite o grid encolher as colunas igualmente. */
  min-width: 0;
}

.arh-grupo-card-v2:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated, 0 4px 12px rgba(0,0,0,.4));
}

/* Listra accent superior via --grupo-cor */
.arh-grupo-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grupo-cor, var(--accent-brand));
  opacity: .85;
  border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
}

/* ── Card head ── */
.arh-card-head {
  padding: 12px 14px 8px;  /* Matias R8 2026-05-21: 16/16/10 → 12/14/8 (compacto) */
  border-bottom: 1px solid var(--border-subtle);
}

.arh-card-head-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.arh-grupo-nome {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-primary);
  line-height: 1.2;
}

.arh-badge-rank {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.arh-badge-rank.rank-1 {
  background: rgba(29,78,216,.15);
  color: var(--accent-brand-text);
}

.arh-badge-rank.rank-2 {
  background: rgba(46,204,113,.12);
  color: var(--state-success);
}

/* ── Mini KPIs ── */
.arh-card-kpis {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.arh-kpi-item {
  flex: 1;
  padding: 8px 8px;  /* Matias R8 2026-05-21: 10/10 → 8/8 (compacto) */
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arh-kpi-item:last-child { border-right: none; }

.arh-kpi-item-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.arh-kpi-item-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Slot N/A para SLA omitido (Art. IV — sem mock) */
.arh-kpi-slot-na {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Sparkline placeholder ── */
.arh-card-sparkline {
  padding: 8px 14px 6px;  /* Matias R8 2026-05-21: 10/16/6 → 8/14/6 (compacto) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arh-sparkline-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ── Chips de consultores ── */
.arh-card-consultores {
  padding: 8px 14px 10px;  /* Matias R8 2026-05-21: 10/16/12 → 8/14/10 (compacto) */
  display: flex;
  flex-wrap: wrap;
  gap: 5px;  /* Matias R8: gap chips 6→5 */
  flex: 1;
  align-content: flex-start;
  /* Impede expansão excessiva quando há poucos chips (LAV ciclo 1) */
  min-height: 0;
  overflow-y: auto;
  max-height: 140px;
}

/* Sub-label separador (BASIS/PERFIL/PI/ABAP em AMS.TECNICO) */
.arh-sub-label {
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 1px;
}

.arh-sub-label:first-child { margin-top: 0; }

/* ── Chip consultor ── */
/* overflow: visible permite o hover-card (position:absolute) escapar do clip do chip.
   Truncamento de texto é aplicado ao span interno .arh-chip-label (não ao chip em si).
   Modelo: geral-grupos-final.html .chip max-width:140px overflow:hidden → aqui
   usamos abordagem alternativa compatível com Streamlit (hover-card não clippado). */
.arh-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  cursor: default;
  white-space: nowrap;
  max-width: 140px;
  overflow: visible;
  transition: border-color 150ms ease, background-color 150ms ease;
}

/* Texto truncado via span interno — permite hover-card escapar */
.arh-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  white-space: nowrap;
}

.arh-chip:hover {
  border-color: var(--border-default);
  background: var(--surface-hover);
}

.arh-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.arh-dot-ok   { background: var(--state-success); }
.arh-dot-warn { background: var(--state-warning); }
.arh-dot-bad  { background: var(--state-danger); }

/* ── Hover-card popup (Echo P1: :focus-within fecha teclado) ── */
/* AC5: .arh-chip:focus-within .arh-hover-card { display: flex; } */
.arh-chip:hover .arh-hover-card,
.arh-chip:focus-within .arh-hover-card {
  display: flex;
}

.arh-hover-card {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md, 8px);
  padding: 10px 12px;
  min-width: 180px;
  max-width: 220px;
  z-index: 200;
  box-shadow: var(--shadow-elevated, 0 8px 24px rgba(0,0,0,.25));
  pointer-events: none;
  white-space: normal;
}

.arh-hc-nome  {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.arh-hc-grupo {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Hover-card KPI strip (modelo: geral-grupos-final.html .hc-kpis) ── */
.arh-hc-kpis {
  display: flex;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2px;
}

.arh-hc-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 1;
}

.arh-hc-kpi-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.arh-hc-kpi-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ── Gap 1.2: sparkline + trend inline no mesmo container ──────────────
   .arh-sparkline-inline-group agrupa SVG e badge de trend na mesma linha,
   à direita do label "Aberturas 7d" (justify-content:space-between no pai).
   Fonte canônica: geral-grupos-final.html .card-sparkline (linha ~568-576).
   O SVG tem vertical-align:bottom via .arh-sparkline; trend-pct fica ao lado. */
.arh-sparkline-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ── Gap 2.1: SLA badge no cabeçalho do card ─────────────────────────
   Modelo: geral-grupos-final.html .sla-badge .sla-ok (linhas 318-321).
   Art. IV: valor placeholder — sem dado real de SLA por grupo. */
.arh-grupo-sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.arh-grupo-sla-badge-ok {
  background: rgba(46, 204, 113, 0.12);
  color: var(--state-success);
  border: 1px solid rgba(46, 204, 113, 0.20);
}

.arh-grupo-sla-badge-warn {
  background: rgba(217, 160, 32, 0.12);
  color: var(--state-warning);
  border: 1px solid rgba(217, 160, 32, 0.20);
}

/* BLOCKER-6 fix (Echo Gate 2 2026-05-09): inline style movido para classe.
   Dark: var(--state-danger) #E74C3C sobre rgba(231,76,60,.12) = 3.85:1 FALHA AA.
   Override dark usa #F87171 (red-400) = 5.32:1 PASS.
   Light: --state-danger #991B1B = 7.06:1 sobre bg blended PASS — mantido. */
.arh-grupo-sla-badge-bad {
  background: rgba(231, 76, 60, 0.12);
  color: var(--state-danger);
  border: 1px solid rgba(231, 76, 60, 0.20);
}
[data-theme="dark"] .arh-grupo-sla-badge-bad {
  color: #F87171; /* red-400: 5.32:1 sobre bg blendado dark PASS AA */
}

/* ── Gap 2.2: Footer SLA da seção Grupos ─────────────────────────────
   Modelo: geral-grupos-final.html (rodapé da view-ams, abaixo do grid).
   Art. IV: mensagem estática "Todos os grupos no prazo". */
.arh-grupos-sla-footer {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.20);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--state-success);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* ── Gap 1.3: chips de tipo horizontais (volumetria) ─────────────────
   O wrapper .arh-volumetria-chips e o retorno de _render_tipos_chips_html
   usam display:flex em linha — garantir que nenhum ancestral force column.
   stMarkdownContainer por default é block mas não força column nos filhos flex. */
.arh-volumetria-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

/* ── Card footer ── */
.arh-card-footer {
  padding: 8px 14px 10px;  /* Matias R8 2026-05-21: 10/16/12 → 8/14/10 (compacto) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.arh-footer-count {
  font-size: 10px;
  color: var(--text-muted);
}

.arh-footer-count strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Footer SLA — "todos no prazo" / "X em risco" (modelo geral-grupos-final.html .footer-sla-alert) */
.arh-footer-sla-ok {
  font-size: 10px;
  color: var(--state-success);
  display: flex;
  align-items: center;
  gap: 3px;
}

.arh-footer-sla-alert {
  font-size: 10px;
  color: var(--state-danger);
  display: flex;
  align-items: center;
  gap: 3px;
}
/* BLOCKER-5b fix (Echo Gate 2 2026-05-09): --state-danger dark sobre surface-raised
   = 4.29:1 < 4.5:1 FALHA AA (10px). Override dark #F87171 = 5.93:1 PASS. */
[data-theme="dark"] .arh-footer-sla-alert { color: #F87171; }

/* ── Empty state card (grupo sem ativos) ── */
.arh-card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

/* ── Views AMS/N2 — D-01 workaround ── */
/* Exibição controlada via session_state Python + st.rerun() idiomático.
   Classes .arh-grupos-view-ams / .arh-grupos-view-n2 aplicadas no wrapper.
   display:'block' explícito é definido inline pelo render Python — não aqui.
   (AC2: D-01 — nunca usar string vazia '') */
.arh-grupos-view-ams { /* visível por padrão — Python controla inline */ }
.arh-grupos-view-n2  { display: none; /* Python sobrescreve com 'block' explícito */ }

/* ── N2 empty state ── */
.arh-grupos-n2-empty {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.arh-grupos-n2-empty::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.06) 0%, transparent 70%);
  pointer-events: none;
}

.arh-n2-empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text-muted); flex-shrink: 0;
}

.arh-n2-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.arh-n2-empty-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
}

.arh-n2-fields-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
}

/* AC6: exatamente 5 .arh-n2-field-chip ── */
.arh-n2-field-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface-sunken);
  border: 1px dashed var(--border-default);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* AC6: .arh-n2-cta-link href contendo 'cfg' ── */
.arh-n2-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.arh-n2-cta-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent-brand-text);
  color: var(--accent-brand-text);
}

.arh-n2-roadmap-note {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--surface-sunken);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* ════════════════════════════════════════════════════════════════════════
   VOLUMETRIA — sub-aba Geral · Volumetria
   Fonte: prototipos/2026-05-09-volumetria/v01.html
   Namespace: .arh-vol-*
   ════════════════════════════════════════════════════════════════════════ */

/* Period selector row */
.arh-vol-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.arh-vol-period-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.arh-vol-period-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.arh-vol-period-control {
  display: inline-flex;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.arh-vol-period-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans, 'Inter', sans-serif);
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.arh-vol-period-btn:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.arh-vol-period-btn.active {
  background: var(--accent-brand);
  color: #fff;
  box-shadow: 0 1px 4px rgba(29,78,216,.4);
}

.arh-vol-period-btn:focus-visible {
  /* BLOCKER-2 fix (Echo Gate 2 2026-05-09): var(--accent-brand) #1D4ED8 sobre
     surface-sunken dark = 2.67:1, falha SC 2.4.11 UI 3:1.
     var(--focus-ring) resolve: dark #4D9FFF (6.3:1) / light #1D4ED8 (6.3:1). */
  outline: 2px solid var(--focus-ring, #4D9FFF);
  outline-offset: 2px;
}

/* KPI grid — 4 cards */
.arh-vol-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) { .arh-vol-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .arh-vol-kpi-grid { grid-template-columns: 1fr; } }

.arh-vol-kpi-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 14px;
  position: relative;
  overflow: hidden;
}

/* Stripe topo por variante */
.arh-vol-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.arh-vol-kpi-card.k-abertos::before   { background: var(--accent-brand-text); }
.arh-vol-kpi-card.k-resolvidos::before { background: var(--state-success); }
.arh-vol-kpi-card.k-backlog::before   { background: var(--state-warning); }
.arh-vol-kpi-card.k-prazo::before     { background: var(--t-prazo, #A78BFA); }

.arh-vol-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arh-vol-kpi-value {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
}

.arh-vol-kpi-card.k-abertos   .arh-vol-kpi-value { color: var(--accent-brand-text); }
.arh-vol-kpi-card.k-resolvidos .arh-vol-kpi-value { color: var(--state-success); }
.arh-vol-kpi-card.k-backlog   .arh-vol-kpi-value { color: var(--state-warning); }
/* BLOCKER-1 fix (Echo Gate 2 2026-05-09): #A78BFA sobre surface-raised light
   #F2EFE9 = 2.37:1, falha AA. KPI value é informação primária — exige 4.5:1.
   Dark: #A78BFA sobre #16202E = 6.03:1 PASS — mantido.
   Light: substituído por --state-info light (#1E3A8A = 9.1:1 AAA).
   Stripe decorativa ::before mantém #A78BFA (decorativa, sem texto). */
.arh-vol-kpi-card.k-prazo     .arh-vol-kpi-value { color: var(--t-prazo, #A78BFA); }
/* light: --t-prazo = #5B21B6 (violet-800 = 5.7:1 AA sobre #F2EFE9) já definido no bloco :root[data-theme="light"] */

.arh-vol-kpi-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.arh-vol-kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.arh-vol-trend-up   { color: var(--state-success); }
.arh-vol-trend-down { color: var(--state-danger); }
/* BLOCKER-5 fix (Echo Gate 2 2026-05-09): --state-danger dark #E74C3C sobre
   surface-raised #16202E = 4.29:1 < 4.5:1, falha AA (11px 600w = small text).
   Override dark usa #F87171 (red-400) = 5.93:1 PASS. */
[data-theme="dark"] .arh-vol-trend-down { color: #F87171; }
.arh-vol-trend-flat { color: var(--text-muted); }
.arh-vol-trend-note { font-size: 10px; color: var(--text-muted); font-weight: 400; }

/* Strip de tipos */
.arh-vol-section-block { margin-bottom: 24px; }

.arh-vol-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.arh-vol-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.arh-vol-tipos-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) { .arh-vol-tipos-strip { grid-template-columns: 1fr; } }

.arh-vol-tipo-chip {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.arh-vol-tipo-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: var(--radius-md, 8px) 0 0 var(--radius-md, 8px);
}

.arh-vol-tipo-chip.inc::before  { background: var(--t-inc, #E97132); }
.arh-vol-tipo-chip.sol::before  { background: var(--t-sol, #156082); }
.arh-vol-tipo-chip.evol::before { background: var(--t-evol, #196B24); }

.arh-vol-tipo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.arh-vol-tipo-chip.inc  .arh-vol-tipo-icon { background: rgba(233,113,50,.12);  color: var(--t-inc, #E97132); }
.arh-vol-tipo-chip.sol  .arh-vol-tipo-icon { background: rgba(21,96,130,.14);   color: var(--t-sol, #156082); }
.arh-vol-tipo-chip.evol .arh-vol-tipo-icon { background: rgba(25,107,36,.12);   color: var(--t-evol, #196B24); }

.arh-vol-tipo-body { flex: 1; min-width: 0; }

.arh-vol-tipo-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.arh-vol-tipo-count {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  color: var(--text-primary);
}

.arh-vol-tipo-pct {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.arh-vol-tipo-chip.inc  .arh-vol-tipo-pct { color: var(--t-inc, #E97132);  border-color: rgba(233,113,50,.4);  background: rgba(233,113,50,.08); }
.arh-vol-tipo-chip.sol  .arh-vol-tipo-pct { color: var(--t-sol, #156082);  border-color: rgba(21,96,130,.35);  background: rgba(21,96,130,.08); }
.arh-vol-tipo-chip.evol .arh-vol-tipo-pct { color: var(--t-evol, #196B24); border-color: rgba(25,107,36,.35);  background: rgba(25,107,36,.08); }

/* Content card (barras de grupo) */
.arh-vol-content-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.arh-vol-card-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arh-vol-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arh-vol-card-title i { color: var(--text-muted); font-size: 15px; }

.arh-vol-card-body { padding: 16px 20px; }

.arh-vol-grupo-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.arh-vol-grupo-bar-row:last-child { border-bottom: none; }

.arh-vol-grupo-bar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.arh-vol-grupo-bar-track {
  height: 8px;
  background: var(--surface-sunken);
  border-radius: 4px;
  overflow: hidden;
}

.arh-vol-grupo-bar-fill {
  height: 100%;
  border-radius: 4px;
  opacity: .85;
}

.arh-vol-grupo-bar-count {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  text-align: right;
}

/* Footer sentinel */
.arh-vol-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════════════
   FLUXOS DE STATUS — sub-aba Geral · Fluxos
   Fonte: prototipos/2026-05-09-fluxos-status/v01.html
   Namespace: .arh-flx-*
   ════════════════════════════════════════════════════════════════════════ */

/* Tokens de status STF (fixados sem seletor data-theme — invariantes dark) */
.arh-flx-root {
  --stf-color:  #4D9FFF;
  --saeb-color: #D9A020;
  --rslv-color: #2ECC71;
  --fchd-color: #7A96B5;
  --stf-bg:   rgba(29,78,216,.10);
  --saeb-bg:  rgba(217,160,32,.10);
  --rslv-bg:  rgba(46,204,113,.10);
  --fchd-bg:  rgba(122,150,181,.08);
  --stf-brd:  rgba(29,78,216,.35);
  --saeb-brd: rgba(217,160,32,.35);
  --rslv-brd: rgba(46,204,113,.35);
  --fchd-brd: rgba(122,150,181,.25);
  --arrow-color: rgba(255,255,255,.15);
}

[data-theme="light"] .arh-flx-root {
  --stf-color:  #1D4ED8;
  --saeb-color: #92400E;
  --rslv-color: #14532D;
  --fchd-color: #6E665D;
  --stf-bg:   rgba(29,78,216,.07);
  --saeb-bg:  rgba(146,64,14,.07);
  --rslv-bg:  rgba(20,83,45,.07);
  --fchd-bg:  rgba(110,102,93,.06);
  --stf-brd:  rgba(29,78,216,.30);
  --saeb-brd: rgba(146,64,14,.28);
  --rslv-brd: rgba(20,83,45,.28);
  --fchd-brd: rgba(110,102,93,.20);
  --arrow-color: rgba(0,0,0,.12);
}

.arh-flx-section { margin-bottom: 28px; }

.arh-flx-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Diagrama horizontal */
.arh-flx-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* Nó de status */
.arh-flx-node {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  min-width: 160px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arh-flx-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.arh-flx-node.node-stf::before  { background: var(--stf-color); }
.arh-flx-node.node-saeb::before { background: var(--saeb-color); }
.arh-flx-node.node-rslv::before { background: var(--rslv-color); }
.arh-flx-node.node-fchd::before { background: var(--fchd-color); }

.arh-flx-node-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid;
  align-self: flex-start;
}

.arh-flx-node.node-stf  .arh-flx-node-badge { color: var(--stf-color);  border-color: var(--stf-brd);  background: var(--stf-bg);  }
.arh-flx-node.node-saeb .arh-flx-node-badge { color: var(--saeb-color); border-color: var(--saeb-brd); background: var(--saeb-bg); }
.arh-flx-node.node-rslv .arh-flx-node-badge { color: var(--rslv-color); border-color: var(--rslv-brd); background: var(--rslv-bg); }
.arh-flx-node.node-fchd .arh-flx-node-badge { color: var(--fchd-color); border-color: var(--fchd-brd); background: var(--fchd-bg); }

.arh-flx-node-count {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1;
}

.arh-flx-node.node-stf  .arh-flx-node-count { color: var(--stf-color); }
.arh-flx-node.node-saeb .arh-flx-node-count { color: var(--saeb-color); }
.arh-flx-node.node-rslv .arh-flx-node-count { color: var(--rslv-color); }
.arh-flx-node.node-fchd .arh-flx-node-count { color: var(--fchd-color); }

.arh-flx-node-label { font-size: 11px; color: var(--text-secondary); line-height: 1.3; }
.arh-flx-node-desc  { font-size: 10px; color: var(--text-muted); line-height: 1.4; }

/* Conector */
.arh-flx-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
  min-width: 72px;
  gap: 4px;
}

.arh-flx-connector-arrow {
  font-size: 18px;
  color: var(--arrow-color);
  display: flex;
  align-items: center;
  gap: 2px;
}

.arh-flx-connector-vol {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.arh-flx-connector-label {
  font-size: 9px;
  color: var(--text-disabled, var(--text-muted));
  white-space: nowrap;
}

/* Conector bidirecional STF ↔ SAEB */
.arh-flx-bidir-row { display: flex; align-items: center; gap: 3px; }
.arh-flx-bidir-vol-fwd { font-size: 9px; font-weight: 700; color: var(--saeb-color); opacity: .8; }
.arh-flx-bidir-vol-bck { font-size: 9px; font-weight: 700; color: var(--stf-color); opacity: .8; }
.arh-flx-bidir-desc {
  font-size: 9px;
  color: var(--text-disabled, var(--text-muted));
  text-align: center;
  line-height: 1.2;
  margin: 2px 0;
}

/* Legenda */
.arh-flx-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-base, 4px);
}

/* Tabela de transições */
.arh-flx-content-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.arh-flx-card-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arh-flx-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.arh-flx-card-title i { color: var(--text-muted); font-size: 15px; }

.arh-flx-trans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.arh-flx-trans-table thead th {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  white-space: nowrap;
}

.arh-flx-trans-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}

.arh-flx-trans-table tbody tr:last-child { border-bottom: none; }
.arh-flx-trans-table tbody tr:hover { background: var(--surface-hover); }

.arh-flx-trans-table td {
  padding: 10px 16px;
  vertical-align: middle;
  color: var(--text-secondary);
}

.arh-flx-td-chamado {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.arh-flx-td-quando { color: var(--text-muted); white-space: nowrap; }
.arh-flx-td-quem   { white-space: nowrap; }

/* Seta de transição inline */
.arh-flx-trans-arrow { display: inline-flex; align-items: center; gap: 6px; }

.arh-flx-trans-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid;
}

.arh-flx-ts-stf  { color: var(--stf-color);  border-color: var(--stf-brd);  background: var(--stf-bg);  }
.arh-flx-ts-saeb { color: var(--saeb-color); border-color: var(--saeb-brd); background: var(--saeb-bg); }
.arh-flx-ts-rslv { color: var(--rslv-color); border-color: var(--rslv-brd); background: var(--rslv-bg); }
.arh-flx-ts-fchd { color: var(--fchd-color); border-color: var(--fchd-brd); background: var(--fchd-bg); }

.arh-flx-trans-sep { color: var(--text-disabled, var(--text-muted)); font-size: 12px; }

/* Footer fluxos */
.arh-flx-page-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/*
 * ════════════════════════════════════════════════════════════════════════
 * INVENTÁRIO HEX HARDCODED — R-2.6 (substituição vem no consolidado R-2)
 * ════════════════════════════════════════════════════════════════════════
 *
 * NOTA: Hexes em blocos :root são INTENCIONAIS — definem os próprios tokens.
 * Os tokens de grupo (--g-*) e tipo (--t-*) não têm equivalente em
 * design_tokens.py — são tokens locais deste arquivo. NÃO substituir.
 *
 * Hexes FORA de :root (candidatos à tokenização em R-2.6):
 *
 * 1. #fff — 3 ocorrências
 *    Contextos: .arh-grupos-seg-btn.active (color), .arh-vol-period-btn.active (color),
 *    + stHorizontalBlock stBaseButton-primary (color)
 *    Token sugerido: --text-on-brand (TODO herdado R-1 §1 STATUS.md)
 *    Nota: já documentado como fallback em pill_group.py (R-1.3) — mesmo problema.
 *
 * 2. #2A3F58 — 1 ocorrência
 *    Contexto: .arh-grupos-seg-btn.active.n2-style (background)
 *    Token sugerido: --surface-n2-active (novo token semântico específico N2)
 *    Exceção documentada: cor identitária do modo N2, sem token equivalente atual.
 *
 * 3. #F87171 — 3 ocorrências (red-400)
 *    Contextos: [data-theme="dark"] overrides em sla-badge-bad, footer-sla-alert,
 *    vol-trend-down — todos são fixes de contraste AA documentados (BLOCKER-5, 5b, 6).
 *    Token sugerido: --state-danger-dark (variante dark de --state-danger para AA)
 *    Nota: padrão recorrente — se criado, propagar para _monitoramento_v2.css também.
 *
 * 4. #4D9FFF — 1 ocorrência (fallback de focus-ring)
 *    Contexto: .arh-vol-period-btn:focus-visible outline fallback
 *    Token sugerido: var(--focus-ring) já existe — fallback hardcoded é redundante.
 *    Ação R-2.6: remover fallback, manter apenas var(--focus-ring).
 *
 * RESUMO PARA R-2.6:
 *   #fff       → var(--text-on-brand)          [criar token — 3 lugares]
 *   #F87171    → var(--state-danger-dark)       [criar token — 3 lugares + propagação]
 *   #4D9FFF    → remover fallback hardcoded     [1 lugar]
 *   #2A3F58    → var(--surface-n2-active)       [criar token semântico — 1 lugar]
 * ════════════════════════════════════════════════════════════════════════
 */
