/* ---------------------------------------------------------------- botões */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-1);
  font-weight: 600; font-size: var(--fs-13); letter-spacing: .01em;
  color: var(--fg-1);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  white-space: nowrap;
  transition: background-color .12s, color .12s, box-shadow .12s;
}
.btn:hover { background: var(--bg-3); color: var(--fg-0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--blue-500); color: var(--fg-0); box-shadow: none; padding-left: 18px;
}
.btn-primary::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue-100);
  transition: width .12s;
}
.btn-primary:hover { background: #2A68FF; }
.btn-primary:hover::before { width: 4px; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--fg-2); padding: 0 10px; }
.btn-ghost:hover { background: var(--bg-3); color: var(--fg-0); }
.btn-danger { color: var(--danger-fg); box-shadow: inset 0 0 0 1px rgba(229, 83, 61, .45); }
.btn-danger:hover { background: rgba(229, 83, 61, .12); color: #FFB3A6; }
.btn-sm { height: 28px; padding: 0 10px; font-size: var(--fs-12); }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-icon.btn-sm { width: 28px; height: 28px; }
.btn-wa { color: var(--ok); }
.btn-wa:hover { color: #6FE0B4; }

/* ---------------------------------------------------------------- campos */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input, .select, .textarea {
  height: 36px; padding: 0 12px;
  background: var(--bg-3); color: var(--fg-0);
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  font-size: var(--fs-13);
  transition: border-color .12s;
}
.textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: #39507A; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--blue-300); box-shadow: none; }
.select { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.input-num { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }

.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 10px; color: var(--fg-2); pointer-events: none; }
.search .input { padding-left: 36px; width: 300px; }
.search kbd { position: absolute; right: 8px; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  font-family: var(--font-text); font-size: var(--fs-11); font-weight: 600;
  color: var(--fg-2); background: var(--bg-2);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-1);
}

/* toggle */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-13); color: var(--fg-1); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative; width: 32px; height: 18px; border-radius: 999px;
  background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--fg-2); transition: transform .15s, background-color .15s;
}
.switch input:checked + .track { background: var(--blue-500); box-shadow: none; }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--fg-0); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-12); font-weight: 600;
  color: var(--fg-1); background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  white-space: nowrap;
}
.chip-ok { color: var(--ok); background: rgba(53, 196, 141, .1); box-shadow: inset 0 0 0 1px rgba(53, 196, 141, .3); }
.chip-warn { color: var(--warn); background: rgba(232, 181, 66, .1); box-shadow: inset 0 0 0 1px rgba(232, 181, 66, .3); }
.chip-blue { color: var(--blue-100); background: rgba(30, 94, 255, .14); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .35); }
.chip-mute { color: var(--fg-2); background: transparent; }
.chip-sheet { color: var(--silver); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); height: 20px; padding: 0 8px; font-size: var(--fs-11); letter-spacing: .04em; text-transform: uppercase; }

/* filtro em chip clicável */
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  font-size: var(--fs-12); font-weight: 600; color: var(--fg-2);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .12s, background-color .12s, box-shadow .12s;
}
.fchip:hover { color: var(--fg-0); box-shadow: inset 0 0 0 1px #39507A; }
.fchip[aria-pressed="true"], .fchip.is-on { color: var(--fg-0); background: rgba(30, 94, 255, .16); box-shadow: inset 0 0 0 1px var(--blue-500); }
.fchip .count { color: var(--fg-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.fchip[aria-pressed="true"] .count { color: var(--blue-100); }

/* faixa A/B/C/D */
.faixa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-1);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-13); line-height: 1;
}
.faixa-A { color: var(--faixa-a); background: var(--faixa-a-bg); box-shadow: inset 0 0 0 1px rgba(110, 162, 255, .5); }
.faixa-B { color: #7FA4FF; background: var(--faixa-b-bg); box-shadow: inset 0 0 0 1px rgba(30, 94, 255, .55); }
.faixa-C { color: #9AA9C2; background: var(--faixa-c-bg); box-shadow: inset 0 0 0 1px rgba(95, 115, 149, .5); }
.faixa-D { color: #8592A8; background: var(--faixa-d-bg); box-shadow: inset 0 0 0 1px rgba(58, 70, 92, .8); }

/* régua de score (gesto de assinatura) */
.regua { position: relative; width: 3px; height: 28px; background: var(--line-1); flex: none; }
.regua > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--faixa-b); }
.regua.f-A > i { background: var(--faixa-a); }
.regua.f-B > i { background: var(--faixa-b); }
.regua.f-C > i { background: var(--faixa-c); }
.regua.f-D > i { background: var(--faixa-d); }

.potencial { display: inline-flex; align-items: center; gap: 8px; }
.potencial .score { font-variant-numeric: tabular-nums; color: var(--fg-1); font-weight: 600; width: 22px; text-align: right; }

/* palavra que casou */
mark.kw { background: none; color: var(--fg-0); text-decoration: underline; text-decoration-color: var(--blue-300); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line-1); background: var(--bg-1); }
.kpi { position: relative; padding: 20px 20px 22px 22px; border-right: 1px solid var(--line-1); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 22px; width: 2px; background: var(--line-2); }
.kpi.is-key::before { background: var(--blue-500); }
.kpi .label { display: block; margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-44); line-height: 1; color: var(--fg-0); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.kpi .val.is-danger { color: var(--danger-fg); }
.kpi .aside { margin-top: 10px; font-size: var(--fs-12); color: var(--blue-100); font-weight: 500; }
.kpi .aside.is-mute { color: var(--fg-2); }
.kpi a.kpi-link { position: absolute; inset: 0; }
.kpi a.kpi-link:hover ~ .val { color: var(--blue-100); }

/* ---------------------------------------------------------------- painel / cartão */
.panel { background: var(--bg-1); border: 1px solid var(--line-1); padding: 22px 24px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-14); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-0); }
.panel-head .meta { margin-left: auto; }

/* ---------------------------------------------------------------- tabelas */
.table-wrap { position: relative; border: 1px solid var(--line-1); background: var(--bg-1); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-13); table-layout: fixed; }
.tbl th {
  position: sticky; top: 0; z-index: 2;
  height: 38px; padding: 0 12px; text-align: left;
  background: var(--bg-1); border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbl th button { display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; height: 100%; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--fg-0); }
.tbl td {
  height: var(--row-h); padding: 0 12px;
  border-bottom: 1px solid var(--line-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--fg-1);
}
.tbl tbody tr { position: relative; }
.tbl tbody tr.is-row { cursor: pointer; }
.tbl tbody tr.is-row:hover td { background: var(--bg-2); }
.tbl tbody tr.is-focus td { background: var(--bg-3); }
.tbl tbody tr.is-focus td:first-child { box-shadow: inset 3px 0 0 var(--blue-300); }
.tbl tbody tr.is-selected td { background: rgba(30, 94, 255, .08); }
.tbl td.name { color: var(--fg-0); font-weight: 600; }
.tbl td .sub { display: block; font-size: var(--fs-11); color: var(--fg-2); font-weight: 500; margin-top: -2px; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl.is-compact td { height: var(--row-h-compact); }
.tbl .spacer td { padding: 0; border: 0; height: auto; }
.tbl .chk { width: 40px; padding-right: 0; }
.cell-actions { display: inline-flex; gap: 2px; align-items: center; }
.copy { color: var(--fg-1); border-radius: var(--r-1); }
.copy:hover { color: var(--blue-100); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

input[type="checkbox"].cbx {
  appearance: none; width: 16px; height: 16px; margin: 0; vertical-align: middle;
  border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--bg-2); cursor: pointer;
  display: inline-grid; place-content: center;
}
input[type="checkbox"].cbx:checked { background: var(--blue-500); border-color: var(--blue-500); }
input[type="checkbox"].cbx:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--fg-0); border-bottom: 2px solid var(--fg-0); transform: rotate(-45deg) translate(1px, -1px); }
input[type="checkbox"].cbx:indeterminate { background: var(--blue-700); border-color: var(--blue-500); }
input[type="checkbox"].cbx:indeterminate::after { content: ""; width: 8px; height: 2px; background: var(--fg-0); }

/* ---------------------------------------------------------------- barra de filtros */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filterbar .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.filterbar .grow { flex: 1; }
.dropdown { position: relative; }
.menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  min-width: 220px; max-height: 360px; overflow: auto;
  background: var(--bg-4); box-shadow: var(--shadow-2); border-radius: var(--r-2); padding: 6px;
}
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 32px; padding: 0 10px; border-radius: var(--r-1);
  font-size: var(--fs-13); color: var(--fg-1); text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--bg-3); color: var(--fg-0); box-shadow: none; }
.menu-item .count { margin-left: auto; color: var(--fg-2); font-variant-numeric: tabular-nums; font-size: var(--fs-12); }
.menu-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.menu-title { padding: 6px 10px 4px; }

.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 14px;
  background: rgba(30, 94, 255, .08); border-left: 2px solid var(--blue-500);
  font-size: var(--fs-13); color: var(--fg-1);
}
.banner button { color: var(--blue-300); font-weight: 600; }
.banner button:hover { color: var(--blue-100); }
.banner.is-warn { background: rgba(232, 181, 66, .08); border-left-color: var(--warn); }

/* barra de ações em massa */
.bulkbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 35;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  background: var(--bg-4); box-shadow: var(--shadow-2); border-radius: var(--r-2);
}
.bulkbar .count { font-weight: 600; color: var(--fg-0); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- popover / modal */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 11, .5); }
.scrim.is-clear { background: transparent; }
.popover {
  position: fixed; z-index: 51; width: 340px;
  background: var(--bg-4); box-shadow: var(--shadow-2); border-radius: var(--r-2);
  padding: 18px 18px 16px;
}
.popover h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-16); letter-spacing: var(--track-caps); text-transform: uppercase; margin-bottom: 4px; }
.popover .who { font-size: var(--fs-13); color: var(--fg-2); margin-bottom: 14px; }
.popover form { display: flex; flex-direction: column; gap: 12px; }
.popover .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.popover .actions .hint { margin-right: auto; font-size: var(--fs-11); color: var(--fg-2); display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.popover:not(.modal) .actions .hint { width: 100%; margin-bottom: 4px; }
.popover .err { color: var(--danger-fg); font-size: var(--fs-12); }
.modal { left: 50%; top: 14vh; transform: translateX(-50%); width: 520px; max-width: calc(100vw - 32px); }
.modal.is-wide { width: 720px; }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 420px; padding: 12px 14px 12px 16px;
  background: var(--bg-4); box-shadow: var(--shadow-2); border-radius: var(--r-2);
  border-left: 2px solid var(--blue-500); font-size: var(--fs-13); color: var(--fg-0);
  animation: toast-in .16s ease-out;
}
.toast.is-error { border-left-color: var(--danger); }
.toast button { margin-left: auto; color: var(--blue-300); font-weight: 600; }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- abas */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-1); margin-bottom: 28px; }
.tab {
  position: relative; height: 40px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-13);
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2);
}
.tab:hover { color: var(--fg-0); }
.tab[aria-selected="true"] { color: var(--fg-0); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-500); }

/* ---------------------------------------------------------------- vazio / boot */
.empty { padding: 72px 24px; text-align: center; color: var(--fg-2); }
.empty h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-20); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-0); margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg-0); }
.boot-box { width: 360px; }
.boot-box .wordmark { margin: 0 0 40px; }
.boot-bar { height: 2px; background: var(--line-1); margin: 14px 0 10px; overflow: hidden; }
.boot-bar > i { display: block; height: 100%; width: 0; background: var(--blue-500); transition: width .2s; }
.boot-msg { font-size: var(--fs-13); color: var(--fg-1); }
.boot-bar.is-indeterminate > i { width: 35% !important; animation: boot-vai 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes boot-vai { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.boot-box [hidden] { display: none !important; }

/* ---------------------------------------------------------------- trava (senha) */
.trava { display: flex; flex-direction: column; }
.trava > .label:first-child { color: var(--blue-300); }
.trava-titulo {
  margin: 6px 0 8px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-24);
  letter-spacing: var(--track-caps); text-transform: uppercase; line-height: var(--lh-tight);
}
.trava-texto { font-size: var(--fs-13); color: var(--fg-2); margin-bottom: 24px; text-wrap: pretty; }
.trava-campo { position: relative; margin-top: 6px; }
.trava-campo .input { width: 100%; height: 44px; padding-right: 88px; font-size: var(--fs-14); }
.trava-campo .input[aria-invalid="true"] { border-color: var(--danger); }
.trava-campo .btn { position: absolute; right: 6px; top: 8px; }
.trava-erro {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 10px; padding: 8px 10px;
  font-size: var(--fs-13); color: var(--danger-fg);
  background: rgba(229, 83, 61, .08); border-left: 2px solid var(--danger);
}
.trava-arquivo { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.trava-entrar { margin-top: 18px; height: 44px; width: 100%; font-size: var(--fs-14); }
.trava[aria-busy="true"] + .boot-progresso { margin-top: 18px; }
.trava-nota { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line-1); font-size: var(--fs-12); color: var(--fg-3); }

/* ---------------------------------------------------------------- atalhos */
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; margin-top: 8px; }
.shortcuts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-13); padding: 6px 0; border-bottom: 1px solid var(--line-1); }
.shortcuts kbd + kbd { margin-left: 4px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger-fg); }
.ok-text { color: var(--ok); }
.mute { color: var(--fg-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- gráficos */
.hbars { display: flex; flex-direction: column; gap: 4px; }
.hbar {
  display: grid; grid-template-columns: var(--rot, 150px) minmax(0, 1fr) 64px; align-items: center; gap: 12px;
  height: 28px; padding: 0 6px; margin: 0 -6px; border-radius: var(--r-1); color: var(--fg-1);
}
.hbar.is-link:hover { background: var(--bg-2); color: var(--fg-0); }
.hbar-label { font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { display: block; height: 14px; }
.hbar-svg { width: 100%; height: 14px; display: block; }
.hbar-val { text-align: right; font-size: var(--fs-13); font-weight: 600; color: var(--fg-0); }
.hbar-suf { color: var(--fg-2); font-weight: 500; margin-left: 4px; font-size: var(--fs-11); }
.legend { display: flex; gap: 18px; margin-bottom: 12px; font-size: var(--fs-12); color: var(--fg-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.cols-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cols-svg .grid-line { stroke: var(--line-1); stroke-width: 1; }
.cols-svg .axis-text { fill: var(--fg-2); font-size: 11px; font-family: var(--font-text); }
.cols-svg .val-text { fill: var(--fg-0); font-size: 12px; font-weight: 600; font-family: var(--font-text); }
.cols-svg .col:hover path { fill: #8FB0FF; }

.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.funnel-label { font-size: var(--fs-13); color: var(--fg-1); font-weight: 500; }
.funnel-val { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20); color: var(--fg-0); }
.funnel-bar { display: block; height: 14px; background: var(--bg-2); }
.funnel-bar i { display: block; height: 100%; background: #5B8CFF; border-radius: 0 4px 4px 0; }
.funnel-step .meta { display: block; margin-top: 4px; }

.chart-tip {
  position: fixed; z-index: 80; pointer-events: none;
  padding: 6px 10px; background: var(--bg-4); box-shadow: var(--shadow-2); border-radius: var(--r-1);
  font-size: var(--fs-12); color: var(--fg-0); white-space: nowrap;
}

/* ---------------------------------------------------------------- páginas */
.sec .sec-action { order: 4; margin-left: 8px; font-family: var(--font-text); text-transform: none; letter-spacing: 0; }
.painel-nota { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.tbl-top td { height: 50px; }

.table-fill { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-bottom: 20px; }
.table-scroll { flex: 1; min-height: 0; overflow: auto; }
.table-scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-300); }
.tbl-leads { min-width: 1590px; }
.ico-cell { display: inline-flex; }
.seg-faixas { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.faixa-mini { width: 18px; height: 18px; font-size: var(--fs-11); }

.kpis-mov { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 22px; }
.kpi .val.val-sm { font-size: var(--fs-32); }
.tbl-mov td { height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; vertical-align: top; }
.mov-cell { display: flex; gap: 10px; }
.mov-ico { color: var(--blue-300); padding-top: 1px; }
.mov-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mov-main { color: var(--fg-0); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mov-note { color: var(--fg-1); font-size: var(--fs-12); white-space: pre-wrap; overflow-wrap: anywhere; }
.etapa-flow { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); }
.etapa-flow strong { color: var(--fg-0); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.pager .meta { margin-right: auto; }
.periodo-custom { display: inline-flex; align-items: center; gap: 8px; }
.periodo-custom .input { width: 150px; }

/* configurações */
.kw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 44px; }
.kw-cat { display: flex; flex-direction: column; gap: 12px; }
.kw-head { display: flex; align-items: center; gap: 10px; }
.kw-head h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-16); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-0); }
.kw-peso { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.kw-peso .input-num { width: 72px; height: 30px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--bg-3); font-size: var(--fs-12); color: var(--fg-0); }
.kw-chip .count { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.kw-chip button { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-2); }
.kw-chip button:hover { background: var(--bg-4); color: var(--fg-0); }
.kw-chip.is-excl { background: rgba(229, 83, 61, .1); }
.kw-preview p { font-size: var(--fs-13); color: var(--fg-0); }
.kw-prev-list { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-12); color: var(--fg-1); }
.kw-prev-list li::before { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--fg-3); margin-right: 8px; vertical-align: middle; }
.kw-excl { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.kw-sug-intro { margin: -8px 0 16px; max-width: 760px; }
.kw-sug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kw-sug-item { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 18px; }
.kw-sug-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.kw-sug-head strong { color: var(--fg-0); }

.pesos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 40px; max-width: 1100px; }
.peso-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; border-bottom: 1px solid var(--line-1); color: var(--fg-1); }
.pesos-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.etapas-intro { margin-bottom: 16px; }
.etapas-edit { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.etapa-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--line-1); }
.etapa-row .input { width: 220px; }
.etapa-row .select { width: 130px; }
.etapa-row .meta { width: 90px; }
.etapa-ord { color: var(--fg-2); font-size: var(--fs-14); width: 22px; }
.etapa-row .sobe svg { transform: rotate(180deg); }

.funil-form { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.wa-preview-box { padding: 14px 16px; background: var(--bg-1); border-left: 2px solid var(--ok); }
.wa-preview { margin-top: 6px; color: var(--fg-0); white-space: pre-wrap; }

.dados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.dados-card { display: flex; flex-direction: column; gap: 10px; }
.dados-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-16); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-0); }
.dados-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.sobre { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 860px; margin: 0; }
.sobre dt, .sobre dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-1); }
.sobre dt { color: var(--fg-2); font-weight: 600; font-size: var(--fs-13); }
.sobre dd { color: var(--fg-0); }
.banner .grow { flex: 1; }

/* painel da prospecção */
.kpis-n { grid-template-columns: repeat(var(--kpi-cols, 4), minmax(0, 1fr)); }
.kpis-n + .kpis-n { border-top: 0; }
.painel-comeco { margin-top: 16px; display: flex; align-items: center; gap: 24px; justify-content: space-between; border-left: 2px solid var(--blue-500); }
.painel-comeco h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-20); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-0); margin-bottom: 6px; }
.painel-comeco .meta { max-width: 640px; }
.painel-comeco-acoes { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.painel-vazio { padding: 28px 8px 30px; text-align: center; }
.painel-vazio h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-16); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-0); margin-bottom: 6px; }
.painel-vazio .meta { max-width: 420px; margin: 0 auto; }
.painel-vazio .btn { margin-top: 16px; }
.lista-painel { display: flex; flex-direction: column; }
.lista-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line-1); color: var(--fg-1); text-decoration: none; }
.lista-painel li:last-child .lista-item { border-bottom: 0; }
.lista-item:hover { background: var(--bg-2); }
.lista-item:focus-visible { box-shadow: var(--focus); outline: none; }
.lista-ico { color: var(--blue-300); display: inline-flex; flex-shrink: 0; }
.lista-item.is-late .lista-ico { color: var(--danger-fg); }
.lista-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lista-texto strong { color: var(--fg-0); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-texto .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painel-nota a, .painel-vazio a:not(.btn) { color: var(--blue-300); }
.funnel-extra { color: var(--fg-2); }
@media (max-width: 1100px) {
  .kpis-n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-n .kpi { border-bottom: 1px solid var(--line-1); }
  .painel-comeco { flex-direction: column; align-items: flex-start; }
}
