/* OBSERVACAO: Identidade Banca SythaxAdv — navy/ouro/Cormorant + dopamina de admiração.
   Fonte de verdade visual do produto jurídico. Carregar DEPOIS de styles.css / calculos.css. */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --banca-ink: #070d18;
  --banca-navy: #0b0f19;
  --banca-navy-mid: #121a28;
  --banca-gold: #d4af37;
  --banca-gold-soft: #e8c96a;
  --banca-gold-deep: #9a7724;
  --banca-cream: #f4f0e6;
  --banca-muted: #8b9bb3;
  --banca-ink-soft: #e8eef7;
  --banca-line: rgba(212, 175, 55, 0.22);
  --banca-line-soft: rgba(148, 163, 184, 0.14);
  --banca-panel: rgba(12, 22, 40, 0.78);
  --banca-radius: 4px;
  --banca-font: "Instrument Sans", "Inter", system-ui, sans-serif;
  --banca-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --banca-bg:
    radial-gradient(ellipse 55% 40% at 50% -8%, rgba(212, 175, 55, 0.1), transparent 55%),
    linear-gradient(180deg, #0b0f19 0%, #0a101c 48%, #070d18 100%);
  --banca-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --banca-hit-shadow: 0 0 48px rgba(232, 201, 106, 0.4);

  /* Alinha tokens legados */
  --navy-950: var(--banca-ink);
  --navy-900: var(--banca-navy);
  --navy-800: var(--banca-navy-mid);
  --gold-600: var(--banca-gold-deep);
  --gold-500: #b8922e;
  --gold-400: var(--banca-gold);
  --gold-300: var(--banca-gold-soft);
  --ia-violet: var(--banca-navy-mid);
  --ia-glow: rgba(212, 175, 55, 0.12);
}

/* ——— Canvas do escritório ——— */
body.app-view {
  font-family: var(--banca-font);
  color: var(--banca-ink-soft);
  background: var(--banca-bg);
}

body.app-view .main {
  color: var(--banca-ink-soft);
  background: transparent;
}

body.app-view h1,
body.app-view h2,
body.app-view h3,
body.app-view .section-title h2,
body.app-view .section-title h3,
body.app-view .breadcrumb,
body.app-view .wizard-panel__head h3,
body.app-view .panel h3 {
  font-family: var(--banca-display);
  color: var(--banca-cream);
  letter-spacing: 0.01em;
}

body.app-view .muted,
body.app-view .eyebrow,
body.app-view .wizard-intro,
body.app-view .cnis-upload-hint {
  color: var(--banca-muted);
}

/* Painéis / cards — sem SaaS puff */
body.app-view .panel,
body.app-view .tool-card,
body.app-view .ln-card,
body.app-view .prazo-card,
body.app-view .plano-card,
body.app-view .wa-card,
body.app-view .output-box,
body.app-view .wizard-panel,
body.app-view .modal-card,
body.app-view .form-card {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1) !important;
  color: var(--banca-ink-soft);
}

body.app-view .tool-card.featured {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(12, 22, 40, 0.4)),
    var(--banca-panel) !important;
  border-color: var(--banca-line) !important;
}

/* Formulários */
body.app-view input,
body.app-view select,
body.app-view textarea {
  background: rgba(7, 13, 24, 0.65);
  border: 1px solid var(--banca-line-soft);
  border-radius: var(--banca-radius);
  color: var(--banca-cream);
}

body.app-view input:focus,
body.app-view select:focus,
body.app-view textarea:focus {
  outline: none;
  border-color: var(--banca-gold);
  box-shadow: none;
}

body.app-view label {
  color: var(--banca-muted);
}

/* Tabelas */
body.app-view .data-table,
body.app-view .table-wrap {
  background: rgba(7, 13, 24, 0.35);
  border-color: var(--banca-line-soft);
  border-radius: var(--banca-radius);
  color: var(--banca-ink-soft);
}

body.app-view .data-table thead th {
  background: rgba(7, 13, 24, 0.9);
  color: var(--banca-gold-soft);
  border-color: var(--banca-line-soft);
}

body.app-view .data-table td,
body.app-view .data-table th {
  border-color: var(--banca-line-soft);
  color: var(--banca-ink-soft);
}

body.app-view .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

body.app-view .data-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.07);
}

/* Botões — identidade + shine (dopamina) */
body.app-view .btn,
body.app-view .btn-primary,
body.app-view .btn-soft,
body.app-view .btn-gold,
body.app-view .btn-ia {
  border-radius: var(--banca-radius);
  font-family: var(--banca-font);
  font-weight: 600;
}

body.app-view .btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--banca-gold-deep), var(--banca-gold-soft));
  color: var(--banca-ink);
  border: 1px solid transparent;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.32);
}

body.app-view .btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.38) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.55s var(--banca-ease);
  pointer-events: none;
}

body.app-view .btn-gold:hover::after {
  transform: translateX(130%);
}

body.app-view .btn-gold:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(232, 200, 90, 0.48);
}

body.app-view .btn-primary {
  background: var(--banca-navy-mid);
  color: var(--banca-cream);
  border: 1px solid var(--banca-line);
}

body.app-view .btn-soft {
  background: transparent;
  color: var(--banca-ink-soft);
  border: 1px solid var(--banca-line-soft);
}

body.app-view .btn-ia {
  background: var(--banca-navy-mid);
  color: var(--banca-gold-soft);
  border: 1px solid var(--banca-line);
}

/* Chips / pills → tipografia */
body.app-view .chip,
body.app-view .tag,
body.app-view .badge,
body.app-view .wizard-side-block__count,
body.app-view .calculos-hub-chip {
  border-radius: var(--banca-radius) !important;
}

/* Wizard / seções genéricas */
body.app-view #section-calculo-wizard:not(.hidden),
body.app-view #section-contatos:not(.hidden),
body.app-view #section-contato-detail:not(.hidden),
body.app-view #section-petition:not(.hidden),
body.app-view #section-comunicacao:not(.hidden),
body.app-view #section-prazos:not(.hidden),
body.app-view #section-prazos-calc:not(.hidden),
body.app-view #section-relatorios:not(.hidden),
body.app-view #section-tributario:not(.hidden),
body.app-view #section-equipe:not(.hidden),
body.app-view #section-meu-plano:not(.hidden),
body.app-view #section-layout-nota:not(.hidden),
body.app-view #section-cnis:not(.hidden),
body.app-view #section-transicao:not(.hidden),
body.app-view #section-tempo-oculto:not(.hidden),
body.app-view #section-ppp:not(.hidden),
body.app-view #section-liquidacao:not(.hidden),
body.app-view #section-divida:not(.hidden),
body.app-view #section-calculo-gate:not(.hidden),
body.app-view #section-contrato-publico:not(.hidden) {
  background: transparent;
  color: var(--banca-ink-soft);
}

body.app-view .wizard-sidebar,
body.app-view .wizard-rail,
body.app-view .wizard-step {
  background: transparent;
  color: var(--banca-ink-soft);
  border-color: var(--banca-line-soft);
}

body.app-view .wizard-step.active {
  border-color: var(--banca-line);
  box-shadow: inset 3px 0 0 var(--banca-gold);
}

body.app-view .wizard-step__label {
  color: var(--banca-cream);
}

body.app-view .wizard-step__hint {
  color: var(--banca-muted);
}

body.app-view .alert-soft,
body.app-view .alert-soft--warn,
body.app-view .alert-soft--ok,
body.app-view .alert-soft--info {
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--banca-line) !important;
  color: var(--banca-muted) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.app-view .result-hero,
body.app-view .result-hero--success {
  background: transparent !important;
  border-radius: 0 !important;
  text-align: left !important;
  border-bottom: 1px solid var(--banca-line) !important;
  padding: 8px 0 16px !important;
}

body.app-view .result-hero span {
  color: var(--banca-gold) !important;
}

body.app-view .result-hero strong {
  color: var(--banca-gold-soft) !important;
  text-shadow: var(--banca-hit-shadow);
}

body.app-view .result-kpis div,
body.app-view .result-kpis--stack > div {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--banca-line-soft) !important;
  border-radius: 0 !important;
  color: var(--banca-ink-soft);
}

body.app-view .razao-xai,
body.app-view .razao-xai--destaque {
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--banca-line) !important;
  color: var(--banca-ink-soft);
}

/* Modais */
body.app-view .modal,
body.app-view [class*="modal-backdrop"] {
  background: rgba(7, 13, 24, 0.72);
}

/* Topbar / user chip */
body.app-view .topbar,
body.app-view .app-top,
body.app-view .user-chip {
  color: var(--banca-ink-soft);
}

body.app-view .user-chip {
  border-radius: var(--banca-radius);
  border-color: var(--banca-line-soft);
  background: rgba(7, 13, 24, 0.45);
}

/* ——— Contraste: eliminar fundos claros + texto ilegível ——— */
body.app-view {
  --slate-50: #101a2c;
  --slate-100: #132038;
  --slate-200: rgba(148, 163, 184, 0.22);
  --slate-500: var(--banca-muted);
  --slate-700: var(--banca-ink-soft);
  --soft-blue: rgba(212, 175, 55, 0.06);
  --soft-blue-deep: rgba(212, 175, 55, 0.12);
  --soft-mint: rgba(15, 118, 110, 0.12);
  --soft-mint-deep: rgba(15, 118, 110, 0.2);
  --soft-peach: rgba(184, 146, 46, 0.1);
  --soft-peach-deep: rgba(184, 146, 46, 0.22);
  --soft-lavender: rgba(212, 175, 55, 0.08);
}

body.app-view .topbar {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1) !important;
  color: var(--banca-ink-soft);
}

body.app-view .topbar h1 {
  color: var(--banca-cream) !important;
}

body.app-view .topbar p,
body.app-view .user-chip strong,
body.app-view .user-chip span {
  color: var(--banca-muted) !important;
}

body.app-view .user-chip strong {
  color: var(--banca-cream) !important;
}

body.app-view .modal-card,
body.app-view .modal-card--wide,
body.app-view .wizard-panel,
body.app-view .provas-block,
body.app-view .contato-profile,
body.app-view .contato-layout > *,
body.app-view .calc-card,
body.app-view .calc-card--lavender,
body.app-view .calc-card--mint,
body.app-view .calc-card--blue,
body.app-view .calc-card--peach,
body.app-view .calc-card--featured,
body.app-view .ia-dock,
body.app-view .ia-panel,
body.app-view #ia-dock,
body.app-view .output-box,
body.app-view .table-wrap,
body.app-view .empty-state,
body.app-view .stat-card,
body.app-view .kpi-card,
body.app-view .result-kpis > div,
body.app-view .mapa-calor,
body.app-view .mapa-cell,
body.app-view .conversao-card,
body.app-view .contrato-publico-card,
body.app-view .prazo-item,
body.app-view .prazo-kpi,
body.app-view .plano-quota,
body.app-view .wa-fila-item,
body.app-view .continuar-item,
body.app-view .ln-tab,
body.app-view .section-block,
body.app-view .form-section,
body.app-view details.wizard-side-block,
body.app-view .wizard-side-block,
body.app-view .cnis-card,
body.app-view .cnis-visao-painel,
body.app-view .holerite-anexos-lista li,
body.app-view .provas-anexos-lista li {
  background: var(--banca-panel) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
  box-shadow: none !important;
}

body.app-view .calc-card h3,
body.app-view .panel h3,
body.app-view .panel strong,
body.app-view .wizard-panel h3,
body.app-view .wizard-panel strong,
body.app-view .modal-card h3,
body.app-view .contato-profile__header h2,
body.app-view .calc-row h3,
body.app-view .section-title h3,
body.app-view .section-title h2 {
  color: var(--banca-cream) !important;
}

body.app-view .calc-card__desc,
body.app-view .calc-card__sub,
body.app-view .calc-row__desc,
body.app-view .calc-row__sub,
body.app-view .panel > p,
body.app-view .wizard-intro,
body.app-view .contato-profile__dl,
body.app-view .contato-meta {
  color: var(--banca-muted) !important;
}

body.app-view .data-table th,
body.app-view .data-table td,
body.app-view .data-table strong {
  color: var(--banca-ink-soft) !important;
}

body.app-view .data-table thead th {
  color: var(--banca-gold-soft) !important;
  background: rgba(7, 13, 24, 0.92) !important;
}

/* Contatos: sem faixa branca por cima das linhas */
body.app-view .contatos-table-wrap {
  background: var(--banca-panel, rgba(12, 22, 40, 0.78)) !important;
  border: 1px solid var(--banca-line-soft, rgba(148, 163, 184, 0.14)) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08) !important;
  border-radius: var(--banca-radius, 4px) !important;
}

body.app-view #section-contatos .data-table {
  background: transparent !important;
  color: var(--banca-ink-soft, #e8eef7);
}

body.app-view #section-contatos .data-table tbody tr {
  background: transparent;
  cursor: pointer;
}

body.app-view #section-contatos .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

body.app-view #section-contatos .data-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.1);
}

body.app-view #section-contatos .data-table strong {
  color: var(--banca-cream, #f4f0e6) !important;
}

body.app-view #section-contatos .contato-meta {
  color: var(--banca-muted, #8b9bb3) !important;
}

body.app-view #section-contatos .contatos-search,
body.app-view #section-contatos .chip {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-contatos .chip.active {
  border-color: var(--banca-line) !important;
  color: var(--banca-gold-soft) !important;
  background: rgba(212, 175, 55, 0.12) !important;
}

/* Detalhe do contato — sem clarão branco nos cards */
body.app-view #section-contato-detail .contato-profile {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  box-shadow: none !important;
  border-radius: var(--banca-radius) !important;
}

body.app-view #section-contato-detail .contato-profile__avatar,
body.app-view #section-contato-detail .contato-avatar {
  background: rgba(7, 13, 24, 0.85) !important;
  color: var(--banca-gold-soft) !important;
  border: 1px solid var(--banca-line) !important;
  box-shadow: none !important;
}

body.app-view #section-contato-detail .calc-list-item {
  background: rgba(7, 13, 24, 0.55) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  box-shadow: none !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-contato-detail .calc-list-item:hover {
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: none !important;
}

body.app-view #section-contato-detail .calc-list-item strong {
  color: var(--banca-cream) !important;
}

body.app-view #section-contato-detail .calc-list-item span,
body.app-view #section-contato-detail .calc-list-item small,
body.app-view #section-contato-detail .calc-list-item__chev {
  color: var(--banca-muted) !important;
}

body.app-view #section-contato-detail .calc-list-item__tag {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--banca-gold-soft) !important;
}

body.app-view #section-contato-detail .contato-tabs {
  border-bottom-color: var(--banca-line-soft) !important;
}

body.app-view #section-contato-detail .contato-tab {
  color: var(--banca-muted) !important;
}

body.app-view #section-contato-detail .contato-tab.active {
  color: var(--banca-cream) !important;
  border-bottom-color: var(--banca-gold) !important;
}

body.app-view #section-contato-detail .contato-tabs-wrap,
body.app-view #section-contato-detail .cliente-pasta__col,
body.app-view #section-contato-detail .cliente-pasta__check-item,
body.app-view #section-contato-detail .cliente-pasta__file,
body.app-view #section-contato-detail .adv-ia-sala__card {
  background: transparent !important;
}

body.app-view #section-contato-detail .cliente-pasta__col,
body.app-view #section-contato-detail .cliente-pasta__check-item,
body.app-view #section-contato-detail .cliente-pasta__file,
body.app-view #section-contato-detail .adv-ia-sala__citacoes {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-contato-detail .adv-ia-sala__citacoes h5 {
  color: var(--banca-cream) !important;
}
body.app-view #section-contato-detail .adv-ia-sala__pre--trecho {
  background: rgba(15, 23, 42, 0.7) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-contato-detail .adv-ia-sala__card,
body.app-view #section-contato-detail .adv-andamento__form,
body.app-view #section-contato-detail .adv-andamento__item {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-contato-detail .adv-andamento__head h3,
body.app-view #section-contato-detail .adv-andamento__item p {
  color: var(--banca-cream) !important;
}
body.app-view #section-contato-detail .adv-andamento__item.is-exige {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

body.app-view #section-contato-detail .cliente-pasta__check-label,
body.app-view #section-contato-detail .cliente-pasta__col header h3,
body.app-view #section-contato-detail .cliente-pasta__checklist h3,
body.app-view #section-contato-detail .adv-ia-sala__head h3,
body.app-view #section-contato-detail .cliente-pasta__file strong {
  color: var(--banca-cream) !important;
}

body.app-view #section-contato-detail .cliente-pasta__hint,
body.app-view #section-contato-detail .cliente-pasta__check-det,
body.app-view #section-contato-detail .adv-ia-sala__head p {
  color: var(--banca-muted) !important;
}

body.app-view #section-contato-detail .chip,
body.app-view #section-contato-detail select.chip {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}

/* Texto legado navy/slate escuro em fundo Banca */
body.app-view .main p,
body.app-view .main li,
body.app-view .main span:not(.brand-mark):not([class*="icon"]):not([class*="heatmap"]):not([class*="periodo"]),
body.app-view .main label,
body.app-view .main dd,
body.app-view .main dt {
  color: inherit;
}

body.app-view .main .panel,
body.app-view .main .wizard-panel,
body.app-view .main .modal-card,
body.app-view .main article {
  color: var(--banca-ink-soft);
}

/* Inputs nativos claros do browser */
body.app-view input:not([type="checkbox"]):not([type="radio"]),
body.app-view select,
body.app-view textarea {
  background: rgba(7, 13, 24, 0.85) !important;
  color: var(--banca-cream) !important;
  border-color: var(--banca-line-soft) !important;
  -webkit-text-fill-color: var(--banca-cream);
}

body.app-view input::placeholder,
body.app-view textarea::placeholder {
  color: var(--banca-muted) !important;
  opacity: 1;
}

body.app-view option {
  background: #0c1628;
  color: var(--banca-cream);
}

/* Prévia de imagem OCR / anexos: não cobrir texto */
body.app-view #cnis-ocr-preview,
body.app-view img.cnis-ocr-preview,
body.app-view .cnis-scroll img {
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid var(--banca-line-soft);
  border-radius: var(--banca-radius);
  max-height: 160px;
  object-fit: contain;
}

/* Listas / badges claros remanescentes */
body.app-view .calc-card__tag,
body.app-view .calc-row__tag,
body.app-view .tr-badge,
body.app-view .status-pill,
body.app-view .chip,
body.app-view .badge {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--banca-gold-soft) !important;
  border: 1px solid var(--banca-line) !important;
}

body.app-view .btn-soft {
  background: rgba(7, 13, 24, 0.45) !important;
  color: var(--banca-ink-soft) !important;
  border: 1px solid var(--banca-line-soft) !important;
}

body.app-view .btn-primary {
  color: var(--banca-cream) !important;
}

/* Botão ouro mantém tinta escura legível */
body.app-view .btn-gold,
body.app-view .btn-gold * {
  color: var(--banca-ink) !important;
  -webkit-text-fill-color: var(--banca-ink);
}

/* ——— Dopamina: utilitários ——— */
.banca-valor {
  font-family: var(--banca-display);
  font-weight: 600;
  color: var(--banca-gold-soft);
  letter-spacing: 0.01em;
}

.banca-valor.is-hit,
.banca-hit {
  animation: banca-admiracao 0.85s var(--banca-ease);
}

.banca-shine {
  position: relative;
  overflow: hidden;
}

.banca-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.55s var(--banca-ease);
  pointer-events: none;
}

.banca-shine:hover::after {
  transform: translateX(130%);
}

@keyframes banca-admiracao {
  0% {
    transform: scale(0.94);
    text-shadow: 0 0 0 transparent;
    opacity: 0.55;
  }
  45% {
    transform: scale(1.04);
    text-shadow: var(--banca-hit-shadow);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 28px rgba(232, 201, 106, 0.28);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banca-valor.is-hit,
  .banca-hit,
  body.app-view .btn-gold::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Home mesa de comando (Spotlight + dock + feed/pulso) ——— */
body.app-view #section-workspace.home-cockpit--mesa,
body.app-view #section-workspace.home-cockpit--cmd {
  --home-surface: #0b0f19;
  --home-surface-2: #101826;
  --home-surface-3: #151e2e;
  background: transparent;
  color: var(--banca-ink-soft);
  border-radius: 0;
  padding: 28px 24px 48px;
  border: 0;
  box-shadow: none;
  max-width: 1180px;
  margin: 0 auto 24px;
  position: relative;
}

body.app-view #section-workspace.home-cockpit--cmd::before {
  content: "";
  position: absolute;
  inset: -40px 10% auto;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 68%);
  z-index: 0;
}

body.app-view #section-workspace.home-cockpit--cmd > * {
  position: relative;
  z-index: 1;
}

body.app-view #section-workspace.home-cockpit--cmd .home-exec {
  margin: 0 auto 22px;
  max-width: 920px;
  text-align: center;
  font-family: var(--banca-font);
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--banca-ink-soft);
}

/* Command trigger (Raycast-like) */
body.app-view .home-cmd-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
  max-width: 720px;
}

body.app-view .home-cmd-trigger {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--banca-muted);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s var(--banca-ease), box-shadow 0.18s var(--banca-ease);
}

body.app-view .home-cmd-trigger:hover,
body.app-view .home-cmd-trigger:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 22px 48px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(212, 175, 55, 0.08);
  outline: none;
}

body.app-view .home-cmd-trigger__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 99px;
  border: 1.5px solid currentColor;
  opacity: 0.55;
  position: relative;
}
body.app-view .home-cmd-trigger__ico::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 1px;
}

body.app-view .home-cmd-trigger__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--banca-muted);
}

body.app-view .home-cmd-trigger__kbd,
body.app-view .home-cmd-field__kbd {
  font-family: var(--banca-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--banca-muted);
}

/* Overlay Spotlight */
body.app-view .home-cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 12vh 16px 24px;
}
body.app-view .home-cmd-overlay.hidden,
body.app-view .home-cmd-overlay[hidden] {
  display: none !important;
}
body.app-view .home-cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.app-view .home-cmd-panel {
  position: relative;
  width: min(640px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, #121a28, #0b0f19 70%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
body.app-view .home-cmd-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
}
body.app-view .home-cmd-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--banca-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}
body.app-view .home-cmd-tab.is-active {
  color: var(--banca-cream);
  box-shadow: inset 0 -2px 0 var(--banca-gold);
}
body.app-view .home-cmd-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
body.app-view .home-cmd-field .home-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--banca-cream);
  font: inherit;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  box-shadow: none;
}
body.app-view .home-cmd-field .home-search::placeholder {
  color: var(--banca-muted);
}
body.app-view .home-cmd-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}
body.app-view .home-cmd-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
body.app-view .home-cmd-item:hover,
body.app-view .home-cmd-item:focus-visible {
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}
body.app-view .home-cmd-item strong {
  color: var(--banca-cream);
  font-size: 13px;
  font-weight: 600;
}
body.app-view .home-cmd-item span {
  color: var(--banca-muted);
  font-size: 12px;
}
body.app-view .home-cmd-hint {
  padding: 16px 12px;
  color: var(--banca-muted);
  font-size: 13px;
}

/* Dock glass monoline */
body.app-view .home-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(16, 24, 38, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
body.app-view .home-dock__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--banca-muted);
  min-width: 76px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: inherit;
  transition: color 0.15s ease, background 0.15s ease;
}
body.app-view .home-dock__btn.is-hidden {
  display: none;
}
body.app-view .home-dock__btn:hover,
body.app-view .home-dock__btn:focus-visible {
  color: var(--banca-cream);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
body.app-view .home-dock__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: inherit;
  opacity: 0.85;
}
body.app-view .home-dock__ico svg {
  stroke-width: 1.5;
}
body.app-view .home-dock__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Stage: feed + pulse */
body.app-view .home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
}

body.app-view .home-feed,
body.app-view .home-pulse {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--home-surface-2);
  padding: 18px 18px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.app-view .home-feed__eyebrow,
body.app-view .home-pulse__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--banca-muted);
}

body.app-view .home-feed__head,
body.app-view .home-pulse__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.app-view .home-feed__head h3,
body.app-view .home-pulse__head h3 {
  margin: 0;
  font-family: var(--banca-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--banca-cream);
}

body.app-view .home-feed__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.app-view .btn-ghost-gold {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(7, 13, 24, 0.65);
  color: var(--banca-cream);
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
body.app-view .btn-ghost-gold:hover,
body.app-view .btn-ghost-gold:focus-visible {
  border-color: var(--banca-gold);
  color: var(--banca-gold-soft);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

body.app-view .home-feed__list {
  display: grid;
  gap: 4px;
}

body.app-view .home-feed__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
body.app-view .home-feed__item:hover,
body.app-view .home-feed__item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
body.app-view .home-feed__item.is-hidden {
  display: none !important;
}
body.app-view .home-feed__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}
body.app-view .home-feed__body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--banca-cream);
  line-height: 1.35;
}
body.app-view .home-feed__body small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--banca-muted);
}
body.app-view .home-feed__kind {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 155, 179, 0.75);
  padding-top: 3px;
}

body.app-view .home-feed__empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 12px 18px;
  text-align: center;
  color: var(--banca-muted);
}
body.app-view .home-feed__empty p {
  margin: 0;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--banca-ink-soft);
}
body.app-view .home-feed__empty-art {
  width: 120px;
  height: 64px;
  color: rgba(148, 163, 184, 0.28);
}

body.app-view .home-pulse__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
body.app-view .home-pulse__stat {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(7, 13, 24, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
body.app-view .home-pulse__stat-val {
  font-family: var(--banca-font);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--banca-cream);
  line-height: 1;
}
body.app-view .home-pulse__stat-val.is-hit {
  animation: banca-kpi-hit-gold 0.7s ease-out;
}
body.app-view .home-pulse__stat--gold .home-pulse__stat-val {
  color: var(--banca-gold-soft);
}
body.app-view .home-pulse__stat-lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--banca-muted);
  line-height: 1.25;
}

body.app-view .home-pulse__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
body.app-view .home-pulse__bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
body.app-view .home-pulse__bar span {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(232, 201, 106, 0.85), rgba(212, 175, 55, 0.25));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}
body.app-view .home-pulse__bar em {
  font-style: normal;
  font-size: 10px;
  color: var(--banca-muted);
}

@keyframes banca-kpi-hit-gold {
  0% {
    color: var(--banca-gold);
    text-shadow: var(--banca-hit-shadow);
    opacity: 0.55;
  }
  100% {
    color: var(--banca-gold-soft);
    text-shadow: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-view .home-pulse__stat-val.is-hit {
    animation: none;
  }
}

@media (max-width: 900px) {
  body.app-view .home-stage {
    grid-template-columns: 1fr;
  }
  body.app-view .home-dock {
    width: 100%;
  }
  body.app-view .home-dock__btn {
    min-width: 64px;
  }
}

/* Sidebar: ícones apagados + linha ouro no ativo/hover */
body.app-view .sidebar nav a .nav-ico,
body.app-view .sidebar .nav-block a .nav-ico {
  opacity: 0.42;
  background: transparent !important;
  transition: opacity 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
body.app-view .sidebar nav a,
body.app-view .sidebar .nav-block a {
  box-shadow: none;
}
body.app-view .sidebar nav a:hover .nav-ico,
body.app-view .sidebar nav a.active .nav-ico,
body.app-view .sidebar .nav-block a:hover .nav-ico,
body.app-view .sidebar .nav-block a.active .nav-ico {
  opacity: 1;
  color: var(--banca-gold-soft);
}
body.app-view .sidebar nav a:hover,
body.app-view .sidebar nav a.active,
body.app-view .sidebar .nav-block a:hover,
body.app-view .sidebar .nav-block a.active {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 2px 0 0 var(--banca-gold);
  color: var(--banca-cream);
}

/* FAB IA: ouro Banca (não violeta SaaS) */
body.app-view .ia-fab,
body.app-view #ia-fab {
  background: linear-gradient(180deg, var(--banca-gold-soft), var(--banca-gold), var(--banca-gold-deep)) !important;
  color: var(--banca-ink) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

/* ——— Meu plano: sem cards brancos (texto claro ilegível) ——— */
body.app-view #section-meu-plano .plano-quotas article,
body.app-view #section-meu-plano .plano-flags li,
body.app-view .meu-plano-panel .plano-quotas article,
body.app-view .meu-plano-panel .plano-flags li {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
  box-shadow: none !important;
}

body.app-view #section-meu-plano .plano-quotas h3,
body.app-view #section-meu-plano .plano-billing h3,
body.app-view #section-meu-plano .plano-flags h3,
body.app-view #section-meu-plano .plano-hero h2,
body.app-view .meu-plano-panel .plano-quotas h3,
body.app-view .meu-plano-panel .plano-billing h3,
body.app-view .meu-plano-panel .plano-flags h3,
body.app-view .meu-plano-panel .plano-hero h2 {
  color: var(--banca-cream) !important;
}

body.app-view #section-meu-plano .plano-quotas small,
body.app-view #section-meu-plano .plano-flags li span,
body.app-view #section-meu-plano .plano-hero p,
body.app-view #section-meu-plano .plano-fonte,
body.app-view #section-meu-plano .plano-nota,
body.app-view #section-meu-plano .muted,
body.app-view .meu-plano-panel .plano-quotas small,
body.app-view .meu-plano-panel .plano-flags li span {
  color: var(--banca-muted) !important;
}

body.app-view #section-meu-plano .quota-bar {
  background: rgba(148, 163, 184, 0.22) !important;
}

body.app-view #section-meu-plano .plano-flags li.on em {
  color: #34d399 !important;
}

body.app-view #section-meu-plano .plano-flags li.off em {
  color: var(--banca-muted) !important;
}

/* ——— Wizard cálculo: painel navy + meta densa (sem clarão branco) ——— */
body.app-view #section-calculo-wizard .wizard-main,
body.app-view #section-calculo-wizard .wizard-main--plain .wizard-nav {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-calculo-wizard .wizard-sidebar {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: var(--banca-line-soft) !important;
}

body.app-view #section-calculo-wizard .wizard-step.active {
  background: rgba(212, 175, 55, 0.08) !important;
  color: var(--banca-cream) !important;
  box-shadow: inset 3px 0 0 var(--banca-gold) !important;
}

body.app-view #section-calculo-wizard .wizard-step.active .wizard-step__num {
  background: var(--banca-gold) !important;
  color: var(--banca-navy) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.app-view #section-calculo-wizard .wizard-step__num {
  background: rgba(7, 13, 24, 0.85) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-muted) !important;
}

body.app-view #section-calculo-wizard .wizard-step:not(.active):not(:disabled):hover {
  background: rgba(212, 175, 55, 0.06) !important;
  color: var(--banca-cream) !important;
}

body.app-view #section-calculo-wizard .wizard-head h2 {
  color: var(--banca-cream) !important;
}

body.app-view #section-calculo-wizard .wizard-head .breadcrumb {
  color: var(--banca-muted) !important;
}

body.app-view #section-calculo-wizard .wizard-head__facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--banca-line-soft);
  border-radius: var(--banca-radius);
  background: rgba(7, 13, 24, 0.55);
}

body.app-view #section-calculo-wizard .wizard-head__facts > div {
  min-width: 0;
}

body.app-view #section-calculo-wizard .wizard-head__facts dt {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--banca-muted);
}

body.app-view #section-calculo-wizard .wizard-head__facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--banca-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.app-view #section-calculo-wizard .wizard-head__facts-cliente {
  grid-column: span 2;
}

body.app-view #section-calculo-wizard .wizard-config-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(110px, 0.7fr)) minmax(0, 1.3fr);
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--banca-line-soft);
  border-radius: var(--banca-radius);
  background: rgba(7, 13, 24, 0.4);
}

body.app-view #section-calculo-wizard .wizard-config-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

body.app-view #section-calculo-wizard .wizard-config-bar input,
body.app-view #section-calculo-wizard .wizard-config-bar select {
  width: 100%;
  min-height: 36px;
}

body.app-view #section-calculo-wizard .wizard-chip {
  background: rgba(7, 13, 24, 0.7) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}

@media (max-width: 1100px) {
  body.app-view #section-calculo-wizard .wizard-head__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-view #section-calculo-wizard .wizard-head__facts-cliente {
    grid-column: span 1;
  }

  body.app-view #section-calculo-wizard .wizard-config-bar {
    grid-template-columns: 1fr 1fr;
  }

  body.app-view #section-calculo-wizard .wizard-config-bar__nome,
  body.app-view #section-calculo-wizard .wizard-config-bar__cliente {
    grid-column: 1 / -1;
  }
}

/* ——— Análise CNIS: faixa de navegação sem branco ——— */
body.app-view #section-cnis-analise .wizard-nav,
body.app-view #section-cnis-analise .wizard-main--plain .wizard-nav {
  background: var(--banca-panel) !important;
  border: 1px solid var(--banca-line-soft) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-cnis-analise .wizard-nav .btn-soft {
  background: rgba(7, 13, 24, 0.7) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-cream) !important;
}

/* ——— Chip cliente WSA (sidebar) ——— */
.wsa-client-chip {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--banca-line, rgba(212, 175, 55, 0.35));
  border-radius: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--banca-gold-soft, #e8c96a);
  background: rgba(212, 175, 55, 0.08);
}

.wsa-client-chip[hidden] {
  display: none !important;
}

/* ——— Contraste: WhatsApp status + mapa de calor (sem branco ilegível) ——— */
body.app-view .metric-card,
body.app-view #comunicacao-status.metric-card {
  background: rgba(7, 13, 24, 0.55) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view .metric-card strong,
body.app-view #comunicacao-status.metric-card strong {
  color: var(--banca-gold-soft) !important;
}

body.app-view .metric-card span,
body.app-view #comunicacao-status.metric-card span,
body.app-view #comunicacao-status.metric-card small {
  color: var(--banca-ink-soft) !important;
}

body.app-view .wa-tabs .wa-tab {
  background: rgba(7, 13, 24, 0.7) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view .wa-tabs .wa-tab.active {
  background: rgba(212, 175, 55, 0.16) !important;
  border-color: var(--banca-line) !important;
  color: var(--banca-gold-soft) !important;
}

body.app-view .wa-fila-item {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view .heatmap-pill {
  border-radius: var(--banca-radius) !important;
  border: 1px solid transparent !important;
  font-weight: 600 !important;
}

body.app-view .heatmap-pill--verde {
  background: rgba(22, 163, 74, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #bbf7d0 !important;
}

body.app-view .heatmap-pill--amarelo {
  background: rgba(217, 119, 6, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fde68a !important;
}

body.app-view .heatmap-pill--vermelho {
  background: rgba(220, 38, 38, 0.2) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

body.app-view tr.heatmap-row--verde {
  background: rgba(22, 163, 74, 0.14) !important;
}

body.app-view tr.heatmap-row--amarelo {
  background: rgba(217, 119, 6, 0.16) !important;
}

body.app-view tr.heatmap-row--vermelho {
  background: rgba(220, 38, 38, 0.14) !important;
}

body.app-view tr.heatmap-row td,
body.app-view tr.heatmap-row td strong {
  color: var(--banca-ink-soft) !important;
}

body.app-view .heatmap-motivo {
  color: var(--banca-muted) !important;
}

body.app-view .data-table--heatmap,
body.app-view .table-wrap:has(.data-table--heatmap) {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: var(--banca-line-soft) !important;
}

/* ——— Acima do teto: cards de período legíveis + área maior ——— */
body.app-view .periodo-row,
#section-cnis-analise.cnis-analise-shell--dark .periodo-row,
#section-cnis-analise.cnis-analise-shell--escritorio .periodo-row {
  background: rgba(7, 13, 24, 0.72) !important;
  border: 1px solid var(--banca-line-soft) !important;
  border-radius: var(--banca-radius) !important;
  color: var(--banca-ink-soft) !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.06) !important;
}

body.app-view .periodo-row:hover,
#section-cnis-analise.cnis-analise-shell--dark .periodo-row:hover {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: var(--banca-line) !important;
}

body.app-view .periodo-row--alerta,
#section-cnis-analise.cnis-analise-shell--dark .periodo-row--alerta {
  background: rgba(220, 38, 38, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}

body.app-view .periodo-row strong,
#section-cnis-analise.cnis-analise-shell--dark .periodo-row strong {
  color: var(--banca-gold-soft) !important;
}

body.app-view .periodo-row span,
body.app-view .periodo-row .periodo-inds,
body.app-view .periodo-chev,
#section-cnis-analise.cnis-analise-shell--dark .periodo-row span,
#section-cnis-analise.cnis-analise-shell--dark .periodo-chev {
  color: var(--banca-muted) !important;
}

body.app-view .periodo-badge,
#section-cnis-analise.cnis-analise-shell--dark .periodo-badge {
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--banca-gold-soft) !important;
  border: 1px solid var(--banca-line) !important;
  border-radius: var(--banca-radius) !important;
}

body.app-view #cnis-periodos-list,
#section-cnis-analise #cnis-periodos-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.app-view #section-cnis-analise #cnis-qualidade-card .cnis-card,
body.app-view #section-cnis-analise #cnis-prontuario-panel .cnis-card,
body.app-view #section-cnis-analise .prontuario-card {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-cnis-analise .prontuario-passos,
body.app-view #section-cnis-analise .prontuario-impacto,
body.app-view #section-cnis-analise .cnis-card__body,
body.app-view #section-cnis-analise .cnis-card__body p {
  color: var(--banca-ink-soft) !important;
}

body.app-view #section-cnis-analise .cnis-card__body strong,
body.app-view #section-cnis-analise .prontuario-kpis strong {
  color: var(--banca-gold-soft) !important;
}

/* Restituição SELIC: tipografia clara sempre (não navy legado) */
body.app-view #section-cnis-analise .data-table--teto-legivel td,
body.app-view #section-cnis-analise .data-table--teto-legivel th,
body.app-view #section-cnis-analise .data-table--teto-legivel strong,
body.app-view #section-cnis-analise .data-table--teto-legivel .num,
body.app-view #section-cnis-analise .data-table--teto-legivel span {
  color: #e8eef7 !important;
  -webkit-text-fill-color: #e8eef7 !important;
}

body.app-view #section-cnis-analise .data-table--teto-legivel thead th {
  color: #e8c96a !important;
  -webkit-text-fill-color: #e8c96a !important;
}

body.app-view #section-cnis-analise .data-table--teto-legivel td.cell-agg--destaque {
  color: #e8c96a !important;
  -webkit-text-fill-color: #e8c96a !important;
}

body.app-view #section-cnis-analise .cnis-teto-hero__valor {
  color: #e8c96a !important;
  -webkit-text-fill-color: #e8c96a !important;
}

/* H1.1 — rail cálculo → petição (Banca premium) */
body.app-view .calculo-peticao-rail,
body.app-view .calculo-peticao-preview {
  background: rgba(8, 14, 28, 0.72) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1) !important;
  color: var(--banca-ink-soft) !important;
}

body.app-view .calculo-peticao-rail__title,
body.app-view .calculo-peticao-preview h4 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: var(--banca-cream) !important;
}

body.app-view .calculo-peticao-rail__valor.banca-valor,
body.app-view .resultado-peticao-layout .banca-valor {
  color: var(--banca-gold) !important;
  -webkit-text-fill-color: var(--banca-gold) !important;
}

body.app-view .calculo-peticao-rail__lead,
body.app-view .calculo-peticao-rail__valor-label,
body.app-view .calculo-peticao-rail__foot {
  color: var(--banca-muted) !important;
}

body.app-view .calculo-peticao-preview__body summary {
  color: var(--banca-gold-soft) !important;
}

/* Modal cruzar holerite × CNIS — contraste drop-zone + checklist */
body.app-view #modal-cruzar-holerite .modal-card > p,
body.app-view #modal-cruzar-holerite .cnis-upload-status,
body.app-view #modal-cruzar-holerite .holerite-anexos-lista,
body.app-view #modal-cruzar-holerite .holerite-anexos-lista li {
  color: var(--banca-ink-soft) !important;
}

body.app-view #modal-cruzar-holerite .modal-card > p strong {
  color: var(--banca-cream) !important;
}

body.app-view #modal-cruzar-holerite .drop-zone,
body.app-view .drop-zone {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line) !important;
  color: var(--banca-cream) !important;
  -webkit-text-fill-color: var(--banca-cream);
}

body.app-view #modal-cruzar-holerite .drop-zone.is-drag,
body.app-view .drop-zone.is-drag {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: var(--banca-gold) !important;
  color: var(--banca-cream) !important;
}

body.app-view #modal-cruzar-holerite textarea.cnis-paste,
body.app-view #modal-cruzar-holerite textarea.cnis-paste::placeholder {
  color: var(--banca-muted) !important;
  -webkit-text-fill-color: var(--banca-muted);
}

body.app-view #modal-cruzar-holerite textarea.cnis-paste:not(:placeholder-shown) {
  color: var(--banca-cream) !important;
  -webkit-text-fill-color: var(--banca-cream);
}

body.app-view .cruzamento-checklist {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--banca-line);
  color: var(--banca-ink-soft) !important;
}

body.app-view .cruzamento-checklist__title {
  margin: 0 0 10px;
  font-family: var(--banca-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--banca-cream) !important;
}

body.app-view .cruzamento-checklist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
}

body.app-view .cruzamento-checklist__block h5 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--banca-gold-soft) !important;
}

body.app-view .cruzamento-checklist__block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-view .cruzamento-checklist__block li {
  position: relative;
  padding: 3px 0 3px 1.15em;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--banca-ink-soft) !important;
}

body.app-view .cruzamento-checklist__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55em;
  height: 0.55em;
  border: 1px solid var(--banca-gold);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.15);
}

body.app-view .cruzamento-checklist__block li.is-ok::before {
  background: rgba(15, 118, 110, 0.45);
  border-color: #2dd4bf;
}

body.app-view .cruzamento-checklist__block li.is-warn::before {
  background: rgba(212, 175, 55, 0.35);
}

body.app-view .cruzamento-checklist__alertas {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--banca-gold);
  background: rgba(212, 175, 55, 0.06);
  color: var(--banca-ink-soft) !important;
  font-size: 0.88rem;
  line-height: 1.5;
}

body.app-view .cruzamento-checklist__alertas strong {
  color: var(--banca-gold-soft) !important;
}

body.app-view .cnis-cruzamento-sumario {
  color: var(--banca-ink-soft) !important;
}

body.app-view .cnis-cruzamento-sumario strong {
  color: var(--banca-gold) !important;
}

/* Análise — peças-chave + parecer 3 blocos */
body.app-view #section-contato-detail .adv-analise__pecas,
body.app-view #section-contato-detail .adv-analise__parecer,
body.app-view #section-contato-detail .adv-analise__atrito,
body.app-view #section-contato-detail .adv-analise__bloco,
body.app-view #section-contato-detail .adv-analise__pecas-list li,
body.app-view #section-contato-detail .adv-analise__citacoes li {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: var(--banca-line-soft) !important;
}
body.app-view #section-contato-detail .adv-analise__pecas h4,
body.app-view #section-contato-detail .adv-analise__parecer h4,
body.app-view #section-contato-detail .adv-analise__atrito h4,
body.app-view #section-contato-detail .adv-analise__bloco h5 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: var(--banca-cream) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 1.05rem !important;
}
body.app-view #section-contato-detail .adv-analise__bloco p,
body.app-view #section-contato-detail .adv-analise__pecas-list li,
body.app-view #section-contato-detail .adv-analise__fonte,
body.app-view #section-contato-detail .adv-analise__fase,
body.app-view #section-contato-detail .adv-analise__box .razao-xai {
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-contato-detail .adv-analise__cta {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
}
body.app-view #section-contato-detail .sala-resposta__mesa {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: var(--banca-cream) !important;
}

/* Módulo Peças — shell Banca */
body.app-view #section-petition.pecas-modulo .pecas-shell__head h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: var(--banca-cream) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-shell__eyebrow,
body.app-view #section-petition.pecas-modulo .pecas-shell__sub,
body.app-view #section-petition.pecas-modulo .pecas-contato-bar__chip {
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-contato-bar,
body.app-view #section-petition.pecas-modulo .pecas-panel .panel,
body.app-view #section-petition.pecas-modulo .adv-analise__pecas {
  background: rgba(7, 13, 24, 0.45) !important;
  border-color: var(--banca-line-soft) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-tabs {
  border-bottom-color: var(--banca-line-soft) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-aba {
  background: rgba(7, 13, 24, 0.35) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-aba.is-active {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--banca-cream) !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: inset 0 -2px 0 var(--banca-gold) !important;
}
body.app-view #section-petition.pecas-modulo .pecas-panel__head h3,
body.app-view #section-petition.pecas-modulo .panel h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  color: var(--banca-cream) !important;
}
body.app-view #section-petition.pecas-modulo .adv-analise__pecas,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer,
body.app-view #section-petition.pecas-modulo .adv-analise__atrito,
body.app-view #section-petition.pecas-modulo .adv-analise__bloco,
body.app-view #section-petition.pecas-modulo .adv-andamento__tribunal,
body.app-view #section-petition.pecas-modulo .adv-andamento__timeline,
body.app-view #section-petition.pecas-modulo .adv-analise__box,
body.app-view #section-petition.pecas-modulo .adv-analise__pdf-fallback {
  background: rgba(7, 13, 24, 0.55) !important;
  border-color: var(--banca-line-soft) !important;
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-petition.pecas-modulo .adv-andamento__tribunal h4,
body.app-view #section-petition.pecas-modulo .adv-andamento__timeline h4,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer h4,
body.app-view #section-petition.pecas-modulo .adv-analise__atrito h4,
body.app-view #section-petition.pecas-modulo .adv-analise__bloco h5,
body.app-view #section-petition.pecas-modulo .adv-andamento__head h3 {
  color: var(--banca-cream) !important;
}
body.app-view #section-petition.pecas-modulo .adv-andamento__tribunal label,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer label,
body.app-view #section-petition.pecas-modulo .adv-analise__atrito label,
body.app-view #section-petition.pecas-modulo .adv-analise__pecas label,
body.app-view #section-petition.pecas-modulo .adv-andamento__check {
  color: var(--banca-cream) !important;
}
body.app-view #section-petition.pecas-modulo .adv-andamento__tribunal input,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer input,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer select,
body.app-view #section-petition.pecas-modulo .adv-analise__atrito input,
body.app-view #section-petition.pecas-modulo .adv-analise__pecas select,
body.app-view #section-petition.pecas-modulo .adv-analise__pecas textarea,
body.app-view #section-petition.pecas-modulo .pecas-contato-bar select {
  background: rgba(7, 13, 24, 0.85) !important;
  border-color: var(--banca-line) !important;
  color: var(--banca-cream) !important;
}
body.app-view #section-petition.pecas-modulo .adv-andamento__tribunal input::placeholder,
body.app-view #section-petition.pecas-modulo .adv-analise__parecer input::placeholder,
body.app-view #section-petition.pecas-modulo .adv-analise__atrito input::placeholder {
  color: var(--banca-muted) !important;
  opacity: 1;
}
body.app-view #section-petition.pecas-modulo .empty-state,
body.app-view #section-petition.pecas-modulo .muted,
body.app-view #section-petition.pecas-modulo .adv-andamento__msg,
body.app-view #section-petition.pecas-modulo .pecas-analise-autos-hint {
  color: var(--banca-ink-soft) !important;
}
body.app-view #section-petition.pecas-modulo .adv-analise__pdf-fallback {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border-style: dashed !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  margin: 0 0 12px;
}
body.app-view #section-petition.pecas-modulo .adv-analise__pdf-fallback p {
  margin: 0;
  color: var(--banca-cream) !important;
  font-size: 13px;
  line-height: 1.45;
}
body.app-view #section-petition.pecas-modulo .adv-analise__pdf-fallback .btn {
  justify-self: start;
}

