/* Identidade da Ekoala, como no site: fundo #05060B, dourado #F2AB1C,
   títulos em Barlow Condensed e textos em Poppins (fontes servidas pelo próprio sistema).
   Cada empresa pode trocar a cor de destaque em Configurações. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600 700; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
:root {
  --ink: #05060b; --ink-2: #10131d; --bg: #f3f4f7; --card: #fff; --line: #dfe2e8; --text: #05060b; --muted: #5b6272;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif; --f-body: Poppins, "Segoe UI", Roboto, Arial, sans-serif;
  --brand: #f2ab1c; --on-brand: #1a1203; --brand-ink: #05060b; --brand-soft: color-mix(in srgb, var(--brand) 16%, white);
  --warn: #8a5300; --warn-soft: #fdf1d8; --bad: #a3322b; --bad-soft: #fbe6e4; --good: #1f6b45; --good-soft: #e2f1e8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14.5px/1.55 var(--f-body); background: var(--bg); color: var(--text); }
a { color: var(--brand-ink); }
h1 { font: 700 30px/1.1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; margin: 0 0 16px; }
h2 { font: 600 20px/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin: 24px 0 8px; }

/* ---------- Estrutura: menu lateral no computador, barra no celular */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #c9cdd6; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.wordmark { font: 700 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: 0 8px 18px; }
.wordmark span { color: var(--brand); }
.brandmark { text-align: center; padding: 4px 8px 20px; }
.brandmark img { width: 128px; height: auto; display: block; margin: 0 auto 8px; }
.brandmark b { display: block; font: 700 22px/1 var(--f-display); letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--brand); }
.brandmark.product img { width: 192px; margin: 0 auto; }
.login-hero .brandmark.product img { width: 380px; margin: 0; }
.logo-chip { display: inline-block; background: var(--ink); border-radius: 10px; padding: 10px 14px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { color: #c9cdd6; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.side nav a:hover { background: var(--ink-2); color: #fff; }
.side nav a.on { background: var(--brand); color: var(--on-brand); }
.nav-badge { display: inline-block; margin-left: 8px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; }
.side .who { font-size: 13px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.12); overflow-wrap: anywhere; }
.side .who button { margin-top: 8px; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 100%; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 28px; display: flex; align-items: center; gap: 12px; min-height: 58px; }
.topbar img { max-height: 36px; max-width: 170px; display: block; }
.topbar strong { font-size: 16px; }
.banner { background: var(--warn-soft); color: var(--warn); padding: 8px 28px; font-size: 13.5px; }
main { max-width: 1240px; padding: 24px 28px 70px; }
main > form { max-width: 880px; }
.credit { position: fixed; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.88); padding: 3px 9px; border-radius: 6px; z-index: 5; }
.credit strong { color: var(--ink); }

/* ---------- Login */
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-hero { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.login-hero .wordmark { font-size: 54px; padding: 0 0 14px; }
.login-hero .brandmark { text-align: left; padding: 0 0 22px; }
.login-hero .brandmark img { width: 210px; margin: 0 0 14px; }
.login-hero .brandmark b { font-size: 40px; letter-spacing: .3em; text-indent: 0; }
.login-hero p { color: #c9cdd6; font-size: 18px; max-width: 30ch; margin: 0 0 26px; }
.login-hero ul { list-style: none; padding: 0; margin: 0; color: #c9cdd6; }
.login-hero li { padding: 6px 0 6px 20px; position: relative; }
.login-hero li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-form form { width: 100%; max-width: 360px; }
.login-form img { max-height: 54px; max-width: 220px; display: block; margin-bottom: 22px; }
.login-form h1 { margin-bottom: 4px; }

/* ---------- Componentes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: 13.5px; }
input, select, textarea, button { font: inherit; }
input, select, textarea { border: 1px solid #c6cad3; border-radius: 7px; padding: 8px 10px; background: #fff; color: var(--text); max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
textarea { width: 100%; min-height: 84px; resize: vertical; }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 4px; }
label small { font-weight: 400; color: var(--muted); }
.full { width: 100%; }
button { border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
button.ghost { background: none; color: var(--brand-ink); border-color: #aab0bd; font-weight: 500; }
button.small { padding: 4px 9px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.score { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font: 700 24px/1 var(--f-display); background: var(--good-soft); color: var(--good); }
.score.mid { background: var(--warn-soft); color: var(--warn); }
.score.high { background: var(--bad-soft); color: var(--bad); }
.score.none { background: #eceef2; color: var(--muted); font: 500 12px var(--f-body); }
.prospect { cursor: pointer; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.prospect:hover { border-color: var(--ink); }
.prospect .name { font-weight: 600; overflow-wrap: anywhere; }
.prospect .ptags { grid-column: 2; }
.lead-card { cursor: pointer; }
.lead-card:hover { border-color: var(--ink); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); margin: 2px 4px 2px 0; }
.tag.sis { background: #e5e8f6; color: #2f3f8f; }
.tag.hot { background: var(--ink); color: #fff; }
.tag.gray { background: #eceef2; color: var(--muted); }
.chatlog { max-height: 58vh; overflow-y: auto; }
.msg { padding: 8px 10px; border-radius: 10px; margin: 6px 0; background: #eef0f4; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 85%; }
.msg.sdr, .msg.humano { margin-left: auto; background: var(--brand-soft); }
.msg .muted { font-size: 12px; }
.finding { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.finding:first-child { border-top: 0; }
.finding > button, .finding > a { align-self: center; flex: none; }
input[type=color] { padding: 2px; width: 64px; height: 38px; }
.logo-preview img { max-height: 70px; max-width: 240px; display: block; }
.pts { flex: none; font-weight: 600; color: var(--bad); width: 38px; }
.bar { height: 6px; background: #e3e6ec; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.sigrow > * { min-width: 0; width: 100%; }
.sigrow { display: grid; grid-template-columns: 1.2fr 2fr 110px 70px auto; gap: 6px; margin-bottom: 6px; }
.weights { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 14px; }
.weights div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.weights input { width: 64px; }
.error { color: var(--bad); margin: 8px 0; }
.ok { color: var(--good); margin: 8px 0; }

/* ---------- Computador: listas em colunas e detalhe em duas colunas */
@media (min-width: 1000px) {
  .prospect { grid-template-columns: 46px minmax(0, 1.5fr) minmax(0, 1fr); }
  .prospect .ptags { grid-column: 3; text-align: right; }
  .cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); grid-template-rows: auto 1fr; gap: 0 22px; align-items: start; }
  .cols .col-a { grid-column: 2; grid-row: 1; }
  .cols .col-b { grid-column: 1; grid-row: 1 / span 2; }
  .cols .col-c { grid-column: 2; grid-row: 2; }
  .cols .col-b > h2:first-child, .cols .col-c > h2:first-child { margin-top: 0; }
  .cols .col-a h1 { font-size: 24px; }
}

/* ---------- Celular */
@media (max-width: 860px) {
  .layout { display: block; }
  .side { position: static; height: auto; padding: 10px 12px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .wordmark { padding: 0; flex: 1; }
  .side nav { flex-direction: row; order: 3; flex-basis: 100%; overflow-x: auto; }
  .side nav a { white-space: nowrap; padding: 6px 10px; }
  .side .who { border: 0; padding: 0; }
  .side .who span { display: none; }
  .side .who button { margin: 0; width: auto; }
  .topbar, .banner { padding-left: 14px; padding-right: 14px; }
  main { padding: 18px 14px 70px; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 24px; }
  .login-hero .wordmark { font-size: 36px; }
  .login-hero .brandmark img { width: 150px; }
  .login-hero .brandmark b { font-size: 28px; }
  .side .brandmark { display: flex; align-items: center; gap: 10px; padding: 0; flex: 1; text-align: left; }
  .side .brandmark img { width: 54px; margin: 0; }
  .side .brandmark.product img { width: 150px; }
  .login-hero .brandmark.product img { width: 250px; }
  .side .brandmark b { font-size: 20px; letter-spacing: .2em; text-indent: 0; }
  .login-hero ul { display: none; }
  .sigrow { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
}

/* ---------- Visual mais limpo: menos bordas e blocos de cor, mais respiro */
body { background: #f7f8fa; }
.layout { grid-template-columns: 220px minmax(0, 1fr); }
.side nav a { font-weight: 400; padding: 8px 12px; }
.side nav a.on { background: rgba(242, 171, 28, .13); color: var(--brand); font-weight: 500; }
.nav-badge { background: var(--brand); color: var(--on-brand); }
.topbar { background: none; border: 0; min-height: 0; padding: 16px 28px 0; color: var(--muted); font-size: 13.5px; }
.bell { color: var(--muted); text-decoration: none; font-size: 13px; padding: 2px 6px; }
.bell:hover { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid #e9ebef; border-radius: 12px; padding: 16px 18px; }
.stat-n { font: 700 34px/1 var(--f-display); }
.stat-l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.funnel { display: grid; grid-template-columns: 150px 1fr 50px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.funnel .bar { margin: 0; height: 10px; }
.funnel strong { text-align: right; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 0 10px 8px 0; white-space: nowrap; }
table.grid td { padding: 9px 10px 9px 0; border-top: 1px solid #eef0f3; }
table.grid td:first-child { font-weight: 500; }
.finding > .tag { align-self: center; flex: none; }
.finding.task { flex-wrap: wrap; align-items: center; }
.finding.task > .grow { flex-basis: 200px; }
.finding input[type=checkbox] { align-self: center; width: 17px; height: 17px; flex: none; }
.status-chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); cursor: help; }
main { padding: 10px 28px 80px; }
h1 { font-size: 28px; margin-bottom: 18px; }
h2 { font: 600 12px/1.3 var(--f-body); letter-spacing: .09em; color: var(--muted); margin: 26px 0 10px; }
.card { border-color: #e9ebef; border-radius: 12px; padding: 18px; }
input, select, textarea { border-color: #d9dce3; border-radius: 8px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
button.ghost { border-color: #d9dce3; }
button.ghost:hover { border-color: var(--ink); }
.chips { gap: 8px; margin-bottom: 14px; }
.chip { border: 0; background: #eceef2; color: #4a5160; font-size: 12.5px; }
.tag { font-size: 11.5px; padding: 2px 9px; }
.tag.gray { background: #f0f1f4; }
.finding { border-top-color: #eef0f3; padding: 10px 0; }
.prospect { padding: 13px 18px; }
.prospect .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { width: 42px; height: 42px; border-radius: 12px; font-size: 22px; }
.lead-card:hover, .prospect:hover { border-color: #c9cdd6; background: #fcfcfd; }
.credit { background: rgba(247, 248, 250, .92); color: #9096a3; }
.credit strong { color: #6b7280; }
.login-form { background: #f7f8fa; }

/* ---------- Kanban */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(168px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { background: #eef0f3; border-radius: 12px; padding: 10px; min-height: 160px; border: 2px solid transparent; }
.kcol.over { border-color: var(--brand); background: var(--brand-soft); }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 13.5px; }
.kcount { font-size: 12px; color: var(--muted); background: #fff; border-radius: 999px; padding: 0 8px; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcard { background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; padding: 10px 12px; cursor: grab; font-size: 13.5px; overflow-wrap: anywhere; }
.kcard:hover { border-color: #c9cdd6; }
.kcard:active { cursor: grabbing; }
.kscore { flex: none; font: 700 16px/1 var(--f-display); padding: 3px 7px; border-radius: 7px; background: var(--good-soft); color: var(--good); }
.kscore.mid { background: var(--warn-soft); color: var(--warn); }
.kscore.high { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 860px) { .topbar { padding: 12px 14px 0; } main { padding: 10px 14px 80px; } .side nav a.on { background: var(--brand); color: var(--on-brand); } }
