/* Marketing BNI Lisboa — visual limpo ao estilo Apple: fundo cinzento claro (ou cinzento escuro), detalhes no vermelho BNI.
   Base partilhada com o Gestão BNI; os componentes próprios estão no fim. */

:root {
  --fundo: #f2f2f7;
  --lateral: #e9e9ee;
  --painel: #ffffff;
  --painel-2: #f9f9fb;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #8e8e93;
  --linha: #e3e3e8;
  --linha-forte: #d2d2d7;
  --hover: rgba(0, 0, 0, 0.045);
  --ativo: rgba(0, 0, 0, 0.075);
  --acento: #cf2030;
  --acento-texto: #ffffff;
  --bni: #cf2030;
  --bni-fundo: rgba(207, 32, 48, 0.09);
  --foco: rgba(207, 32, 48, 0.25);
  --amarelo: #8a6a00;
  --amarelo-fundo: rgba(255, 204, 0, 0.2);
  --verde: #1f8a3b;
  --verde-fundo: rgba(52, 199, 89, 0.13);
  --laranja: #b35c00;
  --laranja-fundo: rgba(255, 149, 0, 0.14);
  --vermelho: #d70015;
  --vermelho-fundo: rgba(255, 59, 48, 0.11);
  --azul: #0066cc;
  --azul-fundo: rgba(0, 113, 227, 0.1);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
  --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  --raio: 14px;
  --raio-p: 10px;
  --logo-filtro: brightness(0);
  --largura-lateral: 264px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fundo: #2a2a2d;
    --lateral: #232326;
    --painel: #36363a;
    --painel-2: #3d3d41;
    --texto: #f5f5f7;
    --texto-2: #aeaeb2;
    --texto-3: #8e8e93;
    --linha: #47474b;
    --linha-forte: #56565a;
    --hover: rgba(255, 255, 255, 0.06);
    --ativo: rgba(255, 255, 255, 0.1);
    --acento: #e5323f;
    --acento-texto: #ffffff;
    --bni: #ff5a64;
    --bni-fundo: rgba(255, 90, 100, 0.14);
    --foco: rgba(255, 90, 100, 0.3);
    --amarelo: #ffd60a;
    --amarelo-fundo: rgba(255, 214, 10, 0.15);
    --verde: #32d74b;
    --verde-fundo: rgba(50, 215, 75, 0.15);
    --laranja: #ffa53a;
    --laranja-fundo: rgba(255, 159, 10, 0.16);
    --vermelho: #ff6961;
    --vermelho-fundo: rgba(255, 69, 58, 0.16);
    --azul: #4da3ff;
    --azul-fundo: rgba(10, 132, 255, 0.18);
    --sombra: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --logo-filtro: none;
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --fundo: #2a2a2d;
  --lateral: #232326;
  --painel: #36363a;
  --painel-2: #3d3d41;
  --texto: #f5f5f7;
  --texto-2: #aeaeb2;
  --texto-3: #8e8e93;
  --linha: #47474b;
  --linha-forte: #56565a;
  --hover: rgba(255, 255, 255, 0.06);
  --ativo: rgba(255, 255, 255, 0.1);
  --acento: #e5323f;
  --acento-texto: #ffffff;
  --bni: #ff5a64;
  --bni-fundo: rgba(255, 90, 100, 0.14);
  --foco: rgba(255, 90, 100, 0.3);
  --amarelo: #ffd60a;
  --amarelo-fundo: rgba(255, 214, 10, 0.15);
  --verde: #32d74b;
  --verde-fundo: rgba(50, 215, 75, 0.15);
  --laranja: #ffa53a;
  --laranja-fundo: rgba(255, 159, 10, 0.16);
  --vermelho: #ff6961;
  --vermelho-fundo: rgba(255, 69, 58, 0.16);
  --azul: #4da3ff;
  --azul-fundo: rgba(10, 132, 255, 0.18);
  --sombra: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --sombra-alta: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --logo-filtro: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--bni); text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-cartao {
  width: 100%;
  max-width: 380px;
  background: var(--painel);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: var(--sombra-alta);
  text-align: center;
}
.login-cartao h1 { font-size: 26px; letter-spacing: -0.03em; margin: 18px 0 2px; font-weight: 700; }
.login-cartao p.sub { color: var(--texto-2); margin: 0 0 26px; }
.login-cartao form { display: grid; gap: 10px; text-align: left; }
.login-cartao .rodape { color: var(--texto-3); font-size: 13px; margin: 18px 0 0; }
.erro-form { color: var(--vermelho); font-size: 14px; min-height: 20px; margin: 2px 0 0; }

/* ---------- Estrutura ---------- */
.app { display: flex; min-height: 100%; }
.lateral {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--largura-lateral);
  background: var(--lateral);
  border-right: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 18px 12px 12px;
}
.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.lateral .marca img { height: 34px; }
.lateral nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-secao { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); padding: 18px 10px 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: var(--texto);
  font-size: 14.5px;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { background: var(--hover); }
.nav-item.ativo { background: var(--ativo); font-weight: 600; }
.nav-item svg.i { color: var(--texto-2); }
.nav-item.ativo svg.i { color: var(--bni); }
.nav-item .contador { margin-left: auto; background: var(--vermelho); color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 10px; padding: 1px 7px; }
.nav-sub { padding-left: 28px; }
.nav-sub .nav-item { font-size: 14px; padding: 5px 10px; color: var(--texto-2); }
.nav-sub .nav-item.ativo { color: var(--texto); background: var(--hover); }
.lateral .rodape { border-top: 1px solid var(--linha); padding-top: 10px; margin-top: 8px; }
.eu { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.eu .nome { font-weight: 600; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu .papel { color: var(--texto-2); font-size: 12.5px; }
.eu .txt { min-width: 0; flex: 1; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--linha-forte); color: var(--texto); font-weight: 600; font-size: 12.5px;
}
.avatar.p { width: 26px; height: 26px; font-size: 11px; }
.rodape-botoes { display: flex; gap: 4px; padding: 4px 4px 0; }
.rodape-botoes .nav-item { justify-content: center; font-size: 13px; color: var(--texto-2); }

.principal { flex: 1; margin-left: var(--largura-lateral); min-width: 0; }
.topo-movel { display: none; }
.pagina { max-width: 1240px; margin: 0 auto; padding: 34px 40px 80px; }
.vel { display: none; }

@media (max-width: 900px) {
  .lateral { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: var(--sombra-alta); }
  .app.menu-aberto .lateral { transform: none; }
  .app.menu-aberto .vel { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 25; }
  .principal { margin-left: 0; }
  .topo-movel {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: color-mix(in srgb, var(--fundo) 85%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--linha);
  }
  .topo-movel img { height: 26px; }
  .topo-movel .contador { background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 6px; margin-left: auto; }
  .pagina { padding: 20px 16px 80px; }
}

/* ---------- Cabeçalho de página ---------- */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cabecalho h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.035em; margin: 0; font-weight: 700; }
.cabecalho .sub { color: var(--texto-2); margin: 6px 0 0; font-size: 15px; }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .cabecalho h1 { font-size: 27px; } }

.segmentos {
  display: inline-flex; background: var(--ativo); border-radius: 9px; padding: 2px; gap: 2px; margin-bottom: 22px;
}
.segmentos button {
  border: 0; background: none; padding: 6px 16px; border-radius: 7px; font-size: 14px; cursor: pointer; color: var(--texto); font-weight: 500;
}
.segmentos button.ativo { background: var(--painel); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 980px; padding: 8px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  background: var(--ativo); color: var(--texto);
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s;
}
.btn:hover { background: color-mix(in srgb, var(--ativo) 100%, var(--texto) 6%); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primario { background: var(--acento); color: var(--acento-texto); }
.btn.primario:hover { opacity: 0.88; background: var(--acento); }
.btn.perigo { background: var(--vermelho-fundo); color: var(--vermelho); }
.btn.verde { background: var(--verde-fundo); color: var(--verde); }
.btn.fantasma { background: none; color: var(--texto-2); }
.btn.fantasma:hover { background: var(--hover); color: var(--texto); }
.btn.grande { padding: 11px 18px; font-size: 15px; border-radius: 12px; width: 100%; }
.btn.p { padding: 5px 12px; font-size: 13px; }
.btn.icone { padding: 7px; border-radius: 50%; }
.btn.icone.p { padding: 5px; }

.campo { display: grid; gap: 6px; align-content: start; }
.campo > span { font-size: 13px; font-weight: 500; color: var(--texto-2); }
.entrada, select.entrada, textarea.entrada {
  width: 100%; padding: 10px 12px; border-radius: var(--raio-p);
  border: 1px solid var(--linha-forte); background: var(--painel); color: var(--texto); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 42px;
}
.entrada:focus { border-color: var(--bni); box-shadow: 0 0 0 4px var(--foco); }
select.entrada { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.entrada.p { padding: 6px 10px; min-height: 34px; font-size: 14px; }
.grelha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grelha-2 { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }

.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.interruptor input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--linha-forte); position: relative; cursor: pointer; transition: background 0.2s; flex: none; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.interruptor input:checked { background: var(--bni); }
.interruptor input:checked::after { transform: translateX(18px); }

/* ---------- Cartões e listas ---------- */
.cartao { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); }
.cartao.pad { padding: 20px; }
.cartao h2, .secao-titulo { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 4px; font-weight: 650; }
.secao-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 12px; }
.secao-titulo:first-child { margin-top: 0; }
.secao-titulo small { font-size: 14px; font-weight: 400; color: var(--texto-2); }
.muted { color: var(--texto-2); }
.pequeno { font-size: 13px; }

.lista { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.lista > * + * { border-top: 1px solid var(--linha); }
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.linha .cresce { flex: 1; min-width: 0; }
.linha .titulo { font-weight: 550; }
.linha .meta { color: var(--texto-2); font-size: 13.5px; }
button.linha { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
button.linha:hover { background: var(--hover); }

.vazio { text-align: center; padding: 48px 20px; color: var(--texto-2); }
.vazio svg.i { width: 36px; height: 36px; stroke-width: 1.4; color: var(--texto-3); margin-bottom: 10px; }
.vazio h3 { color: var(--texto); margin: 0 0 6px; font-size: 17px; }
.vazio p { margin: 0 0 16px; }

.etiqueta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 980px; font-size: 12.5px; font-weight: 500;
  background: var(--ativo); color: var(--texto-2); white-space: nowrap;
}
.etiqueta.verde { background: var(--verde-fundo); color: var(--verde); }
.etiqueta.laranja { background: var(--laranja-fundo); color: var(--laranja); }
.etiqueta.vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.etiqueta.azul { background: var(--azul-fundo); color: var(--azul); }
.etiqueta.amarelo { background: var(--amarelo-fundo); color: var(--amarelo); }
.etiqueta.bni { background: var(--bni-fundo); color: var(--bni); }
.etiqueta.forte { background: var(--acento); color: var(--acento-texto); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- Modal ---------- */
.modal-fundo {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.32);
  display: grid; place-items: center; padding: 24px;
  animation: aparecer 0.18s ease;
}
.modal {
  background: var(--painel); border-radius: 20px; box-shadow: var(--sombra-alta);
  width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  animation: subir 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal.largo { max-width: 820px; }
.modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.modal > header h2 { margin: 0; font-size: 21px; letter-spacing: -0.025em; }
.modal > header .sub { color: var(--texto-2); margin-top: 3px; font-size: 14.5px; }
.modal > .corpo { padding: 12px 22px 18px; overflow-y: auto; }
.modal > footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 14px 22px 18px; border-top: 1px solid var(--linha); flex-wrap: wrap; }
.modal > footer .esquerda { margin-right: auto; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
@media (max-width: 640px) {
  .modal-fundo { padding: 0; place-items: end stretch; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; max-width: none; padding-bottom: env(safe-area-inset-bottom); }
}
.bloco { margin-top: 18px; }
.bloco:first-child { margin-top: 4px; }
.bloco > .rotulo-bloco { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); font-weight: 600; margin-bottom: 8px; }
.lista.interna { box-shadow: none; border: 1px solid var(--linha); border-radius: 12px; background: var(--painel-2); }
.lista.interna .linha { min-height: 46px; padding: 8px 12px; }
.lista.interna select.entrada { max-width: 230px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--texto); color: var(--fundo); padding: 10px 18px; border-radius: 980px; font-size: 14px; font-weight: 500;
  box-shadow: var(--sombra-alta); animation: subir 0.2s ease; text-align: center;
}
.toast.erro { background: var(--vermelho); color: #fff; }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 12px; padding: 14px 16px; }
.aviso .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); flex: none; margin-top: 7px; }
.aviso.lido .ponto { background: transparent; }
.aviso .quando { color: var(--texto-3); font-size: 12.5px; margin-top: 2px; }

/* ---------- Tabelas simples ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); padding: 8px 8px; border-bottom: 1px solid var(--linha); }
.tabela td { padding: 7px 8px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.rolar-x { overflow-x: auto; }

/* ---------- Diversos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--linha-forte); background: var(--painel); border-radius: 980px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--hover); }
.nota { background: var(--painel-2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; color: var(--texto-2); font-size: 13.5px; }
.nota.aviso-nota { background: var(--laranja-fundo); border-color: transparent; color: var(--laranja); }
.pesquisa { position: relative; }
.pesquisa svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 16px; height: 16px; }
.pesquisa .entrada { padding-left: 34px; min-height: 36px; border-radius: 10px; background: var(--painel); }
.senha-ver { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.grelha-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pilha { display: grid; gap: 16px; max-width: 640px; }
.carregar { padding: 60px 0; text-align: center; color: var(--texto-3); }
.carregar::before { content: ""; display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--linha-forte); border-top-color: var(--texto-2); border-radius: 50%; animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.ola { font-size: 34px; }
@media (max-width: 600px) { .ola { font-size: 28px; } .so-desktop { display: none !important; } }
/* Indicadores */
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 8px; }
@media (max-width: 420px) { .indicadores { grid-template-columns: 1fr 1fr; } .indicador .valor { font-size: 20px; } }
.indicador { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; display: grid; gap: 4px; color: inherit; min-width: 0; }
a.indicador:hover { background: color-mix(in srgb, var(--painel) 100%, var(--texto) 3%); }
.indicador .rotulo { color: var(--texto-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.indicador .rotulo svg.i { width: 15px; height: 15px; }
.indicador .valor { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: break-word; }
.indicador .valor small { font-size: 14px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; }
.indicador .extra { color: var(--texto-3); font-size: 12.5px; }

/* Diversos */
.dados-lista { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0; }
.dados-lista dt { color: var(--texto-2); }
.dados-lista dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dados-lista { grid-template-columns: 1fr; } .dados-lista dd { margin-bottom: 6px; } }
.marcador { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--texto-3); }
.valor-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cabecalho-voltar { display: inline-flex; align-items: center; gap: 4px; color: var(--bni); font-size: 15px; margin-bottom: 10px; }
.grelha-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grelha-3 { grid-template-columns: 1fr; } }
.linha .acoes-linha { display: flex; gap: 6px; align-items: center; flex: none; }
.mes-grupo { font-size: 13px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 18px 4px 8px; }

/* Disposição em duas colunas (conteúdo + lateral direita) */
.mes-nav { display: flex; align-items: center; gap: 4px; }
.mes-nav .mes { font-size: 17px; font-weight: 600; min-width: 150px; text-align: center; text-transform: capitalize; }
.barra-ferramentas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1180px) { .duas-colunas { grid-template-columns: 1fr; } .duas-colunas > aside { order: 2; } }
.lado-direito { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 24px; min-width: 0; }
.lado-direito .btn { white-space: normal; justify-content: flex-start; text-align: left; }
.lado-direito .cartao h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); margin: 0 0 12px; font-weight: 600; }
.resposta { display: flex; gap: 6px; margin-top: 10px; }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--texto); }
.logo-selo {
  display: inline-grid; place-items: center; height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--bni); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.logo-texto { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.logo.grande .logo-selo { height: 46px; padding: 0 12px; border-radius: 12px; font-size: 21px; }
.logo.grande .logo-texto { font-size: 24px; }
.login-cartao { position: relative; overflow: hidden; }
.login-cartao::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--bni); }
.lateral .area { font-size: 11.5px; font-weight: 600; color: var(--texto-3); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 10px 8px; }
.nav-grupo { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; padding: 14px 10px 4px; color: var(--texto); display: flex; align-items: center; gap: 8px; }
.nav-grupo::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--bni); }
.nav-item.grupo-link { font-size: 14px; }

/* ---------- Grupos (cartões) ---------- */
.ferramentas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 16px; }
.ferramentas .pesquisa { flex: 1; min-width: 200px; max-width: 360px; }
.ferramentas select.entrada { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.grupo-cartao {
  background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px 20px 16px;
  display: grid; gap: 12px; color: inherit; align-content: start; transition: transform 0.12s ease, box-shadow 0.15s;
}
.grupo-cartao:hover { transform: translateY(-1px); box-shadow: var(--sombra), 0 8px 24px rgba(0, 0, 0, 0.06); }
.grupo-cartao .topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grupo-cartao h3 { margin: 0; font-size: 19px; letter-spacing: -0.025em; display: flex; align-items: center; gap: 8px; }
.grupo-cartao h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--bni); }
.grupo-cartao .quando { color: var(--texto-2); font-size: 13px; margin-top: 2px; }
.trio { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 14px; }
.trio dt { color: var(--texto-3); font-size: 12.5px; padding-top: 1px; }
.trio dd { margin: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grupo-cartao .dc { font-size: 12.5px; color: var(--texto-2); }
.grupo-cartao .numeros { display: flex; gap: 10px; border-top: 1px solid var(--linha); padding-top: 12px; }
.grupo-cartao .numeros > div { flex: 1; display: grid; gap: 1px; }
.grupo-cartao .numeros .rot { font-size: 12px; color: var(--texto-3); }
.grupo-cartao .numeros b { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Avisos ---------- */
.nav-item .contador, .topo-movel .contador { background: var(--bni); }
.aviso-cartao { display: grid; gap: 10px; }
.aviso-cartao.novo { box-shadow: inset 3px 0 0 var(--bni), var(--sombra); }
.aviso-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.aviso-cartao h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.aviso-cartao .meta { color: var(--texto-2); font-size: 13px; margin-top: 2px; }
.ponto-novo { width: 8px; height: 8px; border-radius: 50%; background: var(--bni); flex: none; }
/* Botões de alternar (tipo, categoria, nível) */
.alternar { display: flex; gap: 8px; flex-wrap: wrap; }
.alternar button { border: 1.5px solid var(--linha-forte); background: var(--painel); border-radius: 980px; padding: 8px 16px; cursor: pointer; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.alternar button.ativo { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.texto-livre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

/* =====================================================================
   Marketing BNI Lisboa — componentes próprios
   ===================================================================== */
.login { position: relative; }
.tema-login { position: absolute; top: 16px; right: 16px; }
.nav-item .contador { background: var(--bni); }
.lateral nav { padding-top: 2px; }
.lateral .nav-item { padding: 8px 10px; }

/* Botão BNI Lisboa (fundo do menu) */
.bni-botao {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 0 8px;
  border-radius: 12px; background: var(--painel); box-shadow: var(--sombra); color: var(--texto);
  border: 1px solid var(--linha); transition: border-color 0.15s;
}
.bni-botao:hover, .bni-botao.ativo { border-color: var(--bni); }
.bni-botao .logo-selo { height: 30px; font-size: 12.5px; }
.bni-botao .txt { display: grid; line-height: 1.2; }
.bni-botao small { color: var(--texto-2); font-size: 12px; }

/* Início do grupo */
.ola-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.ola-sub { margin: 0 0 2px; color: var(--texto-2); font-size: 16px; font-weight: 500; }
.ola { margin: 0; line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
.ola-topo .sub { margin: 6px 0 0; }
.redes-topo { display: grid; justify-items: end; gap: 6px; }
.redes-topo a.pequeno { font-size: 13px; }
@media (max-width: 700px) { .redes-topo { justify-items: start; } }
.bolinhas { display: flex; gap: 8px; flex-wrap: wrap; }
.bolinha {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: #888;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); transition: transform 0.12s ease, box-shadow 0.12s;
}
.bolinha:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
.bolinha .marca-svg { width: 19px; height: 19px; }
.bolinha.inativa { background: var(--linha-forte); color: var(--texto-3); box-shadow: none; cursor: default; }
.bolinha.inativa:hover { transform: none; }
:root[data-tema="escuro"] .bolinha[style*="#111111"] { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.marca-svg { width: 18px; height: 18px; flex: none; }

/* Menu da bolinha (abrir / copiar) */
.popover {
  position: absolute; z-index: 150; min-width: 220px; max-width: 300px; background: var(--painel);
  border-radius: 14px; box-shadow: var(--sombra-alta); padding: 6px; animation: subir 0.15s ease;
}
.popover-titulo { font-weight: 650; padding: 8px 10px 0; }
.popover-link { color: var(--texto-3); font-size: 12.5px; padding: 0 10px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--linha); margin-bottom: 4px; }
.popover-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; color: var(--texto); font-size: 14.5px; text-align: left; }
.popover-item:hover { background: var(--hover); }
.popover-item svg.i { color: var(--bni); }

/* Cartões em pilha */
.pilha-cartoes { display: grid; gap: 14px; }
.pilha-cartoes.estreita { max-width: 760px; }
.novidade { overflow: hidden; }
.novidade.destaque { box-shadow: inset 0 3px 0 var(--bni), var(--sombra); }
.novidade-img { display: block; width: 100%; max-height: 420px; object-fit: cover; background: var(--painel-2); }
.novidade-corpo { padding: 18px 20px 20px; display: grid; gap: 10px; justify-items: start; }
.novidade-topo, .manual-topo, .prompt-topo, .midia-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; width: 100%; }
.novidade h3, .manual-item h3, .prompt-cartao h3, .midia-cartao h3, .modelo-cartao h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -0.02em; }
.novidade .meta, .manual-item .meta, .prompt-cartao .meta { color: var(--texto-3); font-size: 13px; }
.novidade .texto-livre, .aviso-cartao .texto-livre, .midia-cartao .texto-livre, .manual-item .texto-livre { color: var(--texto); font-size: 15px; }
.etiqueta svg.i { width: 13px; height: 13px; }
.acoes-edicao { display: flex; gap: 2px; flex: none; }
.acoes-edicao.vertical { flex-direction: column; }
.acoes-edicao .btn.icone.p svg.i { width: 15px; height: 15px; }

/* Avisos */
.aviso-cartao.importante { box-shadow: inset 3px 0 0 var(--vermelho), var(--sombra); }
.aviso-cartao.novo { box-shadow: inset 3px 0 0 var(--bni), var(--sombra); background: color-mix(in srgb, var(--painel) 94%, var(--bni) 6%); }
.lido { display: inline-flex; align-items: center; gap: 6px; color: var(--verde); font-size: 13.5px; font-weight: 500; }
.lido svg.i { width: 15px; height: 15px; }
.aviso-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--linha); padding-top: 10px; }
.aviso-rodape .acoes-edicao { margin-left: auto; }
.leituras { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--texto-2); font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.leituras:hover { background: var(--hover); color: var(--texto); }
.barra-progresso { height: 8px; border-radius: 4px; background: var(--ativo); overflow: hidden; }
.barra-progresso > span { display: block; height: 100%; background: var(--bni); border-radius: 4px; transition: width 0.3s ease; }
.barra-progresso.mini { height: 5px; width: 70px; display: inline-block; }
.barra-progresso.mini > span { background: var(--verde); }
.escolher-grupos { margin-top: 10px; max-height: 220px; overflow-y: auto; }
.chip.ativo { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.chips.filtro { margin: 0 0 18px; }
.chips.filtro .chip { padding: 6px 14px; font-size: 13.5px; }

/* Primeiros passos */
.passos-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.passos-topo h3 { margin: 0 !important; }
.passos .barra-progresso { margin-bottom: 8px; }
.lista-passos { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.lista-passos li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--linha); }
.lista-passos li:first-child { border-top: 0; }
.passo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; flex: 1; min-width: 0; }
.passo input { position: absolute; opacity: 0; pointer-events: none; }
.passo .visto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linha-forte); flex: none; display: grid; place-items: center; color: transparent; transition: all 0.15s; margin-top: 1px; }
.passo .visto svg.i { width: 13px; height: 13px; stroke-width: 3; }
.passo input:checked + .visto { background: var(--verde); border-color: var(--verde); color: #fff; }
.passo input:focus-visible + .visto { box-shadow: 0 0 0 4px var(--foco); }
.passo .txt { display: grid; gap: 1px; min-width: 0; }
.passo .titulo { font-size: 14.5px; font-weight: 550; line-height: 1.3; }
.passo small { color: var(--texto-2); font-size: 12.5px; line-height: 1.35; }
.lista-passos li.feito .titulo { color: var(--texto-3); text-decoration: line-through; }
.lista-passos .ir { color: var(--texto-3); padding: 6px; border-radius: 8px; display: grid; }
.lista-passos .ir:hover { background: var(--hover); color: var(--bni); }

/* Próximas datas */
.prox-datas { display: grid; gap: 4px; margin-bottom: 8px; }
.prox-data { display: flex; gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: 10px; color: inherit; }
.prox-data:hover { background: var(--hover); }
.prox-data .cresce, .cal-linha .cresce { display: grid; min-width: 0; }
.prox-data .titulo { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prox-data .meta { color: var(--texto-3); font-size: 12px; }
.dia-caixa { width: 44px; height: 46px; border-radius: 10px; display: grid; place-items: center; align-content: center; flex: none; line-height: 1; background: var(--azul-fundo); color: var(--azul); }
.dia-caixa b { font-size: 18px; letter-spacing: -0.03em; }
.dia-caixa small { font-size: 11px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.dia-caixa.bni { background: var(--bni-fundo); color: var(--bni); }
.dia-caixa.campanha { background: var(--laranja-fundo); color: var(--laranja); }
.atalhos { display: grid; gap: 6px; }
.atalhos .btn { justify-content: flex-start; }

/* Semáforo digital */
.semaforo-resumo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; color: inherit; }
.semaforo-resumo:hover { box-shadow: var(--sombra), 0 6px 20px rgba(0, 0, 0, 0.06); }
.semaforo-contagens { display: flex; gap: 8px; }
.sem-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--painel-2); border: 1px solid var(--linha); border-radius: 980px; padding: 4px 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sem-ponto { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--texto-3); flex: none; vertical-align: -1px; }
.sem-ponto.verde { background: #34c759; }
.sem-ponto.amarelo { background: #ffcc00; }
.sem-ponto.vermelho { background: #ff3b30; }
.sem-ponto.cinzento { background: #aeaeb2; }
.semaforo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 3px 10px; border-radius: 980px; background: var(--painel-2); border: 1px solid var(--linha); font-variant-numeric: tabular-nums; }
.explicacao { margin-bottom: 16px; }
.explicacao summary { cursor: pointer; color: var(--texto); }
.explicacao p { margin: 10px 0 0; }
.sem-grande { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.sem-grande .sem-ponto { width: 16px; height: 16px; align-self: center; }
.sem-grande b { font-size: 34px; letter-spacing: -0.04em; }
.sem-grande small { color: var(--texto-2); }
.sem-partes { display: grid; gap: 10px; margin-bottom: 10px; }
.sem-parte-topo { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.sem-parte .barra-progresso.mini { width: 100%; display: block; }
.mini-redes { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-rede { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.mini-rede .marca-svg { width: 12px; height: 12px; }
.mini-rede.inativa { background: var(--ativo); color: var(--texto-3); opacity: 0.7; }
.grupo-cartao .numeros b.pequeno-b { font-size: 13.5px; font-weight: 600; }
.visto-estado { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ativo); color: var(--texto-3); flex: none; }
.visto-estado.feito { background: var(--verde-fundo); color: var(--verde); }
.visto-estado svg.i { width: 15px; height: 15px; }
.dados-lista.curta { grid-template-columns: 110px 1fr; margin-bottom: 12px; font-size: 14px; }

/* Calendário */
.cal { padding: 10px; }
.cal-semana, .cal-grelha { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-semana span { text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--texto-3); padding: 4px 0 8px; }
.cal-dia { min-height: 92px; border-radius: 10px; padding: 6px; background: var(--painel-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-dia.fora { background: transparent; }
.cal-dia .n { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.cal-dia.hoje { box-shadow: inset 0 0 0 2px var(--bni); }
.cal-dia.hoje .n { color: var(--bni); }
.cal-evento { border: 0; text-align: left; font-size: 12px; line-height: 1.25; padding: 3px 6px; border-radius: 6px; cursor: pointer; background: var(--azul-fundo); color: var(--azul); font-weight: 550; min-width: 0; }
.cal-evento .txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-evento.bni { background: var(--bni-fundo); color: var(--bni); }
.cal-evento.campanha { background: var(--laranja-fundo); color: var(--laranja); }
.legenda .marcador { width: 10px; height: 10px; border-radius: 3px; background: var(--azul); }
.legenda .marcador.bni { background: var(--bni); }
.legenda .marcador.campanha { background: var(--laranja); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--texto-2); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.cal-linha svg.i { color: var(--texto-3); }
.cal-linha .titulo { font-weight: 550; }
.cal-linha .meta { color: var(--texto-2); font-size: 13px; }
.pequeno-vazio { padding: 24px; }
.pequeno-vazio p { margin: 0; }
@media (max-width: 700px) {
  .cal { padding: 6px; }
  .cal-semana, .cal-grelha { gap: 2px; }
  .cal-dia { min-height: 46px; padding: 4px; align-items: center; }
  .cal-evento { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--azul); }
  .cal-evento.bni { background: var(--bni); }
  .cal-evento.campanha { background: var(--laranja); }
  .cal-evento .txt { display: none; }
  .cal-dia.tem { gap: 2px; }
}

/* Manual da marca */
.grelha-manual { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.manual-item { overflow: hidden; display: flex; flex-direction: column; }
.manual-item.so-texto { grid-column: 1 / -1; }
.manual-previa { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--painel-2); border-bottom: 1px solid var(--linha); color: var(--texto-2); }
.manual-previa.imagem { background: repeating-conic-gradient(var(--painel-2) 0% 25%, var(--painel) 0% 50%) 50% / 18px 18px; }
.manual-previa img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ext { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; color: var(--bni); background: var(--bni-fundo); padding: 10px 14px; border-radius: 12px; display: inline-grid; place-items: center; }
.ext svg.i { width: 26px; height: 26px; }
.manual-corpo { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.botoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* Modelos do Canva */
.grelha-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.modelo-cartao { background: var(--painel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.15s; }
.modelo-cartao:hover { transform: translateY(-2px); box-shadow: var(--sombra), 0 10px 28px rgba(0, 0, 0, 0.08); }
.modelo-rodape { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px 14px; }
.modelo-rodape h3 { font-size: 16px !important; margin: 0 !important; }
.modelo-rodape .meta { color: var(--texto-3); font-size: 12.5px; }
.carrossel { position: relative; background: var(--painel-2); aspect-ratio: 4 / 5; overflow: hidden; }
.carrossel.vazio-img { display: grid; place-items: center; color: var(--texto-3); }
.carrossel.vazio-img svg.i { width: 34px; height: 34px; }
.carrossel .faixa { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrossel .faixa::-webkit-scrollbar { display: none; }
.carrossel .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.carrossel .slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.carrossel.grande { border-radius: 14px; }
.carrossel.grande .slide img { object-fit: contain; }
.carrossel .seta {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: #1d1d1f; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); opacity: 0; transition: opacity 0.15s;
}
.carrossel .seta.esq { left: 8px; }
.carrossel .seta.dir { right: 8px; }
.carrossel:hover .seta, .carrossel.grande .seta { opacity: 1; }
@media (hover: none) { .carrossel .seta { opacity: 0.85; width: 28px; height: 28px; } }
.carrossel .pontos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carrossel .pontos span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 2px rgba(0, 0, 0, 0.35); transition: background 0.15s, transform 0.15s; }
.carrossel .pontos span.ativo { background: #fff; transform: scale(1.25); }
.carrossel .contagem { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 980px; pointer-events: none; }
.modelo-detalhe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 720px) { .modelo-detalhe { grid-template-columns: 1fr; } }
.modelo-info { display: grid; gap: 12px; }
.passos-canva { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--texto-2); font-size: 14.5px; }
.passos-canva b { color: var(--texto); }

/* Inteligência Artificial */
.como-usar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.como-usar ol { margin: 0; padding-left: 20px; display: flex; gap: 6px 28px; flex-wrap: wrap; }
.como-usar .ias { display: flex; gap: 8px; flex-wrap: wrap; }
mark { background: var(--bni-fundo); color: var(--bni); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.grelha-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .grelha-prompts { grid-template-columns: minmax(0, 1fr); } }
.prompt-cartao { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prompt-texto {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0;
  background: var(--painel-2); border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; max-height: 158px; overflow: hidden; position: relative;
}
.prompt-texto.aberto { max-height: none; }
.ver-mais { align-self: flex-start; border: 0; background: none; color: var(--bni); font-size: 13.5px; cursor: pointer; padding: 0; font-weight: 500; }
.prompt-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.entrada.mono { font: 13.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }

/* Senhas */
.nota.seguranca { display: flex; gap: 10px; align-items: flex-start; }
.nota.seguranca svg.i { color: var(--verde); margin-top: 1px; }
.contas { overflow: visible; }
.conta-linha { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.conta-icone { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ativo); color: var(--texto-3); flex: none; }
.conta-icone .marca-svg { width: 18px; height: 18px; }
.conta-icone.grande { width: 48px; height: 48px; }
.conta-icone.grande .marca-svg, .conta-icone.grande svg.i { width: 22px; height: 22px; }
.conta-dados { flex: 1; min-width: 0; display: grid; gap: 3px; }
.conta-dados .titulo { font-weight: 600; }
.conta-dados .meta { color: var(--texto-3); font-size: 13px; }
.conta-campos { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 13.5px; color: var(--texto-2); }
.conta-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.conta-login, .conta-senha { display: inline-flex; align-items: center; gap: 4px; }
.conta-login svg.i, .conta-senha > svg.i { width: 14px; height: 14px; color: var(--texto-3); }
.conta-notas { flex-basis: 100%; }
.senha-campo { display: inline-flex; align-items: center; gap: 2px; }
.senha-campo .btn.icone.p { padding: 4px; }
.senha-campo .btn.icone.p svg.i { width: 15px; height: 15px; }
.com-botao { display: flex; gap: 6px; align-items: center; }
@media (max-width: 600px) { .conta-linha { flex-wrap: wrap; } .conta-linha > .btn { margin-left: 52px; } }

/* Dicas e tutorial */
.grelha-dicas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 420px) { .grelha-dicas { grid-template-columns: minmax(0, 1fr); } }
.midia-cartao { padding: 18px; display: grid; gap: 12px; min-width: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video.vertical { aspect-ratio: 9 / 16; max-width: 340px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.midia-img { width: 100%; border-radius: 12px; display: block; }
.numero-passo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bni); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; vertical-align: 2px; flex: none; }
.ajuda-final { display: flex; align-items: center; gap: 14px; margin-top: 20px; max-width: 760px; flex-wrap: wrap; }
.ajuda-final > svg.i { width: 28px; height: 28px; color: var(--bni); }

/* Contacto */
.conversa-linha { color: inherit; }
.conversa-linha:hover { background: var(--hover); }
.conversa-linha .resumo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversa-linha.por-ler .titulo { font-weight: 700; }
.conversa-linha .lado { display: grid; justify-items: end; gap: 4px; flex: none; }
.conversa-linha .lado .meta { font-size: 12px; }
.conversa { max-width: 820px; }
.chat { display: grid; gap: 12px; margin-bottom: 18px; }
.bolha { max-width: 80%; padding: 12px 16px; border-radius: 18px; background: var(--painel); box-shadow: var(--sombra); justify-self: start; border-bottom-left-radius: 6px; }
.bolha.minha { justify-self: end; background: var(--acento); color: #fff; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bolha .quem { font-size: 12px; color: var(--texto-3); margin-bottom: 4px; }
.bolha.minha .quem { color: rgba(255, 255, 255, 0.78); }
.bolha.minha a { color: #fff; text-decoration: underline; }
@media (max-width: 600px) { .bolha { max-width: 92%; } }
.responder { display: grid; gap: 10px; }
.responder-acoes { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* BNI Lisboa */
.bni-heroi { display: flex; gap: 20px; align-items: flex-start; padding: 26px; margin-bottom: 8px; box-shadow: inset 0 4px 0 var(--bni), var(--sombra); flex-wrap: wrap; }
.bni-heroi h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.035em; }
.bni-heroi .texto-livre { color: var(--texto-2); }
.grande-selo { height: 64px !important; padding: 0 16px !important; font-size: 26px !important; border-radius: 16px !important; }
.grelha-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .grelha-links { grid-template-columns: minmax(0, 1fr); } }
.link-oficial { display: flex; align-items: center; gap: 14px; padding: 16px; min-width: 0; }
.link-oficial .cresce { min-width: 0; }
.link-oficial .titulo { font-weight: 650; }
.link-oficial .meta { color: var(--texto-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-oficial .botoes { flex: none; flex-wrap: nowrap; }
.link-edicao { gap: 8px; }
.link-edicao select.entrada { max-width: 150px; }
@media (max-width: 640px) { .link-edicao { flex-wrap: wrap; } .link-edicao .entrada { flex: 1 1 40%; } }

/* Contas e acessos */
.pessoa-linha .utilizador { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--texto-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; min-width: 120px; }
.pessoa-linha .utilizador svg.i { width: 14px; height: 14px; }
.pessoa-linha .pass { min-width: 150px; }
.pessoa-linha.inativa { opacity: 0.55; }
.pessoa-linha .titulo .etiqueta { margin-left: 6px; }
@media (max-width: 760px) { .pessoa-linha { flex-wrap: wrap; } .pessoa-linha .utilizador, .pessoa-linha .pass { min-width: 0; } }
.passo-edicao { display: flex; gap: 10px; align-items: flex-start; padding: 12px; }
.passo-edicao .form { gap: 6px; }
.passo-edicao .numero-passo { margin-top: 5px; }

/* Ficheiros */
.zona-envio { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--linha-forte); border-radius: 12px; background: var(--painel-2); cursor: pointer; text-align: left; color: var(--texto); }
.zona-envio:hover { border-color: var(--bni); }
.zona-envio svg.i { width: 24px; height: 24px; color: var(--bni); }
.ficheiro-escolhido { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--linha); border-radius: 12px; background: var(--painel-2); }
.ficheiro-escolhido img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.ficheiro-escolhido .ext { font-size: 13px; padding: 8px 10px; }
.ficheiro-escolhido .titulo { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficheiro-escolhido .cresce { min-width: 0; flex: 1; }
.ficheiro-escolhido .meta { color: var(--texto-3); font-size: 12.5px; }
.envio { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--painel-2); }
.barra-envio { height: 6px; border-radius: 3px; background: var(--ativo); overflow: hidden; }
.barra-envio span { display: block; height: 100%; background: var(--bni); transition: width 0.2s; }
.miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 6px; }
.miniatura { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--painel-2); border: 1px solid var(--linha); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura .numero { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.miniatura-acoes { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }
.miniatura-acoes button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.miniatura-acoes svg.i { width: 13px; height: 13px; }
.miniatura.adicionar { display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; border-style: dashed; color: var(--texto-2); }
.miniatura.adicionar:hover { border-color: var(--bni); color: var(--bni); }
.miniatura.a-carregar { display: grid; place-items: center; }
.carregar.mini { padding: 0; }
.carregar.mini::before { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .ola-topo { margin-bottom: 18px; }
  .bolinha { width: 36px; height: 36px; }
  .cabecalho .acoes { width: 100%; }
}
.modelo-rodape { flex-wrap: wrap; }
.modelo-rodape .acoes-edicao { flex-basis: 100%; justify-content: flex-end; margin: -2px -6px -8px 0; }
@media (max-width: 760px) {
  .pessoa-linha { row-gap: 4px; }
  .pessoa-linha .cresce { flex: 1 1 calc(100% - 110px); }
  .pessoa-linha > .btn { order: 3; }
  .pessoa-linha .utilizador { order: 5; margin-left: 44px; }
  .pessoa-linha .pass { order: 6; }
}

/* BNI Lisboa: links à esquerda, Instagram à direita */
.bni-colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) { .bni-colunas { grid-template-columns: minmax(0, 1fr); } }
.bni-colunas .secao-titulo { margin: 22px 0 2px; }
.sub-secao { margin: 0 0 12px; }
.pilha-links { display: grid; gap: 10px; }
.acoes-ig { display: inline-flex; gap: 2px; }
.grelha-ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ig-post { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--painel-2); display: block; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.ig-post:hover img { transform: scale(1.04); }
.ig-sem-imagem { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texto-3); }
.ig-tipo { position: absolute; top: 7px; right: 7px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.ig-tipo svg.i { width: 17px; height: 17px; }
.ig-legenda {
  position: absolute; inset: auto 0 0 0; padding: 26px 9px 8px; color: #fff; font-size: 12px; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; opacity: 0; transition: opacity 0.2s;
}
.ig-post:hover .ig-legenda, .ig-post:focus-visible .ig-legenda { opacity: 1; }
.ig-ver { margin-top: 12px; width: 100%; }
.ig-ver .marca-svg { width: 16px; height: 16px; }
.ig-vazio .marca-svg { width: 34px; height: 34px; color: #ee2a7b; margin-bottom: 8px; }
.nota.aviso-nota { margin-bottom: 10px; }
.link-oficial .cresce { flex: 1; }

/* Redes sociais (publicações mensais do @bnilisboa) */
.redes .etiquetas { align-items: center; }
.passos-redes { display: grid; gap: 4px; margin-bottom: 20px; }
.passo-redes { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--linha); }
.passo-redes:first-child { border-top: 0; }
.passo-redes .numero-passo { margin: 0; }
.passo-redes .btn { flex: none; }
@media (max-width: 640px) { .passo-redes { flex-wrap: wrap; } .passo-redes .btn { margin-left: 34px; } }
.registo { margin-top: 10px; background: var(--painel-2); border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow-y: auto; font-size: 13px; line-height: 1.6; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.seccao-redes { padding: 18px 20px; margin-bottom: 18px; }
.seccao-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.seccao-topo h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.redes-corpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .redes-corpo { grid-template-columns: minmax(0, 1fr); } }
.previas { display: flex; gap: 10px; flex-wrap: wrap; }
.previa-caixa { display: grid; gap: 4px; justify-items: center; }
canvas.previa { width: 132px; height: 165px; border-radius: 8px; box-shadow: var(--sombra), 0 2px 10px rgba(0, 0, 0, 0.1); cursor: zoom-in; background: var(--painel-2); }
.previa-vazia { padding: 30px 10px; border: 1.5px dashed var(--linha-forte); border-radius: 10px; width: 100%; text-align: center; }
.arte-grande { width: 100%; max-width: 560px; display: block; margin: 0 auto; border-radius: 10px; }
.editor-redes { overflow-x: auto; }
.tabela.editor td { padding: 4px 4px; vertical-align: top; }
.tabela.editor th { padding: 4px; }
.tabela.editor .entrada.p { min-width: 0; }
.tabela.editor .entrada.curta { width: 72px; }
.editor-rodape { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.totais { margin-bottom: 10px; max-width: 420px; }
.pessoa-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 300px; }
.foto-mini { display: grid; justify-items: center; gap: 2px; width: 74px; }
.foto-mini img { width: 60px; height: 60px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--painel-2); border: 1px solid var(--linha); }
.foto-mini img.recortada { object-fit: contain; background: repeating-conic-gradient(var(--painel-2) 0% 25%, var(--painel) 0% 50%) 50% / 10px 10px; }
.foto-mini .sem { width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: var(--ativo); color: var(--texto-3); }
.foto-mini .btn.p { padding: 2px 8px; font-size: 12px; }
.legenda-redes { margin-top: 14px; border-top: 1px solid var(--linha); padding-top: 10px; }
.legenda-redes summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.legenda-redes textarea { margin: 10px 0 8px; font-size: 14px; }
.formacoes { display: grid; gap: 16px; }
.formacao-item { border-top: 1px solid var(--linha); padding-top: 14px; }
.formacao-item:first-child { border-top: 0; padding-top: 0; }
.formacao-item h3 { margin: 0 0 4px; font-size: 17px; }
.guardado { margin-left: 6px; }
code.senha-ver { background: var(--painel-2); padding: 2px 6px; border-radius: 6px; }
.tabela.editor { min-width: 560px; }

/* ---------- Auditoria das redes ---------- */
.sem-ponto.azul { background: #0a84ff; }
.tabela-rolar { overflow-x: auto; padding: 4px 8px; }
.aud-tabela { min-width: 640px; }
.aud-tabela .aud-celula { text-align: center; width: 54px; }
.aud-tabela th.aud-celula svg.i { width: 17px; height: 17px; vertical-align: -3px; }
.aud-tabela tbody tr { cursor: pointer; }
.aud-tabela tbody tr:hover td { background: var(--hover); }
.aud-tabela .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.aud-grupo { color: inherit; font-weight: 600; white-space: nowrap; }
.aud-ponto { display: inline-flex; align-items: center; gap: 2px; }
.aud-ponto svg.i, .aud-celula > .muted svg.i { width: 13px; height: 13px; color: var(--verde); }
.aud-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--texto-2); margin: 4px 0 14px; }
.aud-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.aud-legenda svg.i { width: 14px; height: 14px; color: var(--verde); }
.aud-intro { margin: -6px 0 16px; max-width: 70ch; }
.aud-nota { margin-bottom: 8px; max-width: 420px; }
.aud-canais { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 8px; }
.aud-canal { display: grid; gap: 10px; align-content: start; }
.aud-canal-topo { display: flex; align-items: center; gap: 10px; }
.aud-canal-icone { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--painel-2); border: 1px solid var(--linha); flex: none; }
.aud-canal-icone svg.i { width: 20px; height: 20px; }
.aud-canal-nome { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.aud-canal-nome h3 { margin: 0; font-size: 16px; }
.aud-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.aud-link svg.i { width: 14px; height: 14px; flex: none; }
.aud-aviso { color: var(--laranja); }
.aud-canal p.pequeno { margin: 0; display: flex; align-items: center; gap: 4px; }
.aud-canal p.pequeno svg.i { width: 14px; height: 14px; }
.aud-resumo { margin: 0; font-size: 14.5px; line-height: 1.5; }
.aud-metricas { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.aud-metricas div { background: var(--painel-2); border-radius: 10px; padding: 8px 10px; }
.aud-metricas dt { font-size: 12px; color: var(--texto-3); }
.aud-metricas dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.aud-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.aud-checklist li { display: flex; gap: 8px; align-items: flex-start; }
.aud-checklist small { display: block; color: var(--texto-3); font-size: 12.5px; }
.aud-marca { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ativo); color: var(--texto-3); }
.aud-checklist li.ok .aud-marca { background: var(--verde-fundo); color: var(--verde); }
.aud-checklist li.nao .aud-marca { background: var(--vermelho-fundo); color: var(--vermelho); }
.aud-bloco { margin-bottom: 18px; }
.aud-bloco-titulo { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); }
.aud-sug { display: grid; gap: 8px; }
.aud-sug h3 { margin: 0; font-size: 16px; }
.aud-sug p { margin: 0; }
.aud-sug-topo { display: flex; gap: 6px; flex-wrap: wrap; }
.aud-proposta { background: var(--painel-2); border-radius: 10px; padding: 10px 12px; }
.aud-proposta b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texto-3); }
.aud-proposta p { margin-top: 3px; white-space: pre-line; }
.aud-nota-txt { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--texto-2); }
.aud-nota-txt svg.i { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.aud-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.aud-tarefas { margin-bottom: 14px; }
.aud-tarefas p.pequeno { margin: 2px 0 6px; }
.lista-tarefas { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.lista-tarefas li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linha); }
.lista-tarefas li:first-child { border-top: 0; }
.lista-tarefas li > div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.lista-tarefas small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lista-tarefas .btn.p { flex: none; }
.aud-canal-mini { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--painel-2); flex: none; }
.aud-canal-mini svg.i { width: 15px; height: 15px; }
.aud-canal-icone .marca-svg { width: 20px; height: 20px; }
.aud-canal-mini .marca-svg, .aud-sug-topo .marca-svg { width: 14px; height: 14px; }
