/* CRM Urban (cópia do ELO LAB / Imense Board): estilos próprios. As variáveis --elo-* mantêm o nome antigo, mas carregam a paleta
   da Urban (brand-kit da Central Urban): preto #1A1A1A, grafite #2A2A2A, laranja #F4762B, creme #F5F0E8. Botão: laranja escuro
   #B24B12 (branco 5,4:1); laranja puro só em detalhes (2,8:1 no branco).
   Origem: ELO LAB (antigo Imense Board): estilos próprios.
   Identidade ELO LAB: tokens --elo-* abaixo (cores amostradas da arte oficial, marca-elolab/referencia-elolab.jpg).
   Os quadros com visual próprio do cliente (imagem de fundo, card, logo ou gradiente escolhido em "Editar projeto")
   continuam com o visual deles; o tema ELO LAB vale para login, navegação, lista de projetos, telas gerais e quadros "elolab". */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-bold.woff2") format("woff2"); }
:root {
  /* ---- marca ELO LAB (amostrado da referência) */
  --elo-marinho: #1a1a1a;          /* Preto Urban: títulos */
  --elo-marinho-900: #141414;      /* menu lateral / cabeçalho */
  --elo-marinho-700: #2e2e2e;      /* item ativo do menu */
  --elo-laranja: #f4762b;          /* Laranja Urban: detalhes (não usar como fundo de texto branco: 2,8:1) */
  --elo-laranja-acao: #b24b12;     /* botão principal: branco sobre ele = 5,4:1 */
  --elo-laranja-acao-hover: #9e3f0d;
  --elo-laranja-texto: #a9440f;    /* laranja para texto sobre branco/creme (>= 5,2:1) */
  --elo-creme: #f5f0e8;            /* fundo da arte */
  --elo-fundo-app: #f8f6f2;        /* área de trabalho */
  --elo-superficie: #ffffff;       /* cards */
  --elo-texto: #222222;            /* slogan / texto principal */
  --elo-texto-suave: #575757;      /* texto secundário (>= 4,5:1 em branco, creme e colunas) */
  --elo-borda: #e6e1d8;
  --elo-coluna: #efeae1;           /* corpo das colunas do kanban */
  --elo-col-azul: #cde8fc;   --elo-col-azul-ponto: #4191d2;      /* Novos */
  --elo-col-laranja: #fbe3d2; --elo-col-laranja-ponto: #e87433;  /* Em atendimento */
  --elo-col-verde: #d2f2e5;  --elo-col-verde-ponto: #27ac77;     /* Proposta */
  --elo-col-roxo: #ebe2fb;   --elo-col-roxo-ponto: #724ad2;      /* Negociação */
  --elo-sombra: 0 1px 2px rgba(26, 26, 26, .06), 0 4px 14px rgba(26, 26, 26, .08);
  --elo-sombra-forte: 0 10px 34px rgba(26, 26, 26, .16);
  --elo-raio: 12px;
  --elo-raio-m: 8px;
  --elo-fonte: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* ---- tokens dos componentes (apontam para a marca) */
  --cabecalho: rgba(0, 0, 0, .24);
  --lista: #dfe3e6;
  --lista-titulo: #262626;
  --cartao: #fff;
  --cartao-sombra: 0 1px 0 #ccd2d7;
  --texto: var(--elo-texto);
  --texto-suave: var(--elo-texto-suave);
  --botao-cinza: rgba(26, 26, 26, .06);
  --botao-cinza-hover: rgba(26, 26, 26, .12);
  --primaria: var(--elo-laranja-acao);
  --primaria-hover: var(--elo-laranja-acao-hover);
  --foco: var(--elo-laranja);
  --perigo: #c9372c;
  --whatsapp: #25d366;
  --modal-fundo: #f6f7fa;
  --raio: 6px;
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--elo-fonte);
  color: var(--texto); background: var(--elo-creme); line-height: 1.43; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.oculto { display: none !important; }

/* ---------- fundos (gradientes próprios) */
.fundo-elolab { background: radial-gradient(140% 120% at 108% 118%, var(--elo-laranja) 0 24%, transparent 24.6%),
  radial-gradient(150% 130% at 112% 124%, #2a2a2a 0 34%, transparent 34.5%), linear-gradient(135deg, var(--elo-marinho-900) 0%, #222222 100%); }
.fundo-oceano { background: linear-gradient(135deg, #1e6fa8 0%, #2d9cdb 55%, #56ccf2 100%); }
.fundo-aurora { background: linear-gradient(135deg, #3a1c71 0%, #d76d77 55%, #ffaf7b 100%); }
.fundo-floresta { background: linear-gradient(135deg, #134e5e 0%, #2f8f5b 60%, #71b280 100%); }
.fundo-por-do-sol { background: linear-gradient(135deg, #e5533d 0%, #f08a24 55%, #f7c548 100%); }
.fundo-uva { background: linear-gradient(135deg, #41295a 0%, #6a3d9a 50%, #9b6dd1 100%); }
.fundo-grafite { background: linear-gradient(135deg, #232526 0%, #414345 60%, #5b6064 100%); }
.fundo-cereja { background: linear-gradient(135deg, #8e0e00 0%, #c0392b 55%, #e8656b 100%); }
.fundo-areia { background: linear-gradient(135deg, #b08a5a 0%, #d6b27c 55%, #efd9a7 100%); }
.fundo-menta { background: linear-gradient(135deg, #0f8a7e 0%, #1fb59a 55%, #7be0bf 100%); }
.fundo-noite { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }

/* ---------- estrutura */
#app { min-height: 100%; display: flex; flex-direction: column; }
.tela { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.cabecalho {
  height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: var(--cabecalho); color: #fff;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: 15px; text-decoration: none; padding: 0 8px; height: 32px; border-radius: var(--raio); }
.logo:hover { background: rgba(255, 255, 255, .2); }
.logo-marca { width: 22px; height: 22px; border-radius: 5px; background: #fff; color: #0b5c8e; display: grid; place-items: center;
  font-size: 13px; letter-spacing: 0; }
.trilha { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.trilha a, .trilha span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; padding: 4px 8px;
  border-radius: var(--raio); text-decoration: none; }
.trilha a:hover { background: rgba(255, 255, 255, .2); }
.trilha .sep { opacity: .6; padding: 0 2px; }
.espaco { flex: 1; }
.btn-cab { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--raio);
  background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; white-space: nowrap; }
.btn-cab:hover { background: rgba(255, 255, 255, .32); }
.btn-cab.whatsapp { background: var(--whatsapp); color: #06210f; }
.btn-cab.whatsapp:hover { background: #1ebe5a; }
.btn-cab svg { width: 16px; height: 16px; }
.btn-cab.facebook { background: #1464cc; color: #fff; }   /* azul do Facebook um tom abaixo: branco 5,6:1 */
.btn-cab.facebook:hover { background: #0f65d6; }
.usuario-cab { display: flex; align-items: center; gap: 8px; padding: 2px 6px 2px 2px; border: 0; background: transparent; color: #fff;
  border-radius: 16px; height: 32px; }
.usuario-cab:hover { background: rgba(255, 255, 255, .2); }

/* ---------- avatar */
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700;
  font-size: 11px; flex: none; text-transform: uppercase; user-select: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) inset; }
.avatar.p { width: 24px; height: 24px; font-size: 10px; }
.avatar.g { width: 36px; height: 36px; font-size: 13px; }

/* ---------- projetos */
.pagina-projetos { padding: 32px 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.grade-projetos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.projeto { position: relative; height: 140px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none;
  display: flex; align-items: flex-end; padding: 14px 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .12s, box-shadow .12s; }
.projeto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); }
.projeto:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.projeto-nome { position: relative; z-index: 1; font-size: 17px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); word-break: break-word; }
.projeto-qtd { position: absolute; top: 12px; right: 14px; z-index: 1; font-size: 12px; background: rgba(0, 0, 0, .25); padding: 1px 8px; border-radius: 10px; }
.projeto.novo { background: rgba(0, 0, 0, .22); border: 0; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  font-weight: 600; box-shadow: none; }
.projeto.novo::after { display: none; }
.projeto.novo:hover { background: rgba(0, 0, 0, .32); }
.projeto.novo svg { width: 28px; height: 28px; }
/* painel da agência: cartão do projeto com status (WhatsApp + anúncios) e lápis de editar */
.projeto-cartao { position: relative; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.projeto-cartao:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.projeto-cartao .projeto { height: 96px; border-radius: 0; box-shadow: none; }
.projeto-cartao .projeto:hover { transform: none; box-shadow: none; }
.projeto-editar { position: absolute; top: 9px; left: 10px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border: 0;
  border-radius: 14px; background: rgba(0, 0, 0, .32); color: #fff; opacity: .85; }
.projeto-editar:hover, .projeto-editar:focus-visible { opacity: 1; background: rgba(0, 0, 0, .5); }
.projeto-editar svg { width: 15px; height: 15px; }
.projeto-status { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 8px; color: var(--texto); font-size: 13px; min-height: 92px; }
.st-linha { display: grid; grid-template-columns: 16px 8px 1fr; column-gap: 7px; align-items: center; line-height: 1.3; }
.st-ico { display: inline-flex; width: 16px; height: 16px; }
.st-ico.wa { color: #128c4b; }
.st-ico.fb { color: #1877f2; }
.st-ponto { width: 8px; height: 8px; border-radius: 50%; background: #a5adba; }
.st-ponto.verde { background: #1f9d55; }
.st-ponto.amarelo { background: #d69e00; }
.st-ponto.vermelho { background: #d0312d; }
.st-ponto.carregando { background: #c1c7d0; animation: st-pisca 1s infinite alternate; }
@keyframes st-pisca { to { opacity: .3; } }
.st-texto { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sub { grid-column: 3; color: #5e6c84; font-size: 12px; min-width: 0; }
.st-sub.aviso { color: #a33a00; white-space: normal; }
.titulo-secao { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.vazio { color: rgba(255, 255, 255, .85); padding: 24px 0; }

/* ---------- abas de quadros */
.abas { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 8px 8px 0; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: var(--raio) var(--raio) 0 0;
  color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; background: rgba(0, 0, 0, .18); }
.aba:hover { background: rgba(0, 0, 0, .28); }
.aba.ativa { background: rgba(255, 255, 255, .26); }
.aba-mais { border: 0; width: 34px; justify-content: center; padding: 0; }
.aba-mais svg { width: 16px; height: 16px; }

/* ---------- barra do quadro */
.barra-quadro { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .26); color: #fff;
  flex-wrap: wrap; }
.barra-quadro h1 { font-size: 18px; margin: 0 8px 0 0; font-weight: 700; padding: 2px 6px; border-radius: var(--raio); cursor: pointer; }
.barra-quadro h1:hover { background: rgba(255, 255, 255, .2); }
.membros-quadro { display: flex; align-items: center; }
.membros-quadro .avatar { margin-right: -4px; }
.membros-quadro .btn-cab { margin-left: 10px; }
.filtros { display: flex; gap: 6px; align-items: center; }
.ponto-rt { width: 8px; height: 8px; border-radius: 50%; background: #9fadbc; display: inline-block; }
.ponto-rt.on { background: #61bd4f; }

/* ---------- quadro / listas */
.quadro { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 12px 8px 8px; display: flex; align-items: flex-start; gap: 8px; }
.listas { display: flex; align-items: flex-start; gap: 8px; height: 100%; }
.lista { width: 272px; flex: none; background: var(--lista); border-radius: var(--raio); display: flex; flex-direction: column;
  max-height: calc(100vh - 150px); }
.lista-cab { display: flex; align-items: flex-start; gap: 4px; padding: 8px 6px 4px 10px; cursor: grab; }
.lista-nome { flex: 1; font-weight: 700; color: var(--lista-titulo); font-size: 14.5px; word-break: break-word; padding: 2px 0; }
.lista-qtd { color: var(--texto-suave); font-size: 12px; padding-top: 4px; }
.btn-icone { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: var(--raio); background: transparent;
  color: var(--texto-suave); flex: none; }
.btn-icone:hover { background: var(--botao-cinza-hover); color: var(--texto); }
.btn-icone svg { width: 16px; height: 16px; }
.cartoes { flex: 1; overflow-y: auto; padding: 2px 8px; min-height: 8px; }
.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--cartao-sombra); margin-bottom: 8px; padding: 6px 8px 4px;
  cursor: pointer; position: relative; user-select: none; }
.cartao:hover { background: #f6f8f9; }
.cartao-etiquetas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.etiqueta { display: inline-block; border-radius: var(--raio); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px;
  padding: 0 8px; min-width: 40px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 2px rgba(0, 0, 0, .25); }
.etiqueta.vazia { min-height: 8px; line-height: 8px; }
.cartao-nome { font-size: 14.5px; color: #333; word-break: break-word; padding-bottom: 2px; }
.cartao-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; }
.selo { display: inline-flex; align-items: center; gap: 3px; color: var(--texto-suave); font-size: 12px; line-height: 20px; border-radius: var(--raio); }
.selo svg { width: 14px; height: 14px; }
/* agenda / follow-up: vermelho = atrasado, verde = hoje, amarelo = menos de 24h, cinza riscado = concluído (contraste AA em todos) */
.selo.agenda { padding: 0 6px; font-weight: 600; border-radius: 999px; background: var(--botao-cinza); color: var(--texto); }
.selo.agenda.atrasado { background: #c9372c; color: #fff; }
.selo.agenda.hoje { background: #1f7a4d; color: #fff; }
.selo.agenda.proximo { background: #f5cd00; color: #2b2300; }
.selo.agenda.feito { background: #e4e8ee; color: #52606d; text-decoration: line-through; }
.cartao-agenda-nota { font-size: 12.5px; color: var(--texto-suave); margin: 1px 0 3px; padding-left: 8px; border-left: 3px solid #c3ccd8;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cartao-agenda-nota.atrasado { border-left-color: #c9372c; color: #8f2219; }
.cartao-agenda-nota.hoje { border-left-color: #1f7a4d; color: #17603c; }
.cartao-agenda-nota.proximo { border-left-color: #e2b80b; }
.selo.tarefas.feito { background: #1f7a4d; color: #fff; padding: 0 4px; }
.cartao-membros { margin-left: auto; display: flex; gap: 2px; }
.add-cartao { margin: 0 8px 8px; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 0; border-radius: var(--raio);
  background: transparent; color: var(--texto-suave); text-align: left; }
.add-cartao:hover { background: var(--botao-cinza-hover); color: var(--texto); }
.add-cartao svg { width: 16px; height: 16px; }
.form-cartao { padding: 0 8px 8px; }
.form-cartao textarea { width: 100%; border: 0; border-radius: var(--raio); box-shadow: var(--cartao-sombra); padding: 6px 8px; resize: none;
  min-height: 60px; outline: none; display: block; margin-bottom: 8px; }
.add-lista { width: 272px; flex: none; border: 0; border-radius: var(--raio); background: rgba(0, 0, 0, .24); color: #fff; padding: 10px 12px;
  display: flex; align-items: center; gap: 6px; font-weight: 600; text-align: left; }
.add-lista:hover { background: rgba(0, 0, 0, .34); }
.add-lista svg { width: 16px; height: 16px; }
.form-lista { width: 272px; flex: none; background: var(--lista); border-radius: var(--raio); padding: 6px; }
.form-lista input { width: 100%; border: 0; border-radius: var(--raio); padding: 7px 8px; box-shadow: inset 0 0 0 2px var(--primaria); outline: none; margin-bottom: 6px; }
.fantasma { opacity: .35; }
.fantasma.cartao { background: #c4ccd2; box-shadow: none; }
.fantasma.cartao > * { visibility: hidden; }
.arrastando { transform: rotate(3deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .25) !important; }
.lista.fantasma { background: rgba(0, 0, 0, .18); }
.lista.fantasma > * { visibility: hidden; }

/* ---------- botões */
.btn { border: 0; border-radius: var(--elo-raio-m); padding: 7px 14px; font-weight: 600; background: var(--botao-cinza); color: var(--texto); }
.btn:hover { background: var(--botao-cinza-hover); }
.btn.primario { background: var(--primaria); color: #fff; }
.btn.primario:hover { background: var(--primaria-hover); }
.btn.perigo { background: var(--perigo); color: #fff; }
.btn.perigo:hover { background: #a82d24; }
.btn.verde { background: #1f7a4d; color: #fff; }
.btn.verde:hover { background: #17633e; }
.btn:focus-visible, .btn-cab:focus-visible, .btn-icone:focus-visible, a:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.linha-botoes { display: flex; align-items: center; gap: 6px; }

/* ---------- login (ELO LAB: creme com ondas marinho/laranja nos cantos, logo + slogan, card branco) */
.tela-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 56px 24px 40px; position: relative; overflow: hidden; }
.tela-login > * { position: relative; z-index: 1; }
.login-marca { text-align: center; display: flex; flex-direction: column; align-items: center; }
.login-logo { width: min(420px, 78vw); height: auto; display: block; }
.login-slogan { margin: 14px 0 0; color: var(--elo-texto); font-weight: 500; font-size: clamp(11px, 2.2vw, 17px); letter-spacing: .26em; text-transform: uppercase; }
.login-filete { display: block; width: 120px; height: 3px; border-radius: 3px; background: var(--elo-laranja); margin-top: 16px; opacity: .85; }
.login-caixa { width: 100%; max-width: 440px; background: var(--elo-superficie); border-radius: 16px; box-shadow: var(--elo-sombra-forte);
  padding: 32px 36px 28px; border: 1px solid rgba(26, 26, 26, .06); }
.login-caixa form { width: 100%; }
.login-caixa h1 { font-size: 22px; margin: 0 0 4px; color: var(--elo-marinho); font-weight: 700; text-align: center; }
.login-caixa .sub { color: var(--texto-suave); margin: 0 0 24px; text-align: center; }
.login-recursos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.login-recursos li { display: inline-flex; align-items: center; gap: 8px; background: var(--elo-superficie); color: var(--elo-marinho); font-weight: 600;
  font-size: 13px; padding: 8px 14px; border-radius: var(--elo-raio); box-shadow: var(--elo-sombra); }
.login-recursos li span { display: inline-flex; width: 18px; height: 18px; color: var(--elo-laranja-texto); }
.login-recursos li svg { width: 18px; height: 18px; }
.campo { display: block; margin-bottom: 16px; }
.campo span { display: block; font-weight: 600; font-size: 13px; color: var(--texto-suave); margin-bottom: 4px; }
.campo input, .campo select, .campo textarea { width: 100%; border: 1.5px solid #d5dbe4; border-radius: var(--elo-raio-m); padding: 9px 12px; background: #fbfcfd; outline: none;
  transition: border-color .12s, box-shadow .12s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--foco); background: #fff; box-shadow: 0 0 0 3px rgba(245, 94, 7, .16); }
.login-caixa .btn { padding: 11px 16px; font-size: 15px; width: 100%; border-radius: 10px; margin-top: 4px; }
.erro { background: #ffebe6; color: #bf2600; padding: 8px 12px; border-radius: 4px; margin-bottom: 16px; }
.logo-grande { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 20px; }
.logo-grande .logo-marca { width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }

/* ---------- modal / popover */
.modal-fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, .64); z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 48px 16px; }
.modal { background: var(--modal-fundo); border-radius: 14px; width: 100%; max-width: 768px; position: relative; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.modal.pequeno { max-width: 420px; padding: 20px; }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.modal-fechar { position: absolute; top: 8px; right: 8px; z-index: 2; }
.cartao-modal { display: grid; grid-template-columns: 1fr 172px; gap: 16px; padding: 16px 16px 24px; }
.cm-cab { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding-right: 32px; }
.cm-cab svg { width: 22px; height: 22px; margin-top: 6px; color: #42526e; flex: none; }
.cm-titulo { width: 100%; font-size: 20px; font-weight: 700; border: 0; background: transparent; resize: none; padding: 4px 6px; border-radius: var(--raio);
  overflow: hidden; line-height: 1.3; }
.cm-titulo:focus { background: #fff; outline: 2px solid var(--primaria); }
.cm-lista { color: var(--texto-suave); padding-left: 6px; font-size: 13px; }
.cm-lista b { text-decoration: underline; font-weight: 400; }
.cm-principal { min-width: 0; padding-left: 32px; }
.cm-props { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 20px; }
.cm-prop h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #5e6c84; text-transform: uppercase; letter-spacing: .03em; }
.cm-prop .itens { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cm-prop .etiqueta { line-height: 30px; padding: 0 12px; cursor: pointer; }
.cm-add { width: 30px; height: 30px; border-radius: var(--raio); border: 0; background: var(--botao-cinza); display: grid; place-items: center; color: #42526e; }
.cm-add:hover { background: var(--botao-cinza-hover); }
.cm-add svg { width: 14px; height: 14px; }
.prazo-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--botao-cinza); padding: 4px 10px; border-radius: var(--raio); cursor: pointer; }
.prazo-chip input { margin: 0; }
.cm-secao { margin-bottom: 24px; position: relative; }
.cm-secao-cab { display: flex; align-items: center; gap: 10px; margin: 0 0 8px -32px; }
.cm-secao-cab svg { width: 20px; height: 20px; color: #42526e; flex: none; }
.cm-secao-cab h3 { margin: 0; font-size: 16px; flex: 1; }
.descricao { background: var(--botao-cinza); border-radius: var(--raio); padding: 8px 12px; min-height: 56px; cursor: pointer; word-break: break-word; }
.descricao:hover { background: var(--botao-cinza-hover); }
.descricao.cheia { background: transparent; padding: 0; min-height: 0; }
.descricao.cheia:hover { background: transparent; }
.md p { margin: 0 0 8px; } .md ul { margin: 0 0 8px; padding-left: 20px; } .md a { color: var(--primaria); }
.md code { background: rgba(9, 30, 66, .08); padding: 1px 4px; border-radius: 3px; font-size: 12.5px; }
.editor { width: 100%; min-height: 108px; border: 0; border-radius: var(--raio); padding: 8px 12px; box-shadow: inset 0 0 0 2px var(--primaria);
  background: #fff; resize: vertical; outline: none; display: block; margin-bottom: 8px; }
.progresso { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.progresso span { font-size: 11px; color: var(--texto-suave); width: 30px; }
.progresso .barra { flex: 1; height: 8px; border-radius: 4px; background: rgba(9, 30, 66, .08); overflow: hidden; }
.progresso .barra i { display: block; height: 100%; background: #5ba4cf; transition: width .2s; }
.progresso .barra i.cheia { background: #61bd4f; }
.tarefa { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 0; border-radius: var(--raio); margin-left: -28px; }
.tarefa:hover { background: var(--botao-cinza); }
.tarefa input[type=checkbox] { width: 16px; height: 16px; margin: 0 4px; accent-color: var(--primaria); }
.tarefa .nome { flex: 1; word-break: break-word; }
.tarefa.feita .nome { text-decoration: line-through; color: var(--texto-suave); }
.tarefa .btn-icone { opacity: 0; width: 24px; height: 24px; }
.tarefa:hover .btn-icone { opacity: 1; }
.anexo { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: var(--raio); margin-bottom: 4px; }
.anexo:hover { background: var(--botao-cinza); }
.anexo-ext { width: 80px; height: 56px; border-radius: var(--raio); background: rgba(9, 30, 66, .08); display: grid; place-items: center; font-weight: 700;
  color: var(--texto-suave); text-transform: uppercase; flex: none; overflow: hidden; background-size: cover; background-position: center; }
.anexo-info { min-width: 0; flex: 1; }
.anexo-info a { font-weight: 600; word-break: break-all; text-decoration: none; }
.anexo-info small { display: block; color: var(--texto-suave); }
.comentar { display: flex; gap: 8px; margin-bottom: 16px; margin-left: -36px; }
.comentar textarea { width: 100%; display: block; border: 0; border-radius: var(--raio); box-shadow: var(--cartao-sombra), 0 0 0 1px rgba(9, 30, 66, .08); padding: 8px 12px;
  resize: none; min-height: 40px; outline: none; background: #fff; }
.comentar textarea:focus { box-shadow: inset 0 0 0 2px var(--primaria); }
.comentario { display: flex; gap: 8px; margin: 0 0 14px -36px; }
.comentario-corpo { flex: 1; min-width: 0; }
.comentario-autor { font-weight: 700; margin-right: 6px; }
.comentario-data { color: var(--texto-suave); font-size: 12px; }
.comentario-texto { background: #fff; border-radius: var(--raio); box-shadow: var(--cartao-sombra), 0 0 0 1px rgba(9, 30, 66, .06); padding: 8px 12px; margin-top: 4px;
  word-break: break-word; }
.comentario-acoes { font-size: 12px; color: var(--texto-suave); margin-top: 2px; }
.comentario-acoes button { border: 0; background: none; padding: 0; text-decoration: underline; color: var(--texto-suave); margin-right: 8px; font-size: 12px; }
.atividade { display: flex; gap: 8px; margin: 0 0 10px -36px; color: var(--texto-suave); font-size: 13px; align-items: center; }
.atividade b { color: var(--texto); }
.cm-lateral h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #5e6c84; text-transform: uppercase; letter-spacing: .03em; }
.cm-lateral .btn-lat { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: var(--raio); background: var(--botao-cinza);
  padding: 6px 10px; margin-bottom: 8px; text-align: left; font-weight: 500; color: #42526e; }
.cm-lateral .btn-lat:hover { background: var(--botao-cinza-hover); }
.cm-lateral .btn-lat svg { width: 15px; height: 15px; flex: none; }
.cm-lateral .grupo { margin-bottom: 18px; }

.pop { position: fixed; z-index: 70; width: 304px; background: #fff; border-radius: var(--elo-raio); box-shadow: 0 8px 24px rgba(9, 30, 66, .3), 0 0 0 1px rgba(9, 30, 66, .08);
  padding: 0 12px 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.pop-cab { display: flex; align-items: center; justify-content: center; position: relative; height: 40px; border-bottom: 1px solid rgba(9, 30, 66, .13);
  margin: 0 0 10px; color: #5e6c84; font-weight: 600; }
.pop-cab .btn-icone { position: absolute; right: -6px; top: 6px; }
.pop .item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: transparent; border-radius: var(--raio);
  text-align: left; margin-bottom: 2px; }
.pop .item:hover { background: var(--botao-cinza); }
.pop .item.perigo { color: var(--perigo); }
.pop .item .marca { margin-left: auto; color: #42526e; }
.pop .item .marca svg { width: 14px; height: 14px; }
.pop .etiqueta-item { flex: 1; line-height: 32px; padding: 0 12px; border-radius: var(--raio); color: #fff; font-weight: 600; min-height: 32px;
  text-shadow: 0 0 2px rgba(0, 0, 0, .25); display: flex; align-items: center; }
.pop .etq-linha { display: flex; gap: 4px; margin-bottom: 4px; align-items: center; }
.cores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.cores button { height: 32px; border: 0; border-radius: var(--raio); position: relative; }
.cores button.sel { box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--texto); }
.pop .campo { margin-bottom: 10px; }
.pop hr { border: 0; border-top: 1px solid rgba(9, 30, 66, .13); margin: 8px 0; }
.fundos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.fundos button { height: 36px; border: 0; border-radius: var(--raio); }
.fundos button.sel { box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--texto); }

/* ---------- painel WhatsApp */
.painel-wa { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #0f1418; z-index: 60; box-shadow: -8px 0 24px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; }
.painel-wa-cab { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; color: #fff; background: #128c4b; font-weight: 700; flex: none; }
.painel-wa-cab .btn-icone { color: #fff; margin-left: auto; }
.painel-wa-cab .btn-icone:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.painel-wa iframe { flex: 1; border: 0; width: 100%; background: #0f1418; }

/* ---------- admin / tabela */
.cartao-branco { background: #fff; border-radius: var(--elo-raio); padding: 20px; box-shadow: var(--elo-sombra); margin-bottom: 16px; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #ebecf0; vertical-align: middle; }
.tabela th { font-size: 12px; color: #5e6c84; text-transform: uppercase; }
.etq-papel { font-size: 11px; background: #dfe1e6; padding: 1px 6px; border-radius: 3px; font-weight: 700; color: #42526e; }
.chave-api { font-family: ui-monospace, Consolas, monospace; background: #f4f5f7; padding: 8px; border-radius: 4px; word-break: break-all; margin: 8px 0; }

.aviso-topo { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--elo-marinho-900); color: #fff; padding: 10px 16px; border-radius: var(--elo-raio-m);
  z-index: 90; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); }

/* ---------- celular */
@media (max-width: 760px) {
  .tela-login { justify-content: flex-start; padding: 96px 16px 32px; gap: 22px; }
  .login-caixa { padding: 24px 20px 20px; }
  .login-slogan { letter-spacing: .14em; }
  .pagina-projetos { padding: 20px 16px; }
  .cabecalho .nome-usuario, .btn-cab .rotulo { display: none; }
  .cabecalho .logo > span:last-child { display: none; }
  .quadro { scroll-snap-type: x mandatory; padding: 10px 16px; }
  .lista, .add-lista, .form-lista { width: calc(100vw - 48px); scroll-snap-align: center; }
  .lista { max-height: calc(100vh - 170px); }
  .modal-fundo { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
  .modal.pequeno { min-height: 0; margin: 48px 16px; border-radius: 4px; }
  .cartao-modal { grid-template-columns: 1fr; padding: 12px; }
  .cm-principal { padding-left: 0; }
  .cm-secao-cab { margin-left: 0; }
  .tarefa, .comentar, .comentario, .atividade { margin-left: 0; }
  .barra-quadro h1 { font-size: 16px; }
  .trilha a, .trilha span { padding: 4px 4px; }
}


/* ---------- painel do Assistente */
.painel-ia { position: fixed; right: 20px; bottom: 88px; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); border-radius: 12px; overflow: hidden; background: #f4f5f7; z-index: 60; box-shadow: -8px 0 24px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; }
.painel-ia-cab { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; color: #fff; background: var(--elo-marinho-900); font-weight: 700; flex: none; }
.painel-ia-cab .btn-icone { color: #fff; margin-left: auto; }
.painel-ia-cab .btn-icone:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.ia-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ia-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; background: #fff; box-shadow: var(--cartao-sombra); }
.ia-msg.eu { align-self: flex-end; background: var(--elo-marinho-700); color: #fff; }
.ia-msg.ia { align-self: flex-start; }
.ia-msg.erro { background: #ffebe6; color: #bf2600; }
.ia-msg.aviso { background: #fff7d6; max-width: 100%; }
.ia-msg small { display: block; margin-top: 4px; opacity: .7; font-size: 11px; }
.ia-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #dfe1e6; background: #fff; }
.ia-form textarea { flex: 1; border: 1px solid #dfe1e6; border-radius: 6px; padding: 8px; resize: none; outline: none; }
.ia-form textarea:focus { border-color: var(--primaria); }

.fab-ia { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--elo-laranja-acao); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .12s; }
.fab-ia:hover { transform: scale(1.06); background: var(--elo-laranja-acao-hover); }
.fab-ia svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .painel-ia { right: 8px; left: 8px; width: auto; bottom: 84px; height: calc(100vh - 140px); } .fab-ia { right: 16px; bottom: 16px; } }

/* ---------- painel Facebook / Instagram (Meta) */
.painel-meta { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: #f4f5f7; z-index: 60; box-shadow: -8px 0 24px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; }
.painel-meta-cab { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; color: #fff; background: #1464cc; font-weight: 700; flex: none; }
.painel-meta-cab .btn-icone { color: #fff; margin-left: auto; }
.painel-meta-cab .btn-icone:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.meta-corpo { flex: 1; overflow-y: auto; padding: 14px; }
.meta-suave { color: #5e6c84; margin: 0 0 12px; }
.meta-erro { color: #bf2600; }
.meta-aviso { background: #e3fcef; color: #064; padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }
.meta-aviso.amarelo { background: #fff7d6; color: #172b4d; }
.meta-projeto { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 12px; box-shadow: var(--cartao-sombra); }
.meta-projeto h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.meta-ok { font-size: 11px; font-weight: 700; background: #e3fcef; color: #064; padding: 1px 6px; border-radius: 3px; }
.meta-status { margin: 0 0 10px; }
.meta-status small { color: #5e6c84; }
.meta-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-fb { background: #1464cc; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn-fb:hover { background: #0f65d6; }
.btn-fb[disabled] { background: #b3c7e6; cursor: not-allowed; }
.btn-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn-ig:hover { filter: brightness(.92); }
.btn-ig[disabled] { background: #d9c3d6; cursor: not-allowed; }
.meta-entradas { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-top: 10px; }
.meta-entradas .btn { justify-content: center; }
.meta-entradas small { line-height: 1.35; }
.ia-pendente { margin-top: 8px; padding: 8px; border-radius: 8px; background: #fff7d6; white-space: normal; }
.ia-pendente-botoes { display: flex; gap: 8px; margin-top: 6px; }
.ia-pendente-fim { margin-top: 6px; font-weight: 700; }

/* ---------- CRM: equipe do cliente e conversa do WhatsApp */
.aba-equipe { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.aba-equipe svg { width: 16px; height: 16px; }
.equipe .equipe-lista { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 260px; overflow-y: auto; }
.equipe-item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--raio); padding: 6px 8px; }
.equipe-sub { font-size: 12px; color: var(--texto-suave); }
.equipe h3 { font-size: 15px; margin: 12px 0 6px; }
.etq-papel.papel-cliente { background: #dbeafe; color: #1e40af; }
.etq-papel.papel-atendente { background: #dcfce7; color: #166534; }
.selo-wa .ic { width: 14px; height: 14px; color: #25a244; }
.selo-wa .ic svg { width: 14px; height: 14px; }
.wa-secao .cm-secao-cab svg { color: #25a244; }
.wa-numero { font-size: 12px; color: var(--texto-suave); margin-left: auto; }
.wa-caixa { background: #efeae2; border-radius: 6px; padding: 10px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.wa-msg { max-width: 80%; padding: 6px 9px 4px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); align-self: flex-start; color: #111b21; }
.wa-msg.saida { align-self: flex-end; background: #d9fdd3; }
.wa-msg.erro { background: #fde2e1; }
.wa-autor { font-size: 11px; font-weight: 700; color: #1f7a4d; margin-bottom: 2px; }
.wa-texto { white-space: pre-wrap; word-break: break-word; line-height: 1.35; }
.wa-meta { font-size: 11px; color: #667781; text-align: right; margin-top: 2px; }
.wa-erro { font-size: 11px; color: #b42318; margin-top: 2px; }
.wa-vazio { color: #667781; text-align: center; margin: 8px 0; }
.wa-form { display: flex; gap: 8px; margin-top: 8px; align-items: flex-end; }
.wa-form textarea { flex: 1; resize: vertical; min-height: 44px; padding: 8px 10px; border: 1px solid #c1c7d0; border-radius: var(--raio); font: inherit; }
.btn.btn-wa { background: #15803d; color: #fff; display: inline-flex; gap: 6px; align-items: center; padding: 10px 14px; }
.btn.btn-wa:hover { background: #166534; }
.btn.btn-wa:disabled, .wa-form textarea:disabled { opacity: .55; cursor: not-allowed; }
.wa-dica { display: block; color: var(--texto-suave); margin-top: 4px; font-size: 12px; }
/* conversa completa: mídia nos balões, carregar anteriores e imagem ampliada */
.wa-caixa { max-height: 460px; }
.wa-mais { align-self: center; font-size: 12px; padding: 4px 12px; background: rgba(255, 255, 255, .85); }
.wa-msg.com-midia { padding: 4px 4px 3px; }
.wa-msg.com-midia .wa-texto, .wa-msg.com-midia .wa-autor, .wa-msg.com-midia .wa-meta { padding: 0 5px; }
.wa-audio { display: block; width: 280px; max-width: 100%; height: 40px; margin: 2px 0; }
.wa-video { display: block; width: 300px; max-width: 100%; max-height: 320px; border-radius: 6px; background: #000; }
.wa-img-btn { display: block; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.wa-img { display: block; max-width: 280px; max-height: 280px; width: auto; height: auto; border-radius: 6px; }
.wa-img-btn.figurinha .wa-img { max-width: 140px; max-height: 140px; }
.wa-doc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: rgba(0, 0, 0, .05); color: #111b21; text-decoration: none; max-width: 280px; }
.wa-doc:hover { background: rgba(0, 0, 0, .09); }
.wa-doc .ic { width: 18px; height: 18px; flex: none; color: #54656f; }
.wa-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wa-doc small { color: #667781; margin-left: auto; flex: none; }
.wa-midia-falta { font-size: 13px; font-style: italic; color: #54656f; padding: 6px 5px; }
.wa-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 10, 12, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; cursor: zoom-out; }
.wa-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 4px; cursor: default; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.wa-lightbox-barra { display: flex; gap: 8px; cursor: default; }
.wa-lightbox-barra .btn { text-decoration: none; background: #fff; color: #172b4d; font-weight: 600; padding: 8px 16px; }
.wa-lightbox-barra .btn:hover { background: #e9ecef; }

/* ---------- Briefing do cliente (criar projeto) e Ficha do Cliente */
.modal.briefing { max-width: 1040px; padding: 20px 24px 24px; }
.bf-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-right: 32px; margin-bottom: 12px; }
.bf-cab h2 { margin: 0; }
.bf-passos { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12px; font-weight: 600; }
.bf-passos li { padding: 3px 10px; border-radius: 12px; background: #dfe1e6; color: #42526e; }
.bf-passos li.atual { background: var(--primaria); color: #fff; }
.bf-bloco { background: #fff; border: 1px solid #dfe1e6; border-radius: 6px; padding: 14px 16px 4px; margin-bottom: 14px; }
.bf-bloco h3 { margin: 0 0 6px; font-size: 14px; }
.bf-suave { color: #5e6c84; font-size: 13px; margin: 0 0 10px; }
.bf-aviso { background: #fff7d6; border: 1px solid #f5d76e; color: #5c4400; border-radius: 4px; padding: 8px 12px; margin: 0 0 12px; font-size: 13px; }
.bf-audio { flex-wrap: wrap; margin-bottom: 8px; }
.bf-gravar.gravando { background: #cf513d; color: #fff; }
.bf-relogio { font-variant-numeric: tabular-nums; font-weight: 700; color: #cf513d; min-width: 36px; }
.bf-estado { font-size: 13px; color: #172b4d; min-height: 18px; margin: 4px 0 10px; }
.bf-estado.erro { color: #ae2a19; font-weight: 600; }
.bf-rodape { flex-wrap: wrap; margin-top: 6px; }
.bf-rodape .espaco { flex: 1; }
.bf-colunas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bf-quadro { border: 1px solid #dfe1e6; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #f8f9fb; }
.bf-quadro-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bf-quadro-cab input { flex: 1; font-weight: 700; font-size: 15px; border: 2px solid transparent; background: transparent; border-radius: 4px; padding: 4px 6px; min-width: 0; }
.bf-quadro-cab input:hover, .bf-quadro-cab input:focus { border-color: #dfe1e6; background: #fff; outline: none; }
.bf-rot { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5e6c84; margin: 6px 0 4px; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #c1c7d0; border-radius: 4px; padding: 2px 4px 2px 6px; font-size: 13px; }
.bf-chip input { border: 0; background: transparent; padding: 2px 0; outline: none; min-width: 0; }
.bf-chip button { border: 0; background: transparent; width: 20px; height: 20px; padding: 3px; display: inline-flex; color: inherit; opacity: .7; }
.bf-chip button:hover { opacity: 1; }
.bf-chip.etq { border-color: transparent; color: #fff; font-weight: 600; text-shadow: 0 0 2px rgba(0, 0, 0, .3); }
.bf-chip.etq select { border: 0; background: rgba(255, 255, 255, .25); color: inherit; border-radius: 3px; font-size: 11px; padding: 1px 2px; max-width: 74px; }
.bf-chip.etq select option { color: #172b4d; }
.bf-chip.novo { border-style: dashed; color: #42526e; cursor: pointer; padding: 3px 8px; background: transparent; }
.bf-nota { margin: 8px 0 0; font-size: 12px; }
.bf-mais-quadro { margin-bottom: 10px; }
.bf-bola { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.bf-original summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.bf-original pre { white-space: pre-wrap; font: inherit; font-size: 13px; background: #f4f5f7; padding: 8px; border-radius: 4px; max-height: 240px; overflow: auto; }
@media (max-width: 760px) {
  .modal.briefing { padding: 16px; }
  .bf-colunas { grid-template-columns: 1fr; }
}
.modal.briefing .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- fundo personalizado (imagem do projeto; o véu escuro vem junto no background-image, ver VEU_FUNDO no app.js) */
.fundo-imagem { background-color: #0d0d0f; background-size: cover; background-position: center; background-repeat: no-repeat; }
body.fundo-imagem { background-attachment: fixed; }
.projeto.fundo-imagem::after { display: none; }   /* o véu do card já escurece embaixo */
.projeto.fundo-imagem .projeto-nome { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.fundo-img-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fundo-img-mini { width: 56px; height: 32px; border-radius: var(--raio); flex: none; background-color: #0d0d0f; background-size: cover; background-position: center; }
.dica-fundo { display: block; margin-top: 6px; color: var(--texto-suave, #5e6c84); font-size: 12px; }

/* ---------- marca do cliente (white label): logo + nome no lugar de "ELO LAB" para cliente/atendente */
.logo-cliente { text-transform: none; letter-spacing: .01em; gap: 10px; padding: 0 10px 0 4px; height: 40px; min-width: 0; max-width: 46vw; }
.logo-cliente-img { height: 34px; width: auto; max-width: 120px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.logo-cliente-nome { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 17px; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* sem logo: só o nome, em versalete com um filete embaixo */
.logo-cliente.so-nome .logo-cliente-nome { font-variant: small-caps; font-size: 19px; letter-spacing: .08em; padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .45); line-height: 1.15; }
.trilha .trilha-projeto { display: inline-flex; align-items: center; gap: 6px; }
.trilha .trilha-logo { height: 22px; width: auto; max-width: 60px; padding: 0; object-fit: contain; flex: none; }
.logo-mini { width: 36px; height: 36px; object-fit: contain; border-radius: var(--raio); background: #f4f5f7; border: 1px solid #dfe1e6; flex: none; }
@media (max-width: 760px) { .logo-cliente { max-width: 52vw; } .logo-cliente-nome { font-size: 15px; } }

/* =====================================================================================================
   TEMA ELO LAB (body.tema-elo): login, lista de projetos, telas gerais e quadros com o fundo "elolab".
   Quadros com visual próprio do cliente não recebem esta classe e continuam como estavam.
   ===================================================================================================== */
body.tema-elo { background-color: var(--elo-creme);
  background-image: url("/marca/ondas-base-esq.svg");
  background-repeat: no-repeat; background-position: left -30px bottom -20px;
  background-size: 300px auto; background-attachment: fixed; }
body.tema-elo.tela-entrada { background-image: url("/marca/ondas-esq.svg"), url("/marca/ondas-canto.svg"), url("/marca/ondas-dir.svg");
  background-position: left -30px top -20px, right -20px top -10px, right -30px bottom -20px;
  background-size: min(420px, 46vw) auto, min(300px, 30vw) auto, min(460px, 50vw) auto; }

/* logo ELO LAB no cabeçalho (versão para fundo escuro) */
.logo-elo { padding: 0 10px; height: 36px; }
.logo-elo-img { height: 20px; width: auto; display: block; }
.logo-elo-icone { display: none; width: 28px; height: 28px; border-radius: 7px; }

/* cabeçalho: barra marinho, como o menu lateral da arte */
.tema-elo .cabecalho { background: var(--elo-marinho-900); height: 52px; padding: 0 12px; gap: 8px; box-shadow: 0 2px 10px rgba(20, 20, 20, .18); }
.tema-elo .cabecalho .logo:hover, .tema-elo .trilha a:hover, .tema-elo .usuario-cab:hover { background: var(--elo-marinho-700); }
.tema-elo .btn-cab { background: rgba(255, 255, 255, .1); border-radius: var(--elo-raio-m); }
.tema-elo .btn-cab:hover { background: var(--elo-marinho-700); }
.tema-elo .btn-cab.whatsapp { background: var(--whatsapp); color: #06210f; }
.tema-elo .btn-cab.facebook { background: #1464cc; color: #fff; }   /* azul do Facebook um tom abaixo: branco 5,6:1 */
.tema-elo .trilha .sep { color: #9fb3c3; opacity: 1; }

/* lista de projetos e telas gerais */
.tema-elo .titulo-secao { color: var(--elo-marinho); font-size: 22px; font-weight: 700; }
.tema-elo .titulo-secao::after { content: ""; flex: none; width: 36px; height: 3px; border-radius: 3px; background: var(--elo-laranja); margin-left: 4px; }
.tema-elo .vazio { color: var(--elo-texto-suave); }
.tema-elo .projeto, .tema-elo .projeto-cartao { border-radius: var(--elo-raio); box-shadow: var(--elo-sombra); }
.tema-elo .projeto-cartao .projeto { border-radius: 0; box-shadow: none; }
.tema-elo .projeto:hover, .tema-elo .projeto-cartao:hover { box-shadow: var(--elo-sombra-forte); }
.tema-elo .projeto.novo { background: var(--elo-superficie); color: var(--elo-marinho); border: 2px dashed #c9d3df; box-shadow: none; }
.tema-elo .projeto.novo:hover { background: #fff; border-color: var(--elo-laranja); }
.tema-elo .projeto.novo svg { color: var(--elo-laranja-texto); }
.tema-elo .projeto-status { color: var(--elo-texto); }
.tema-elo .st-sub { color: var(--elo-texto-suave); }
.tema-elo .cartao-branco h3 { color: var(--elo-marinho); }
.tema-elo .tabela th { color: var(--elo-texto-suave); }

/* quadro com o visual ELO LAB: abas e barra claras, colunas com cabeçalho colorido suave */
.tema-elo .abas { padding: 12px 12px 0; gap: 4px; }
.tema-elo .aba { color: var(--elo-marinho); background: rgba(26, 26, 26, .07); border-radius: 10px 10px 0 0; }
.tema-elo .aba:hover { background: rgba(26, 26, 26, .13); }
.tema-elo .aba.ativa { background: var(--elo-superficie); box-shadow: 0 -1px 4px rgba(26, 26, 26, .06); }
.tema-elo .barra-quadro { background: var(--elo-superficie); color: var(--elo-marinho); border-bottom: 1px solid var(--elo-borda); padding: 10px 14px; }
.tema-elo .barra-quadro h1:hover { background: rgba(26, 26, 26, .07); }
.tema-elo .barra-quadro .btn-cab { background: rgba(26, 26, 26, .07); color: var(--elo-marinho); }
.tema-elo .barra-quadro .btn-cab:hover { background: rgba(26, 26, 26, .14); }
.tema-elo .barra-quadro .avatar { box-shadow: 0 0 0 2px #fff; }
.tema-elo .quadro { padding: 16px 14px 12px; gap: 12px; }
.tema-elo .listas { gap: 12px; }
.tema-elo .lista { background: var(--elo-coluna); border-radius: var(--elo-raio); box-shadow: 0 1px 2px rgba(26, 26, 26, .05); overflow: hidden; }
.tema-elo .lista-cab { --cab: var(--elo-col-azul); --ponto: var(--elo-col-azul-ponto); background: var(--cab); padding: 10px 6px 8px 12px; align-items: center; margin-bottom: 8px; }
.tema-elo .lista:nth-child(4n+2) .lista-cab { --cab: var(--elo-col-laranja); --ponto: var(--elo-col-laranja-ponto); }
.tema-elo .lista:nth-child(4n+3) .lista-cab { --cab: var(--elo-col-verde); --ponto: var(--elo-col-verde-ponto); }
.tema-elo .lista:nth-child(4n+4) .lista-cab { --cab: var(--elo-col-roxo); --ponto: var(--elo-col-roxo-ponto); }
.tema-elo .lista-nome { color: var(--elo-marinho); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0; }
.tema-elo .lista-nome::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ponto); flex: none; }
.tema-elo .lista-qtd { color: var(--elo-marinho); font-weight: 600; padding: 0 2px; }
.tema-elo .lista-cab .btn-icone { color: var(--elo-marinho); }
.tema-elo .cartoes { padding: 2px 10px; }
.tema-elo .cartao { border-radius: 10px; box-shadow: var(--elo-sombra); padding: 9px 11px 7px; margin-bottom: 10px; border: 1px solid rgba(26, 26, 26, .04); }
.tema-elo .cartao:hover { background: #fff; box-shadow: 0 2px 4px rgba(26, 26, 26, .08), 0 8px 20px rgba(26, 26, 26, .12); }
.tema-elo .cartao-nome { color: var(--elo-texto); font-size: 14px; }
.tema-elo .add-cartao { margin: 2px 10px 10px; justify-content: center; background: rgba(255, 255, 255, .7); color: var(--elo-texto-suave); border-radius: var(--elo-raio-m); font-weight: 500; }
.tema-elo .add-cartao:hover { background: #fff; color: var(--elo-marinho); }
.tema-elo .add-lista { background: rgba(26, 26, 26, .07); color: var(--elo-marinho); border-radius: var(--elo-raio); }
.tema-elo .add-lista:hover { background: rgba(26, 26, 26, .13); }
.tema-elo .form-lista { background: var(--elo-coluna); border-radius: var(--elo-raio); }
.tema-elo .fantasma.cartao { background: #d6deea; }

@media (max-width: 760px) {
  .logo-elo-img { display: none; }
  .logo-elo-icone { display: block; }
  .logo-elo { padding: 0 4px; }
  body.tema-elo { background-size: 170px auto; }
}

/* ---------- filtro por etiqueta (botão de funil no canto direito da barra do quadro) */
.filtro-etq { position: relative; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; border-radius: var(--raio);
  background: rgba(255, 255, 255, .2); color: inherit; cursor: pointer; max-width: min(340px, 60vw); font-size: 13px; font-weight: 600; }
.filtro-etq:hover { background: rgba(255, 255, 255, .32); }
.filtro-etq:focus-within { outline: 2px solid var(--foco); outline-offset: 2px; }
.filtro-etq-ic, .filtro-etq-seta { display: inline-flex; flex: none; }
.filtro-etq-ic svg { width: 15px; height: 15px; }
.filtro-etq-seta svg { width: 14px; height: 14px; opacity: .7; }
.filtro-etq-cor { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.filtro-etq-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.filtro-etq-qtd { white-space: nowrap; flex: none; }
.filtro-etq select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; font-size: 16px; }
.filtro-etq select option { color: #172b4d; background: #fff; }
.aviso-filtro { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 14px; font-size: 13px; color: #fff;
  background: rgba(0, 0, 0, .22); }
.aviso-filtro-ic { display: inline-flex; opacity: .85; }
.aviso-filtro-ic svg { width: 14px; height: 14px; }
.aviso-filtro .etiqueta { min-width: 0; }
.aviso-filtro-qtd { font-weight: 600; }
.aviso-filtro-limpar { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--raio);
  background: rgba(255, 255, 255, .22); color: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.aviso-filtro-limpar:hover { background: rgba(255, 255, 255, .34); }
.aviso-filtro-limpar svg { width: 13px; height: 13px; }
.lista-vazia-filtro { font-size: 12.5px; color: var(--texto-suave); text-align: center; padding: 10px 6px 12px; }
.tema-elo .filtro-etq { background: rgba(26, 26, 26, .07); color: var(--elo-marinho); border-radius: var(--elo-raio-m); }
.tema-elo .filtro-etq:hover { background: rgba(26, 26, 26, .14); }
.tema-elo .filtro-etq.ativo { background: var(--elo-creme); box-shadow: inset 0 0 0 1.5px rgba(245, 94, 7, .45); }
.tema-elo .filtro-etq.ativo .filtro-etq-ic { color: var(--elo-laranja-texto); }
.tema-elo .filtro-etq-cor { box-shadow: 0 0 0 2px #fff; }
.tema-elo .aviso-filtro { background: var(--elo-creme); color: var(--elo-marinho); border-bottom: 1px solid var(--elo-borda); }
.tema-elo .aviso-filtro-ic { color: var(--elo-laranja-texto); opacity: 1; }
.tema-elo .aviso-filtro-limpar { background: #fff; color: var(--elo-marinho); box-shadow: 0 0 0 1px var(--elo-borda); }
.tema-elo .aviso-filtro-limpar:hover { background: var(--elo-marinho); color: #fff; box-shadow: none; }
@media (max-width: 760px) {
  .filtro-etq { padding: 0 6px 0 8px; max-width: 46vw; }
  .aviso-filtro { padding: 6px 12px; }
}

/* ---------- conversa do lead: abas Conversa | Resumo da conversa */
.wa-abas { display: none; gap: 4px; background: var(--botao-cinza); padding: 3px; border-radius: 8px; margin: 0 0 8px; }
.wa-aba { flex: 1; border: 0; background: transparent; padding: 8px 10px; min-height: 40px; border-radius: 6px; font-weight: 600; color: var(--texto-suave); cursor: pointer; }
.wa-aba.ativa { background: #fff; color: var(--texto); box-shadow: 0 1px 2px rgba(26, 26, 26, .15); }
.wa-aba:focus-visible { outline: 2px solid var(--foco); outline-offset: 1px; }
.wa-msg.wa-destaque { outline: 2px solid #f59e0b; outline-offset: 2px; }

/* ---------- resumo: topo (10 segundos) + linha do tempo por dia */
.rs { display: flex; flex-direction: column; gap: 10px; }
.rs-vazio { color: var(--texto-suave); text-align: center; margin: 12px 0; }
.rs-topo { position: sticky; top: 0; z-index: 2; background: #fff; border: 1px solid #dfe3e8; border-radius: 10px; padding: 12px; display: flex;
  flex-direction: column; gap: 8px; box-shadow: 0 2px 8px rgba(26, 26, 26, .06); }
.rs-linha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e8edf2; color: #262626; }
.rs-chip.st-novo { background: #e0f2fe; color: #075985; }
.rs-chip.st-em_conversa { background: #e0e7ff; color: #3730a3; }
.rs-chip.st-negociando { background: #ffedd5; color: #9a3412; }
.rs-chip.st-aguardando_lead { background: #fef3c7; color: #854d0e; }
.rs-chip.st-fechado { background: #dcfce7; color: #166534; }
.rs-chip.st-perdido { background: #e5e7eb; color: #374151; }
.rs-chip.st-sumiu { background: #fee2e2; color: #991b1b; }
.rs-status-txt { font-size: 13px; color: var(--texto); }
.rs-espera { font-size: 15px; font-weight: 700; padding: 8px 10px; border-radius: 8px; }
.rs-espera.nos { background: #fee2e2; color: #991b1b; }
.rs-espera.lead { background: #f1f5f9; color: #334155; font-weight: 600; }
.rs-leitura { font-size: 13px; padding-left: 2px; }
.rs-leitura.ok { color: #1d4ed8; }
.rs-leitura.atencao { color: #92400e; }
.rs-leitura.alerta { color: #b42318; font-weight: 600; }
.rs-leitura.neutro { color: var(--texto-suave); }
.rs-proximo { background: #fff7ed; border-left: 4px solid #ea580c; border-radius: 6px; padding: 8px 10px; color: #431407; }
.rs-rot { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9a3412; margin-bottom: 2px; }
.rs-aviso { font-size: 13px; background: #f1f5f9; color: #334155; border-radius: 6px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-aviso.suave { background: transparent; padding: 0 2px; color: var(--texto-suave); }
.rs-btn { padding: 4px 12px; min-height: 32px; }
.rs-giro { width: 12px; height: 12px; border: 2px solid #cbd5e1; border-top-color: #ea580c; border-radius: 50%; animation: rs-giro 1s linear infinite; }
@keyframes rs-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rs-giro { animation: none; } }
.rs-dias { display: flex; flex-direction: column; gap: 8px; border-left: 2px solid #dfe3e8; margin-left: 6px; padding-left: 12px; }
.rs-gap { font-size: 12px; color: var(--texto-suave); font-style: italic; padding: 2px 0; }
.rs-dia { background: #fff; border: 1px solid #e3e7ec; border-radius: 8px; position: relative; }
.rs-dia::before { content: ""; position: absolute; left: -19px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #ea580c; border: 2px solid #fff; }
.rs-dia summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 12px; min-height: 44px; }
.rs-dia summary::-webkit-details-marker { display: none; }
.rs-dia summary:focus-visible { outline: 2px solid var(--foco); outline-offset: -2px; border-radius: 8px; }
.rs-data { font-weight: 700; text-transform: capitalize; }
.rs-n { font-size: 11px; font-weight: 600; color: var(--texto-suave); background: #f1f5f9; border-radius: 4px; padding: 1px 6px; }
.rs-titulo { flex-basis: 100%; color: var(--texto); }
.rs-itens { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.rs-item { display: flex; gap: 8px; align-items: baseline; line-height: 1.35; }
.rs-tipo { flex: none; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: #f1f5f9; color: #334155; min-width: 72px; text-align: center; }
.rs-ic { display: inline-flex; color: #b24b12; }
.rs-corpo { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.rs-falas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-fala { border-radius: 8px; padding: 8px 10px; }
.rs-fala.cliente { background: #f8fafc; border: 1px solid #e2e8f0; }
.rs-fala.atendente { background: #effaf1; border: 1px solid #ccebd3; }
.rs-quem { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rs-fala.cliente .rs-quem { color: #334155; }
.rs-fala.atendente .rs-quem { color: #166534; }
.rs-fala ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.rs-nada { margin: 0; font-size: 12px; color: var(--texto-suave); font-style: italic; }
.rs-marca { display: flex; gap: 8px; align-items: baseline; line-height: 1.35; }
.rs-marca.acertado .rs-tipo { background: #dcfce7; color: #166534; }
.rs-marca.pendente .rs-tipo { background: #fef3c7; color: #854d0e; }
.rs-sem { margin: 0; padding: 0 12px; color: var(--texto-suave); font-size: 13px; }
.rs-fatos { font-size: 12px; color: var(--texto-suave); padding: 8px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.rs-link { border: 0; background: none; color: #1d4ed8; text-decoration: underline; padding: 8px 12px 10px; font-size: 13px; cursor: pointer; min-height: 36px; text-align: left; }
.rs-rodape { font-size: 12px; color: var(--texto-suave); display: flex; flex-direction: column; gap: 2px; }
.rs-rodape .rs-link { padding: 4px 0; }
@media (max-width: 760px) {
  .wa-abas { display: flex; }
  .oculta-celular { display: none; }
  .rs-falas { grid-template-columns: 1fr; }
  .rs-topo { top: 0; }
  .rs-espera { font-size: 14px; }
  .rs-tipo { min-width: 64px; }
}
.rs-falha { color: #b42318; font-weight: 600; }

/* ---------- agenda / follow-up (modal do cartão e popover) */
.agenda-chip { flex-wrap: wrap; }
.agenda-chip .agenda-quando { font-weight: 600; }
.agenda-chip.feito .agenda-quando { text-decoration: line-through; color: var(--texto-suave); }
.agenda-status { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--botao-cinza); }
.agenda-status.atrasado { background: #c9372c; color: #fff; }
.agenda-status.hoje { background: #1f7a4d; color: #fff; }
.agenda-status.proximo { background: #f5cd00; color: #2b2300; }
.agenda-status.feito { background: #e4e8ee; color: #52606d; }
.agenda-nota { margin-top: 6px; font-size: 13.5px; color: var(--texto); background: var(--botao-cinza); border-left: 3px solid #c3ccd8; padding: 6px 10px;
  border-radius: 0 var(--raio) var(--raio) 0; max-width: 360px; word-break: break-word; }
.agenda-nota.atrasado { border-left-color: #c9372c; }
.agenda-nota.hoje { border-left-color: #1f7a4d; }
.agenda-nota.proximo { border-left-color: #e2b80b; }
.agenda-nota.feito { text-decoration: line-through; color: var(--texto-suave); }
.agenda-atalhos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.agenda-atalho { border: 0; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; background: var(--botao-cinza); cursor: pointer; }
.agenda-atalho:hover { background: var(--botao-cinza-hover); }
.agenda-campos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.agenda-fuso { margin: -2px 0 10px; font-size: 12px; color: var(--texto-suave); }
.tema-elo .agenda-atalho:hover { background: var(--elo-creme); color: var(--elo-laranja-texto); }

/* ---------- coluna em destaque (dourado): opção "Destacar (dourado)" no menu "..." da coluna.
   Cabeçalho dourado com texto marrom-escuro (#2a1a00 sobre #e9ad2f..#f6d27a: >= 7:1), borda dourada e brilho.
   Funciona no tema claro (ELO LAB, creme) e nos fundos escuros/imagem; o brilho é mais forte no fundo escuro. */
:root {
  --ouro-claro: #f6d27a; --ouro: #e9ad2f; --ouro-borda: #d99a1e; --ouro-borda-claro: #b97f0c; --ouro-texto: #2a1a00;
  --ouro-brilho: rgba(245, 176, 35, .55);
}
.lista.destaque { box-shadow: 0 0 0 2px var(--ouro-borda), 0 0 18px 2px var(--ouro-brilho), 0 0 30px 3px rgba(245, 176, 35, .22); }
.lista.destaque .lista-cab { background: linear-gradient(135deg, var(--ouro-claro) 0%, var(--ouro) 100%); border-radius: var(--raio) var(--raio) 0 0;
  padding: 9px 6px 8px 10px; margin-bottom: 6px; align-items: center; }
.lista.destaque .lista-nome, .lista.destaque .lista-qtd, .lista.destaque .lista-cab .btn-icone { color: var(--ouro-texto); }
.lista.destaque .lista-qtd { font-weight: 700; padding-top: 0; }
.lista.destaque .lista-cab .btn-icone:hover { background: rgba(42, 26, 0, .12); }
.lista-destaque-ic { display: inline-flex; flex: none; width: 22px; height: 22px; color: var(--ouro-texto); margin-right: 2px; }
.lista-destaque-ic svg { width: 22px; height: 22px; stroke-width: 2.2; }
.lista.destaque.fantasma { box-shadow: none; }
/* tema claro (ELO LAB): borda um tom mais escuro para aparecer no creme, brilho mais discreto; sem o pontinho colorido */
.tema-elo .lista.destaque { box-shadow: 0 0 0 2px var(--ouro-borda-claro), 0 0 16px 1px rgba(233, 173, 47, .45); }
.tema-elo .lista.destaque .lista-cab { --cab: transparent; background: linear-gradient(135deg, var(--ouro-claro) 0%, var(--ouro) 100%);
  border-radius: var(--elo-raio) var(--elo-raio) 0 0; padding: 10px 6px 8px 12px; margin-bottom: 8px; }
.tema-elo .lista.destaque .lista-nome { color: var(--ouro-texto); font-weight: 700; }
.tema-elo .lista.destaque .lista-nome::before { display: none; }
.tema-elo .lista.destaque .lista-qtd, .tema-elo .lista.destaque .lista-cab .btn-icone { color: var(--ouro-texto); }
/* menu "...": amostra dourada ao lado da opção */
.pop .item-destaque { cursor: pointer; }
.pop .item-destaque input { margin: 0; accent-color: var(--ouro-borda-claro); width: 16px; height: 16px; }
.item-destaque-amostra { width: 14px; height: 14px; border-radius: 4px; flex: none; background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  box-shadow: 0 0 0 1.5px var(--ouro-borda-claro), 0 0 6px var(--ouro-brilho); }
@media (prefers-reduced-motion: no-preference) { .lista.destaque { transition: box-shadow .2s; } }

/* ---- Agente de atendimento: "Sugestão da IA" no cartão e tela "Regras do agente" */
.ag-bloco { margin-top: 10px; border: 1px solid #c9d7e6; background: #f6f9fd; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ag-cab { display: flex; align-items: center; gap: 6px; color: #262626; }
.ag-cab .espaco { flex: 1; }
.ag-ic { display: inline-flex; width: 18px; color: #262626; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e3e9f0; color: #262626; }
.ag-chip.verde { background: #d3f1e2; color: #135c3b; }
.ag-chip.quente { background: #fde2dd; color: #8f1d12; }
.ag-chip.amarelo { background: #fff1b8; color: #5a4300; }
.ag-fonte, .ag-suave, .ag-rodape, .ag-motivo-txt { color: #52606d; font-size: 12px; margin: 0; }
.ag-mini { height: 28px; padding: 0 10px; font-size: 13px; }
.ag-abas { display: flex; gap: 4px; flex-wrap: wrap; }
.ag-aba { border: 1px solid #c1c7d0; background: #fff; color: #243542; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ag-aba.ativa { background: #262626; border-color: #262626; color: #fff; }
.ag-rotulo { font-size: 12px; font-weight: 700; color: #262626; }
.ag-texto { white-space: pre-wrap; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.ag-edit { width: 100%; box-sizing: border-box; resize: vertical; padding: 8px 10px; border: 1px solid #c1c7d0; border-radius: 8px; font: inherit; }
mark.ag-campo { background: #ffe066; color: #2b2300; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.ag-faltam { margin: 0; font-size: 12px; font-weight: 600; color: #6b4e00; }
.ag-bloqueio { margin: 0; font-size: 13px; font-weight: 600; color: #a1271b; }
.ag-humano, .ag-aviso { margin: 0; font-size: 13px; background: #fff7d6; color: #5a4300; border-radius: 6px; padding: 6px 8px; }
.ag-botoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-botoes .btn:disabled { opacity: .5; cursor: not-allowed; }
.ag-ignorar { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.ag-motivo { height: 32px; border: 1px solid #c1c7d0; border-radius: 6px; font: inherit; font-size: 13px; }
.ag-proxima { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.modal.agente-regras { max-width: 900px; }
.agente-regras .ag-abas { margin: 4px 0 12px; }
.ag-grupo summary { cursor: pointer; padding-bottom: 8px; }
.ag-regra { border-top: 1px solid #eef1f5; padding: 8px 0; }
.ag-regra.inativa { opacity: .55; }
.ag-regra-cab { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-regra-cab .espaco { flex: 1; }
.ag-regra-texto { white-space: pre-wrap; font-size: 13px; margin-top: 4px; }
.ag-tipo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 1px 7px; border-radius: 4px; background: #e3e9f0; color: #262626; }
.ag-tipo.t-nao_pode { background: #fde2dd; color: #8f1d12; }
.ag-tipo.t-pode { background: #d3f1e2; color: #135c3b; }
.ag-tipo.t-script { background: #e7e2fb; color: #3f2a8c; }
.ag-form { border: 1px dashed #c1c7d0; border-radius: 8px; padding: 10px; margin: 8px 0; background: #fbfcfe; }
.ag-form textarea, .ag-form input, .ag-form select, .agente-regras .campo input, .agente-regras .campo select, .agente-regras .campo textarea { width: 100%; box-sizing: border-box; }
.ag-form-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.ag-form-linha > * { flex: 1; min-width: 200px; }
.ag-check { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 0; }
.ag-hist { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .ag-ignorar { margin-left: 0; } }

/* cadeado discreto na barra do quadro: listas travadas pelo administrador */
.selo-travado { display: inline-flex; align-items: center; width: 18px; height: 18px; opacity: .7; }
.selo-travado svg { width: 16px; height: 16px; }
.ag-sim-saida { white-space: pre-wrap; background: #f5f7fa; border-radius: 6px; padding: 8px; font-size: 12px; max-height: 320px; overflow: auto; margin: 8px 0 0; }
.ag-sim-saida:empty { display: none; }

/* ===================================================================== ATENDIMENTO (fase 1, 02/12/2026)
   Página /atendimento/:boardId, fiel ao protótipo aprovado (preto e dourado, estilo WhatsApp). Tudo com prefixo at- para não
   esbarrar nas classes do quadro (.chip, .btn, .msg...). */
body.at-modo { overflow: hidden; background: #0b0b0d; }
.at-tela {
  --at-fundo: #0b0b0d; --at-painel: #141518; --at-painel-2: #1b1c20; --at-painel-3: #232429; --at-linha: #2c2d33;
  --at-texto: #ededee; --at-suave: #a9abb3; --at-fraco: #7d808a;
  --at-ouro-claro: #f6d27a; --at-ouro: #e9ad2f; --at-ouro-borda: #d99a1e; --at-ouro-texto: #2a1a00; --at-ouro-brilho: rgba(245, 176, 35, .45);
  --at-lista-cab: #dfe3e6; --at-lista-titulo: #262626;
  --at-bolha-in: #24262b; --at-bolha-out: #3d3014; --at-bolha-out-txt: #fff4da;
  --at-azul-lido: #53bdeb; --at-vermelho: #e2524a; --at-amarelo-campo: #ffe28a;
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--at-texto); background: var(--at-fundo);
  position: fixed; inset: 0; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
.at-tela button, .at-tela input, .at-tela textarea, .at-tela select, .at-veu button, .at-veu input, .at-veu textarea { font: inherit; color: inherit; }
.at-tela button, .at-veu button { cursor: pointer; }
.at-tela :focus-visible, .at-veu :focus-visible { outline: 2px solid var(--at-ouro); outline-offset: 2px; }
.at-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.at-ic svg { width: 100%; height: 100%; }
.at-corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* topo */
.at-topo { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #000; border-bottom: 1px solid #1d1d20; position: relative; z-index: 5; }
.at-marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.at-marca img { width: 34px; height: 34px; flex: none; object-fit: contain; }
.at-marca b { font-weight: 700; font-size: 15px; white-space: nowrap; }
.at-marca small { display: block; color: var(--at-suave); font-size: 11.5px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.at-abas { display: flex; gap: 2px; margin-left: 10px; }
.at-aba { border: 0; background: transparent; color: var(--at-suave); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; text-decoration: none; }
.at-aba:hover { background: #1a1b1f; color: var(--at-texto); }
.at-aba.ativa { background: #1f2024; color: var(--at-texto); box-shadow: inset 0 -2px 0 var(--at-ouro); }
.at-topo-dir { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.at-wa-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--at-suave); white-space: nowrap; }
.at-wa-status i { width: 8px; height: 8px; border-radius: 50%; background: #6b6e76; }
.at-wa-status i.on { background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.at-wa-status i.meio { background: var(--at-ouro); box-shadow: 0 0 0 3px rgba(233, 173, 47, .18); }
.at-wa-status i.off { background: var(--at-vermelho); box-shadow: 0 0 0 3px rgba(226, 82, 74, .18); }
.at-usuario { border: 0; background: transparent; padding: 0; border-radius: 50%; display: flex; }
.at-av { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }
.at-av-marca { width: 34px; height: 34px; }

/* grade principal */
.at-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 350px minmax(0, 1fr) 330px; }
.at-col { min-height: 0; display: flex; flex-direction: column; }
.at-lista { background: var(--at-painel); border-right: 1px solid var(--at-linha); }
.at-info { background: var(--at-painel); border-left: 1px solid var(--at-linha); overflow-y: auto; }

/* lista de conversas */
.at-lc-cab { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--at-linha); }
.at-lc-tit { display: flex; align-items: center; justify-content: space-between; }
.at-lc-tit h1 { margin: 0; font-size: 17px; font-weight: 700; color: var(--at-texto); }
.at-lc-tit span { font-size: 12px; color: var(--at-suave); }
.at-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.at-kpi { background: var(--at-painel-2); border: 1px solid var(--at-linha); border-radius: 8px; padding: 6px 8px; }
.at-kpi b { display: block; font-size: 16px; line-height: 1.2; }
.at-kpi small { font-size: 10.5px; color: var(--at-suave); line-height: 1.2; display: block; }
.at-kpi.alerta b { color: #ff8a80; }
.at-busca { display: flex; align-items: center; gap: 8px; background: var(--at-painel-2); border: 1px solid var(--at-linha); border-radius: 9px; padding: 0 10px; color: var(--at-fraco); }
.at-busca input { flex: 1; background: transparent; border: 0; outline: 0; padding: 9px 0; min-width: 0; color: var(--at-texto); }
.at-busca input::placeholder { color: var(--at-fraco); }
.at-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.at-chips::-webkit-scrollbar { display: none; }
.at-chip { flex: none; border: 1px solid #33343a; background: transparent; color: var(--at-suave); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.at-chip:hover { color: var(--at-texto); border-color: #4a4b52; }
.at-chip.ativo { background: #2a2b31; color: var(--at-texto); border-color: #55565e; }
.at-chip.ouro.ativo { background: linear-gradient(135deg, var(--at-ouro-claro), var(--at-ouro)); color: var(--at-ouro-texto); border-color: var(--at-ouro-borda); }
.at-chip .n { font-size: 11px; opacity: .8; }
.at-ponto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.at-linha-filtros { display: flex; gap: 6px; align-items: center; }
.at-linha-filtros select { flex: 1; min-width: 0; background: var(--at-painel-2); border: 1px solid var(--at-linha); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--at-texto); }
.at-lc-itens { flex: 1; overflow-y: auto; }
.at-conv { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #1f2024; cursor: pointer; position: relative; }
.at-conv:hover { background: #1a1b1f; }
.at-conv.ativa { background: #22232a; }
.at-conv.ativa::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--at-ouro); }
/* aguardando resposta (a cliente escreveu e a equipe não respondeu): dourado sutil até alguém RESPONDER, não ao abrir */
.at-conv.aguardando { background: linear-gradient(90deg, rgba(233, 173, 47, .16), rgba(233, 173, 47, .05) 55%, rgba(233, 173, 47, .02)); box-shadow: inset 3px 0 0 var(--at-ouro), inset 0 -1px 0 rgba(233, 173, 47, .22); }
.at-conv.aguardando:hover { background: linear-gradient(90deg, rgba(233, 173, 47, .22), rgba(233, 173, 47, .08) 55%, rgba(233, 173, 47, .04)); }
.at-conv.aguardando.ativa { background: linear-gradient(90deg, rgba(233, 173, 47, .24), #22232a 70%); }
.at-selo-ag { flex: none; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 10.5px; line-height: 1; padding: 3px 7px; border-radius: 999px;
  color: var(--at-ouro-claro); background: rgba(233, 173, 47, .14); border: 1px solid rgba(233, 173, 47, .55); }
.at-selo-ag b { font-weight: 700; }
.at-conv .at-av { width: 44px; height: 44px; font-size: 14px; }
.at-conv-meio { min-width: 0; }
.at-conv-l1 { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.at-conv-nome { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-conv-fone { font-size: 11px; color: var(--at-fraco); white-space: nowrap; }
.at-conv-prev { color: var(--at-suave); font-size: 12.5px; white-space: nowrap; overflow: hidden; display: flex; gap: 4px; align-items: center; margin-top: 1px; }
.at-conv-etq { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; margin-top: 5px; }
.at-conv-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.at-conv-hora { font-size: 11px; color: var(--at-fraco); white-space: nowrap; }
.at-conv-hora.nova { color: var(--at-ouro); font-weight: 600; }
.at-badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--at-ouro); color: var(--at-ouro-texto); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.at-lc-vazio { padding: 30px 16px; text-align: center; color: var(--at-suave); }
.at-lc-mais { padding: 10px; text-align: center; }
.at-tk { display: inline-flex; color: var(--at-fraco); flex: none; }
.at-msg.out .at-tk { color: rgba(255, 244, 218, .6); }
.at-tk svg { width: 16px; height: 11px; }
.at-tk.lida, .at-msg.out .at-tk.lida { color: var(--at-azul-lido); }
.at-erro-tk { color: #fff; background: var(--at-vermelho); border-radius: 50%; width: 14px; height: 14px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* etiquetas e coluna */
.at-etq { display: inline-flex; align-items: center; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 17px; padding: 0 7px; white-space: nowrap; border: 0; }
.at-tag-col { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; white-space: nowrap; background: var(--at-lista-cab); color: var(--at-lista-titulo); }
.at-tag-col.mini { font-size: 10.5px; padding: 0 6px; }
.at-tag-col.ouro { background: linear-gradient(135deg, var(--at-ouro-claro), var(--at-ouro)); color: var(--at-ouro-texto); box-shadow: 0 0 10px var(--at-ouro-brilho); }
.at-tag-col.mini.ouro { box-shadow: none; }
.at-tag-col .at-ic { width: 13px; height: 13px; }

/* chat */
.at-chat { position: relative; background: #0e0f11; }
.at-chat::before { content: ""; position: absolute; inset: 0; background: var(--at-marca) center 55% / min(56%, 460px) no-repeat; opacity: .05; pointer-events: none; }
.at-chat-cab { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--at-painel); border-bottom: 1px solid var(--at-linha); position: relative; z-index: 2; min-height: 62px; }
.at-chat-cab .at-av { width: 40px; height: 40px; }
.at-chat-quem { min-width: 0; flex: 1; }
.at-chat-quem b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-sub { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--at-suave); margin-top: 2px; }
.at-btn { border: 1px solid #3a3b42; background: #1f2024; color: var(--at-texto); border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.at-btn:hover { background: #2a2b31; }
.at-btn.ouro { background: linear-gradient(135deg, var(--at-ouro-claro), var(--at-ouro)); color: var(--at-ouro-texto); border-color: var(--at-ouro-borda); }
.at-btn.ouro:hover { filter: brightness(1.06); }
.at-btn.peq { padding: 4px 9px; font-size: 12px; }
.at-btn:disabled { opacity: .45; cursor: not-allowed; }
.at-btn.at-largo { width: 100%; justify-content: center; }
.at-btn-ic { border: 0; background: transparent; color: var(--at-suave); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.at-btn-ic:hover { background: #24252a; color: var(--at-texto); }
.at-btn-ic svg { width: 21px; height: 21px; }
.at-tela .so-movel { display: none !important; }
.at-msgs { flex: 1; overflow-y: auto; padding: 14px 6% 10px; display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.at-dia { align-self: center; background: #1c1d21; color: var(--at-suave); font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 8px; margin: 10px 0 6px; }
.at-mais { align-self: center; margin-bottom: 4px; }
.at-msg { max-width: min(72%, 520px); padding: 7px 10px 5px; border-radius: 10px; position: relative; line-height: 1.42; overflow-wrap: anywhere; }
.at-msg.in { align-self: flex-start; background: var(--at-bolha-in); border-top-left-radius: 3px; }
.at-msg.out { align-self: flex-end; background: var(--at-bolha-out); color: var(--at-bolha-out-txt); border-top-right-radius: 3px; }
.at-msg.erro { outline: 1px solid rgba(226, 82, 74, .6); }
.at-autor { font-size: 11px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; color: var(--at-ouro-claro); }
.at-msg.cel .at-autor { color: #b6e3c6; }
.at-txt { white-space: pre-wrap; }
.at-rodape { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.at-msg.out .at-rodape { color: rgba(255, 244, 218, .6); }
.at-msg-erro { font-size: 11px; color: #ffb3ad; margin-top: 2px; }
.at-msg-foto { display: block; width: 260px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; cursor: zoom-in; margin: 2px 0 4px; background: #333; border: 0; padding: 0; }
.at-msg-foto img { width: 100%; height: 100%; display: block; object-fit: cover; }
.at-msg-foto.figurinha { width: 140px; aspect-ratio: 1; background: transparent; }
.at-msg-foto.figurinha img { object-fit: contain; }
.at-msg-video { display: block; width: 260px; max-width: 100%; border-radius: 7px; margin: 2px 0 4px; background: #000; }
.at-msg-audio { display: flex; align-items: center; gap: 10px; width: 270px; max-width: 100%; padding: 2px 0; }
.at-msg-audio audio { display: none; }
.at-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: inherit; display: flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.at-play svg { width: 18px; height: 18px; }
.at-onda { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.at-onda i { flex: 1; background: rgba(255, 255, 255, .28); border-radius: 2px; min-width: 2px; }
.at-onda i.tocou { background: var(--at-azul-lido); }
.at-msg.out .at-onda i.tocou { background: var(--at-ouro-claro); }
.at-dur { font-size: 11px; opacity: .75; width: 34px; text-align: right; flex: none; }
.at-msg-doc { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .22); border-radius: 7px; padding: 9px 10px; width: 270px; max-width: 100%; margin-bottom: 3px; color: inherit; text-decoration: none; }
.at-ic-doc { width: 34px; height: 40px; border-radius: 4px; background: #e2524a; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; flex: none; }
.at-doc-txt { min-width: 0; }
.at-doc-txt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-doc-txt small { font-size: 11px; opacity: .7; }
.at-baixar { margin-left: auto; opacity: .8; width: 20px; height: 20px; display: inline-flex; flex: none; }
.at-midia-falta { font-size: 12px; font-style: italic; opacity: .75; margin-bottom: 2px; }
.at-chat-vazio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--at-suave); gap: 8px; text-align: center; padding: 20px; position: relative; z-index: 1; }
.at-chat-vazio img { opacity: .8; object-fit: contain; }
.at-chat-vazio b { color: var(--at-texto); font-size: 16px; }
.at-av-g { width: 70px !important; height: 70px !important; font-size: 22px !important; }

/* sugestão da IA */
.at-sug-lugar { position: relative; z-index: 2; }
.at-sug { margin: 0 14px; background: #17181c; border: 1px solid #3a331f; border-radius: 12px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .35); }
.at-sug-cab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--at-ouro-claro); cursor: pointer; user-select: none; }
.at-sug-cab.sem-clique { cursor: default; }
.at-sug-cab .at-meta { color: var(--at-suave); font-weight: 500; font-size: 11.5px; margin-left: auto; text-align: right; }
.at-sug-corpo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 10px; }
.at-sug.fechada .at-sug-corpo, .at-sug.fechada .at-sug-motivo { display: none; }
.at-versao { background: #202126; border: 1px solid #2f3036; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.at-versao h4 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--at-suave); display: flex; justify-content: space-between; gap: 6px; }
.at-vtxt { font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; max-height: 92px; overflow-y: auto; }
.at-campo { background: var(--at-amarelo-campo); color: #3b2a00; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.at-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.at-trava { font-size: 11px; color: #ffd36b; }
.at-sug-motivo { padding: 0 12px 8px; font-size: 11.5px; color: var(--at-suave); }
.at-troca-versao { display: none !important; }

/* envio */
.at-envio { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; background: var(--at-painel); position: relative; z-index: 2; }
.at-envio-aviso { display: flex; gap: 8px; align-items: center; padding: 12px 14px; background: rgba(233, 173, 47, .09); border-top: 1px solid rgba(233, 173, 47, .25); color: var(--at-ouro-claro); font-size: 12.5px; position: relative; z-index: 2; }
.at-caixa { flex: 1; background: var(--at-painel-3); border-radius: 22px; display: flex; align-items: flex-end; padding: 2px 6px 2px 4px; min-width: 0; }
.at-caixa textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 0; max-height: 120px; min-height: 40px; line-height: 1.4; min-width: 0; color: var(--at-texto); }
.at-caixa textarea::placeholder { color: var(--at-fraco); }
.at-bt-emoji { width: 34px; height: 34px; margin: 3px 2px; }
.at-btn-enviar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--at-ouro-claro), var(--at-ouro)); color: var(--at-ouro-texto); display: flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.at-btn-enviar svg { width: 21px; height: 21px; }
.at-btn-enviar:disabled { opacity: .5; cursor: default; }
.at-emojis { position: absolute; bottom: 60px; left: 12px; background: #1f2025; border: 1px solid #34353b; border-radius: 12px; padding: 6px; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 6; }
.at-emojis button { border: 0; background: transparent; font-size: 20px; width: 36px; height: 36px; border-radius: 8px; padding: 0; }
.at-emojis button:hover { background: #2a2b31; }

/* painel do lead */
.at-info-sec { padding: 14px; border-bottom: 1px solid var(--at-linha); position: relative; }
.at-info-sec h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--at-fraco); font-weight: 700; }
.at-suave { color: var(--at-suave); font-size: 13px; }
.at-fechar-info { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; }
.at-fechar-info svg { width: 18px; height: 18px; }
.at-perfil { text-align: center; padding-top: 18px; }
.at-perfil .at-av { margin: 0 auto 8px; display: flex; }
.at-perfil b { font-size: 16px; display: block; }
.at-perfil small { color: var(--at-suave); }
.at-nota { font-size: 11px; color: var(--at-fraco); margin-top: 4px; }
.at-funil-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.at-funil { display: flex; gap: 3px; margin-top: 8px; }
.at-funil i { flex: 1; height: 6px; border-radius: 3px; background: #2a2b31; }
.at-funil i.on { background: var(--at-ouro); }
.at-funil-nomes { display: flex; justify-content: space-between; font-size: 10px; color: var(--at-fraco); margin-top: 4px; }
.at-mover { display: flex; gap: 6px; margin-top: 10px; }
.at-mover select { flex: 1; min-width: 0; background: var(--at-painel-2); border: 1px solid var(--at-linha); border-radius: 8px; padding: 7px 8px; font-size: 12.5px; color: var(--at-texto); }
.at-etqs { display: flex; flex-wrap: wrap; gap: 5px; }
.at-etqs .at-etq { line-height: 20px; }
.at-etqs .at-etq button { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; font-weight: 700; opacity: .7; }
.at-etqs-pop .at-etq { cursor: pointer; }
.at-add-etq { border: 1px dashed #4a4b52; background: transparent; color: var(--at-suave); border-radius: 6px; font-size: 11px; padding: 0 8px; line-height: 19px; }
.at-temp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--at-painel-2); border-radius: 9px; padding: 3px; }
.at-temp button { border: 0; background: transparent; border-radius: 7px; padding: 6px 0; font-size: 12.5px; font-weight: 600; color: var(--at-suave); }
.at-temp button:disabled { cursor: default; }
.at-temp button.on[data-t="Frio"] { background: #1a72b6; color: #fff; }
.at-temp button.on[data-t="Morno"] { background: #f0912e; color: #1d2125; }
.at-temp button.on[data-t="Quente"] { background: #e2524a; color: #1d2125; }
.at-fu { background: var(--at-painel-2); border: 1px solid var(--at-linha); border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: flex-start; }
.at-fu > .at-ic { color: var(--at-ouro); margin-top: 2px; }
.at-fu b { display: block; font-size: 13px; }
.at-fu small { display: block; color: var(--at-suave); font-size: 11.5px; line-height: 1.4; }
.at-fu.vazio { border-style: dashed; color: var(--at-suave); }
.at-fu.feito b { text-decoration: line-through; opacity: .7; }
.at-fu-acoes { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.at-triagem { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12.5px; margin: 0; }
.at-triagem dt { color: var(--at-fraco); } .at-triagem dd { margin: 0; }
.at-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #2c2d33; display: flex; flex-direction: column; gap: 10px; }
.at-hist li { position: relative; font-size: 12.5px; }
.at-hist li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--at-ouro); border: 2px solid var(--at-painel); }
.at-hist small { display: block; color: var(--at-fraco); font-size: 11px; }

/* modal de follow-up */
.at-veu { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px);
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #ededee; }
.at-modal { background: #17181c; border: 1px solid #34353b; border-radius: 16px; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.at-modal-cab { padding: 16px 18px 6px; display: flex; gap: 12px; align-items: flex-start; }
.at-modal-cab h2 { margin: 0; font-size: 17px; color: #ededee; }
.at-modal-cab p { margin: 3px 0 0; color: #a9abb3; font-size: 12.5px; }
.at-modal-ic { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #f6d27a, #e9ad2f); color: #2a1a00; display: flex; align-items: center; justify-content: center; flex: none; }
.at-modal-corpo { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 12px; }
.at-modal-pe { padding: 12px 18px 16px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.at-veu .at-btn { border: 1px solid #3a3b42; background: #1f2024; color: #ededee; border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.at-veu .at-btn.ouro { background: linear-gradient(135deg, #f6d27a, #e9ad2f); color: #2a1a00; border-color: #d99a1e; }
.at-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.at-opcoes button { border: 1px solid #3a3b42; background: #1f2024; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.at-opcoes button.on { background: linear-gradient(135deg, #f6d27a, #e9ad2f); color: #2a1a00; border-color: #d99a1e; }
.at-campo-f label { display: block; font-size: 11.5px; color: #a9abb3; margin-bottom: 4px; font-weight: 600; }
.at-campo-f input, .at-campo-f textarea { width: 100%; background: #1b1c20; border: 1px solid #2c2d33; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 8px; box-sizing: border-box; }
.at-campo-f textarea { resize: vertical; min-height: 60px; margin-top: 0; }
.at-campo-f input { color-scheme: dark; }

/* tablet: painel do lead vira gaveta */
@media (max-width: 1180px) {
  .at-app { grid-template-columns: 320px minmax(0, 1fr); }
  .at-info { position: fixed; top: 52px; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 20; transform: translateX(105%); transition: transform .25s; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); }
  body.at-info-aberta .at-info { transform: none; }
  .at-tela .so-estreito { display: inline-flex !important; }
}
@media (min-width: 1181px) { .at-tela .so-estreito { display: none !important; } }
/* celular: uma coluna (lista ou conversa) */
@media (max-width: 820px) {
  .at-app { grid-template-columns: minmax(0, 1fr); }
  .at-lista, .at-chat { grid-column: 1; grid-row: 1; min-width: 0; }
  body:not(.at-no-chat) .at-lista { display: none; }
  body.at-no-chat .at-chat { display: none; }
  .at-tela .so-movel { display: inline-flex !important; }
  .at-marca small, .at-wa-status span, .at-abas .at-aba span { display: none; }
  .at-abas { margin-left: 0; }
  .at-topo { gap: 8px; padding: 0 8px; }
  .at-msgs { padding: 10px; }
  .at-msg { max-width: 86%; }
  .at-sug { margin: 0 8px; }
  .at-sug-corpo { grid-template-columns: 1fr; }
  .at-sug-corpo .at-versao:nth-child(2) { display: none; }
  .at-sug.ver2 .at-sug-corpo .at-versao:nth-child(1) { display: none; }
  .at-sug.ver2 .at-sug-corpo .at-versao:nth-child(2) { display: flex; }
  .at-troca-versao { display: inline-flex !important; }
  .at-chat-cab { padding: 8px; gap: 6px; }
  .at-fone-cab { display: none; }
  .at-envio { padding: 8px; }
}
@media (max-width: 420px) { .at-marca b { font-size: 13px; } .at-marca img { width: 28px; height: 28px; } .at-wa-status { display: none; } }
@media (prefers-reduced-motion: reduce) { .at-info { transition: none; } }
/* equipe: acesso "só chat" */
.equipe-sochat { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; }
.equipe-check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.equipe-check input { width: auto; margin: 0; }
.btn.etq-sochat { font-size: 11px; padding: 1px 8px; min-height: 0; line-height: 18px; }
.btn.etq-sochat.ligado { background: #fdf3d7; color: #7a5300; border-color: #e9ad2f; }

/* fileiras horizontais roláveis (rolagem-horizontal.js): no computador, barra fina + esmaecido nas bordas quando há mais escondido */
.rolagem-h.tem-esq, .rolagem-h.tem-dir { cursor: grab; }
.rolagem-h.arrastando { cursor: grabbing; user-select: none; scroll-behavior: auto; }
.rolagem-h.arrastando > * { pointer-events: none; }
.rolagem-h.tem-dir { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.rolagem-h.tem-esq { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.rolagem-h.tem-esq.tem-dir { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
@media (hover: hover) and (pointer: fine) {
  .abas.rolagem-h, .at-chips.rolagem-h { scrollbar-width: thin; scrollbar-color: rgba(140, 145, 155, .45) transparent; }
  .at-chips.rolagem-h { padding-bottom: 4px; }
  .abas.rolagem-h::-webkit-scrollbar, .at-chips.rolagem-h::-webkit-scrollbar { display: block; height: 6px; }
  .abas.rolagem-h::-webkit-scrollbar-thumb, .at-chips.rolagem-h::-webkit-scrollbar-thumb { background: rgba(140, 145, 155, .45); border-radius: 3px; }
  .abas.rolagem-h:hover, .at-chips.rolagem-h:hover { scrollbar-color: rgba(140, 145, 155, .75) transparent; }
}

/* convite para instalar o app no celular (instalar-app.js) */
.instalar-app { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center;
  background: #1b1c20; color: #ececef; border: 1px solid #33343a; border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 13px; line-height: 1.35; }
.instalar-app-icone { width: 44px; height: 44px; border-radius: 10px; }
.instalar-app-txt b:first-child { display: block; font-size: 14px; margin-bottom: 2px; }
.instalar-app-txt span { color: #b9bac0; }
.instalar-app-txt span b { color: #ececef; font-weight: 600; }
.instalar-app-ic { display: inline-flex; vertical-align: -4px; color: #4da3ff; }
.instalar-app-acoes { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.instalar-app-acoes button { border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; min-height: 38px; }
.instalar-app-depois { background: transparent; border: 1px solid #44454c; color: #c9cad0; }
.instalar-app-sim { background: var(--elo-laranja-acao); border: 1px solid var(--elo-laranja-acao); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .instalar-app { animation: instalar-sobe .25s ease-out; } }
@keyframes instalar-sobe { from { transform: translateY(16px); opacity: 0; } }

/* Atendimento: envio de mídia (áudio gravado, câmera, anexo) e prévia antes de enviar */
.at-envio { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.at-caixa .at-bt-anexo, .at-caixa .at-bt-camera { width: 36px; height: 36px; margin: 2px 0; }
.at-caixa .at-bt-anexo svg, .at-caixa .at-bt-camera svg { width: 20px; height: 20px; }
.at-btn-enviar { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.at-envio.gravando > .at-caixa, .at-envio.gravando > .at-btn-enviar { display: none; }
.at-gravando { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; background: var(--at-painel-3); border-radius: 22px; padding: 0 0 0 4px; min-width: 0; }
.at-gravando .at-btn-enviar { margin-left: auto; }
.at-grav-cancelar { color: var(--at-vermelho); }
.at-grav-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--at-vermelho); flex: none; animation: at-pisca 1s ease-in-out infinite; }
.at-grav-tempo { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 38px; }
.at-grav-dica { color: var(--at-suave); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.at-gravando.enviando .at-grav-ponto { animation: none; background: var(--at-ouro); }
@keyframes at-pisca { 50% { opacity: .25; } }
.at-previa-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.at-previa { width: min(560px, 100%); max-height: calc(100dvh - 40px); background: var(--at-painel); border: 1px solid var(--at-linha); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); color: var(--at-texto); }
.at-previa-cab { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--at-linha); }
.at-previa-cab > b { flex: 1; padding-left: 6px; }
.at-previa-titulo { display: flex; flex-direction: column; min-width: 0; }
.at-previa-titulo small { color: var(--at-suave); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-previa-corpo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #0b0b0d; padding: 12px; overflow: auto; }
.at-previa-img { max-width: 100%; max-height: min(60dvh, 520px); border-radius: 8px; object-fit: contain; display: block; }
.at-previa-audio { width: 100%; }
.at-previa-doc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; text-align: center; word-break: break-word; }
.at-previa-doc small { color: var(--at-suave); }
.at-ic-doc.grande { width: 64px; height: 78px; font-size: 14px; padding-bottom: 10px; border-radius: 6px; }
.at-previa-pe { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--at-linha); }
.at-previa-pe .at-caixa { padding: 2px 12px; }
.at-previa-leg { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 0; max-height: 110px; min-height: 40px; line-height: 1.4; color: var(--at-texto); font: inherit; }
.at-previa-leg::placeholder { color: var(--at-fraco); }
.at-previa-nome { flex: 1; color: var(--at-suave); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.at-previa-estado { align-self: center; color: var(--at-ouro-claro); font-size: 12px; }
.at-previa-estado:empty { display: none; }
.at-previa-fundo.enviando .at-btn-enviar { opacity: .6; }
.at-cam .at-previa-pe { justify-content: space-between; align-items: center; }
.at-cam-video { max-width: 100%; max-height: min(60dvh, 520px); border-radius: 8px; background: #000; }
.at-btn-foto { width: 60px; height: 60px; border-radius: 50%; border: 4px solid #fff; background: var(--at-ouro); box-shadow: 0 0 0 3px rgba(0, 0, 0, .4); padding: 0; cursor: pointer; }
@media (max-width: 820px) {
  .at-envio { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .at-previa-fundo { padding: 0; align-items: stretch; }
  .at-previa { width: 100%; max-height: none; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .at-previa-img, .at-cam-video { max-height: 100%; }
}
@media (max-width: 380px) { .at-caixa .at-bt-camera, .at-caixa .at-bt-anexo { width: 32px; } }
@media (prefers-reduced-motion: reduce) { .at-grav-ponto { animation: none; } }
.at-previa-leg:focus, .at-previa-leg:focus-visible { outline: none; box-shadow: none; border: 0; }
.at-previa-pe .at-caixa:focus-within { box-shadow: 0 0 0 1.5px var(--at-ouro-borda); }

/* Agente > Configuração > Reorganizar conversas existentes (só agência) */
.ag-reorg { border: 2px solid #c9a227; background: #fffdf5; padding-bottom: 12px; }
.ag-reorg-toggle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-radius: 6px; background: #f4f5f7; border: 1px solid #dfe1e6; margin: 6px 0 8px; }
.ag-reorg-toggle .ag-check { font-size: 15px; margin: 0; }
.ag-reorg-toggle.ligado { background: #e3fcef; border-color: #57d9a3; }
.ag-reorg-toggle span { font-size: 13px; color: #42526e; }
.ag-reorg-passos { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0; counter-reset: passo; flex-wrap: wrap; }
.ag-reorg-passos li { counter-increment: passo; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #ebecf0; color: #42526e; }
.ag-reorg-passos li::before { content: counter(passo) ". "; }
.ag-reorg-passos li.feito { background: #172b4d; color: #fff; }
.ag-reorg-barra { height: 10px; border-radius: 5px; background: #ebecf0; overflow: hidden; margin: 6px 0; }
.ag-reorg-barra span { display: block; height: 100%; background: #c9a227; transition: width .4s; }
.ag-reorg-tabela-caixa { max-height: 420px; overflow: auto; margin-top: 8px; border: 1px solid #dfe1e6; border-radius: 6px; }
.ag-reorg-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ag-reorg-tabela th { position: sticky; top: 0; background: #f4f5f7; text-align: left; padding: 6px 8px; font-weight: 600; color: #172b4d; }
.ag-reorg-tabela td { padding: 6px 8px; border-top: 1px solid #ebecf0; vertical-align: top; color: #172b4d; }
.ag-reorg-motivo small { display: block; color: #8a5a00; margin-top: 2px; }
.ag-reorg-acao { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #ebecf0; white-space: nowrap; }
.acao-mover .ag-reorg-acao, .acao-temperatura .ag-reorg-acao { background: #e3fcef; color: #006644; }
.acao-revisar .ag-reorg-acao { background: #fff0b3; color: #7a5a00; }
.acao-erro .ag-reorg-acao, .acao-bloqueado .ag-reorg-acao { background: #ffebe6; color: #bf2600; }

/* ---------- CRM Urban: logo (o "U" oficial + nome em Poppins) e tela Cidades */
.logo-urban { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.logo-urban-u { height: 24px; width: auto; display: block; }
.urban-nome { font-size: 17px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.urban-nome-crm { font-weight: 500; color: var(--elo-laranja); }
.urban-nome b { font-weight: 700; }
.login-urban { display: inline-flex; align-items: center; gap: 16px; color: var(--elo-marinho); width: auto; }
.login-urban-u { height: 64px; width: auto; }
.login-urban .urban-nome { font-size: clamp(34px, 7vw, 54px); }
.login-urban .urban-nome-crm { color: var(--elo-laranja-texto); }
@media (max-width: 640px) { .logo-urban .urban-nome-crm { display: none; } }
.cid-topo { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cid-topo .titulo-secao { margin-bottom: 0; }
.cid-resumo { color: var(--texto-suave); margin: 4px 0 0; }
.cid-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; align-items: end; }
.cid-grade .larga { grid-column: 1 / -1; }
.cid-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #ece7de; color: #3d3d3d; }
.cid-status.ativa { background: #d7f3e3; color: #14532d; }
.cid-status.implantando { background: #fde8d7; color: #8a3a0c; }
.cid-status.pausada { background: #fff1c2; color: #6b4e00; }
.cid-status.encerrada { background: #e5e5e5; color: #4a4a4a; text-decoration: line-through; }
.cid-equipe { display: flex; flex-wrap: wrap; gap: 4px; }
.cid-pessoa { font-size: 12px; background: #f1ede6; border-radius: 6px; padding: 1px 7px; color: #333; }
.cid-acoes { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.cid-config { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.cid-chave { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.cid-chave input { width: 20px; height: 20px; accent-color: var(--elo-laranja-acao); }
.cid-previa { white-space: pre-wrap; background: #f6f3ee; border-left: 3px solid var(--elo-laranja); padding: 10px 12px; border-radius: 6px;
  font-size: 13px; color: #2b2b2b; margin: 8px 0 0; max-width: 520px; }
.cid-nota { font-size: 12.5px; color: var(--texto-suave); margin: 6px 0 0; max-width: 720px; }
.cid-sem td { vertical-align: middle; }
.cid-sem select { min-width: 160px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--elo-borda); background: #fff; }
.cid-modal-equipe { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--elo-borda); }
.cid-modal-equipe ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.cid-modal-equipe li { display: flex; align-items: center; gap: 8px; }
.cid-modal-equipe li .espaco { flex: 1; }
.cabecalho .logo-urban, .cabecalho .logo-urban .logo-cliente-nome { text-transform: none; font-variant: normal; letter-spacing: -.01em; font-family: var(--elo-fonte); }
.cabecalho .logo-urban .logo-cliente-nome { font-weight: 700; font-size: 16px; color: #fff; border: 0; }
.cid-acoes a.btn { text-decoration: none; }
.cid-previa { font-family: var(--elo-fonte); }
