/* ==========================================================================
   app.css v2 — Biblioteca de componentes bz-* do protótipo BIP (Buzzing)
   Direção "Cara de fintech, alma editorial" (Gate 1, 01/07/2026).
   Consome tokens.css v2 (papel/linho/tinta/fio). Nenhum hex literal fora
   dos tokens. Specimen de referência: direcoes.html §"Síntese A+C · v2".

   Regras de pele (BRIEF §4 + §9):
   • UMA estratégia de profundidade: --shadow-card (ring 1px embutido) em
     cards — nunca borda sólida forte + sombra pesada juntas.
   • Radius: cards 16 (--radius) · inputs/botões retangulares 10 (--radius-sm)
     · ícones/avatares 12 (--radius-ico) · CTA/chips/badges pill (--radius-pill)
     · canto RETO (--radius-flush) no topo do card com fio-de-vozes.
   • Labels pequenos SEMPRE --tinta-3 (tom mínimo AA); --tinta-suave nunca
     carrega texto pequeno.
   • Transições só transform/opacity/background-color, 150–200ms ease-out.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Base / reset leve
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--tinta);
  background: var(--linho);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--tinta); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-h1); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); }

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* Skip link — bypass de blocos (WCAG 2.4.1). Oculto até receber foco por teclado. */
.bz-skip-link {
  position: absolute;
  left: var(--space-3);
  top: -48px;
  z-index: 100;
  background: var(--tinta);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  transition: transform .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-skip-link:focus-visible { top: var(--space-3); box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }

svg { display: block; }

/* Utilitários pequenos */
.bz-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--tinta-3); /* tom MÍNIMO p/ texto pequeno (AA) — nunca --tinta-suave */
}
.bz-muted { color: var(--tinta-2); }
.bz-small { font-size: var(--fs-small); }
/* Conteúdo só para leitores de tela */
.bz-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bz-metric-hero {
  font-family: var(--font-display);
  font-size: var(--fs-metric-hero);
  font-weight: var(--fw-heavy);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

/* Cores por banda (texto) — utilidade para números de score.
   [a11y] warn e brand-cyan reprovam como texto; usam variantes -solid/action. */
.bz-band-critica   { color: var(--neg-solid); }
.bz-band-atencao   { color: var(--warn-solid); }
.bz-band-boa       { color: var(--action-solid); }
.bz-band-excelente { color: var(--pos-solid); }

/* --------------------------------------------------------------------------
   1. Shell — sidebar admin + topbars
   -------------------------------------------------------------------------- */
.bz-app { min-height: 100vh; }

.bz-admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.bz-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--papel);
  border-right: 1px solid var(--fio);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
/* HEADER DA SIDEBAR (sidebar-header) — símbolo-home + switcher na MESMA linha, alinhado
   ao topbar (altura = topbar) p/ o shell não quebrar. Ref: Skiff/Lovable/Linear workspace switcher. */
.bz-sidebar__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  height: var(--topbar-h);
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--fio-suave);
  position: relative;
}
/* símbolo-home: a PRÓPRIA logo é o item (sem caixa/padding que a encolha); leva ao início */
.bz-sidebar__home {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  border-radius: var(--radius-sm);
}
.bz-sidebar__home:hover { opacity: .82; }
.bz-sidebar__home:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bz-sidebar__home img { height: 32px; width: auto; display: block; } /* símbolo no tamanho certo = o item */
/* Switcher de conta — DISCRETO, ocupa o resto da linha (texto + caret, sem borda, hover sutil) */
.bz-combobox--workspace { flex: 1 1 auto; min-width: 0; }
.bz-combobox--workspace .bz-combobox__trigger {
  width: 100%;
  height: auto;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
}
.bz-combobox--workspace .bz-combobox__trigger:hover { background: var(--chrome-hover); }
.bz-workspace__brand {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-body); color: var(--tinta);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* nome + indicador de score juntos (o score vive ao lado do nome da conta) */
.bz-workspace__id { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
/* opções do switcher: nome à esq, score à dir (mini-leaderboard de contas) */
.bz-combobox--workspace .bz-combobox__option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* INDICADOR DE SCORE (símbolo do BRS) — anel compacto ao lado do nome da conta.
   Substitui o ticker solto: o score passa a qualificar a conta. Arco = cor da banda. */
.bz-score { position: relative; width: 26px; height: 26px; flex: 0 0 auto; display: inline-flex; }
.bz-score svg { position: absolute; inset: 0; width: 26px; height: 26px; transform: rotate(-90deg); }
.bz-score b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 9px; font-weight: var(--fw-bold); color: var(--tinta); font-variant-numeric: tabular-nums; line-height: 1; }
.bz-sidebar__nav { flex: 1; padding: var(--space-4) 0; }
.bz-navgroup { margin-bottom: var(--space-5); }
.bz-navgroup__title {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--tinta-3);
  padding: 0 var(--space-5) var(--space-2);
}
.bz-navitem {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  padding: 0 var(--space-4) 0 var(--space-5);
  border-radius: 0;
  color: var(--tinta-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1), color .15s;
}
.bz-navitem svg { width: 18px; height: 18px; flex: none; }
.bz-navitem:hover { background: var(--chrome-hover); color: var(--tinta); text-decoration: none; }
.bz-navitem:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bz-navitem.is-active {
  background: var(--nav-active);
  color: var(--tinta);
  font-weight: var(--fw-semibold);
}
/* marcador ativo = item EDGE-TO-EDGE (wash magenta full-width) + barra esquerda CHEIA flush na borda. Ref empírica: Twitch 1707a333 (fill + left bar), na contenção magenta Buzzing */
.bz-navitem.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--brand-signature);
}
.bz-navitem.is-active svg { color: var(--brand-signature-solid); }
/* contador opcional (menções/alertas por seção) */
.bz-navitem__count {
  margin-left: auto;
  font-size: 11px; font-weight: var(--fw-semibold);
  color: var(--tinta-3); background: var(--linho);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.bz-navitem.is-active .bz-navitem__count { background: var(--papel); color: var(--brand-signature-solid); }
.bz-sidebar__footer {
  border-top: 1px solid var(--fio-suave);
  padding: var(--space-3);
}

/* Card de perfil/tenant no rodapé da sidebar */
.bz-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-profile:hover { background: var(--linho); }
.bz-profile:focus-visible { box-shadow: var(--focus-ring); }
.bz-profile__meta { flex: 1; min-width: 0; }
.bz-profile__name { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-profile__sub  { font-size: var(--fs-label); color: var(--tinta-3); }

/* Coluna principal (admin) */
.bz-main-col { display: flex; flex-direction: column; min-width: 0; }

/* Topbar (admin e cliente) */
.bz-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  background: var(--papel);
  border-bottom: 1px solid var(--fio);
}
.bz-topbar__spacer { flex: 1; }
.bz-topbar__actions { display: flex; align-items: center; gap: var(--space-2); }
/* Topbar alinhado ao conteúdo: barra full-width (bg+borda), conteúdo centralizado no
   mesmo eixo/max-width da página (padrão de mercado — logo alinha com o conteúdo). */
.bz-topbar--framed { padding: 0; }
.bz-topbar__inner { display: flex; align-items: center; gap: var(--space-5); width: 100%; max-width: var(--content-max); margin: 0 auto; height: 100%; padding: 0 var(--space-8); }

/* Masthead — a "edição" da marca monitorada (shell "A Redação") */
.bz-edition { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.bz-edition__brand {
  font-family: var(--font-display);
  font-size: var(--fs-h3); font-weight: var(--fw-bold);
  letter-spacing: -0.01em; color: var(--tinta); white-space: nowrap;
}
.bz-edition__sep { width: 1px; height: 24px; background: var(--fio); }
.bz-mast-sep { width: 1px; height: 24px; background: var(--fio); }
/* edição: trigger sem pill — só a marca em display + caret */
.bz-combobox--edition .bz-combobox__trigger {
  height: auto; padding: 4px 6px; background: transparent; box-shadow: none; border-radius: var(--radius-sm);
}
.bz-combobox--edition .bz-combobox__trigger:hover { background: var(--chrome-hover); }

/* BRS-ticker — o score vive no chrome (assinatura do produto) */
/* BRS-ticker padronizado com o seletor de período: mesmo chip discreto (borda fina, sem sombra) */
.bz-brs-ticker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 40px; padding: 0 var(--space-4) 0 5px;
  background: transparent; border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--fio);
}
.bz-brs-ticker__ring { position: relative; width: 34px; height: 34px; flex: none; }
.bz-brs-ticker__ring b {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: var(--fw-heavy);
  color: var(--tinta); font-variant-numeric: tabular-nums;
}
.bz-brs-ticker__txt { line-height: 1.15; }
.bz-brs-ticker__lbl { font-size: 10px; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .1em; color: var(--tinta-3); }
.bz-brs-ticker__val { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--action-solid); }
.bz-brs-ticker__val em { font-style: normal; color: var(--pos-solid); font-weight: var(--fw-bold); }

/* Cliente shell: topbar com nav horizontal.
   Mecanismo ÚNICO de estado ativo = underline 2px magenta + texto muted->tinta
   + semibold (evidência Refero 01/07: Rox/Squarespace/Fourthwall usam underline
   puro; ninguém combina pill+underline). Text-first, sem pill, sem ícone. */
.bz-topbar--client { padding: 0 var(--space-8); gap: var(--space-5); }
.bz-topnav { display: flex; align-items: stretch; gap: var(--space-5); align-self: stretch; }
.bz-topnav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--tinta-3);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-topnav__item:hover { color: var(--tinta); text-decoration: none; }
.bz-topnav__item:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.bz-topnav__item.is-active { color: var(--tinta); font-weight: var(--fw-semibold); }
/* underline 2px sobre a borda inferior do masthead */
.bz-topnav__item.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand-signature);
  border-radius: 2px 2px 0 0;
}

/* Ícone-botão (sino, busca, etc.) */
.bz-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px; /* hit area ≥40px (auditoria a11y 01/07) */
  border-radius: var(--radius-ico);
  border: 0;
  background: transparent;
  color: var(--tinta-2);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1), transform .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-iconbtn:hover { background: var(--linho); color: var(--tinta); }
.bz-iconbtn:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-ico); }
.bz-iconbtn:active { transform: scale(.97); }
.bz-iconbtn:disabled { opacity: .45; cursor: not-allowed; }
.bz-iconbtn svg { width: 18px; height: 18px; }
.bz-iconbtn__dot {
  position: absolute; top: 5px; right: 5px;
  min-width: 15px; height: 15px; padding: 0 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: var(--fw-bold); line-height: 1;
  color: #fff; background: var(--brand-signature-solid);
  border-radius: var(--radius-pill);
  border: 2px solid var(--papel);
  font-variant-numeric: tabular-nums;
}

/* Avatar (radius de ícone — v2, não círculo) */
.bz-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-ico);
  background: var(--wash-signature); color: var(--brand-signature-solid);
  font-family: var(--font-display);
  font-size: var(--fs-small); font-weight: var(--fw-bold);
  flex: 0 0 auto;
}

/* Área de conteúdo */
.bz-content {
  flex: 1;
  padding: var(--space-8);
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}
.bz-content--client { padding: var(--space-8) var(--space-8) var(--space-12); }

/* Cabeçalho de página */
/* SHELL DE 2 LINHAS (ref app-shell: Chargetrip, Fingerprint "Insights header", Polar, Calendly).
   Prominência = importância: TÍTULO na row 1 (topbar, lugar nobre); RECURSOS na row 2 (toolbar). */

/* Título da view no TOPBAR (row 1) — chrome-title modesto (24/semibold, não outdoor 28/heavy);
   hierarquia por peso+cor, acima dos títulos de seção (18/bold). */
.bz-topbar__title {
  font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.2;
  font-weight: var(--fw-semibold); letter-spacing: -0.02em; color: var(--tinta); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* TOOLBAR (row 2) — recursos/controles da view (período + score) à esq, ações à dir.
   FIXA (sticky sob o topbar): o conteúdo rola por baixo. Degrau morno-claro = hierarquia. */
.bz-toolbar {
  position: sticky; top: var(--topbar-h); z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--papel-alto);
  border-bottom: 1px solid var(--fio);
}
.bz-toolbar__controls, .bz-toolbar__actions { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; }
/* Toolbar FRAMED (cliente): conteúdo alinhado ao eixo de 1200 como o topbar framed */
.bz-toolbar--framed { padding: 0; }
.bz-toolbar--framed .bz-toolbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--space-3) var(--space-8);
}
/* Cliente andar 1: símbolo-home (a própria logo é o item; leva ao início) */
.bz-topbar--client .bz-topbar__home { display: inline-flex; align-items: center; border-radius: var(--radius-sm); flex: 0 0 auto; }
.bz-topbar--client .bz-topbar__home:hover { opacity: .82; }
.bz-topbar--client .bz-topbar__home:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bz-topbar--client .bz-topbar__home img { height: 28px; width: auto; display: block; }
/* a11y: título de view acessível quando a identidade visível é a aba ativa (cliente) */
.bz-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.bz-pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
/* eyebrow de contexto — TEXTO puro uppercase muted ACIMA do título (PADRÃO FINAL
   validado 02/07: sem nib, sem frase descritiva). Ref: CFPB kicker, Primer PageHeader. */
.bz-pagehead__eyebrow {
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--tinta-3); margin-bottom: var(--space-2);
}
/* legado: kicker magenta (telas ainda não migradas ao eyebrow) */
.bz-pagehead__kicker {
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-signature-solid); margin-bottom: 6px;
}
/* Título principal da página (<h1>) — display Jakarta 800 editorial (BRIEF §3) */
.bz-pagehead h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-h1); letter-spacing: -0.02em; }
/* Grafismo Buzzing — nib magenta reusável via .bz-nib. O nib AUTOMÁTICO sob o h1 foi
   DESCARTADO (02/07): era tell de admin-template; header padrão = eyebrow + título. */
.bz-nib { display: inline-block; width: 32px; height: 3px; border-radius: 2px; background: var(--brand-signature); }
.bz-pagehead__subtitle { color: var(--tinta-2); margin-top: var(--space-3); }

/* Header de SEÇÃO (L2) — MESMA lógica do bz-pagehead (L1), um nível abaixo:
   eyebrow de contexto ACIMA + título; aside opcional (meta/ação) à direita.
   Hierarquia de headers do produto: página (L1, h1 28px) › seção (L2, 18px) › card.
   Padroniza TODAS as seções (substitui o antigo kicker+título horizontal). */
.bz-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-4); }
.bz-sechead__eyebrow { display: block; font-size: var(--fs-label); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--tinta-3); margin-bottom: var(--space-1); }
.bz-sechead__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--tinta); margin: 0; line-height: 1.2; }
.bz-sechead__aside { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--tinta-3); font-size: var(--fs-small); }

/* Selo de protótipo + timestamp */
.bz-stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--tinta-3);
}
.bz-stamp__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--brand-signature); }
.bz-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--fio);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  color: var(--tinta-3); font-size: var(--fs-label);
}

/* --------------------------------------------------------------------------
   2. bz-card — pele fintech: papel + sombra ÚNICA (ring embutido), sem borda
   -------------------------------------------------------------------------- */
.bz-card {
  background: var(--papel);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.bz-card--interactive { cursor: pointer; transition: transform .18s cubic-bezier(0.23, 1, 0.32, 1); }
.bz-card--interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bz-card--interactive:focus-visible { box-shadow: var(--focus-ring), var(--shadow-card); }
.bz-card--interactive:active { transform: scale(.99); }
.bz-card--accent { box-shadow: var(--glow-signature), var(--shadow-card); } /* glow map: foco por luz, não anel duro */
.bz-card--muted { background: var(--papel); }

/* ASSINATURA (1× por tela, no card-herói): fio-de-vozes no topo + canto RETO */
.bz-card--fio {
  position: relative;
  border-radius: var(--radius-flush) var(--radius-flush) var(--radius) var(--radius);
  overflow: hidden;
}
.bz-card--fio::before {
  content: "";
  display: block;
  height: var(--fio-vozes-h);
  background: var(--fio-vozes);
}

.bz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--fio-suave); /* masthead editorial */
}
.bz-card-title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; margin: 0; }
.bz-card-body { padding: var(--space-6); }

/* --------------------------------------------------------------------------
   3. bz-kpi + bz-chip
   -------------------------------------------------------------------------- */
.bz-kpi {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--papel);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-height: 120px;
}
.bz-kpi__label { font-size: var(--fs-label); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--tinta-3); }
.bz-kpi__value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: var(--fw-heavy);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--tinta);
}
.bz-kpi__foot { margin-top: auto; }
.bz-kpi__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
/* delta em chip-wash discreto (mais desenhado que texto colorido cru; escopado ao KPI) */
.bz-kpi .bz-delta { padding: 3px var(--space-2); border-radius: var(--radius-pill); }
.bz-kpi .bz-delta.up   { background: var(--wash-pos); }
.bz-kpi .bz-delta.down { background: var(--wash-neg); }
.bz-kpi .bz-delta.flat { background: var(--linho); }

/* bz-delta — variação com seta */
.bz-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.bz-delta svg { width: 14px; height: 14px; }
.bz-delta.up   { color: var(--pos-solid); }
.bz-delta.down { color: var(--neg-solid); }
.bz-delta.flat { color: var(--tinta-2); }
.bz-delta__period { color: var(--tinta-3); font-weight: var(--fw-regular); margin-left: 2px; }

/* --------------------------------------------------------------------------
   4. bz-gauge — herói do BRS: ANEL (ring SVG circular) — v2, Gate 1.
   O SVG (track + arco na cor da banda) vem do HTML; aqui vive o container,
   o número (Plus Jakarta 800, tabular) e o rótulo da banda.
   -------------------------------------------------------------------------- */
.bz-gauge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.bz-gauge__svg { display: block; overflow: visible; } /* anel: rotação -90° vive no .bz-ring svg (não aqui, p/ não quebrar arcos legados) */
/* Segmentos/arco — pintados via classe (banda ativa) */
.bz-gauge__seg { fill: none; stroke-linecap: round; transition: opacity .2s cubic-bezier(0.23, 1, 0.32, 1); }
/* Arco luminoso: halo sutil na cor da banda dá profundidade "score ring" (Whoop/Oura/Nubank) */
.bz-gauge__seg--critica   { stroke: var(--brs-critica);   filter: drop-shadow(0 1px 5px rgba(230, 51, 41, 0.30)); }
.bz-gauge__seg--atencao   { stroke: var(--brs-atencao);   filter: drop-shadow(0 1px 5px rgba(245, 179, 36, 0.32)); }
.bz-gauge__seg--boa       { stroke: var(--brs-boa);        filter: drop-shadow(0 1px 5px rgba(28, 173, 228, 0.32)); }
.bz-gauge__seg--excelente { stroke: var(--brs-excelente); filter: drop-shadow(0 1px 5px rgba(28, 155, 94, 0.30)); }
.bz-gauge__seg.is-dim     { opacity: .38; }
.bz-gauge__track { fill: none; stroke: var(--linho); stroke-linecap: round; }
.bz-gauge__tick  { fill: var(--tinta-3); font-size: 11px; font-family: var(--font-ui); }
.bz-gauge__value {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: var(--fw-heavy);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.bz-gauge__class {
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
/* Banda como pill tingido (wash da banda + texto -solid legível) */
.bz-gauge__class.bz-band-critica   { background: var(--wash-neg); }
.bz-gauge__class.bz-band-atencao   { background: var(--wash-warn); }
.bz-gauge__class.bz-band-boa       { background: var(--wash-action); }
.bz-gauge__class.bz-band-excelente { background: var(--wash-pos); }

/* bz-ring — miolo centrado do anel (número + banda sobre o SVG circular) */
.bz-ring { position: relative; flex: none; }
.bz-ring svg { transform: rotate(-90deg); }
.bz-ring__num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

/* Tamanhos do número */
.bz-gauge--lg .bz-gauge__value { font-size: 54px; }
.bz-gauge--md .bz-gauge__value { font-size: 38px; }
.bz-gauge--sm .bz-gauge__value { font-size: 24px; }
.bz-gauge--compact .bz-gauge__value { font-size: 32px; } /* comparativo em grade */

/* --------------------------------------------------------------------------
   5. bz-badge (variantes) — pills sem borda dura (wash + texto -solid)
   -------------------------------------------------------------------------- */
.bz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border: 0;
  white-space: nowrap;
}
.bz-badge svg { width: 12px; height: 12px; }
.bz-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }

.bz-badge--sm { height: 18px; padding: 0 8px; }
.bz-badge--dot-only { height: auto; padding: 0; border: 0; background: transparent; }

/* Sentimento — texto sempre nas variantes -solid auditadas */
.bz-badge--sentiment-pos { color: var(--pos-solid); background: var(--wash-pos); }
.bz-badge--sentiment-neu { color: var(--tinta-2); background: var(--linho); }
.bz-badge--sentiment-neg { color: var(--neg-solid); background: var(--wash-neg); }

/* Prioridade P1/P2/P3 */
.bz-badge--priority-1 { color: var(--brand-signature-solid); background: var(--wash-signature); }
.bz-badge--priority-2 { color: var(--warn-solid); background: var(--wash-warn); }
.bz-badge--priority-3 { color: var(--tinta-2); background: var(--linho); }

/* Rótulo neutro de origem (ex.: "IA") */
.bz-badge--tag { color: var(--tinta-2); background: var(--linho); }

/* Tier de veículo */
.bz-badge--tier-1 { color: var(--action-solid); background: var(--wash-action); }
.bz-badge--tier-2 { color: var(--warn-solid); background: var(--wash-warn); }
.bz-badge--tier-3 { color: var(--tinta-2); background: var(--linho); }

/* Status de fonte/integração */
.bz-badge--status-ok      { color: var(--pos-solid); background: var(--wash-pos); }
.bz-badge--status-partial { color: var(--warn-solid); background: var(--wash-warn); }
.bz-badge--status-error   { color: var(--neg-solid); background: var(--wash-neg); }

/* Workflow de tratativa do alerta */
.bz-badge--workflow-novo      { color: var(--action-solid); background: var(--wash-action); }
.bz-badge--workflow-andamento { color: var(--tinta-2); background: var(--linho); }
.bz-badge--workflow-concluido { color: var(--pos-solid); background: var(--wash-pos); }

/* Badge de banda BRS (mini) */
.bz-badge--band-critica   { color: var(--neg-solid);    background: var(--wash-neg); }
.bz-badge--band-atencao   { color: var(--warn-solid);   background: var(--wash-warn); }
.bz-badge--band-boa       { color: var(--action-solid); background: var(--wash-action); }
.bz-badge--band-excelente { color: var(--pos-solid);    background: var(--wash-pos); }

/* bz-chip — pill de métrica com dot de cor (shell cliente; specimen f-chip).
   Compartilha base com bz-rec__chip (metaline de recomendação/alerta). */
.bz-chip,
.bz-rec__chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: var(--fw-semibold);
  background: var(--linho); color: var(--tinta);
  border: 0;
}
.bz-chip svg,
.bz-rec__chip svg { width: 13px; height: 13px; color: var(--tinta-3); }
.bz-chip__dot,
.bz-chip i:not([class*="ph-"]) { width: 8px; height: 8px; border-radius: var(--radius-pill); flex: none; }
.bz-chip--pos  .bz-chip__dot, .bz-chip--pos  i:not([class*="ph-"]) { background: var(--pos); }
.bz-chip--cyan .bz-chip__dot, .bz-chip--cyan i:not([class*="ph-"]) { background: var(--brand-cyan); }
.bz-chip--warn .bz-chip__dot, .bz-chip--warn i:not([class*="ph-"]) { background: var(--warn); }
.bz-chip--neg  .bz-chip__dot, .bz-chip--neg  i:not([class*="ph-"]) { background: var(--neg); }
.bz-chip--signature .bz-chip__dot, .bz-chip--signature i:not([class*="ph-"]) { background: var(--brand-signature); }
/* Chip sobre papel dentro de card em linho */
.bz-chip--onlinho { background: var(--papel); box-shadow: inset 0 0 0 1px var(--fio); }

/* --------------------------------------------------------------------------
   6. bz-mention (card de menção — Brand24)
   -------------------------------------------------------------------------- */
.bz-mention-list { display: flex; flex-direction: column; }
.bz-mention {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--fio-suave);
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-mention:last-child { border-bottom: 0; }
.bz-mention:hover { background: var(--linho); }
.bz-mention__channel {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-ico);
  background: var(--linho);
  color: var(--tinta-2);
}
.bz-mention__channel svg { width: 18px; height: 18px; }
.bz-mention__body { flex: 1; min-width: 0; }
.bz-mention__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--tinta-3); margin-bottom: 2px; }
.bz-mention__source { font-weight: var(--fw-semibold); color: var(--tinta); }
.bz-mention__sep { color: var(--tinta-3); font-size: 0.85em; }
.bz-mention__text {
  font-size: var(--fs-body);
  color: var(--tinta);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-mention__aside { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-3); }
.bz-mention__link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--action); }
.bz-mention__link:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.bz-mention__link svg { width: 14px; height: 14px; }
/* Variante compacta (drill-down) */
.bz-mention--compact { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
.bz-mention--compact .bz-mention__channel { width: 28px; height: 28px; }
.bz-mention--compact .bz-mention__channel svg { width: 14px; height: 14px; }

.bz-mention-note {
  font-size: var(--fs-label);
  color: var(--tinta-3);
  padding: var(--space-3) var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.bz-mention-note svg { width: 13px; height: 13px; }
.bz-mention-note--divider { display: flex; width: 100%; border-bottom: 1px solid var(--fio-suave); }

/* --------------------------------------------------------------------------
   7. bz-dimbar (barra de dimensão PP)
   -------------------------------------------------------------------------- */
/* Row-as-bar (Refero: Fingerprint top-lists): a PRÓPRIA linha é a barra — o fill
   preenche proporcional ao valor, atrás do texto. Densidade máxima, sem eixo separado. */
.bz-dimbar {
  position: relative;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--linho);
  overflow: hidden;
}
.bz-dimbar:last-child { margin-bottom: 0; }
.bz-dimbar__top { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.bz-dimbar__name { font-weight: var(--fw-semibold); color: var(--tinta); }
.bz-dimbar__value { font-family: var(--font-display); font-weight: var(--fw-heavy); font-size: var(--fs-h3); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
/* Trilho = a linha inteira; o fill é o tint da banda cobrindo left→valor% */
.bz-dimbar__track { position: absolute; inset: 0; height: auto; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; z-index: 0; }
.bz-dimbar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0; opacity: .12; }
.bz-dimbar__fill--critica   { background: var(--brs-critica); }
.bz-dimbar__fill--atencao   { background: var(--brs-atencao); }
.bz-dimbar__fill--boa       { background: var(--brs-boa); }
.bz-dimbar__fill--excelente { background: var(--brs-excelente); }
.bz-dimbar__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-1); }
.bz-dimbar__hint { font-size: var(--fs-small); color: var(--tinta-2); }
.bz-dimbar--weak { background: var(--wash-warn); }

/* --------------------------------------------------------------------------
   8. bz-alert (card de alerta — faixa lateral por severidade)
   -------------------------------------------------------------------------- */
.bz-alert {
  position: relative;
  background: var(--papel);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  overflow: hidden;
}
/* Severidade sinalizada por BLEED (tint do card) — SEM barra lateral (glow map, 1 sinal).
   O impact-badge colorido + o chip do tipo já reforçam a severidade no scan. */
.bz-alert--neg  { background: linear-gradient(100deg, var(--wash-neg),    transparent 240px), var(--papel); }
.bz-alert--warn { background: linear-gradient(100deg, var(--wash-warn),   transparent 240px), var(--papel); }
.bz-alert--info { background: linear-gradient(100deg, var(--wash-action), transparent 240px), var(--papel); }
.bz-alert__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.bz-alert__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.bz-alert__impact {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small); font-weight: var(--fw-bold);
  background: var(--linho); color: var(--tinta);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bz-alert--neg .bz-alert__impact  { color: var(--neg-solid); background: var(--wash-neg); }
.bz-alert--warn .bz-alert__impact { color: var(--warn-solid); background: var(--wash-warn); }
.bz-alert--info .bz-alert__impact { color: var(--action-solid); background: var(--wash-action); }
.bz-alert__summary { color: var(--tinta-2); margin-bottom: var(--space-4); }
.bz-alert__next {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--wash-action); /* glow map: 1 sinal só — edge suave (sem barra dura) */
  border: 0;
  box-shadow: var(--edge-action);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.bz-alert__next svg { width: 18px; height: 18px; color: var(--action); flex: 0 0 auto; margin-top: 1px; }
.bz-alert__next-label { font-size: var(--fs-label); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--tinta-3); display: block; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   9. bz-rec (card de recomendação IA + drill-down)
   -------------------------------------------------------------------------- */
.bz-rec {
  background: var(--papel);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bz-rec__main { padding: var(--space-5) var(--space-6); }
.bz-rec__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.bz-rec__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; flex: 1; }
.bz-rec__situation { color: var(--tinta-2); margin-bottom: var(--space-4); }
.bz-rec__action {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--wash-action); /* glow map: 1 sinal só — edge suave (sem barra dura) */
  border: 0;
  box-shadow: var(--edge-action);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.bz-rec__action svg { width: 18px; height: 18px; color: var(--action-solid); flex: 0 0 auto; margin-top: 1px; }
.bz-rec__action-text { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--tinta); }
.bz-rec__meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.bz-rec__impact { font-size: var(--fs-small); color: var(--pos-solid); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.bz-rec__impact em { color: var(--tinta-3); font-weight: var(--fw-regular); font-size: var(--fs-label); font-style: normal; }

/* Drill-down */
.bz-rec__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--papel);
  border: 0; border-top: 1px solid var(--fio-suave);
  font-family: var(--font-ui); font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--action);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-rec__toggle:hover { background: var(--linho); }
.bz-rec__toggle:focus-visible { box-shadow: var(--focus-ring); }
.bz-rec__toggle .bz-chevron { transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1); width: 16px; height: 16px; }
.bz-rec__drill { display: none; border-top: 1px solid var(--fio-suave); background: var(--papel); }
.bz-rec.is-open .bz-rec__drill { display: block; }
.bz-rec.is-open .bz-rec__toggle .bz-chevron { transform: rotate(180deg); }

/* Prioridade sinalizada pelo BADGE no head (P1/P2/P3) — sem barra colorida no topo.
   Glow map: cor é luz, não barra; consistente com bz-alert. Classes mantidas p/ compat. */
.bz-rec--p1, .bz-rec--p2, .bz-rec--p3 { border-radius: var(--radius); border-top: 0; }
/* Ações da recomendação — loop prescritivo aplicar/adiar (Refero: Grammarly, GlossGenius) */
.bz-rec__actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   10. bz-table
   -------------------------------------------------------------------------- */
.bz-table-wrap { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--papel); box-shadow: var(--shadow-card); }
.bz-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.bz-table thead th {
  text-align: left;
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--tinta-3);
  background: var(--papel);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--fio);
  white-space: nowrap;
}
.bz-table tbody td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--fio-suave);
  color: var(--tinta);
  vertical-align: middle;
}
.bz-table tbody tr:last-child td { border-bottom: 0; }
.bz-table tbody tr { transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1); }
.bz-table tbody tr:hover { background: var(--linho-2); }
.bz-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.bz-table__cell-lead { font-weight: var(--fw-semibold); }
.bz-table__score { font-family: var(--font-display); font-weight: var(--fw-heavy); font-size: 16px; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; margin-right: var(--space-2); }
.bz-td-rank { font-family: var(--font-display); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.bz-td-lead { background: var(--wash-pos); }  /* célula onde a marca lidera */
.bz-td-lag  { background: var(--wash-warn); } /* onde perde (contido) */

/* --------------------------------------------------------------------------
   11. bz-tabs
   -------------------------------------------------------------------------- */
.bz-tabs { display: flex; align-items: center; gap: var(--space-1); border-bottom: 1px solid var(--fio); margin-bottom: var(--space-6); }
.bz-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: var(--space-3) var(--space-4);
  margin-bottom: -1px;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--tinta-2);
  cursor: pointer;
  transition: color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-tab:hover { color: var(--tinta); }
.bz-tab:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.bz-tab.is-active { color: var(--tinta); font-weight: var(--fw-semibold); border-bottom-color: var(--brand-signature); }
.bz-tabpanel { display: none; }
.bz-tabpanel.is-active { display: block; }

/* --------------------------------------------------------------------------
   12. bz-btn (variantes) — CTAs pill (v2, specimen f-btn)
   -------------------------------------------------------------------------- */
.bz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1), transform .15s cubic-bezier(0.23, 1, 0.32, 1), opacity .15s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  text-decoration: none;
}
.bz-btn svg { width: 16px; height: 16px; }
.bz-btn:hover { text-decoration: none; }
.bz-btn:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }
.bz-btn:active { transform: scale(.97); }
.bz-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Primário: carimbo magenta AA (#CF0079) — com profundidade tingida (CTA foca/levita) */
.bz-btn--primary {
  background: var(--brand-signature-solid); color: #fff;
  box-shadow: var(--glow-signature); /* glow map: CTA levita por luz da assinatura */
}
.bz-btn--primary:hover { background: var(--brand-signature-solid-hover); box-shadow: 0 3px 14px -3px color-mix(in srgb, var(--brand-signature) 48%, transparent); }
.bz-btn--primary:active { box-shadow: var(--glow-signature); }
.bz-btn--primary:disabled { background: var(--brand-signature-solid); }

/* Secundário: pill branco com ring inset --fio (specimen f-btn-ghost) */
.bz-btn--secondary { background: var(--papel); color: var(--action-solid); box-shadow: inset 0 0 0 1px var(--fio); }
.bz-btn--secondary:hover { background: var(--linho); }
.bz-btn--secondary:focus-visible { box-shadow: var(--focus-ring), inset 0 0 0 1px var(--fio); }

/* Ghost: só texto action */
.bz-btn--ghost { background: transparent; color: var(--action); }
.bz-btn--ghost:hover { background: var(--linho); }

/* Outline neutro */
.bz-btn--outline { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--fio); }
.bz-btn--outline:hover { background: var(--linho); }
.bz-btn--outline:focus-visible { box-shadow: var(--focus-ring), inset 0 0 0 1px var(--fio); }

.bz-btn--sm { height: 32px; padding: 0 var(--space-4); font-size: var(--fs-small); }
.bz-btn--icon { width: 40px; padding: 0; }

/* --------------------------------------------------------------------------
   13. bz-input — fundo linho (mais escuro que o papel), foco com ring
   -------------------------------------------------------------------------- */
.bz-input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--linho);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  color: var(--tinta);
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-input::placeholder { color: var(--tinta-3); }
.bz-input:hover { background: var(--linho-2); }
.bz-input:focus { outline: none; background: var(--papel); border-color: transparent; box-shadow: var(--focus-ring); }
.bz-input:disabled { opacity: .5; cursor: not-allowed; color: var(--tinta-mute); }

.bz-field { display: flex; flex-direction: column; gap: var(--space-2); }
.bz-field__label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--tinta); }

/* Input com ícone (busca) */
.bz-input-group { position: relative; display: inline-flex; align-items: center; width: 100%; }
.bz-input-group svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--tinta-3); pointer-events: none; }
.bz-input-group .bz-input { padding-left: 34px; }

/* --------------------------------------------------------------------------
   14. bz-combobox / dropdown
   -------------------------------------------------------------------------- */
.bz-combobox { position: relative; display: inline-block; }
.bz-combobox__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px; /* hit area ≥40px (auditoria a11y 01/07) */
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--fio);
  background: var(--papel);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--tinta);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-combobox__trigger:hover { background: var(--linho); }
.bz-combobox__trigger:focus-visible { box-shadow: var(--focus-ring), inset 0 0 0 1px var(--fio); border-radius: var(--radius-pill); }
.bz-combobox__trigger svg.bz-chevron { width: 16px; height: 16px; color: var(--tinta-3); transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1); }
.bz-combobox.is-open .bz-combobox__trigger { box-shadow: var(--focus-ring), inset 0 0 0 1px var(--fio); }
.bz-combobox.is-open .bz-chevron { transform: rotate(180deg); }
.bz-combobox__menu {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--papel);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
}
.bz-combobox.is-open .bz-combobox__menu { display: block; }
.bz-combobox__option {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  font-size: var(--fs-body);
  color: var(--tinta);
  cursor: pointer;
  transition: background-color .15s cubic-bezier(0.23, 1, 0.32, 1);
}
.bz-combobox__option:hover { background: var(--linho); }
.bz-combobox__option:focus-visible { box-shadow: var(--focus-ring); }
.bz-combobox__option.is-selected { background: var(--wash-action); color: var(--action-solid); font-weight: var(--fw-semibold); }
.bz-combobox__option svg { width: 16px; height: 16px; margin-left: auto; }

/* --------------------------------------------------------------------------
   15. bz-empty (empty state — único lugar do balão-"B")
   -------------------------------------------------------------------------- */
.bz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-6);
}
.bz-empty__balloon {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50% 50% 50% 6px; /* balão de fala */
  background: var(--wash-signature);
  color: var(--brand-signature-solid);
  font-family: var(--font-display);
  font-size: 34px; font-weight: var(--fw-heavy);
  margin-bottom: var(--space-2);
}
.bz-empty__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.bz-empty__text { color: var(--tinta-2); max-width: 360px; }

/* --------------------------------------------------------------------------
   16. bz-sof (Share of Voice — barra empilhada)
   -------------------------------------------------------------------------- */
.bz-sof { display: flex; flex-direction: column; gap: var(--space-3); }
.bz-sof__bar {
  display: flex;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(33, 30, 25, 0.06); /* contorno interno sutil separa os segmentos do canvas */
}
.bz-sof__seg + .bz-sof__seg { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.28); } /* divisor claro entre segmentos */
.bz-sof__seg {
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); font-weight: var(--fw-bold); color: #fff;
  min-width: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bz-sof__seg--brand { background: var(--brand-signature-solid); }
.bz-sof__seg--c1 { background: var(--brand-cyan); color: var(--tinta); } /* cyan nunca carrega texto claro */
.bz-sof__seg--c2 { background: var(--neutral); }
.bz-sof__seg--c3 { background: var(--neutral-3); }
.bz-sof__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.bz-sof__legend-item { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--tinta-2); }
.bz-sof__swatch { width: 10px; height: 10px; border-radius: 3px; }
.bz-sof__swatch--brand { background: var(--brand-signature); } /* decorativo, pareado com rótulo */
.bz-sof__swatch--c1 { background: var(--brand-cyan); }
.bz-sof__swatch--c2 { background: var(--neutral); }
.bz-sof__swatch--c3 { background: var(--neutral-3); }

/* --------------------------------------------------------------------------
   17. Utilidades de grade / layout de página
   -------------------------------------------------------------------------- */
.bz-grid { display: grid; gap: var(--space-6); }
.bz-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bz-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bz-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bz-grid--hero { grid-template-columns: 3fr 2fr; } /* herói dominante à esquerda */
.bz-stack { display: flex; flex-direction: column; gap: var(--space-6); }
.bz-row { display: flex; align-items: center; gap: var(--space-3); }
.bz-row--between { justify-content: space-between; width: 100%; }
.bz-portfolio-summary { margin-bottom: var(--space-6); }

@media (max-width: 1080px) {
  .bz-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bz-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bz-admin-layout { grid-template-columns: 1fr; }
  .bz-sidebar { display: none; }
  .bz-grid--2, .bz-grid--3, .bz-grid--4, .bz-grid--hero { grid-template-columns: 1fr; }
  .bz-content { padding: var(--space-5); }
}

/* Linhas auxiliares em gráficos SVG */
.bz-chart-threshold { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bz-chart-grid { stroke: var(--fio-suave); stroke-width: 1; }
.bz-chart-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(33, 30, 25, 0.12)); }
.bz-chart-area { opacity: .12; }
.bz-chart-dot { fill: var(--papel); stroke-width: 2.5; }


/* == Phosphor icon system == */
/* Alinhamento óptico para todos os pesos (contextos inline; em flex align-items:center é ignorado) */
.ph, .ph-thin, .ph-light, .ph-bold, .ph-fill, .ph-duotone { vertical-align: -0.15em; flex: none; }
/* Duotone reservado só p/ acentos: camada de fundo discreta + cor de destaque intencional */
.ph-duotone::before { opacity: .22; }
.ph-duotone.is-accent::before { color: var(--brand-signature); opacity: .30; }
.ph-duotone.is-accent-cyan::before { color: var(--brand-cyan); opacity: .32; }
.bz-brandico { display: inline-block; vertical-align: -0.15em; flex: none; }
/* Ícone Phosphor dentro de chip NÃO é o dot: tamanho/cor próprios */
.bz-chip [class*="ph-"], .bz-rec__chip [class*="ph-"] { font-size: 13px; color: var(--tinta-3); }

/* == Refinamento de craft (calibrado c/ Refero: Brex + OpenCollective) ==
   Os patterns já tinham estados/hover/active/focus/lift/tabular-nums calibrados;
   estas são as 2 lacunas reais de craft que faltavam (a11y + polish tipográfico). */
/* 1. Respeita quem pede menos movimento (WCAG 2.3.3) — desliga transições/animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* 2. Títulos com quebra equilibrada — evita "viúva" de 1 palavra na última linha */
.bz-pagehead h1, .bz-pagehead h2, .bz-card-title, .bz-empty__title, h1, h2 { text-wrap: balance; }

/* == Detalhes globais de craft (cascateiam a todas as telas) == */
/* Seleção de texto na assinatura da marca (parcimônia — só ao selecionar) */
::selection { background: color-mix(in srgb, var(--brand-signature) 18%, transparent); color: var(--tinta); }
/* Scrollbar fina e quente (não a barra cinza default do SO) */
* { scrollbar-width: thin; scrollbar-color: var(--fio) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--fio); border-radius: var(--radius-pill); border: 2px solid var(--papel); }
*::-webkit-scrollbar-thumb:hover { background: var(--tinta-mute); }

/* ==========================================================================
   SÍNTESE DO SWEEP — padronização central (deslop tela-a-tela consolidado).
   ========================================================================== */

/* --- Ícones Phosphor <i> herdam a spec do componente (paraleliza as regras `svg`,
   que estavam dormentes porque o markup usa webfont, não SVG). Restaura tamanho
   E cor de acento; permite remover font-size inline das telas. */
.bz-navitem [class*="ph-"]          { font-size: 18px; }
.bz-iconbtn [class*="ph-"]          { font-size: 18px; }
.bz-btn [class*="ph-"]              { font-size: 16px; }
.bz-delta [class*="ph-"]            { font-size: 14px; }
.bz-badge [class*="ph-"]            { font-size: 13px; }
.bz-alert__impact [class*="ph-"]    { font-size: 13px; }
.bz-mention__channel [class*="ph-"] { font-size: 18px; }
.bz-mention__link [class*="ph-"]    { font-size: 14px; }
.bz-mention-note [class*="ph-"]     { font-size: 13px; }
.bz-input-group [class*="ph-"]      { position: absolute; left: 10px; font-size: 16px; color: var(--tinta-3); pointer-events: none; } /* fix: ícone Phosphor <i> agora entra no campo (o CSS só mirava svg) */
/* ícones de acento nas caixas de ação (estavam sem o acento — cor era dormente) */
.bz-rec__action [class*="ph-"]      { color: var(--action-solid); }
.bz-alert__next [class*="ph-"]      { color: var(--action); }

/* --- bz-meter: barra de progresso/benchmark AUTÔNOMA. Usar isto (não
   bz-dimbar__track/__fill) fora do widget de dimensão — o row-as-bar tornou o
   track do dimbar absoluto, então reusá-lo fora de um .bz-dimbar quebra o layout. */
.bz-meter { position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--linho-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(33, 30, 25, 0.07); }
.bz-meter__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--brand-cyan); }
.bz-meter__fill--boa       { background: var(--brs-boa); }
.bz-meter__fill--excelente { background: var(--brs-excelente); }
.bz-meter__fill--atencao   { background: var(--brs-atencao); }
.bz-meter__fill--critica   { background: var(--brs-critica); }
.bz-meter__fill--muted     { background: var(--neutral-3); }

/* --- Tabela: estado como TEXTO + dot (não caixa preenchida em toda célula) + célula de ação */
.bz-table__state { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-semibold); white-space: nowrap; }
.bz-table__state-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: currentColor; flex: none; }
.bz-table__state--ok      { color: var(--pos-solid); }
.bz-table__state--partial { color: var(--warn-solid); }
.bz-table__state--error   { color: var(--neg-solid); }
.bz-table__action { text-align: right; }

/* BRS-ticker no chrome: nunca quebra linha (topbar estreito) */
.bz-brs-ticker { flex: none; white-space: nowrap; }
.bz-brs-ticker__txt, .bz-brs-ticker__lbl, .bz-brs-ticker__val { white-space: nowrap; }

/* Marca de "vozes" — glifo da inteligência Buzzing (ecoa as 5 cores verticais do logo;
   o balão fica p/ transições, não p/ dados — diretriz identidade #4). Mata o sparkle genérico de IA. */
.bz-voices-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.bz-voices-mark > span { width: 2.5px; border-radius: 2px; }
.bz-voices-mark > span:nth-child(1) { height: 6px;  background: var(--brand-cyan); }
.bz-voices-mark > span:nth-child(2) { height: 11px; background: var(--pos); }
.bz-voices-mark > span:nth-child(3) { height: 8px;  background: var(--warn); }
.bz-voices-mark > span:nth-child(4) { height: 13px; background: var(--neg); }
.bz-voices-mark > span:nth-child(5) { height: 7px;  background: var(--brand-signature); }

/* Ticker BRS simplificado (texto — NÃO repete o anel do hero) */
.bz-brs-ticker--compact { padding: 6px 14px; gap: var(--space-2); }
.bz-brs-ticker__num { font-family: var(--font-display); font-size: var(--fs-body); font-weight: var(--fw-heavy); color: var(--tinta); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bz-brs-ticker__band { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--action-solid); }
.bz-brs-ticker__delta { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--pos-solid); font-variant-numeric: tabular-nums; }
