/* stylelint-disable */
/* brand-check-bypass: o Painel imita a DS NATIVA do GHL (light · cinza/branco + azul/verde/vermelho semanticos), de proposito, pra parecer nativo do GoHighLevel. NAO segue a marca dark do BOOOT (carvao/creme/laranja). Fonte: _MARCA/specs/ds-painel-login.md. */
/* ============================================================================
   PAINEL BOOOT · pattern CSS
   ----------------------------------------------------------------------------
   EXCECAO DE MARCA DOCUMENTADA: o Painel imita a DS NATIVA do GHL (light),
   nao a marca dark do BOOOT (carvao/creme/laranja/Poppins). E PROPOSITAL: o
   objetivo cravado pelo dono e PARECER NATIVO do GoHighLevel (fundo cinza claro,
   cards brancos, borda fina, radius baixo, tipografia pequena/limpa Inter, AZUL
   so pra navegacao ativa/foco/grafico, verde sucesso, vermelho erro), nao uma
   peca diferente. Por isso este arquivo NAO consome _MARCA/tokens/tokens.css
   (que e a marca dark do Portal) e define o seu proprio set de tokens light.
   Fonte unica desta DS: _MARCA/specs/ds-painel-login.md (secoes 22 = CSS BASE,
   7 app shell, 8 cards, 9 grid, 10 KPIs, 11 badges, 15 estado vazio,
   17 lista de tarefas, 19 icones, 24 checklist de fidelidade).
   Qualquer ajuste visual do Painel volta NAQUELA spec, nunca aqui no olho.
   ============================================================================ */

:root {
  /* Backgrounds */
  --bg-app: #F3F4F7;
  --bg-page: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-soft: #FAFBFC;

  /* Textos */
  --text-primary: #2F4056;
  --text-heading: #181E29;
  --text-secondary: #4A5B64;
  --text-muted: #747E87;
  --text-soft: #A7AFBC;

  /* Bordas */
  --border-default: #DCE0E4;
  --border-soft: #EBEEF0;
  --border-card: #E1E5EA;

  /* Marca / acao / grafico (AZUL · so navegacao ativa, foco, grafico) */
  --brand-blue: #43A5DC;
  --blue-primary: #52B3FD;
  --blue-soft: #EAF5FF;

  /* Sucesso (verde · so concluido/crescimento) */
  --success-bg: #D3F7DF;
  --success-bg-soft: #E7F8EC;
  --success-text: #0F6B3A;
  --success-text-soft: #27B45E;

  /* Erro / queda */
  --danger-bg: #FCECEC;
  --danger-text: #F05B5B;

  /* Atraso / alerta */
  --warning-bg: #FFEAEA;
  --warning-text: #E54848;

  /* Branco */
  --white: #FFFFFF;

  /* Espacamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;

  --dashboard-gap: 8px;
  --card-padding-x: 14px;
  --card-padding-y: 12px;
  --page-padding-x: 36px;
  --section-gap: 28px;

  /* Radius, bordas, sombras (radius baixo · sombra quase invisivel) */
  --radius-sm: 5px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --radius-card: 6px;
  --radius-input: 5px;
  --radius-badge: 999px;
  --radius-chart-bar: 2px;

  --border-width: 1px;

  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-topbar: 0 1px 3px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-app);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------- 7 · APP SHELL */
.app-shell {
  min-height: 100vh;
  background: var(--bg-app);
}

/* 7.2 · Topbar (as 4 abas: Analisar / Atender / Atrair / Acessos) */
.topbar {
  height: 88px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-topbar);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 36px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 8px;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  height: 88px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: none;
  padding: 0;
}

.nav-item:hover {
  color: var(--text-heading);
}

/* aba ativa em AZUL */
.nav-item.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.nav-divider {
  width: 1px;
  height: 52px;
  background: var(--border-default);
}

/* 7.3 · Area de pagina */
.page {
  padding: 24px 28px;
  background: var(--bg-page);
}

.page-header {
  margin-bottom: 28px;
}

/* 12.1 · Filtros rapidos do dashboard (quick filters · GHL-nativo · linha de selects sob o header) */
.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-description {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

/* ---------------------------------------------------------------- 9 · GRID DASHBOARD */
.dashboard {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  background: var(--bg-app);
}

.col-12 { grid-column: span 12; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }

/* ---------------------------------------------------------------- 8 · CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-header {
  min-height: 36px;
  padding: 12px 14px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-header-with-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.card-subtitle {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

.card-content {
  padding: 14px 16px;
}

/* 8.1 · Tamanhos */
.card-large  { min-height: 260px; }
.card-medium { min-height: 320px; }
.card-short  { min-height: 150px; }
.card-tall   { min-height: 410px; }
.card-kpi    { min-height: 132px; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- 10 · KPIs */
.kpi {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.kpi-xl {
  color: var(--text-primary);
  font-size: 82px;
  line-height: 92px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.kpi-lg {
  color: var(--text-primary);
  font-size: 56px;
  line-height: 64px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.kpi-sm {
  color: var(--text-primary);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.kpi-center {
  height: 100%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.kpi-top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
}

/* 10.3 · KPI-herói uniforme · os 4 da fileira no MESMO peso (40px · padrao SaaS), nao 82 vs 24 */
.kpi-hero {
  color: var(--text-heading);
  font-size: 40px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* o numero desce pro canto inferior-esquerdo, badge na MESMA base · mata o oceano de branco */
.kpi-foot {
  margin-top: auto;
  padding: 6px 16px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-foot .metric-change {
  margin-top: 0;
}

.kpi-caption {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
}

/* ---------------------------------------------------------------- 11 · BADGES */
.metric-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.badge-positive,
.badge-negative,
.badge-late {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  padding: 0 7px;
  border-radius: var(--radius-badge);
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-positive {
  background: var(--success-bg-soft);
  color: var(--success-text-soft);
}

.badge-negative {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.badge-late {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.badge-context {
  color: var(--text-primary);
  font-size: 9px;
  line-height: 12px;
}

.badge-status-success {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 12 · FILTROS / SELECTS */
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-filter {
  height: 26px;
  min-width: 116px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-input);
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

.select-filter:hover {
  background: var(--bg-card-soft);
  border-color: #D7DDE4;
}

/* ---------------------------------------------------------------- 14 · GRAFICOS (funil) */
.chart-bar {
  background: var(--blue-primary);
  border-radius: 2px 2px 0 0;
}

.chart-label {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 10px;
  font-weight: 400;
}

/* funil horizontal (barras azuis · KPI no apoio, nao na competicao) */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 116px 1fr 64px;
  align-items: center;
  gap: 12px;
}

.funnel-label {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.funnel-label.is-key {
  color: var(--text-heading);
}

.funnel-track {
  height: 28px;
  background: var(--border-soft);
  border: 0;
  border-radius: var(--radius-chart-bar);
  overflow: hidden;
}

.funnel-fill {
  display: block;
  height: 100%;
  background: var(--brand-blue);
  border-radius: var(--radius-chart-bar);
  min-width: 4px;
}

.funnel-fill.is-key {
  background: #2F86C2;
}

.funnel-fill.is-zero {
  background: var(--border-default);
  min-width: 0;
}

.funnel-value {
  color: var(--text-heading);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  text-align: right;
}

/* % do topo que chegou na etapa (padrao do widget Horizontal Bar do GHL) */
.funnel-pct {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 13px;
  font-weight: 500;
}

/* ---------------------------------------------------------------- 13 · RANKING (lista do moat) */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-top: 1px solid var(--border-soft);
}

.rank-row:first-child {
  border-top: 0;
}

.rank-pos {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
}

.rank-name {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-value {
  color: var(--text-heading);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.rank-row.is-me {
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  border-top-color: transparent;
}

.rank-row.is-me .rank-pos,
.rank-row.is-me .rank-name,
.rank-row.is-me .rank-value {
  color: var(--brand-blue);
}

.rank-you {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: var(--radius-badge);
  background: var(--brand-blue);
  color: var(--white);
  font-size: 8px;
  line-height: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- 15 · ESTADO VAZIO */
.empty-state {
  height: 100%;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.empty-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-text {
  margin-top: 10px;
  color: var(--text-heading);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.empty-hint {
  margin-top: 4px;
  max-width: 220px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

/* ---------------------------------------------------------------- 16 · ESTADO DE PERMISSAO / ERRO */
.permission-state {
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.permission-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: #FFECEC;
  color: var(--danger-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-text {
  max-width: 150px;
  color: var(--text-primary);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 17 · LISTA DE TAREFAS (onboarding) */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.task-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-header-title {
  margin: 0;
  color: var(--text-heading);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.task-progress {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

/* barra de progresso do checklist (4px · +22% de conclusao · Userflow) */
.task-progress-wrap {
  padding: 0 14px 10px;
}

.task-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--border-soft);
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--success-text-soft);
  min-width: 4px;
  transition: width .3s ease;
}

.task-row {
  min-height: 54px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
}

.task-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-card);
  border-radius: 3px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.task-checkbox.is-done {
  background: var(--success-bg-soft);
  border-color: var(--success-text-soft);
  color: var(--success-text-soft);
}

.task-body {
  min-width: 0;
}

.task-title {
  color: var(--text-heading);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.task-description {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

.task-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 11px;
  font-weight: 400;
}

.task-menu-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* botao de acao da tarefa (Conectar / Ativar) · azul = acao */
.task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 124px;            /* LARGURA PADRAO FIXA · todo botao igual · NUNCA encolhe/cresce com o texto */
  padding: 0 10px;
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius-input);
  background: var(--brand-blue);
  color: var(--white);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;          /* o flex do container nao estica nem encolhe o botao */
}

.task-action:hover {
  filter: brightness(0.96);
}

/* ---------------------------------------------------------------- 18 · ACOES RECOMENDADAS (lista datada · alerta GHL · vermelho/ambar) */
.action-list {
  max-height: 248px;
  overflow-y: auto;
}

.action-row {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
}

.action-row:first-child {
  border-top: 0;
}

.action-bar {
  border-radius: 2px;
}

.action-bar.urgente {
  background: var(--danger-text);
}

.action-bar.atencao {
  background: var(--warning-text);
}

.action-main {
  min-width: 0;
}

.action-text {
  color: var(--text-heading);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

.action-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-tag {
  font-size: 8px;
  line-height: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.action-tag.urgente {
  color: var(--danger-text);
}

.action-tag.atencao {
  color: var(--warning-text);
}

.action-date {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 12px;
}

.action-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
}

.task-action.is-done {
  background: var(--white);
  border-color: var(--border-card);
  color: var(--success-text-soft);
  cursor: default;
}

.task-action.is-done:hover {
  filter: none;
}

/* ---------------------------------------------------------------- pendencia de ativacao (cartao da regua · TEXTOS §5) */
.activation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.activation-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.activation-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activation-title {
  color: var(--text-heading);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.activation-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

/* ---------------------------------------------------------------- 19 · ICONES (line · lucide · NUNCA emoji) */
.icon {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
  color: var(--text-muted);
  flex: none;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

.icon-empty {
  color: var(--blue-primary);
}

.icon-danger {
  color: var(--danger-text);
}

/* ---------------------------------------------------------------- 22 · responsividade */
@media (max-width: 1024px) {
  .col-9,
  .col-8,
  .col-6,
  .col-5,
  .col-4,
  .col-3,
  .col-2 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .col-12,
  .col-9,
  .col-8,
  .col-6,
  .col-5,
  .col-4,
  .col-3,
  .col-2 {
    grid-column: span 1;
  }

  .topbar {
    height: auto;
    min-height: 72px;
    padding: 0 20px;
    gap: 16px;
    overflow-x: auto;
  }

  .topbar-nav {
    gap: 20px;
  }

  .nav-item {
    height: 72px;
    font-size: 16px;
    white-space: nowrap;
  }

  .page {
    padding: 28px 20px;
  }

  .page-title {
    font-size: 28px;
    line-height: 36px;
  }

  .funnel-row {
    grid-template-columns: 96px 1fr 40px;
    gap: 8px;
  }

  .task-action {
    width: 100%;
  }

  .kpi-hero {
    font-size: 32px;
    line-height: 36px;
  }
}

/* ---------------------------------------------------------------- MODAL · Conectar WhatsApp
   Popup que abre o link Stevo (smv2-wl) num iframe contido, de forma sutil, sem
   tirar o cliente do Painel. O fundo navy do Stevo vive DENTRO do iframe (origem
   deles, cross-origin); a moldura e a DS light do Painel. Framing liberado:
   o smv2-wl responde Content-Security-Policy: frame-ancestors * (verificado 29/jun). */
.wa-modal {
  /* moldura em CARVAO (marca dark do BOOOT) pra o navy do Stevo encostar e ler
     como uma superficie escura so. Valores espelham _MARCA/tokens/tokens.css
     (carvao #1D1D1F, creme #E9DCC9). Permitido aqui: este arquivo ja tem
     brand-check-bypass no topo (Painel = excecao de marca documentada). */
  --wa-carvao: #1D1D1F;
  --wa-creme: #E9DCC9;
  --wa-creme-muted: rgba(233, 220, 201, 0.55);
  --wa-creme-faint: rgba(233, 220, 201, 0.32);
  --wa-hairline: rgba(233, 220, 201, 0.10);
  --wa-hairline-strong: rgba(233, 220, 201, 0.16);
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wa-modal[hidden] {
  display: none;
}

/* garante que o atributo hidden vença display:block/flex dos filhos (frame/empty) */
.wa-modal [hidden] {
  display: none !important;
}

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 41, 0.55);
}

.wa-modal-card {
  position: relative;
  width: 412px;
  max-width: 92vw;
  height: min(680px, 90vh);   /* comporta o QR do Stevo (mais alto que o estado conectado) · responsivo */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--wa-carvao);
  border: 1px solid var(--wa-hairline-strong);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* X flutuante (sem header) · canto superior direito, sobre o carvao */
.wa-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 29, 31, 0.72);
  border: 1px solid var(--wa-hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--wa-creme-muted);
  cursor: pointer;
  font-family: inherit;
}

.wa-modal-close:hover {
  color: var(--wa-creme);
  background: var(--wa-carvao);
}

.wa-modal-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--wa-carvao);
}

.wa-modal-frame {
  display: block;
  width: 100%;
  height: 100%;       /* enche o card (que tem altura definida e responsiva) · sem clipar o QR */
  border: 0;
}

.wa-modal-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 24px;
}

.wa-modal-empty-text {
  color: var(--wa-creme);
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
}

.wa-modal-empty-hint {
  max-width: 220px;
  color: var(--wa-creme-muted);
  font-size: 9px;
  line-height: 13px;
  font-weight: 400;
}

/* trava o scroll do fundo enquanto o modal esta aberto */
body.wa-open {
  overflow: hidden;
}

/* botao de acao da tarefa quando e <button> (herdar a fonte Inter) */
.task-action {
  font-family: inherit;
}
