/* ============================================================
   A PONTE MESTRA — Mentoria
   Identidade oficial (manual Zanga): preto quente + ouro + creme
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Josefin+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0b0908;
  --bg-2: #131010;
  --card: #17130f;
  --card-2: #1f1a14;
  --border: #2b2419;
  --border-gold: #6b4f22;
  --gold: #c28c41;
  --gold-2: #b98240;
  --gold-3: #e2b878;
  --gold-soft: rgba(194, 140, 65, 0.12);
  --cream: #eee7d5;
  --cream-2: #d1cab6;
  --text: #eee7d5;
  --text-2: #a09784;
  --text-3: #6f685c;
  --green: #6aa77c;
  --red: #cf6b52;
  --blue: #6f93b8;
  --purple: #9e85b5;
  --sidebar-w: 250px;
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Josefin Sans", "Futura", Georgia, serif;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 22px rgba(194, 140, 65, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse 60% 42% at 88% -8%, rgba(194, 140, 65, 0.1), transparent 62%),
    radial-gradient(ellipse 50% 36% at -12% 108%, rgba(194, 140, 65, 0.07), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3c3830; }

::selection { background: rgba(194, 140, 65, 0.3); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- Login ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(194, 140, 65, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(194, 140, 65, 0.07), transparent 60%),
    var(--bg);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(26, 24, 18, 0.9), rgba(16, 16, 16, 0.94));
  border: 1px solid rgba(194, 140, 65, 0.22);
  border-radius: 20px;
  padding: 44px 36px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), var(--glow-gold);
  backdrop-filter: blur(10px);
  text-align: center;
}

.login-logo { box-shadow: 0 0 34px rgba(194, 140, 65, 0.35); }

.login-logo-full {
  width: 250px;
  max-width: 90%;
  display: block;
  margin: -30px auto 6px;
  mix-blend-mode: screen; /* funde o fundo preto da logo com o card */
}

.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }

.login-aux {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
  margin: 4px 0 22px;
}
.login-aux a { color: var(--gold-2); }
.login-aux label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.btn-gold {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 55%, #a87f16);
  color: #16120a;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: 0 6px 18px rgba(194, 140, 65, 0.28), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(194, 140, 65, 0.4), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }

.login-switch { margin-top: 22px; font-size: 12px; color: var(--text-3); }
.login-switch a { color: var(--gold-2); font-weight: 600; }

/* Três portas do protótipo — um painel por perfil.
   Existiam duas, e o painel de Mentor/Consultor ficava escondido atrás
   de um seletor dentro da Central. Painel que não se acha não existe. */
.portas { margin-top: 24px; text-align: left; }
.portas-label {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-3); text-align: center; margin-bottom: 12px;
}
.porta {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-2); text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s;
}
.porta:hover {
  border-color: var(--border-gold);
  background: #241d15;
  transform: translateX(2px);
}
.porta svg { width: 17px; height: 17px; color: var(--gold-2); flex: none; }
.porta-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.porta-nome { font-size: 13px; font-weight: 600; color: var(--cream); }
.porta-sub  { font-size: 11px; color: var(--text-3); }
.porta-seta { margin-left: auto; color: var(--text-3); font-size: 15px; }
.porta:hover .porta-seta { color: var(--gold-2); }

/* Linha de canal ainda não ativado — presente na régua, ausente na operação */
tr.apagado td { color: var(--text-3); }
tr.apagado td b { font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════════
   ÁREA DE MEMBROS — conteúdo PRESCRITO, não catálogo.
   O mentorado não escolhe numa prateleira: ele encontra o que o mentor
   mandou assistir, e cada aula diz por que está ali.
   ══════════════════════════════════════════════════════════════════════════ */

.aulas-topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 20px;
  border: 1px solid var(--border-gold); border-radius: 14px;
  background: linear-gradient(135deg, #1b1610 0%, var(--card) 60%);
}
.at-num { font-family: var(--serif); font-size: 30px; color: var(--gold-3); line-height: 1; }
.at-txt { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.at-prog { min-width: 190px; }
.at-prog .bar { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.at-prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }
.at-prog .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }

.aula-fila { display: flex; flex-direction: column; gap: 12px; }

.aula-linha {
  display: grid; grid-template-columns: 104px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--card); transition: border-color .18s, background .18s;
}
.aula-linha:hover { border-color: var(--border-gold); background: var(--card-2); }
.aula-linha.feita { opacity: .62; }
.aula-linha.feita .al-titulo { text-decoration: line-through; text-decoration-color: var(--text-3); }

.al-capa {
  position: relative; aspect-ratio: 16/9; border-radius: 9px;
  background: linear-gradient(135deg, #241d15, #14110d);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.al-capa svg { width: 26px; height: 26px; color: var(--gold-2); }
.al-capa .dur {
  position: absolute; right: 5px; bottom: 5px;
  font-size: 10px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0,0,0,.72); color: var(--cream-2);
}
.al-titulo { font-size: 14.5px; font-weight: 600; color: var(--cream); margin-bottom: 5px; }
.al-meta { font-size: 11.5px; color: var(--text-3); }

/* O selo é o coração da tela: diz POR QUE esta aula está aqui. */
.motivo {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 20px; margin-bottom: 6px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--bg-2);
}
.motivo svg { width: 11px; height: 11px; }
.motivo.gargalo { border-color: rgba(207,107,82,.45); color: var(--red); background: rgba(207,107,82,.08); }
.motivo.da-trilha  { border-color: var(--border-gold);   color: var(--gold-3); background: rgba(194,140,65,.08); }
.motivo.do-cs      { border-color: rgba(111,147,184,.4); color: var(--blue); background: rgba(111,147,184,.08); }

.al-acao { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.al-prazo { font-size: 11px; color: var(--text-3); }
.al-prazo.vencendo { color: var(--red); font-weight: 600; }

.selo-feito {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--green);
}
.selo-feito svg { width: 14px; height: 14px; }

/* ── Tela da aula ─────────────────────────────────────────────────────── */

.player {
  position: relative; aspect-ratio: 16/9; width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle at 50% 42%, #241d15 0%, #0d0b09 72%);
  display: grid; place-items: center;
}
.player video,
.player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; object-fit: contain; background: #000;
}
/* Com iframe do YouTube o controle é do player deles: some a capa nossa. */
.player.embutido .play,
.player.embutido .aviso { display: none; }

/* Modo ampliado: o player toma a largura toda e a coluna lateral sai.
   Não é tela cheia — é para quem quer acompanhar a aula lendo a régua. */
.aula-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.aula-layout.ampliado { grid-template-columns: 1fr; }
.aula-layout.ampliado .coluna-lado { display: none; }

.player-acoes { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.player-acoes .cronometro { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text-2);
  transition: border-color .18s, color .18s;
}
.btn-mini:hover { border-color: var(--border-gold); color: var(--gold-3); }
.btn-mini svg { width: 13px; height: 13px; }
.btn-mini.on { border-color: var(--border-gold); color: var(--gold-3); background: rgba(194,140,65,.1); }

@media (max-width: 900px) { .aula-layout { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════
   CRM — inbox, contatos e públicos.
   A conversa mora aqui para que o número pare de ser digitado no check-in
   e passe a ser medido. Sem o inbox cheio, o CRM é enfeite.
   ══════════════════════════════════════════════════════════════════════════ */

.inbox {
  display: grid; grid-template-columns: 290px 1fr 268px;
  gap: 0; height: calc(100vh - 190px); min-height: 480px;
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--card);
}
.inbox > * { min-width: 0; }
.ib-col { display: flex; flex-direction: column; overflow: hidden; }
.ib-col + .ib-col { border-left: 1px solid var(--border); }
.ib-head {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex: none;
  background: var(--bg-2);
}
.ib-head h3 { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ib-head .cont { margin-left: auto; font-size: 11px; color: var(--text-3); }
.ib-corpo { overflow-y: auto; flex: 1; }

/* lista de conversas */
.conversa {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid rgba(43,36,25,.55);
  cursor: pointer; transition: background .15s;
}
.conversa:hover { background: var(--card-2); }
.conversa.ativa { background: var(--card-2); box-shadow: inset 3px 0 0 var(--gold-2); }
.cv-ini {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--bg-2); color: var(--gold-3); border: 1px solid var(--border-gold);
}
.cv-topo { display: flex; align-items: baseline; gap: 8px; }
.cv-nome { font-size: 13px; font-weight: 600; color: var(--cream); flex: 1; }
.cv-hora { font-size: 10.5px; color: var(--text-3); flex: none; }
.cv-previa {
  font-size: 11.5px; color: var(--text-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cv-selos { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.cv-nao-lida { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* relógio de resposta — o indicador que vira métrica do painel */
.relogio {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--border);
}
.relogio.ok    { color: var(--green); border-color: rgba(106,167,124,.4); background: rgba(106,167,124,.08); }
.relogio.morno { color: var(--gold-3); border-color: var(--border-gold);   background: rgba(194,140,65,.08); }
.relogio.frio  { color: var(--red);   border-color: rgba(207,107,82,.45);  background: rgba(207,107,82,.08); }

/* mensagens */
.msgs { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg .qd { display: block; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.msg.dele { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border); color: var(--cream-2); border-bottom-left-radius: 4px; }
.msg.meu  { align-self: flex-end; background: linear-gradient(135deg, #3a2c16, #2a2013); border: 1px solid var(--border-gold); color: var(--cream); border-bottom-right-radius: 4px; }
.msg-vazio { align-self: center; font-size: 11.5px; color: var(--text-3); padding: 10px; }
.demora {
  align-self: center; font-size: 11px; color: var(--red); font-weight: 600;
  padding: 5px 12px; border-radius: 20px; border: 1px dashed rgba(207,107,82,.45);
  background: rgba(207,107,82,.06);
}

.ib-responder { border-top: 1px solid var(--border); padding: 11px 13px; flex: none; background: var(--bg-2); }
.ib-templates { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.tpl {
  font-size: 11px; padding: 5px 10px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  font-family: inherit; transition: border-color .15s, color .15s;
}
.tpl:hover { border-color: var(--border-gold); color: var(--gold-3); }
.ib-caixa { display: flex; gap: 8px; align-items: stretch; }
.ib-caixa input {
  flex: 1; min-width: 0;
  padding: 10px 12px; border-radius: 9px; font-family: inherit; font-size: 13px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.ib-caixa input:focus { outline: none; border-color: var(--border-gold); }
/* .btn-gold nasceu para o login, onde ocupa a linha inteira (width:100%).
   Aqui dentro de um flex isso vira base de crescimento: o botão pedia a
   largura toda e a caixa de escrever ficava com as sobras — 352px contra
   173px. Ele volta a ter o tamanho do próprio texto. */
.ib-caixa .btn-gold {
  width: auto; flex: none; padding: 10px 20px; font-size: 13px;
}

/* painel do contato */
.ct-bloco { padding: 13px 14px; border-bottom: 1px solid rgba(43,36,25,.55); }
.ct-bloco h4 { font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; font-weight: 600; }
.ct-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; }
.ct-linha span { color: var(--text-3); }
.ct-linha b { color: var(--cream); font-weight: 600; text-align: right; }
.ct-etapas { display: flex; flex-direction: column; gap: 5px; }
.ct-etapa {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px;
  color: var(--text-3); padding: 4px 0;
}
.ct-etapa i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex: none; }
.ct-etapa.feita { color: var(--cream-2); }
.ct-etapa.feita i { background: var(--green); }
.ct-etapa.agora { color: var(--gold-3); font-weight: 600; }
.ct-etapa.agora i { background: var(--gold); box-shadow: 0 0 0 3px rgba(194,140,65,.2); }

@media (max-width: 1100px) { .inbox { grid-template-columns: 250px 1fr; } .inbox .ib-contato { display: none; } }
@media (max-width: 760px)  { .inbox { grid-template-columns: 1fr; height: auto; } .inbox .ib-lista { max-height: 300px; } }

/* Rótulo de grupo no menu — separa o CRM do resto sem virar submenu */
.side-grupo {
  font-size: 9px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--text-3); padding: 14px 12px 6px; margin-top: 4px;
  border-top: 1px solid rgba(194,140,65,.1);
}
.sidebar.collapsed .side-grupo {
  font-size: 0; padding: 10px 0 6px; margin: 6px 8px 0;
  border-top: 1px solid rgba(194,140,65,.18);
}

/* ══════════════════════════════════════════════════════════════════════════
   ESTEIRA COMO ANÁLISE — sem kanban.
   O quadro é onde se trabalha (Pipeline, dentro do CRM). Aqui é onde se
   entende: onde trava, há quanto tempo, e quanto dinheiro está parado.
   ══════════════════════════════════════════════════════════════════════════ */

.degrau {
  display: grid; grid-template-columns: 190px 1fr 128px 104px 96px;
  gap: 14px; align-items: center;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); margin-bottom: 9px;
}
.dg-nome { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.dg-nome small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.dg-barra { height: 26px; border-radius: 7px; background: var(--bg-2); overflow: hidden; position: relative; }
.dg-barra i {
  display: block; height: 100%;
  background: linear-gradient(90deg, rgba(194,140,65,.75), rgba(226,184,120,.55));
}
.dg-barra span {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; font-weight: 700; color: var(--cream);
}
.dg-conv { text-align: right; font-size: 13px; font-weight: 700; color: var(--cream); }
.dg-conv small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.dg-tempo { text-align: right; font-size: 12.5px; color: var(--text-2); }
.dg-parado { text-align: right; font-size: 12.5px; font-weight: 600; color: var(--gold-3); }

/* o degrau onde o funil quebra */
.degrau.gargalo { border-color: rgba(207,107,82,.5); background: rgba(207,107,82,.05); }
.degrau.gargalo .dg-barra i { background: linear-gradient(90deg, rgba(207,107,82,.8), rgba(207,107,82,.4)); }
.degrau.gargalo .dg-conv { color: var(--red); }
.selo-gargalo {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--red); text-transform: uppercase;
}

.perda { display: flex; flex-direction: column; gap: 8px; }
.perda-linha { display: grid; grid-template-columns: 1fr 84px 60px; gap: 12px; align-items: center; font-size: 12.5px; }
.perda-linha .nome { color: var(--cream-2); }
.perda-linha .tr { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.perda-linha .tr i { display: block; height: 100%; background: var(--red); opacity: .7; }
.perda-linha .pc { text-align: right; color: var(--text-2); font-weight: 600; }

@media (max-width: 900px) {
  .degrau { grid-template-columns: 1fr 1fr; }
  .degrau .dg-barra { grid-column: 1 / -1; }
}

/* ── Públicos para remarketing ────────────────────────────────────────── */
.publico {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); margin-bottom: 10px;
}
.publico:hover { border-color: var(--border-gold); }
.pb-nome { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.pb-regra { font-size: 11.5px; color: var(--text-3); }
.pb-lado { text-align: right; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.pb-n { font-size: 19px; font-family: var(--serif); color: var(--gold-3); line-height: 1; }
.publico.excluir { border-color: rgba(207,107,82,.35); background: rgba(207,107,82,.04); }
.publico.excluir .pb-n { color: var(--red); }

/* ── Administração das aulas (área da equipe) ─────────────────────────── */

.aula-adm {
  display: grid; grid-template-columns: 128px 1fr auto;
  gap: 15px; align-items: center;
  padding: 13px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); margin-bottom: 11px;
}
.aula-adm:hover { border-color: var(--border-gold); }
.adm-thumb {
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: #000; border: 1px solid var(--border); position: relative;
}
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-thumb .sem {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10px; color: var(--text-3); text-align: center; padding: 6px;
}
.adm-titulo { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.adm-meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Acompanhamento: quantos assistiram de quantos receberam */
.assistiram { min-width: 150px; text-align: right; }
.assistiram .n { font-size: 15px; font-weight: 700; color: var(--cream); }
.assistiram .n small { font-size: 11px; color: var(--text-3); font-weight: 500; }
.assistiram .bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.assistiram .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }
.assistiram .bar.baixa i { background: linear-gradient(90deg, #8d4b39, var(--red)); }
.assistiram .rot { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }

.field textarea, .field select {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: 13px;
}
.field textarea:focus, .field select:focus { outline: none; border-color: var(--border-gold); }
.field .ajuda { font-size: 11px; color: var(--text-3); margin-top: 5px; }

.previa-yt {
  display: flex; gap: 12px; align-items: center;
  padding: 11px; border-radius: 10px; margin-top: 12px;
  border: 1px dashed var(--border); background: var(--bg-2);
}
.previa-yt img { width: 104px; border-radius: 7px; display: block; }
.previa-yt .txt { font-size: 12px; color: var(--text-2); }
.previa-yt.erro { border-color: rgba(207,107,82,.5); color: var(--red); }

@media (max-width: 720px) {
  .aula-adm { grid-template-columns: 96px 1fr; }
  .assistiram { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--border); padding-top: 10px; }
}
.player .play {
  position: relative; z-index: 2;
  width: 66px; height: 66px; border-radius: 50%;
  border: 1.6px solid var(--gold-2); display: grid; place-items: center;
  color: var(--gold-3); background: rgba(11,9,8,.55);
  transition: transform .18s, background .18s, opacity .25s; cursor: pointer;
}
/* Enquanto roda, o botão some para não tapar o vídeo; volta ao pausar. */
.player.tocando .play { opacity: 0; pointer-events: none; }
.player.tocando:hover .play { opacity: .85; pointer-events: auto; }
.player .aviso { z-index: 2; }
.player .play:hover { transform: scale(1.06); background: rgba(194,140,65,.14); }
.player .play svg { width: 24px; height: 24px; margin-left: 3px; }
.player .aviso {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 9px 14px; font-size: 11px; color: var(--text-3);
  background: rgba(0,0,0,.55); border-top: 1px solid var(--border);
}
.player-barra { height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.player-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transition: width .4s linear; }

.aula-rodape {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 18px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--card);
}
.ar-estado { font-size: 12.5px; color: var(--text-2); }
.btn-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--border-gold); color: var(--gold-3); background: transparent;
  transition: background .18s, color .18s;
}
.btn-check:hover:not(:disabled) { background: rgba(194,140,65,.12); }
.btn-check svg { width: 15px; height: 15px; }
.btn-check.pronto {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1208; border-color: transparent;
}
.btn-check:disabled { opacity: .45; cursor: not-allowed; }
.btn-check.feito { border-color: rgba(106,167,124,.5); color: var(--green); background: rgba(106,167,124,.1); }

@media (max-width: 720px) {
  .aula-linha { grid-template-columns: 84px 1fr; }
  .al-acao { grid-column: 1 / -1; flex-direction: row; align-items: center;
             justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }
}

.login-footer { margin-top: 26px; font-size: 11px; color: var(--text-3); }

/* ---------- Wordmark ---------- */

.wordmark { display: flex; flex-direction: column; align-items: center; gap: 2px; user-select: none; }
.wordmark .wm-main { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.wordmark .wm-main .wm-nome { color: var(--text); }
.wordmark .wm-main .wm-club { color: var(--gold); }
.wordmark .wm-main .wm-app { color: var(--text-2); font-weight: 500; font-size: 13px; margin-left: 4px; }
.wordmark .wm-sub {
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--gold-2);
  text-transform: uppercase;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 3px 8px;
  margin-top: 5px;
}

/* ---------- App shell ---------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, #131210 0%, #0e0e0e 30%, #0c0c0c 100%);
  border-right: 1px solid rgba(194, 140, 65, 0.12);
  display: flex;
  flex-direction: column;
  padding: 24px 14px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .wordmark { padding-bottom: 16px; border-bottom: 1px solid rgba(194, 140, 65, 0.1); }

/* Marca oficial no topo do sidebar */
.side-brand {
  padding: 0 18px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(194, 140, 65, 0.12);
  box-shadow: 0 14px 22px -18px rgba(194, 140, 65, 0.35);
}
/* A marca respira: 132px dentro de 214px úteis deixa ~41px de cada lado.
   As margens negativas comem o vazio do PNG sem espremer o desenho —
   eram -18/-12 e apertavam demais em cima. */
.side-logo {
  width: 132px;
  max-width: 100%;
  display: block;
  margin: -10px auto -6px;
  mix-blend-mode: screen;
}

/* ---------- Sidebar recolhível ---------- */

.sidebar { transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease; }

.side-toggle {
  position: absolute;
  top: 14px;
  right: -1px;
  z-index: 5;
  width: 24px;
  height: 24px;
  border-radius: 7px 0 0 7px;
  background: var(--card-2);
  border: 1px solid rgba(194, 140, 65, 0.25);
  border-right: none;
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, color 0.15s;
}
.side-toggle svg { width: 14px; height: 14px; transition: transform 0.25s; }
.side-toggle:hover { color: var(--gold-3); box-shadow: 0 0 10px rgba(194, 140, 65, 0.4); }
.sidebar { position: sticky; }
.sidebar.collapsed .side-toggle svg { transform: rotate(180deg); }

.side-logo-mini { display: none; }

.sidebar.collapsed {
  width: 78px;
  min-width: 78px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 12px;
}
.sidebar.collapsed .side-toggle {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 auto 12px;
  border-radius: 7px;
  border-right: 1px solid rgba(194, 140, 65, 0.25);
  width: 30px;
  height: 24px;
}
.sidebar.collapsed .side-logo { display: none; }
/* O símbolo antigo estava recortado rente ao traço no próprio PNG — por isso
   encostava na borda em qualquer tamanho. O arquivo foi refeito a partir do
   manual (pág. 5), 512x512 com 12,5% de margem transparente embutida.
   Como a folga agora vem no arquivo, a caixa pode ser maior: 40px de caixa
   desenham ~30px de símbolo com ar em volta. */
.sidebar.collapsed .side-logo-mini {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px rgba(194, 140, 65, 0.4));
}
.sidebar.collapsed .side-brand { padding: 0 6px 10px; }
.sidebar.collapsed .side-role { display: none; }
.sidebar.collapsed .side-nav { margin-top: 8px; }
.sidebar.collapsed .side-nav a {
  font-size: 0;
  gap: 0;
  justify-content: center;
  padding: 12px 0;
}
.sidebar.collapsed .side-nav a svg { width: 19px; height: 19px; }
.sidebar.collapsed .side-nav a .ext { display: none; }
.sidebar.collapsed .side-nav a.active::before { left: -10px; }
.sidebar.collapsed .side-progress { padding: 12px 4px; text-align: center; }
.sidebar.collapsed .side-progress .sp-row { justify-content: center; margin-bottom: 6px; }
.sidebar.collapsed .side-progress .sp-row span:first-child { display: none; }
.sidebar.collapsed .side-progress .sp-pct { font-size: 14px; }

/* Progresso da mentoria no rodapé do sidebar */
.side-progress {
  padding: 14px 12px;
  border-top: 1px solid rgba(194, 140, 65, 0.12);
}
.side-progress .sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.side-progress .sp-pct { color: var(--gold-3); font-weight: 800; font-size: 13px; text-shadow: 0 0 12px rgba(194, 140, 65, 0.6); }
.side-progress .bar { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.side-progress .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(194, 140, 65, 0.85), 0 0 26px rgba(194, 140, 65, 0.4);
}

.sidebar .wordmark { margin-bottom: 10px; }
.sidebar .wordmark .wm-main { font-size: 19px; }

.side-role {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 10px 8px;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.12s, color 0.12s;
}
.side-nav a svg { width: 17px; height: 17px; flex: none; }
.side-nav a { transition: background 0.14s, color 0.14s, transform 0.14s; }
.side-nav a:hover { background: var(--card); color: var(--text); transform: translateX(3px); }
.side-nav a:hover svg { color: var(--gold-2); filter: drop-shadow(0 0 5px rgba(194, 140, 65, 0.6)); }
.side-nav a.active svg { filter: drop-shadow(0 0 5px rgba(194, 140, 65, 0.7)); }
.side-nav a.active {
  background: linear-gradient(135deg, rgba(194, 140, 65, 0.2), rgba(194, 140, 65, 0.05));
  border: 1px solid rgba(194, 140, 65, 0.35);
  color: var(--gold-3);
  font-weight: 700;
  box-shadow: var(--glow-gold);
}
.side-nav a .ext { margin-left: auto; opacity: 0.5; width: 13px; height: 13px; }

.side-bottom { margin-top: auto; padding-top: 18px; }

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
}
.plan-card .pc-title { display: flex; align-items: center; gap: 7px; color: var(--gold-2); font-weight: 700; margin-bottom: 3px; }
.plan-card .pc-sub { color: var(--text-3); margin-bottom: 10px; }
.plan-card .bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 6px 0 10px; }
.plan-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.plan-card button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-2);
  border-radius: var(--radius-sm);
  padding: 7px;
  font-size: 12px;
}

/* ---------- Main / topbar ---------- */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(194, 140, 65, 0.1);
  background: rgba(10, 10, 11, 0.8);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.avatar { box-shadow: 0 0 14px rgba(194, 140, 65, 0.3); }

.icon-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #16120a;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar.dark { background: var(--card-2); color: var(--gold-2); border: 1px solid var(--border-gold); }

.content { padding: 26px 28px 48px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: 33px; font-weight: 400; letter-spacing: 1.2px; line-height: 1.08; text-transform: uppercase; color: var(--cream); }
.page-head .sub { color: var(--text-2); font-size: 13px; margin-top: 5px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  background: linear-gradient(180deg, #1e1e1d, #171717);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { border-color: var(--border-gold); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 55%, #a87f16);
  color: #16120a;
  font-weight: 800;
  border: none;
  box-shadow: 0 6px 18px rgba(194, 140, 65, 0.26), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.btn.primary:hover { box-shadow: 0 10px 26px rgba(194, 140, 65, 0.38), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.btn.ghost-gold { border-color: var(--border-gold); color: var(--gold-2); background: transparent; }

.seg { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.seg button {
  background: transparent;
  border: none;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.seg button svg { width: 14px; height: 14px; }
.seg button.active { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--border-gold); font-weight: 600; }

/* ---------- KPI cards ---------- */

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: linear-gradient(180deg, #1a1a19, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.kpi:hover { transform: translateY(-2px); border-color: rgba(194, 140, 65, 0.3); box-shadow: var(--shadow-card), var(--glow-gold); }
.kpi .k-head { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12.5px; margin-bottom: 10px; }
.kpi .k-head svg { width: 16px; height: 16px; color: var(--gold-2); }
.kpi .k-value { font-size: 24px; font-weight: 800; letter-spacing: 0.2px; }
.kpi .k-delta { font-size: 11.5px; margin-top: 7px; }
.k-delta.up { color: var(--green); }
.k-delta.down { color: var(--red); }
.k-delta span { color: var(--text-3); }

.kpi .k-value { font-size: 25px; }
.kpi.gold-outline {
  border-color: rgba(194, 140, 65, 0.3);
  background:
    radial-gradient(ellipse 130% 90% at 50% -20%, rgba(194, 140, 65, 0.1), transparent 55%),
    linear-gradient(180deg, #1a1a19, #141414);
}
.kpi .k-icon-circle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-2); margin-bottom: 10px;
}
.kpi .k-icon-circle svg { width: 16px; height: 16px; }

/* ---------- Cards / painéis ---------- */

.panel {
  background: linear-gradient(180deg, #191918, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; }
.panel-head .sub { color: var(--text-3); font-size: 12px; margin-top: 3px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

canvas.chart { width: 100%; height: 220px; display: block; }

/* ---------- Tabelas ---------- */

.search-input {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  min-width: 260px;
}
.search-input svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.search-input input { background: transparent; border: none; outline: none; color: var(--text); width: 100%; font-size: 13px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
table.data th {
  text-align: left; color: var(--text-2); font-weight: 600; font-size: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
table.data td { padding: 12px; border-bottom: 1px solid #222222; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.015); }

.person { display: flex; align-items: center; gap: 10px; }
.person .p-name { font-weight: 600; }
.person .p-handle { color: var(--text-3); font-size: 11.5px; margin-top: 1px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid transparent; }
.chip.ativo { color: var(--green); border-color: rgba(76, 175, 125, 0.4); background: rgba(76, 175, 125, 0.08); }
.chip.atencao { color: var(--gold-2); border-color: var(--border-gold); background: var(--gold-soft); }
.chip.pendente { color: var(--red); border-color: rgba(224, 82, 82, 0.35); background: rgba(224, 82, 82, 0.08); }
.chip.neutro { color: var(--text-2); border-color: var(--border); background: var(--bg-2); }
.chip.retorno { color: var(--gold-2); border-color: var(--border-gold); background: var(--gold-soft); }
.chip.followup { color: var(--purple); border-color: rgba(155, 127, 212, 0.4); background: rgba(155, 127, 212, 0.08); }
.chip.oportunidade { color: var(--blue); border-color: rgba(91, 141, 217, 0.4); background: rgba(91, 141, 217, 0.08); }

/* ---------- Trilhas ---------- */

.progress-line { display: flex; align-items: center; gap: 12px; }
.progress-line .bar { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-line .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 4px; transition: width 0.25s; }
.progress-line .pct { font-size: 12.5px; color: var(--text-2); min-width: 108px; text-align: right; }

.trilha {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #191918, #141414);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s;
}
.trilha:not(.locked):hover { border-color: rgba(194, 140, 65, 0.28); }
.trilha.locked { opacity: 0.55; }
.trilha-head { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.trilha-head .t-icon { color: var(--gold-2); margin-top: 2px; }
.trilha-head .t-icon svg { width: 18px; height: 18px; }
.trilha-head .t-body { flex: 1; }
.trilha-head .t-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--border-gold); color: var(--gold-2); background: var(--gold-soft); }
.tag.gray { border-color: var(--border); color: var(--text-2); background: var(--bg-2); }
.trilha-head .t-desc { color: var(--text-2); font-size: 12.5px; margin-top: 5px; max-width: 640px; }
.trilha-head .t-meta { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.trilha-head .t-progress { min-width: 210px; text-align: right; }
.trilha-head .t-progress .pctbox {
  display: inline-block; border: 1px solid var(--border-gold); color: var(--gold-2);
  border-radius: 7px; padding: 3px 9px; font-weight: 700; font-size: 13px; margin-top: 8px;
}

.modulo { border-top: 1px solid var(--border); }
.modulo-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  user-select: none;
}
.modulo-head .count { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.modulo-head .chev { transition: transform 0.15s; color: var(--text-3); }
.modulo.open .modulo-head .chev { transform: rotate(90deg); }
.modulo-body { display: none; padding: 4px 18px 16px 42px; }
.modulo.open .modulo-body { display: block; }
.modulo-body .lbl { color: var(--text-3); font-size: 12px; margin-bottom: 8px; }

.task { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.task input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
.task .t-name { flex: 1; font-size: 13.5px; }
.task.done .t-name { text-decoration: line-through; color: var(--text-3); }
.task .open-link { color: var(--gold-2); font-size: 12.5px; font-weight: 600; }

/* ---------- Kanban ---------- */

.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 14px;
  align-items: flex-start;
}

.kcol {
  min-width: 236px;
  width: 236px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: none;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
}
.kcol-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 13px;
  font-weight: 700; font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.kcol-head svg { width: 14px; height: 14px; color: var(--gold-2); }
.kcol-head .count {
  margin-left: auto;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11px;
  border-radius: 999px;
  padding: 1px 8px;
}
.kcol-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 60px; }
.kcol-body.dragover { outline: 1.5px dashed var(--gold); outline-offset: -4px; border-radius: 8px; }

.kcard {
  background: linear-gradient(180deg, #1d1d1c, #171716);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 13px;
  cursor: grab;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.kcard:hover { border-color: rgba(194, 140, 65, 0.35); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), var(--glow-gold); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.45; }
.kcard .kc-name { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.kcard .kc-row { color: var(--text-2); margin: 2.5px 0; display: flex; gap: 5px; }
.kcard .kc-row b { color: var(--text); font-weight: 600; }
.kcard .kc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--text-3); font-size: 11px; }
.kcard .kc-foot svg { width: 13px; height: 13px; color: var(--gold-2); }

.kadd {
  border: none; background: transparent; color: var(--text-3);
  padding: 10px; font-size: 12.5px; border-top: 1px solid var(--border);
}
.kadd:hover { color: var(--gold-2); }

/* ---------- Calendário ---------- */

.cal-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } }

.calendar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .cal-title { font-family: var(--serif); font-size: 18px; }
.cal-head button { background: transparent; border: 1px solid var(--border); color: var(--text-2); border-radius: 7px; width: 28px; height: 28px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { color: var(--text-3); font-size: 11px; padding: 6px 0; }
.cal-grid .day {
  padding: 8px 0 5px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  position: relative;
  cursor: default;
}
.cal-grid .day .d-dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0; }
.d-dot.ok { background: var(--green); }
.d-dot.today { background: var(--gold); }
.d-dot.pend { background: var(--red); }
.cal-grid .day.today { border: 1px solid var(--gold); color: var(--gold-2); font-weight: 700; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 11.5px; }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.day-tasks .dt-group { margin-bottom: 16px; }
.day-tasks .dt-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; margin-bottom: 9px; }
.day-tasks .dt-title svg { width: 15px; height: 15px; color: var(--gold-2); }
.dt-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin-bottom: 7px;
  font-size: 13px;
}
.dt-item input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; }
.dt-item .dt-name { flex: 1; }
.dt-item .dt-name b { font-weight: 700; }
.dt-item .dt-name span { color: var(--text-2); }
.dt-item .dt-time { color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.dt-item.checked .dt-name { text-decoration: line-through; color: var(--text-3); }

/* ---------- Timeline (histórico) ---------- */

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid #0d0d0d;
}
.tl-item.muted::before { background: var(--border); }
.tl-item .tl-time { color: var(--text-3); font-size: 11.5px; margin-bottom: 3px; }
.tl-item .tl-text { font-size: 13.5px; }
.tl-item .tl-text b { color: var(--gold-2); }

/* ---------- Arquivos ---------- */

.file-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; }
.file-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px; display: flex; gap: 12px; align-items: flex-start;
}
.file-card .f-icon {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: var(--gold-soft); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold-2);
}
.file-card .f-icon svg { width: 17px; height: 17px; }
.file-card .f-name { font-weight: 600; font-size: 13px; word-break: break-word; }
.file-card .f-meta { color: var(--text-3); font-size: 11.5px; margin-top: 4px; }

/* ---------- Aulas ---------- */

.aula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.aula-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.aula-card .a-cover {
  height: 110px;
  background:
    radial-gradient(ellipse 90% 120% at 20% 0%, rgba(194, 140, 65, 0.30), transparent 60%),
    linear-gradient(135deg, #1c1607, #101010);
  display: flex; align-items: center; justify-content: center; color: var(--gold-2);
  border-bottom: 1px solid var(--border);
}
.aula-card .a-cover svg { width: 34px; height: 34px; }
.aula-card .a-body { padding: 14px; }
.aula-card .a-title { font-weight: 700; font-size: 13.5px; }
.aula-card .a-meta { color: var(--text-3); font-size: 12px; margin: 6px 0 12px; }
.aula-card .a-link { color: var(--gold-2); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.aula-card .a-link svg { width: 13px; height: 13px; }

/* ---------- Premiações ---------- */

.placa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.placa {
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, rgba(194, 140, 65, 0.22), transparent 55%),
    var(--card);
  padding: 20px;
  text-align: center;
}
.placa .pl-value { font-family: var(--serif); font-size: 30px; color: var(--gold-2); font-weight: 700; }
.placa .pl-label { color: var(--text-2); font-size: 12px; margin: 6px 0 14px; }
.placa .pl-count { font-size: 12.5px; color: var(--text); }
.placa .pl-count b { color: var(--gold-2); }

/* ---------- Modal ---------- */

.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
}
.modal h3 { font-size: 16px; margin-bottom: 4px; }
.modal .m-sub { color: var(--text-2); font-size: 12.5px; margin-bottom: 18px; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal .m-actions .btn { padding: 9px 16px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--card);
  border: 1px solid var(--border-gold);
  color: var(--text);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast b { color: var(--gold-2); }

/* ============================================================
   CENTRAL DE PERFORMANCE — camada comum aos dois perfis
   ============================================================ */

/* Textura de ondas concêntricas da marca */
.wave-bg {
  position: relative;
  overflow: hidden;
}
.wave-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: repeating-radial-gradient(
    circle at 88% 120%,
    transparent 0 26px,
    rgba(194, 140, 65, 0.09) 26px 27.5px
  );
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.wave-bg > * { position: relative; z-index: 1; }

/* ---------- Hero da meta ---------- */

.meta-hero {
  background: linear-gradient(135deg, #1d1710, #14100c 60%);
  border: 1px solid rgba(194, 140, 65, 0.28);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card), var(--glow-gold);
}
.meta-hero .mh-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.meta-hero .mh-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.meta-hero .mh-value {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(194, 140, 65, 0.3);
}
.meta-hero .mh-of { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.meta-hero .mh-of b { color: var(--gold-3); font-weight: 700; }
.meta-hero .mh-pct {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--gold-3);
  line-height: 1;
  text-shadow: 0 0 26px rgba(194, 140, 65, 0.5);
}
.meta-hero .mh-pct span { font-size: 15px; color: var(--text-2); display: block; margin-top: 6px; letter-spacing: 1px; }

.meta-bar {
  height: 12px;
  background: #241d15;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.meta-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  border-radius: 7px;
  box-shadow: 0 0 16px rgba(194, 140, 65, 0.9), 0 0 34px rgba(194, 140, 65, 0.45);
}
.meta-hero .mh-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 9px;
}

/* ---------- Card de diagnóstico (gargalo) ---------- */

.diagnostico {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  border: 1px solid;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.diagnostico .dg-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.diagnostico .dg-icon svg { width: 20px; height: 20px; }
.diagnostico .dg-tag {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}
.diagnostico h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.diagnostico p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; max-width: 780px; }
.diagnostico p b { color: var(--cream); font-weight: 700; }
.diagnostico .dg-acao {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.diagnostico .dg-acao .lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.diagnostico .dg-body { flex: 1; min-width: 0; }

.diagnostico.alerta { border-color: rgba(207, 107, 82, 0.4); background: linear-gradient(135deg, rgba(207, 107, 82, 0.08), var(--card) 65%); }
.diagnostico.alerta .dg-icon { background: rgba(207, 107, 82, 0.14); border: 1px solid rgba(207, 107, 82, 0.4); color: var(--red); }
.diagnostico.alerta .dg-tag { color: var(--red); }

.diagnostico.atencao { border-color: rgba(194, 140, 65, 0.4); background: linear-gradient(135deg, rgba(194, 140, 65, 0.08), var(--card) 65%); }
.diagnostico.atencao .dg-icon { background: var(--gold-soft); border: 1px solid rgba(194, 140, 65, 0.4); color: var(--gold-3); }
.diagnostico.atencao .dg-tag { color: var(--gold-3); }

.diagnostico.ok { border-color: rgba(106, 167, 124, 0.35); background: linear-gradient(135deg, rgba(106, 167, 124, 0.07), var(--card) 65%); }
.diagnostico.ok .dg-icon { background: rgba(106, 167, 124, 0.13); border: 1px solid rgba(106, 167, 124, 0.4); color: var(--green); }
.diagnostico.ok .dg-tag { color: var(--green); }

/* ---------- Prioridades do mês ---------- */

.prioridades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 1000px) { .prioridades { grid-template-columns: 1fr; } }

.prio {
  background: linear-gradient(180deg, #1a1611, #141110);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 17px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s, transform 0.18s;
}
.prio:hover { border-color: rgba(194, 140, 65, 0.32); transform: translateY(-2px); }
.prio .p-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-2);
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.prio .p-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; color: var(--cream); }
.prio .p-meta { font-size: 12px; color: var(--text-3); margin-top: 10px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-pill.nao-iniciado { color: var(--text-2); border-color: var(--border); background: var(--bg-2); }
.status-pill.nao-iniciado i { background: var(--text-3); }
.status-pill.execucao { color: var(--gold-3); border-color: rgba(194, 140, 65, 0.4); background: var(--gold-soft); }
.status-pill.execucao i { background: var(--gold); box-shadow: 0 0 8px rgba(194, 140, 65, 0.9); }
.status-pill.concluido { color: var(--green); border-color: rgba(106, 167, 124, 0.4); background: rgba(106, 167, 124, 0.09); }
.status-pill.concluido i { background: var(--green); box-shadow: 0 0 8px rgba(106, 167, 124, 0.8); }

/* ---------- Próxima ação ---------- */

.proxima-acao {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(194, 140, 65, 0.14), var(--card) 70%);
  border: 1px solid rgba(194, 140, 65, 0.32);
  border-radius: var(--radius);
  padding: 17px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card), var(--glow-gold);
}
.proxima-acao .pa-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
  color: #17130f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(194, 140, 65, 0.55);
}
.proxima-acao .pa-icon svg { width: 18px; height: 18px; }
.proxima-acao .pa-lbl { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 4px; }
.proxima-acao .pa-text { font-size: 15px; font-weight: 600; color: var(--cream); }
.proxima-acao .pa-body { flex: 1; min-width: 0; }

/* ---------- Semáforo de saúde ---------- */

.semaforo { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.semaforo i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.semaforo.verde { color: var(--green); }
.semaforo.verde i { background: var(--green); box-shadow: 0 0 9px rgba(106, 167, 124, 0.9); }
.semaforo.amarelo { color: var(--gold-3); }
.semaforo.amarelo i { background: var(--gold); box-shadow: 0 0 9px rgba(194, 140, 65, 0.9); }
.semaforo.vermelho { color: var(--red); }
.semaforo.vermelho i { background: var(--red); box-shadow: 0 0 9px rgba(207, 107, 82, 0.9); }

/* ---------- Seletor de perfil ---------- */

.perfil-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.perfil-switch a {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-2);
}
.perfil-switch a.on {
  background: var(--gold-soft);
  border: 1px solid rgba(194, 140, 65, 0.4);
  color: var(--gold-3);
  font-weight: 700;
}

/* ============================================================
   DASHBOARD DO PERFIL — blocos de negócio
   ============================================================ */

/* ---------- Cabeçalho de seção numerado ---------- */

.secao-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 34px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.secao-head .sh-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-2);
  flex: none;
}
.secao-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream);
}
.secao-head .sh-sub { color: var(--text-3); font-size: 12.5px; margin-left: auto; text-align: right; }

/* ---------- Placar: card de destaque com comparativos ---------- */

.placar-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .placar-grid { grid-template-columns: 1fr; } }

.placar {
  background: linear-gradient(180deg, #1a1611, #141110);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow-card);
}
.placar.destaque { border-color: rgba(194, 140, 65, 0.3); }
.placar .pl-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.placar .pl-big {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
  letter-spacing: 0.5px;
}
.placar .pl-mid { font-size: 24px; font-weight: 800; color: var(--cream); line-height: 1; }

.comparativo { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.comparativo .cp-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; gap: 12px; }
.comparativo .cp-row .cp-lbl { color: var(--text-3); }
.comparativo .cp-row .cp-val { font-weight: 700; }
.comparativo .cp-row .cp-val.up { color: var(--green); }
.comparativo .cp-row .cp-val.down { color: var(--red); }
.comparativo .cp-row .cp-val.neutro { color: var(--text); }

/* ---------- Barras de receita (linhas de produto / canais) ---------- */

.linhas { display: flex; flex-direction: column; gap: 13px; }
.linha {
  display: grid;
  grid-template-columns: 190px 1fr 110px 52px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
@media (max-width: 900px) { .linha { grid-template-columns: 130px 1fr 96px; } .linha .ln-pct { display: none; } }
.linha .ln-name { color: var(--text); font-weight: 600; }
.linha .ln-name small { display: block; color: var(--text-3); font-weight: 400; font-size: 11.5px; margin-top: 2px; }
.linha .ln-track { height: 9px; background: #241d15; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.linha .ln-track i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(194, 140, 65, 0.55);
}
.linha .ln-track i.alt { background: linear-gradient(90deg, #6b5a45, #a08560); box-shadow: none; }
.linha .ln-val { text-align: right; font-weight: 700; color: var(--cream); white-space: nowrap; }
.linha .ln-pct { text-align: right; color: var(--text-3); font-size: 12px; }

/* ---------- Funil comercial ---------- */

.funil { display: flex; flex-direction: column; gap: 4px; }
.funil-row {
  display: grid;
  grid-template-columns: 210px 1fr 128px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}
@media (max-width: 900px) { .funil-row { grid-template-columns: 140px 1fr 92px; gap: 10px; } }
.funil-row .fn-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.funil-row .fn-label small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.funil-row .fn-track {
  position: relative;
  height: 34px;
  background: #1c1710;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.funil-row .fn-track i {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(194, 140, 65, 0.85), rgba(226, 184, 120, 0.6));
  border-radius: 7px;
  box-shadow: 0 0 14px rgba(194, 140, 65, 0.35);
}
.funil-row .fn-qtd {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 800; color: #17130f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.funil-row .fn-qtd.fora { color: var(--cream); text-shadow: none; }
.funil-row .fn-conv { text-align: right; font-size: 13px; }
.funil-row .fn-conv b { font-size: 16px; font-weight: 800; color: var(--cream); display: block; }
.funil-row .fn-conv span { font-size: 11px; color: var(--text-3); }
.funil-row .fn-conv.baixa b { color: var(--red); }
.funil-row .fn-conv.alta b { color: var(--green); }
.funil-row.etapa-programa .fn-track i { background: linear-gradient(90deg, rgba(110, 147, 184, 0.75), rgba(158, 133, 181, 0.55)); box-shadow: 0 0 14px rgba(110, 147, 184, 0.3); }

.funil-legenda {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
}
.funil-legenda b { color: var(--cream); }

/* ---------- Ranking ---------- */

.rank-pos {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  flex: none;
}
.rank-pos.p1 { background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: #17130f; border-color: transparent; box-shadow: 0 0 12px rgba(194, 140, 65, 0.6); }
.rank-pos.p2 { border-color: rgba(194, 140, 65, 0.35); color: var(--gold-3); }

table.data td.num, table.data th.num { text-align: right; }
table.data tr.destaque td { background: rgba(194, 140, 65, 0.05); }

/* ---------- Mini KPIs (base e fidelização) ---------- */

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
.mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color 0.15s;
}
.mini:hover { border-color: rgba(194, 140, 65, 0.3); }
.mini .mn-lbl { font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; }
.mini .mn-val { font-size: 21px; font-weight: 800; color: var(--cream); line-height: 1; }
.mini .mn-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.mini.gold { border-color: rgba(194, 140, 65, 0.3); background: linear-gradient(135deg, rgba(194, 140, 65, 0.07), var(--card) 70%); }
.mini.gold .mn-val { color: var(--gold-3); }

/* ---------- Clientes em risco (semáforo) ---------- */

.risco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 900px) { .risco-grid { grid-template-columns: 1fr; } }

.risco {
  border-radius: var(--radius);
  padding: 17px 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.risco .rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.risco .rc-qtd { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.risco .rc-sub { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.risco.verde { border-color: rgba(106, 167, 124, 0.32); }
.risco.verde .rc-qtd { color: var(--green); }
.risco.amarelo { border-color: rgba(194, 140, 65, 0.35); background: linear-gradient(135deg, rgba(194, 140, 65, 0.06), var(--card) 70%); }
.risco.amarelo .rc-qtd { color: var(--gold-3); }
.risco.vermelho { border-color: rgba(207, 107, 82, 0.4); background: linear-gradient(135deg, rgba(207, 107, 82, 0.07), var(--card) 70%); }
.risco.vermelho .rc-qtd { color: var(--red); }

/* ---------- Eixos de liderança (energia) ---------- */

.eixos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 1000px) { .eixos { grid-template-columns: 1fr; } }

.eixo {
  background: linear-gradient(180deg, #1a1611, #141110);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 19px;
  box-shadow: var(--shadow-card);
}
.eixo .ex-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.eixo .ex-horas { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--cream); line-height: 1; }
.eixo .ex-horas span { font-size: 14px; color: var(--text-2); margin-left: 5px; }
.eixo .ex-bar { height: 7px; background: #241d15; border-radius: 4px; overflow: hidden; margin: 13px 0 6px; border: 1px solid var(--border); }
.eixo .ex-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); border-radius: 4px; box-shadow: 0 0 10px rgba(194, 140, 65, 0.6); }
.eixo .ex-pct { font-size: 12px; color: var(--text-3); }
.eixo ul { list-style: none; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.eixo li { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: var(--text-2); }
.eixo li b { color: var(--cream); font-weight: 700; }

/* ============================================================
   SALA DE COMANDO — saúde da base e fila de intervenção
   ============================================================ */

/* Barra empilhada da saúde da base */
.saude-hero {
  background: linear-gradient(135deg, #1d1710, #14100c 60%);
  border: 1px solid rgba(194, 140, 65, 0.26);
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card), var(--glow-gold);
}
.saude-hero .sd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.saude-hero .sd-lbl { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.saude-hero .sd-total { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; color: var(--cream); }
.saude-hero .sd-total span { font-size: 15px; color: var(--text-2); margin-left: 10px; letter-spacing: 0.5px; }

.saude-bar { display: flex; height: 16px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.saude-bar i { display: block; height: 100%; transition: width 0.3s; }
.saude-bar i.v { background: linear-gradient(90deg, #4f8a63, var(--green)); box-shadow: 0 0 14px rgba(106, 167, 124, 0.5); }
.saude-bar i.a { background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); box-shadow: 0 0 14px rgba(194, 140, 65, 0.6); }
.saude-bar i.r { background: linear-gradient(90deg, #a8523d, var(--red)); box-shadow: 0 0 14px rgba(207, 107, 82, 0.5); }

.saude-legenda { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.saude-legenda .sl-item { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.saude-legenda .sl-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.saude-legenda .sl-item b { font-size: 17px; font-weight: 800; }
.saude-legenda .sl-item span { color: var(--text-3); font-size: 12px; }

/* ---------- Alertas ---------- */

.alertas { display: flex; flex-direction: column; gap: 8px; }
.alerta-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 13px;
  transition: border-color 0.15s, transform 0.15s;
}
.alerta-item:hover { transform: translateX(3px); }
.alerta-item .al-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.alerta-item .al-icon svg { width: 15px; height: 15px; }
.alerta-item .al-body { flex: 1; min-width: 0; }
.alerta-item .al-txt b { color: var(--cream); }
.alerta-item .al-meta { color: var(--text-3); font-size: 11.5px; margin-top: 3px; }
.alerta-item .al-acao { color: var(--gold-2); font-weight: 600; font-size: 12.5px; white-space: nowrap; }

.alerta-item.critico { border-left-color: var(--red); }
.alerta-item.critico .al-icon { background: rgba(207, 107, 82, 0.14); color: var(--red); }
.alerta-item.atencao { border-left-color: var(--gold); }
.alerta-item.atencao .al-icon { background: var(--gold-soft); color: var(--gold-3); }
.alerta-item.bom { border-left-color: var(--green); }
.alerta-item.bom .al-icon { background: rgba(106, 167, 124, 0.13); color: var(--green); }

/* ---------- Filtro por perfil ---------- */

.filtro-perfil { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.filtro-perfil button {
  background: transparent; border: none;
  color: var(--text-2); font-size: 12.5px;
  padding: 6px 15px; border-radius: 999px;
}
.filtro-perfil button.on { background: var(--gold-soft); border: 1px solid rgba(194, 140, 65, 0.4); color: var(--gold-3); font-weight: 700; }

/* ============================================================
   CHECK-IN EM BLOCOS — o que alimenta todos os painéis
   ============================================================ */

.checkin-topo {
  position: sticky;
  top: 63px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(11, 9, 8, 0.97), rgba(11, 9, 8, 0.92));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(194, 140, 65, 0.22);
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.checkin-topo .ct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.checkin-topo .ct-lbl { font-size: 12.5px; color: var(--text-2); }
.checkin-topo .ct-lbl b { color: var(--cream); }
.checkin-topo .ct-pct { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--gold-3); }
.checkin-topo .bar { height: 8px; background: #241d15; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.checkin-topo .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(194, 140, 65, 0.8);
  transition: width 0.25s;
}

.checkin-bloco {
  background: linear-gradient(180deg, #19150f, #141110);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 13px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s;
}
.checkin-bloco.aberto { border-color: rgba(194, 140, 65, 0.3); }
.checkin-bloco.completo { border-color: rgba(106, 167, 124, 0.32); }

.cb-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.cb-head .cb-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-2);
  flex: none;
  min-width: 24px;
}
.cb-head .cb-titulo { font-size: 15px; font-weight: 700; color: var(--cream); }
.cb-head .cb-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.cb-head .cb-info { flex: 1; min-width: 0; }
.cb-head .cb-status { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cb-head .cb-status b { color: var(--gold-3); }
.cb-head .cb-chev { color: var(--text-3); transition: transform 0.2s; flex: none; }
.checkin-bloco.aberto .cb-head .cb-chev { transform: rotate(90deg); }
.checkin-bloco.completo .cb-head .cb-status b { color: var(--green); }

.cb-body { display: none; padding: 0 18px 20px; }
.checkin-bloco.aberto .cb-body { display: block; }
.cb-body .cb-alimenta {
  font-size: 11.5px;
  color: var(--text-3);
  padding: 11px 13px;
  background: rgba(194, 140, 65, 0.05);
  border-left: 2px solid var(--border-gold);
  border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
}
.cb-body .cb-alimenta b { color: var(--gold-2); }

.campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .campos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .campos { grid-template-columns: 1fr; } }
.campos.duas { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .campos.duas { grid-template-columns: 1fr; } }
.campos .field { margin-bottom: 0; }
.campos .field.largo { grid-column: 1 / -1; }

.field.calculado input {
  background: rgba(194, 140, 65, 0.07);
  border-color: rgba(194, 140, 65, 0.28);
  color: var(--gold-3);
  font-weight: 700;
}
.field label .obrig { color: var(--red); margin-left: 3px; }
.field label .dica { color: var(--text-3); font-weight: 400; margin-left: 6px; font-size: 11px; }

.tag-bloco {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid;
  flex: none;
}
.tag-bloco.obrigatorio { color: var(--red); border-color: rgba(207, 107, 82, 0.4); background: rgba(207, 107, 82, 0.08); }
.tag-bloco.opcional { color: var(--text-3); border-color: var(--border); background: var(--bg-2); }

/* linha de equipe (secretárias) dentro do check-in */
.equipe-linha {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1000px) { .equipe-linha { grid-template-columns: 1fr 1fr; } }
.equipe-linha:last-of-type { border-bottom: none; }
.equipe-linha .rm-linha {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-3); border-radius: 7px; width: 30px; height: 34px;
}
.equipe-linha .rm-linha:hover { border-color: rgba(207, 107, 82, 0.5); color: var(--red); }

/* ============================================================
   FUNIL AO VIVO — a Esteira alimentando o funil comercial
   ============================================================ */

.funil-vivo {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: stretch;
}
@media (max-width: 1200px) { .funil-vivo { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .funil-vivo { grid-template-columns: repeat(2, 1fr); } }

.fv-etapa {
  position: relative;
  background: linear-gradient(180deg, #1a1611, #141110);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.fv-etapa:hover { border-color: rgba(194, 140, 65, 0.3); }
.fv-etapa.destaque { border-color: rgba(194, 140, 65, 0.35); background: linear-gradient(180deg, rgba(194, 140, 65, 0.09), #141110 70%); }
.fv-etapa .fv-nome { font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.fv-etapa .fv-qtd {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
  transition: color 0.2s;
}
.fv-etapa.destaque .fv-qtd { color: var(--gold-3); }
.fv-etapa .fv-conv { font-size: 11.5px; margin-top: 7px; color: var(--text-2); }
.fv-etapa .fv-conv b { color: var(--gold-3); font-weight: 700; }
.fv-etapa .fv-conv.baixa b { color: var(--red); }
.fv-etapa .fv-conv.alta b { color: var(--green); }

/* pulso quando o número muda ao arrastar um card */
@keyframes pulsoNumero {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); color: var(--gold-3); }
  100% { transform: scale(1); }
}
.fv-qtd.mudou { animation: pulsoNumero 0.45s ease-out; }

.funil-vivo-rodape {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
.funil-vivo-rodape b { color: var(--cream); }

/* ---------- Referências do método (benchmarks) ---------- */

.ref-linha {
  display: grid;
  grid-template-columns: 1.6fr 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .ref-linha { grid-template-columns: 1fr 100px; } .ref-linha .ref-nota { grid-column: 1 / -1; } }
.ref-linha:last-child { border-bottom: none; }
.ref-linha .ref-nome { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ref-linha .ref-nome small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.ref-linha input {
  background: var(--bg-2);
  border: 1px solid rgba(194, 140, 65, 0.3);
  border-radius: var(--radius-sm);
  color: var(--gold-3);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  outline: none;
  width: 100%;
}
.ref-linha input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 140, 65, 0.14); }
.ref-linha .ref-nota { font-size: 12px; color: var(--text-3); }

.aviso-provisorio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(207, 107, 82, 0.07);
  border: 1px solid rgba(207, 107, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.aviso-provisorio svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 1px; }
.aviso-provisorio b { color: var(--cream); }

/* ---------- Insight inline ---------- */

.insight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(194, 140, 65, 0.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.insight svg { width: 16px; height: 16px; color: var(--gold-3); flex: none; margin-top: 1px; }
.insight b { color: var(--cream); }

/* ---------- Polish premium ---------- */

.cal-head .cal-title { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; }
.placa .pl-value { font-size: 36px; font-weight: 500; letter-spacing: 0.5px; }
.placa { box-shadow: var(--shadow-card); transition: transform 0.18s, box-shadow 0.18s; }
.placa:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), var(--glow-gold); }
.file-card, .aula-card { box-shadow: var(--shadow-card); transition: border-color 0.15s, transform 0.15s; }
.file-card:hover, .aula-card:hover { border-color: rgba(194, 140, 65, 0.3); transform: translateY(-2px); }
.kcol { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.modal { box-shadow: var(--shadow-pop), var(--glow-gold); }
.plan-card { background: linear-gradient(180deg, rgba(194, 140, 65, 0.07), rgba(20, 20, 20, 0.6)); border-color: rgba(194, 140, 65, 0.2); }
table.data th { letter-spacing: 0.4px; text-transform: uppercase; font-size: 10.5px; }

/* ============================================================
   Camada NEON — vida, brilho e movimento
   ============================================================ */

/* Ícones minimalistas: traço fino e cantos arredondados em todos os SVGs */
svg { stroke-width: 1.6 !important; stroke-linecap: round; stroke-linejoin: round; }

/* Entrada suave do conteúdo */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.content > * { animation: fadeUp 0.45s ease-out backwards; }

/* Sem animação, o conteúdo tem de aparecer: fill backwards deixaria tudo em opacity 0 */
@media (prefers-reduced-motion: reduce) {
  .content > *, .placa, .icon-btn .dot { animation: none !important; }
}
@media print {
  .content > * { animation: none !important; }
}
.content > *:nth-child(1) { animation-delay: 0.02s; }
.content > *:nth-child(2) { animation-delay: 0.08s; }
.content > *:nth-child(3) { animation-delay: 0.14s; }
.content > *:nth-child(4) { animation-delay: 0.2s; }
.content > *:nth-child(5) { animation-delay: 0.26s; }

/* Item ativo do menu: barra neon lateral */
.side-nav a { position: relative; }
.side-nav a.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-3), var(--gold));
  box-shadow: 0 0 12px rgba(194, 140, 65, 0.9), 0 0 26px rgba(194, 140, 65, 0.45);
}

/* Sino: pulso vivo na notificação */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 140, 65, 0.55); }
  55% { box-shadow: 0 0 0 5px rgba(194, 140, 65, 0); }
}
.icon-btn .dot { animation: pulseDot 2.2s ease-out infinite; }

/* Barras de progresso: preenchimento neon */
.progress-line .bar i,
.plan-card .bar i,
.trilha-head .t-progress .bar i {
  box-shadow: 0 0 10px rgba(194, 140, 65, 0.65), 0 0 22px rgba(194, 140, 65, 0.3);
}

/* Valores de KPI com respiro dourado */
.kpi .k-value { text-shadow: 0 0 26px rgba(194, 140, 65, 0.16); }
.kpi.gold-outline .k-value { text-shadow: 0 0 28px rgba(194, 140, 65, 0.35); }

/* Chips e dots de status com brilho da própria cor */
.chip.ativo { box-shadow: 0 0 10px rgba(76, 175, 125, 0.25); }
.chip.pendente { box-shadow: 0 0 10px rgba(224, 82, 82, 0.25); }
.chip.atencao, .chip.retorno { box-shadow: 0 0 10px rgba(194, 140, 65, 0.25); }
.chip.followup { box-shadow: 0 0 10px rgba(155, 127, 212, 0.25); }
.chip.oportunidade { box-shadow: 0 0 10px rgba(91, 141, 217, 0.25); }
.d-dot.ok { box-shadow: 0 0 7px rgba(76, 175, 125, 0.9); }
.d-dot.today { box-shadow: 0 0 8px rgba(194, 140, 65, 1); }
.d-dot.pend { box-shadow: 0 0 7px rgba(224, 82, 82, 0.9); }
.cal-grid .day.today { box-shadow: var(--glow-gold); }

/* Checkbox marcada ganha brilho */
.task input[type="checkbox"]:checked,
.dt-item input[type="checkbox"]:checked { box-shadow: 0 0 9px rgba(194, 140, 65, 0.7); border-radius: 4px; }

/* Wordmark: sublinhado EXCLUSIVE com neon */
.wordmark .wm-sub { box-shadow: 0 1px 14px rgba(194, 140, 65, 0.2); }

/* Tags FIXA com leve neon */
.tag:not(.gray) { box-shadow: 0 0 9px rgba(194, 140, 65, 0.2); }

/* Placas de premiação: brilho que respira */
@keyframes breathe {
  0%, 100% { box-shadow: var(--shadow-card), 0 0 18px rgba(194, 140, 65, 0.12); }
  50% { box-shadow: var(--shadow-card), 0 0 30px rgba(194, 140, 65, 0.28); }
}
.placa { animation: breathe 4s ease-in-out infinite; }

/* Cabeçalho da coluna do kanban: contador dourado */
.kcol-head .count { color: var(--gold-2); border-color: rgba(194, 140, 65, 0.3); }

/* Foco de inputs com anel neon */
.field input:focus, .field select:focus, .field textarea:focus,
.search-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 140, 65, 0.14), 0 0 16px rgba(194, 140, 65, 0.18); }

/* Toast neon */
.toast { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 18px rgba(194, 140, 65, 0.25); }

/* Avatar da página de detalhe / login: anel dourado */
.avatar.dark { box-shadow: 0 0 12px rgba(194, 140, 65, 0.25); }

/* ---------- Utilidades ---------- */

.muted { color: var(--text-2); }
.small { font-size: 12px; }
.gold { color: var(--gold-2); }
.mb-0 { margin-bottom: 0; }
.mt-18 { margin-top: 18px; }

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 18px 14px 40px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MAQUETE — menu de dois níveis.
   Coluna 1 = contêiner (Performance, Comercial, Mentoria).
   Coluna 2 = o que existe dentro dele.
   Só vale se TODO item do nível 1 tiver conteúdo; se um for tela solta, a
   segunda coluna fica vazia e o padrão vira estorvo.
   ══════════════════════════════════════════════════════════════════════════ */

.app.duplo { display: flex; }

.nivel1 {
  width: 208px; min-width: 208px; flex: none;
  background: linear-gradient(180deg, #100e0c 0%, #0a0a0a 100%);
  border-right: 1px solid rgba(194,140,65,.14);
  display: flex; flex-direction: column;
  padding: 18px 0 14px; height: 100vh; position: sticky; top: 0;
  overflow-y: auto;
}
.n1-marca { width: 108px; margin: 0 auto 20px; display: block; mix-blend-mode: screen; }
.n1-rotulo {
  font-size: 9px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--text-3); padding: 14px 16px 7px;
}
.n1-itens { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.n1-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; margin: 0 8px; border-radius: 9px;
  cursor: pointer; color: var(--text-2); text-decoration: none;
  font-size: 13px; transition: background .16s, color .16s;
}
.n1-item svg { width: 17px; height: 17px; flex: none; }
/* sem rótulo de grupo: a leitura vem do espaçamento, não de palavra */
.n1-itens { gap: 2px; }
.n1-item .tag {
  margin-left: auto; font-size: 8.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3);
}
.n1-item:hover { color: var(--cream-2); background: rgba(194,140,65,.07); }
.n1-item.on { color: var(--gold-3); background: rgba(194,140,65,.13); }
.n1-item.on .tag { color: var(--gold-2); }
.n1-rodape { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(194,140,65,.1); }

.nivel2 {
  width: 232px; min-width: 232px; flex: none;
  background: var(--bg-2); border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0; overflow-y: auto;
  padding: 20px 0 14px;
}
.n2-topo { padding: 0 18px 16px; border-bottom: 1px solid rgba(194,140,65,.1); margin-bottom: 12px; }
.n2-titulo { font-family: var(--serif); font-size: 17px; letter-spacing: 1px; text-transform: uppercase; color: var(--cream); }
.n2-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.n2-grupo { font-size: 9px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-3); padding: 12px 18px 6px; }
.n2-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; font-size: 13px; color: var(--text-2);
  text-decoration: none; border-left: 2px solid transparent;
  transition: color .16s, background .16s;
}
.n2-item svg { width: 16px; height: 16px; flex: none; }
.n2-item:hover { color: var(--cream); background: rgba(194,140,65,.05); }
.n2-item.on { color: var(--gold-3); background: rgba(194,140,65,.09); border-left-color: var(--gold); }

.nivel2[hidden] { display: none; }
@media (max-width: 1000px) { .nivel2 { display: none; } }

/* ── Nível 1 em ícones quando a segunda coluna está aberta ──────────────
   440px de menu não deixam o inbox de três colunas respirar. Com o
   primeiro nível em ícones sobra o suficiente, e o rótulo volta como dica
   ao passar o mouse. */
.app.com-n2 .nivel1 { width: 64px; min-width: 64px; }
.app.com-n2 .n1-marca { width: 30px; margin-bottom: 16px; }
.app.com-n2 .n1-item { justify-content: center; padding: 11px 0; margin: 0 7px; gap: 0; }
.app.com-n2 .n1-item svg { width: 19px; height: 19px; }
.app.com-n2 .n1-txt { display: none; }
.app.com-n2 .n1-rodape { padding: 12px 6px 0; }
.app.com-n2 .n1-rodape .sp-row span:first-child { display: none; }
.app.com-n2 .n1-rodape .sp-row { justify-content: center; }

/* O inbox precisa saber que o menu ocupa espaço: sem isso o painel do
   contato só sumiria em telas pequenas, e o problema é a LARGURA ÚTIL. */
.inbox { grid-template-columns: 264px 1fr 252px; }
@media (max-width: 1400px) { .inbox { grid-template-columns: 248px 1fr; } .inbox .ib-contato { display: none; } }
@media (max-width: 1000px) { .inbox { grid-template-columns: 1fr; height: auto; } .inbox .ib-lista { max-height: 300px; } }

/* Nunca deixar a conversa espremida a ponto de quebrar palavra por letra */
.inbox .msgs { min-width: 0; }
.msg { min-width: 120px; word-break: normal; overflow-wrap: anywhere; }

/* ── Seta de recolher o primeiro nível ─────────────────────────────────── */
/* Não repetir position aqui: a regra base usa `sticky`, e sticky já serve
   de âncora para o botão absoluto. Escrever `relative` mataria a fixação
   do menu ao rolar a página. */
.nivel1 { transition: width .22s ease, min-width .22s ease; }
.n1-toggle {
  position: absolute; top: 14px; right: 10px;
  width: 24px; height: 24px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-3); transition: color .16s, border-color .16s, transform .22s;
}
.n1-toggle:hover { color: var(--gold-3); border-color: var(--border-gold); }
.n1-toggle svg { width: 14px; height: 14px; }
.n1-simbolo { display: none; }

/* Recolhido: a seta desce para não cobrir a marca, e o símbolo substitui
   o lockup — foi o mesmo ajuste que o Tg pediu no menu antigo. */
.app.com-n2 .n1-toggle { position: relative; top: auto; right: auto; margin: 0 auto 10px; }
.app.com-n2 .n1-toggle svg { transform: rotate(180deg); }
.app.com-n2 .n1-marca { display: none; }
.app.com-n2 .n1-simbolo {
  display: block; width: 30px; margin: 0 auto 16px;
  mix-blend-mode: screen; filter: drop-shadow(0 0 7px rgba(194,140,65,.4));
}

/* ══════════════════════════════════════════════════════════════════════
   CONFIGURAÇÕES DO CRM
   A lista de seções é COLUNA (nivel3), irmã do nível 2 — não um cartão
   dentro do conteúdo. Abaixo de 1120px não cabem três colunas, então ela
   deita como faixa no topo do conteúdo. O app.js monta as duas.
   ══════════════════════════════════════════════════════════════════════ */

.nivel3 {
  width: 214px; min-width: 214px; flex: none;
  background: var(--card); border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0; overflow-y: auto;
  padding: 20px 0 14px;
  display: flex; flex-direction: column;
}
/* Os itens do nível 3 são <button>, não <a>: precisam desmanchar o estilo
   que o navegador dá a botão, senão vêm com fundo, borda e fonte própria. */
.nivel3 .n2-item {
  width: 100%; border: 0; border-left: 2px solid transparent;
  background: transparent; cursor: pointer;
  font-family: inherit; text-align: left;
}
.nivel3 .n2-item.on { border-left-color: var(--gold); }

.cfg-faixa {
  display: none; gap: 4px; overflow-x: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; margin-bottom: 20px;
}
.cfg-faixa::-webkit-scrollbar { height: 0; }
.cfg-faixa .cfg-item {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 12px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); white-space: nowrap;
  font-family: inherit; font-size: 13px; transition: background .16s, color .16s;
}
.cfg-faixa .cfg-item svg { width: 16px; height: 16px; flex: none; }
.cfg-faixa .cfg-item:hover { color: var(--cream-2); background: rgba(194,140,65,.07); }
.cfg-faixa .cfg-item.on { color: var(--gold-3); background: rgba(194,140,65,.13); }

@media (max-width: 1120px) {
  .nivel3 { display: none; }
  .cfg-faixa { display: flex; }
}

.cfg-corpo { min-width: 0; }
.cfg-sec { display: none; }
.cfg-sec.on { display: block; animation: fadeUp .3s ease-out backwards; }
.cfg-h2 {
  font-family: var(--serif); font-size: 21px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cream); margin-bottom: 4px;
}
.cfg-intro { font-size: 13px; color: var(--text-2); line-height: 1.65; margin: 10px 0 18px; max-width: 640px; }
.cfg-intro b { color: var(--cream-2); }

.cfg-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.cfg-card-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.cfg-card-head > svg { width: 17px; height: 17px; color: var(--gold-2); flex: none; margin-top: 2px; }
.cfg-card-head h3 { font-size: 14.5px; font-weight: 700; color: var(--cream); }
.cfg-card-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.cfg-p { font-size: 12.8px; color: var(--text-2); line-height: 1.68; margin: 10px 0 0; max-width: 620px; }
.cfg-p b { color: var(--cream-2); }
.cfg-p.mini { font-size: 12px; color: var(--text-3); }
.cfg-card > .btn { margin-top: 14px; }

.cfg-topo-acao {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 18px 0 0;
}
.cfg-topo-acao h3 { font-size: 14.5px; font-weight: 700; color: var(--cream); }

/* campos */
.cfg-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .cfg-campos { grid-template-columns: 1fr; } }
.cfg-campo label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 6px; }
.cfg-campo input, .cfg-area {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  color: var(--text); font-family: inherit; font-size: 13px;
  transition: border-color .16s, box-shadow .16s;
}
.cfg-campo input:focus, .cfg-area:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,140,65,.14);
}
.cfg-campo input[readonly] { color: var(--text-3); cursor: not-allowed; }
.cfg-campo .ajuda, .cfg-card > .ajuda { font-size: 11px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.cfg-area { margin-top: 12px; resize: vertical; line-height: 1.6; }

.cfg-foto { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar.grande { width: 62px; height: 62px; font-size: 19px; }
.btn.ghost { border-color: var(--border); color: var(--text-3); background: transparent; margin-left: 8px; }
.btn.small-btn { padding: 6px 11px; font-size: 12px; }
.btn.perigo { border-color: rgba(207,107,82,.4); color: var(--red); background: rgba(207,107,82,.07); }
.btn.perigo:hover:not(:disabled) { border-color: var(--red); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.dias { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.dia {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text-3); font-family: inherit; font-size: 12px;
  transition: color .16s, border-color .16s, background .16s;
}
.dia.on { color: var(--gold-3); border-color: var(--border-gold); background: var(--gold-soft); }

/* chave liga/desliga */
.cfg-linha {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.cfg-linha:last-child { border-bottom: none; }
.cfg-linha .cl-txt { flex: 1; min-width: 0; }
.cfg-linha .cl-txt b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.cfg-linha .cl-txt small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.sw {
  width: 40px; height: 22px; border-radius: 999px; flex: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); padding: 0;
  position: relative; transition: background .18s, border-color .18s;
}
.sw i {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-3); transition: transform .18s, background .18s;
}
.sw.on { background: var(--gold-soft); border-color: var(--border-gold); }
.sw.on i { transform: translateX(18px); background: var(--gold); }

/* escolha única */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.opt {
  padding: 13px 12px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text-2); font-family: inherit; font-size: 13px; font-weight: 600;
  text-align: center; transition: color .16s, border-color .16s, background .16s;
}
.opt span { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-3); margin-top: 4px; }
.opt:hover { border-color: var(--border-gold); }
.opt.on { color: var(--gold-3); border-color: var(--border-gold); background: var(--gold-soft); }
.opt.on span { color: var(--gold-2); }

/* papéis e permissões */
.papel { font-size: 12px; font-weight: 700; }
.papel.gold-3 { color: var(--gold-3); }
.papel.blue { color: var(--blue); }
.papel.text-2 { color: var(--text-2); }
.permi { display: flex; gap: 12px; padding: 7px 0; font-size: 12.5px; color: var(--text-2); }
.permi > span { flex: none; width: 78px; }

/* funis */
.fn-linha { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.fn-linha:last-child { border-bottom: none; }
.fn-cor { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.fn-cor.alt { background: var(--blue); }
.fn-txt { flex: 1; min-width: 0; }
.fn-txt b { font-size: 13.5px; color: var(--cream); }
.fn-txt .chip { margin-left: 8px; }
.fn-txt small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

/* etiquetas dos campos */
.tg-lista { display: flex; flex-wrap: wrap; gap: 7px; }
.tg {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 6px 5px 11px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2);
}
.tg-x {
  width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: var(--text-3); display: grid; place-items: center;
}
.tg-x svg { width: 10px; height: 10px; }
.tg-x:hover { color: var(--red); background: rgba(207,107,82,.12); }
.tg-add { display: flex; gap: 8px; margin-top: 13px; }
.tg-add input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  color: var(--text); font-family: inherit; font-size: 12.5px;
}
.tg-add input:focus { outline: none; border-color: var(--gold); }

/* scripts */
.sc-item { padding: 15px 0; border-bottom: 1px solid var(--border); }
.sc-item:first-child { padding-top: 0; }
.sc-item:last-child { border-bottom: none; padding-bottom: 0; }
.sc-topo { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sc-topo b { font-size: 13.5px; color: var(--cream); }
.sc-txt {
  font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin: 8px 0 10px;
  padding-left: 12px; border-left: 2px solid var(--border-gold); max-width: 640px;
}
.sc-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* integrações */
.ig-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ig-item:first-child { padding-top: 0; }
.ig-item:last-child { border-bottom: none; padding-bottom: 0; }
.ig-txt { flex: 1; min-width: 190px; }
.ig-txt b { font-size: 13.5px; color: var(--cream); }
.ig-txt small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ig-det { font-size: 11.5px; color: var(--gold-2); margin-top: 5px; }
.ig-lado { display: flex; align-items: center; gap: 10px; flex: none; }

/* o que a mentoria vê */
.ve-lista { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ve-lista li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; }
.ve-lista svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ve-lista .ok { color: var(--cream-2); }
.ve-lista .ok svg { color: var(--green); }
.ve-lista .no { color: var(--text-2); }
.ve-lista .no svg { color: var(--red); }

/* sessões */
.sess { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.sess:last-of-type { border-bottom: none; }
.sess b { font-size: 13px; color: var(--text); }
.sess small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.sess.atual b { color: var(--gold-3); }

/* zona de perigo */
.perigo-box { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid rgba(207,107,82,.22); background: rgba(207,107,82,.05); }
.perigo-box label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 8px; }
.perigo-box label b { color: var(--red); }
.perigo-linha { display: flex; gap: 9px; flex-wrap: wrap; }
.perigo-linha input {
  flex: 1; min-width: 130px; background: var(--bg-2);
  border: 1px solid rgba(207,107,82,.3); border-radius: var(--radius-sm);
  padding: 8px 12px; color: var(--text); font-family: inherit; font-size: 12.5px;
}
.perigo-linha input:focus { outline: none; border-color: var(--red); }


/* ══════════════════════════════════════════════════════════════════════
   ABAS NOVAS DO CRM — Tarefas, Templates, E-mails, Relatórios
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tarefas ─────────────────────────────────────────────────────────── */
/* Reaproveita .dt-item, que já sabe riscar o texto quando marca o check. */
.dt-item .dt-name small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.dt-item.vencida { border-color: rgba(207,107,82,.35); background: rgba(207,107,82,.04); }
.dt-item.vencida .dt-time { color: var(--red); }
.dt-item .tf-quem { font-size: 12px; color: var(--text-2); flex: none; min-width: 62px; text-align: right; }
.dt-item .tf-val { font-size: 12.5px; font-weight: 700; color: var(--gold-3); flex: none; min-width: 76px; text-align: right; }
.dt-item .chip { flex: none; }
@media (max-width: 860px) {
  .dt-item { flex-wrap: wrap; }
  .dt-item .dt-name { flex: 1 1 100%; }
  .dt-item .tf-quem, .dt-item .tf-val { min-width: 0; text-align: left; }
}

/* ── Templates ───────────────────────────────────────────────────────── */
.filtros { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
/* Renomeado de .tpl: esse nome já era do atalho de template dentro do
   inbox, e a regra daqui, sendo mais nova, vencia e quebrava o chip. */
.tmpl { padding: 15px 0; border-bottom: 1px solid var(--border); }
.tmpl:last-child { border-bottom: none; padding-bottom: 0; }
.tmpl[hidden] { display: none; }
.tmpl-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tmpl-topo b { font-size: 13.5px; color: var(--cream); }
.tmpl-txt {
  font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin: 9px 0 11px;
  padding-left: 12px; border-left: 2px solid var(--border-gold); max-width: 660px;
}
.tmpl-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tmpl-uso { font-size: 12px; color: var(--text-3); }
.tmpl-taxa { color: var(--text-2); }
.tmpl-taxa.forte { color: var(--green); }
.tmpl-taxa.fraca { color: var(--red); }
.tmpl-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── E-mails: a sequência de follow-up ───────────────────────────────── */
.seq { position: relative; padding-left: 22px; }
.seq::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
.passo { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 9px 0; }
.passo::before {
  content: ""; position: absolute; left: -21px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg);
}
.ps-dia {
  flex: none; min-width: 42px; font-size: 11.5px; font-weight: 700;
  color: var(--gold-3); padding-top: 1px;
}
.ps-txt { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ── Relatórios ──────────────────────────────────────────────────────── */
/* O degrau da Esteira tem 5 colunas; aqui só 4 fazem sentido. */
.degrau.simples { grid-template-columns: 200px 1fr 84px 76px; }
.degrau .dg-n { text-align: right; font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (max-width: 860px) {
  .degrau.simples { grid-template-columns: 1fr 68px 62px; }
  .degrau.simples .dg-barra { grid-column: 1 / -1; order: 3; }
}

.barras { display: flex; flex-direction: column; gap: 9px; }
.barra { display: grid; grid-template-columns: 210px 1fr 44px; gap: 13px; align-items: center; }
.ba-nome { font-size: 13px; color: var(--text-2); }
.ba-tr { height: 20px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.ba-tr i { display: block; height: 100%; background: linear-gradient(90deg, rgba(194,140,65,.7), rgba(226,184,120,.45)); }
.ba-n { text-align: right; font-size: 13px; font-weight: 700; color: var(--cream); }
@media (max-width: 720px) { .barra { grid-template-columns: 1fr 40px; } .barra .ba-tr { grid-column: 1 / -1; } }

/* Etiqueta "pode ficar em branco" ao lado do rótulo do campo. Dizer que é
   opcional no próprio label evita o formulário travar em quem não sabe o
   valor ainda — que é a maioria de quem cria um card de lead novo. */
.field label .opcional {
  font-size: 10px; font-weight: 500; letter-spacing: .3px;
  color: var(--text-3); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 7px; margin-left: 7px;
  text-transform: lowercase;
}

/* ══════════════════════════════════════════════════════════════════════
   ETIQUETAS COM COR
   A cor existe para bater o olho na coluna do Kanban e entender sem ler.
   Fundo lavado e borda da própria cor: no preto quente da marca, chip de
   cor sólida grita mais que o conteúdo do card.
   ══════════════════════════════════════════════════════════════════════ */

.etq {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; line-height: 1.55;
  font-family: inherit; letter-spacing: .1px;
  border: 1px solid transparent; cursor: default; white-space: nowrap;
  /* Trava: por mais longa que a etiqueta seja, ela para na borda do card e
     corta com reticências. Sem isso, uma etiqueta nova e comprida quebra o
     card de novo — e quem cria etiqueta é o mentorado, não a gente. */
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.etq[data-cor="ouro"]      { color: var(--gold-3); border-color: rgba(194,140,65,.45); background: rgba(194,140,65,.12); }
.etq[data-cor="verde"]     { color: #7cbb92;       border-color: rgba(106,167,124,.45); background: rgba(106,167,124,.12); }
.etq[data-cor="azul"]      { color: #86a9cc;       border-color: rgba(111,147,184,.45); background: rgba(111,147,184,.12); }
.etq[data-cor="roxo"]      { color: #b39ac7;       border-color: rgba(158,133,181,.45); background: rgba(158,133,181,.12); }
.etq[data-cor="rosa"]      { color: #d197ac;       border-color: rgba(196,127,155,.45); background: rgba(196,127,155,.12); }
.etq[data-cor="turquesa"]  { color: #6fb3aa;       border-color: rgba(95,163,155,.45);  background: rgba(95,163,155,.12); }
.etq[data-cor="vermelho"]  { color: #dd8570;       border-color: rgba(207,107,82,.45);  background: rgba(207,107,82,.12); }
.etq[data-cor="neutro"]    { color: var(--text-2); border-color: var(--border);         background: var(--bg-2); }

/* no card do Kanban */
.kc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 3px; min-width: 0; }

/* editor em Configurações › Campos */
.etq-lista { display: flex; flex-direction: column; }
.etq-linha {
  display: grid; grid-template-columns: 1fr auto 108px 24px;
  gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.etq-linha:last-child { border-bottom: none; }
.etq-linha > .etq { justify-self: start; }
.etq-ticket {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 9px;
  color: var(--text); font-family: inherit; font-size: 12px; width: 100%;
}
.etq-ticket:focus { outline: none; border-color: var(--gold); }
.etq-ticket::placeholder { color: var(--text-3); }

.cores { display: flex; gap: 5px; }
.cor {
  width: 15px; height: 15px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s, border-color .12s;
}
.cor:hover { transform: scale(1.18); }
.cor.on { border-color: var(--cream); }
.cor[data-cor="ouro"]     { background: #c28c41; }
.cor[data-cor="verde"]    { background: #6aa77c; }
.cor[data-cor="azul"]     { background: #6f93b8; }
.cor[data-cor="roxo"]     { background: #9e85b5; }
.cor[data-cor="rosa"]     { background: #c47f9b; }
.cor[data-cor="turquesa"] { background: #5fa39b; }
.cor[data-cor="vermelho"] { background: #cf6b52; }
.cor[data-cor="neutro"]   { background: #4a443b; }

.etq-nova {
  display: grid; grid-template-columns: 1fr auto 130px auto;
  gap: 10px; align-items: center; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.etq-nova input {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 11px;
  color: var(--text); font-family: inherit; font-size: 12.5px; width: 100%;
}
.etq-nova input:focus { outline: none; border-color: var(--gold); }

@media (max-width: 820px) {
  .etq-linha, .etq-nova { grid-template-columns: 1fr auto; }
  .etq-linha .cores, .etq-nova .cores { grid-column: 1 / -1; }
}

/* seletor dentro do formulário do Kanban */
.etq-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.etq-picker .etq { cursor: pointer; opacity: .45; transition: opacity .14s; }
.etq-picker .etq:hover { opacity: .8; }
.etq-picker .etq.on { opacity: 1; box-shadow: 0 0 0 1px currentColor inset; }

/* ══════════════════════════════════════════════════════════════════════
   ETAPAS DO FUNIL — nome do mentorado × degrau do método
   O nome é editável; o degrau é o que a mentoria compara na base inteira.
   Por isso um é campo e o outro é etiqueta: pesos visuais diferentes para
   coisas com donos diferentes.
   ══════════════════════════════════════════════════════════════════════ */

.et-lista { display: flex; flex-direction: column; }
.et-linha {
  display: grid; grid-template-columns: 24px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.et-linha:last-child { border-bottom: none; }
.et-n {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--gold-2);
  border: 1px solid var(--border-gold); background: var(--gold-soft);
}
.et-nome {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 11px; width: 100%;
  color: var(--text); font-family: inherit; font-size: 13px;
}
.et-nome:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,140,65,.14); }
.et-liga { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.et-degrau {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  border: 1px dashed var(--border); border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}

.et-nova {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 10px; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.et-nova input, .et-select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 11px;
  color: var(--text); font-family: inherit; font-size: 12.5px;
}
.et-nova input { width: 100%; }
.et-select { appearance: none; padding-right: 26px; cursor: pointer; }
.et-nova input:focus, .et-select:focus { outline: none; border-color: var(--gold); }

@media (max-width: 780px) {
  .et-linha, .et-nova { grid-template-columns: 1fr; gap: 7px; }
  .et-linha .et-n { justify-self: start; }
  .et-liga { display: none; }
}
