/* Shot Hub - estilos.
   Tema escuro é o padrão; o tema claro é ativado por <html data-theme="claro">.
   Para mudar cores, altere só as variáveis abaixo. */
:root {
  --brand: #f15a24;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 15%, transparent);
  --bg: #0e0f12;
  --card: #17181c;
  --raised: #1f2126;
  --col: #131417;
  --input: #111215;
  --line: #2a2c33;
  --ink: #f3f4f6;
  --ink-2: #b6bac4;
  --ink-3: #80858f;
  --topbar: #08090b;
  --topbar-ink: #ffffff;
  --topbar-ink-2: rgba(255, 255, 255, .66);
  --topbar-hover: rgba(255, 255, 255, .08);
  --topbar-active: rgba(255, 255, 255, .14);
  --ok: #3ccf86;
  --ok-soft: rgba(60, 207, 134, .14);
  --warn: #f0b04a;
  --warn-soft: rgba(240, 176, 74, .15);
  --bad: #f26363;
  --bad-soft: rgba(242, 99, 99, .14);
  --sig-green: #22c55e;
  --sig-yellow: #eab308;
  --sig-red: #ef4444;
  --overlay: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
  --radius: 12px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
:root[data-theme="claro"] {
  --brand-soft: color-mix(in srgb, var(--brand) 12%, #ffffff);
  --bg: #f5f6f8;
  --card: #ffffff;
  --raised: #f7f8fa;
  --col: #eceef2;
  --input: #ffffff;
  --line: #e3e5ea;
  --ink: #16181d;
  --ink-2: #4b5160;
  --ink-3: #7c8291;
  --topbar: #ffffff;
  --topbar-ink: #16181d;
  --topbar-ink-2: #5b6170;
  --topbar-hover: #f1f2f5;
  --topbar-active: #eceef2;
  --ok: #138a55;
  --ok-soft: #e4f5ec;
  --warn: #a8690f;
  --warn-soft: #fcf1de;
  --bad: #cc3434;
  --bad-soft: #fdeaea;
  --overlay: rgba(16, 24, 40, .45);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .22);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* Logos: cada tema mostra a sua */
.logo-img { display: block; height: 30px; width: auto; }
.logo-light { display: none; }
:root[data-theme="claro"] .logo-dark { display: none; }
:root[data-theme="claro"] .logo-light { display: block; }

/* Topo */
.topbar { background: var(--topbar); color: var(--topbar-ink); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; }
.wide .topbar-inner { max-width: none; }
.logo { display: flex; align-items: center; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; align-items: center; }
.nav a { color: var(--topbar-ink-2); padding: 7px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--topbar-ink); background: var(--topbar-hover); text-decoration: none; }
.nav a.active { color: var(--topbar-ink); background: var(--topbar-active); }
.nav .ctx { font-size: 13px; color: var(--topbar-ink-2); padding: 0 6px; white-space: nowrap; }
.nav .ctx strong { color: var(--topbar-ink); }
.usermenu { position: relative; }
.usermenu > button { background: none; border: 0; color: var(--topbar-ink); display: flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; }
.usermenu > button:hover { background: var(--topbar-hover); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.usermenu .menu { position: absolute; right: 0; top: 46px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 6px; z-index: 30; }
.usermenu .menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--raised); text-decoration: none; }
.uname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Página */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.page.wide { max-width: none; padding: 22px 20px 30px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.stats > .card, .grid-2 > .card { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .uname { display: none; } .topbar-inner { gap: 12px; } }
@media (max-width: 480px) { .topbar-inner { padding: 0 12px; } .logo-img { height: 24px; } }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--raised); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand); filter: brightness(1.08); }
.btn-danger { color: var(--bad); }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #25d366; filter: brightness(1.05); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--input);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: .7; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-end { justify-content: flex-end; }
.spacer { flex: 1; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .fields-2 { grid-template-columns: 1fr; } }

/* Alertas */
.alert { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* Selos */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--raised); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-plain::before { display: none; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; }
tr.inactive td { color: var(--ink-3); }
td .sub { font-size: 12.5px; color: var(--ink-3); }
td.actions { text-align: right; white-space: nowrap; }
td select { width: auto; padding: 6px 8px; font-size: 13px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--raised); }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-3); }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo .logo-img { height: 64px; }
.auth .card { padding: 26px; }
.auth h1 { font-size: 20px; margin-bottom: 4px; }
.auth .sub { color: var(--ink-3); margin: 0 0 20px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 480px; padding: 24px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow: auto; }
.modal h2 { font-size: 18px; margin-bottom: 16px; }
.modal .row-end { margin-top: 8px; }

/* Link copiável */
.copybox { display: flex; gap: 8px; margin-top: 8px; }
.copybox input { font-size: 13px; background: var(--raised); }

/* Aviso */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 80; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; }

/* Estatísticas */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat .num { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat .lbl { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .stats { gap: 10px; } .stats .card { padding: 14px; } .stat .num { font-size: 22px; } }

/* Lista de atividades */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------ Funil */
.funnel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.funnel-head h1 { font-size: 22px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 260px; padding: 8px 12px; font-size: 14px; }
.toolbar select { width: auto; padding: 8px 10px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip strong { color: var(--ink); }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip.on strong { color: var(--brand); }
.chip.alert-chip strong { color: var(--bad); }

.board { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 10px; min-height: calc(100vh - 250px); }
.col { flex: 0 0 290px; background: var(--col); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.col-head { padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.col-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.col-title .count { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--raised); border-radius: 999px; padding: 1px 8px; }
.col-sum { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.col.kind-ganho .col-title::before, .col.kind-perdido .col-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.col.kind-perdido .col-title::before { background: var(--ink-3); }
.col-body { padding: 8px; overflow-y: auto; flex: 1; min-height: 90px; }
.col.drop-over { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.col-empty { font-size: 13px; color: var(--ink-3); text-align: center; padding: 18px 6px; }

.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow); }
.lead-card:hover { border-color: var(--ink-3); }
.lead-card.dragging { opacity: .45; }
.lead-top { display: flex; align-items: flex-start; gap: 8px; }
.lead-name { font-weight: 600; font-size: 14px; line-height: 1.3; flex: 1; word-break: break-word; }
.lead-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.lead-interest { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); }
.tag-origin { color: var(--ink-2); }
.followup { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--raised); color: var(--ink-2); }
.followup.today { background: var(--warn-soft); color: var(--warn); }
.followup.late { background: var(--bad-soft); color: var(--bad); }
.owner-mini { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.lead-value { font-weight: 600; color: var(--ink); }

/* Sinal de inatividade */
.signal { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; box-shadow: 0 0 0 3px var(--card); }
.signal.verde { background: var(--sig-green); }
.signal.amarelo { background: var(--sig-yellow); }
.signal.vermelho { background: var(--sig-red); }
.signal-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.signal-label .signal { margin: 0; box-shadow: none; }

/* Ficha do lead (painel lateral) */
.drawer-bg { position: fixed; inset: 0; background: var(--overlay); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--card); border-left: 1px solid var(--line); z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 19px; margin: 0; word-break: break-word; }
.drawer-close { background: none; border: 0; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
.section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.lgpd-note { font-size: 12px; color: var(--ink-3); margin: 6px 0 10px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; padding: 0 0 14px 18px; font-size: 14px; }
.history li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.history li.nota::before { background: var(--brand); }
.history li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.history li:last-child::after { display: none; }
.history .when { font-size: 12px; color: var(--ink-3); }
.history .note-body { white-space: pre-wrap; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 4px; word-break: break-word; }

/* Configuração do funil */
.stage-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stage-row:last-child { border-bottom: 0; }
.stage-row input { flex: 1; }
.stage-row .kind { font-size: 12px; color: var(--ink-3); width: 110px; }
.stage-row .n { font-size: 12px; color: var(--ink-3); width: 70px; text-align: right; }
.signal-preview { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 560px) { .stage-row .kind { display: none; } .stage-row .n { width: 48px; } }

/* Em breve */
.soon { text-align: center; padding: 48px 20px; }
.soon .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; font-size: 26px; }
.soon p { max-width: 420px; margin: 8px auto 0; color: var(--ink-2); }
.nav .ctx-back { color: var(--topbar-ink-2); font-size: 13px; padding: 7px 8px; white-space: nowrap; }

/* Troca de visualização */
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.viewtoggle button { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; cursor: pointer; }
.viewtoggle button + button { border-left: 1px solid var(--line); }
.viewtoggle button.on { background: var(--brand-soft); color: var(--brand); }

/* Lista de leads */
.list-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.list-wrap table { min-width: 980px; }
.list-wrap th { white-space: nowrap; background: var(--card); position: sticky; top: 0; }
.list-wrap th.sortable { cursor: pointer; user-select: none; }
.list-wrap th.sortable:hover { color: var(--ink); }
.list-wrap th .arrow { font-size: 10px; margin-left: 3px; }
.list-wrap td { font-size: 14px; }
.list-wrap tr.lead-row { cursor: pointer; }
.list-wrap tr.lead-row:hover td { background: var(--raised); }
.list-wrap .name-cell { display: flex; gap: 9px; align-items: flex-start; min-width: 200px; }
.list-wrap .name-cell .signal { margin-top: 6px; }
.list-wrap .name-cell .nosignal { width: 10px; flex: none; }
.list-foot { padding: 10px 20px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.stage-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.stage-pill.ganho { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.stage-pill.perdido { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* Resumo no topo da tela de leads */
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sum-card { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 13px 15px; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.sum-card:hover { border-color: var(--ink-3); }
.sum-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.sum-card.static { cursor: default; }
.sum-card.static:hover { border-color: var(--line); }
.sum-lbl { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.sum-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-card.is-alert .sum-num { color: var(--bad); }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }
@media (max-width: 1100px) { .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sum-card { padding: 11px 12px; } .sum-num { font-size: 20px; } }

/* Importação */
.map-table td, .map-table th { padding: 8px 10px; }
.map-table select { padding: 6px 8px; font-size: 13px; width: 100%; }
.map-sample { font-size: 12.5px; color: var(--ink-3); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--ink-2); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }

/* Formulários */
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); font: inherit; font-size: 14px; padding: 9px 12px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--raised); padding: 1px 5px; border-radius: 5px; }

/* Layout padrão de todas as telas internas: largura total, alinhado à esquerda (igual à tela de Leads) */
.page, .page.wide { max-width: none; padding: 22px 20px 40px; }
.topbar-inner, .wide .topbar-inner { max-width: none; }
.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 22px; }

/* Configurar empresa (logo) */
.logo-tips { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.logo-tips ul { margin: 6px 0 0; padding-left: 20px; }
.logo-tips li { margin-bottom: 3px; }
.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .logo-grid { grid-template-columns: 1fr; } }
.logo-slot h3 { margin-bottom: 10px; }
.logo-prev { height: 84px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; margin-bottom: 8px; color: #8a8f99; font-size: 13px; }
.logo-prev.light { background: #ffffff; }
.logo-prev.dark { background: #0e0f12; }
.logo-prev img { max-height: 44px; max-width: 100%; object-fit: contain; }

/* Logo do cliente no topo da tela de Leads */
.co-logo { height: 36px; max-width: 200px; object-fit: contain; display: block; }
.co-logo.for-light { display: none; }
:root[data-theme="claro"] .co-logo.for-dark { display: none; }
:root[data-theme="claro"] .co-logo.for-light { display: block; }
.co-head { display: flex; align-items: center; gap: 12px; }
.co-sep { width: 1px; height: 28px; background: var(--line); }

/* Reuniões na ficha do lead */
.meet-list { list-style: none; margin: 0; padding: 0; }
.meet-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--raised); }
.meet-list li.past { opacity: .6; }
.meet-when { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.sum-num.is-money { font-size: 21px; }
@media (max-width: 560px) { .sum-num.is-money { font-size: 17px; } }

/* Agenda */
.cal-title { display: inline-block; font-size: 16px; margin: 0 6px; }
.cal-title::first-letter, .cal-list h3::first-letter { text-transform: uppercase; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--raised); }
.cal-day.other { opacity: .45; }
.cal-day .num { font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .num { background: var(--brand); color: var(--brand-ink); }
.cal-week .cal-day { min-height: 340px; }
.cal-ev { font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--ink); border-left: 3px solid var(--brand); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev.past { opacity: .55; }
.cal-ev b { font-weight: 600; }
.cal-more { font-size: 11.5px; color: var(--ink-3); padding-left: 4px; }
.cal-list { padding: 4px 20px 12px; }
.cal-list h3 { margin: 16px 0 8px; }
.cal-list .row-ev { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: baseline; }
.cal-list .row-ev:last-child { border-bottom: 0; }
.cal-list .t { font-weight: 600; color: var(--brand); width: 110px; flex: none; font-size: 13.5px; }
@media (max-width: 760px) { .cal-day { min-height: 74px; padding: 3px; } .cal-ev { font-size: 10.5px; padding: 2px 4px; } .cal-head div { padding: 6px 4px; font-size: 10.5px; } }
