/* =========================================================
   LikeClass — Estilos globais
   Ajuste as cores da marca nas variáveis abaixo (--brand*)
   ========================================================= */
:root {
  --brand: #8e24c8;
  --brand-dark: #6c1aa0;
  --brand-soft: #f3e8fb;
  --cyan: #00e5f0;
  --magenta: #cf1db2;
  --grad: linear-gradient(135deg, #00d9ee 0%, #7b4fd8 50%, #cf1db2 100%);
  --accent: #00c4d8;
  --ink: #1d1233;
  --text: #3b475e;
  --muted: #6b7690;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --ok: #12a150;
  --warn: #d98a00;
  --danger: #d93b3b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 51, .08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 14px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.logo img { height: 56px; width: auto; }
.logo .logo-text span { color: var(--brand); }
.logo img + .logo-text { display: none; }          /* esconde o texto quando a imagem carrega */
.logo img.missing { display: none; }
.logo img.missing + .logo-text { display: inline; } /* mostra o texto se a imagem faltar */

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 20px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 1.15rem; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--ink); }
.hero-stats small { color: var(--muted); }
.hero-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px;
  border: 1px solid var(--line);
}
.hero-card h4 { margin-bottom: 18px; }
.kpi { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kpi:last-child { border-bottom: 0; }
.kpi .bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 99px; margin: 0 14px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.kpi b { color: var(--ink); min-width: 44px; text-align: right; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding: 4px 0 4px 22px; position: relative; font-size: .93rem; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Cursos ---------- */
.course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course .thumb {
  height: 140px; display: grid; place-items: center; font-size: 2.6rem; color: #fff;
  background: var(--grad);
}
.course .thumb.alt { background: linear-gradient(135deg, #cf1db2, #7b4fd8); }
.course .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course .meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); margin: 8px 0 16px; }
.course .body .btn { margin-top: auto; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--brand); letter-spacing: .05em; }

/* ---------- SaaS ---------- */
.saas { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.saas-mock {
  background: var(--ink); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
}
.saas-mock .dots { display: flex; gap: 6px; margin-bottom: 14px; }
.saas-mock .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff33; }
.saas-mock .screen { background: #fff; border-radius: 10px; padding: 18px; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.saas-mock .screen div { background: var(--bg-alt); border-radius: 8px; padding: 12px; font-size: .78rem; }
.saas-mock .screen div b { display: block; font-size: 1.2rem; color: var(--ink); }
.saas-mock .screen .wide { grid-column: span 3; height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.saas-mock .screen .wide span { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .85; }
.check-list { list-style: none; margin: 22px 0 30px; }
.check-list li { padding: 8px 0 8px 32px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* ---------- Método ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 28px; font-size: 2.4rem; font-weight: 800; color: var(--brand); opacity: .25;
}

/* ---------- Depoimentos ---------- */
.quote p { font-style: italic; margin-bottom: 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.quote .who small { display: block; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: var(--grad); color: #fff;
  border-radius: 22px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: .9rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e7f7ee; color: var(--ok); }
.form-msg.err { background: #fdecec; color: var(--danger); }
.contact-info { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b8c1d6; padding: 64px 0 28px; margin-top: 90px; }
.footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .copy { border-top: 1px solid #ffffff1a; margin-top: 44px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.whats {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 60;
}

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   ÁREA DO CLIENTE
   ========================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--grad); color: #fff;
  padding: 60px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }
.auth-side .logo { color: #fff; }
.auth-side .logo .logo-text span { color: #fff; opacity: .8; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-box p.sub { color: var(--muted); margin-bottom: 28px; }
.hint { font-size: .82rem; color: var(--muted); background: var(--bg-alt); padding: 10px 12px; border-radius: 8px; margin-top: 16px; }

.app { display: none; min-height: 100vh; grid-template-columns: 250px 1fr; }
.app.active { display: grid; }
.sidebar { background: var(--ink); color: #b8c1d6; padding: 24px 16px; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; padding: 0 10px 24px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button {
  background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 11px 14px;
  border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.sidebar nav button:hover { background: #ffffff12; color: #fff; }
.sidebar nav button.active { background: var(--brand); color: #fff; }
.sidebar .logout { margin-top: auto; }
.main { background: var(--bg-alt); padding: 28px 36px; overflow-x: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.5rem; }
.user-chip { display: flex; align-items: center; gap: 10px; background: #fff; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); }
.user-chip .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.panel { display: none; }
.panel.active { display: block; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat small { color: var(--muted); font-size: .82rem; }
.stat strong { display: block; font-size: 1.6rem; color: var(--ink); margin-top: 4px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.box h3 { font-size: 1.05rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.badge.ok { background: #e7f7ee; color: var(--ok); }
.badge.warn { background: #fff4e0; color: var(--warn); }
.badge.danger { background: #fdecec; color: var(--danger); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.progress { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); }
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.timeline li.done::before { border-color: var(--ok); background: var(--ok); }
.timeline li.now::before { border-color: var(--brand); }
.timeline small { color: var(--muted); display: block; }

.modal-bg { position: fixed; inset: 0; background: rgba(15,27,51,.55); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-bg.show { display: grid; }
.modal { background: #fff; border-radius: 18px; padding: 28px; width: 100%; max-width: 480px; }
.modal h3 { margin-bottom: 6px; }
.linha-digitavel { font-family: ui-monospace, Consolas, monospace; background: var(--bg-alt); padding: 14px; border-radius: 10px; font-size: .88rem; word-break: break-all; margin: 16px 0; color: var(--ink); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; transition: .3s; z-index: 200; font-size: .9rem; }
.toast.show { transform: translateX(-50%) translateY(0); }
.mobile-menu { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero .container, .saas { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app.active { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: .3s; z-index: 90; }
  .sidebar.open { transform: none; }
  .mobile-menu { display: inline-flex; }
  .main { padding: 20px 16px; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .container { padding: 0 16px; }
}

/* ---------- Identidade LikeClass (degradê da logo) ---------- */
.btn-primary { background: var(--grad); background-size: 150% 150%; }
.btn-primary:hover { background: var(--grad); background-position: 100% 0; filter: brightness(1.05); }
.hero h1 span, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero { background: radial-gradient(900px 480px at 90% -10%, #e2fbfd, transparent 60%), radial-gradient(900px 500px at 10% 110%, var(--brand-soft), transparent 60%), var(--bg); }
.hero-brand { width: 100%; max-width: 360px; margin: 0 auto 24px; }
.hero-brand.missing { display: none; }
.footer .logo img { filter: brightness(0) invert(1); opacity: .9; }
.sidebar .logo img, .auth-side .logo img { filter: brightness(0) invert(1); }

/* ---------- Sistema (cliente/admin) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aula-list { list-style: none; display: grid; gap: 6px; }
.aula-list button {
  width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; cursor: pointer; display: flex; gap: 10px; align-items: center; color: var(--ink);
}
.aula-list button.active { border-color: var(--brand); background: var(--brand-soft); }
.aula-list .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .7rem; }
.aula-list .ck.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.curso-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.conteudo-aula { white-space: pre-wrap; }
.pix { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; background: var(--bg-alt); padding: 10px; border-radius: 8px; word-break: break-all; max-height: 90px; overflow: auto; }
.resposta { background: var(--brand-soft); border-radius: 10px; padding: 12px; margin-top: 10px; font-size: .92rem; }
.chamado { border-bottom: 1px solid var(--line); padding: 14px 0; }
.chamado:last-child { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar h3 { margin: 0; }
.toolbar input, .toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.modal.lg { max-width: 760px; max-height: 90vh; overflow: auto; }
.modal .form { margin-top: 16px; }
.muted { color: var(--muted); font-size: .88rem; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.clickable { cursor: pointer; }
.clickable:hover td { background: var(--bg-alt); }
.subhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 26px 0 10px; }
.subhead h4 { font-size: 1rem; }
.etapa-row { display: grid; grid-template-columns: 1fr 140px 130px auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.etapa-row input, .etapa-row select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; width: 100%; }
.alert { padding: 12px 14px; border-radius: 10px; background: #fff4e0; color: #8a5a00; font-size: .9rem; margin-bottom: 16px; }
@media (max-width: 980px) {
  .curso-layout { grid-template-columns: 1fr; }
  .etapa-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contato / redes ---------- */
.contact-info a.link { color: var(--ink); border-bottom: 1px dashed var(--brand); }
.contact-info a.link:hover { color: var(--brand); }
.btn-whats { background: #25d366; color: #fff; }
.btn-whats:hover { background: #1ebe5b; }
/* Botão "Área do Cliente" no menu: texto branco (o link do menu sobrescrevia a cor) */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* =========================================================
   PAINEL DE CAMPANHAS (gráficos)
   Paleta validada (dataviz): série 1 azul, série 2 laranja; fundo branco
   ========================================================= */
.viz { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-grid: #e9edf4; --viz-axis: #8a93a6; --viz-ink: var(--ink); --viz-muted: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.kpi-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi-tile small { display: block; color: var(--muted); font-size: .8rem; }
.kpi-tile strong { display: block; font-size: 1.45rem; font-weight: 600; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-tile span { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.viz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.viz-head h3 { margin: 0; }
.viz-head p { color: var(--muted); font-size: .85rem; margin: 2px 0 0; }
.legenda { display: flex; gap: 16px; font-size: .82rem; color: var(--text); }
.legenda i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
/* Barras horizontais (funil, origem, botão) */
.hbar { display: grid; grid-template-columns: minmax(110px, 30%) 1fr auto; align-items: center; gap: 10px; padding: 5px 0; cursor: default; }
.hbar:hover .hbar-fill, .hbar:focus .hbar-fill { filter: brightness(.92); }
.hbar:focus { outline: 2px solid var(--brand-soft); border-radius: 6px; }
.hbar-rot { font-size: .88rem; color: var(--text); overflow-wrap: anywhere; }
.hbar-trilho { height: 22px; }
.hbar-fill { height: 100%; min-width: 2px; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.hbar-val { font-size: .88rem; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-val small { color: var(--muted); font-weight: 400; margin-left: 4px; }
/* SVG (colunas e linhas) */
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz .grade line { stroke: var(--viz-grid); stroke-width: 1; }
.viz .eixo text { fill: var(--viz-axis); font-size: 11px; font-family: inherit; }
.viz .rotulo-fim { fill: var(--viz-ink); font-size: 12px; font-weight: 600; font-family: inherit; }
.viz .mira { stroke: var(--viz-axis); stroke-width: 1; }
.viz-tip {
  position: fixed; z-index: 300; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 27, 51, .14); padding: 10px 12px; font-size: .82rem; color: var(--text); min-width: 140px; display: none;
}
.viz-tip b { color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.viz-tip .lin { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.viz-tip .lin i { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.viz-tip .tit { color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
.tabela-dados summary { cursor: pointer; color: var(--brand); font-size: .85rem; margin-top: 12px; }
.grid-2c { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2c { grid-template-columns: 1fr; } .hbar { grid-template-columns: minmax(90px, 34%) 1fr auto; } }

table.compacta { font-size: .85rem; }
table.compacta th { padding: 8px 8px; font-size: .7rem; }
table.compacta td { padding: 10px 8px; }

/* ---------- CRM (quadro por etapa) ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: #eef1f8; border-radius: var(--radius); padding: 12px; min-height: 260px; transition: background .15s; }
.kcol.sobre { background: var(--brand-soft); outline: 2px dashed var(--brand); }
.kcol-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 10px; }
.kcount { margin-left: auto; background: #fff; border-radius: 99px; padding: 2px 9px; font-size: .78rem; color: var(--muted); }
.kdot { width: 10px; height: 10px; border-radius: 50%; }
.k-novo { background: #2a78d6; } .k-contatado { background: #eda100; } .k-negociando { background: #8e24c8; }
.k-convertido { background: #0ca30c; } .k-descartado { background: #9aa3b5; }
.kcol-body { display: grid; gap: 10px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab; transition: box-shadow .15s, transform .15s; }
.kcard:hover, .kcard:focus { box-shadow: var(--shadow); outline: none; transform: translateY(-1px); }
.kcard.arrastando { opacity: .5; }
.kcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kcard-top b { color: var(--ink); font-size: .92rem; }
.kcard-top small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.kcard-rec { font-size: .8rem; color: var(--text); margin-top: 6px; line-height: 1.35; }
.kcard-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: .76rem; }
.kvazio { color: var(--muted); text-align: center; font-size: .85rem; padding: 10px 0; }
.etapas-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.timeline-crm { margin-top: 16px; display: grid; gap: 10px; max-height: 220px; overflow: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.timeline-crm p { margin: 2px 0 0; white-space: pre-wrap; }
.kresp { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; margin-left: auto; }
