/* 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=url], input[type=password], input[type=tel], input[type=number], input[type=datetime-local], input[type=date], input[type=time], 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; } }

/* ---------------------------------------------------------------- Reunião Mensal: página pública */
.bk-body { background: var(--bg); min-height: 100vh; }
.bk-wrap { max-width: 1060px; margin: 0 auto; padding: 48px 20px 32px; }
.bk-card { display: grid; grid-template-columns: 330px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-height: 560px; max-width: 860px; margin: 0 auto; transition: max-width .2s; }
.bk-card.is-wide { max-width: 1060px; }
.bk-side { position: relative; padding: 32px 28px; border-right: 1px solid var(--line); }
.bk-main { padding: 32px 32px 28px; min-width: 0; }
.bk-logo { display: block; height: 38px; width: auto; margin-bottom: 26px; }
.bk-back { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.bk-back:hover { background: var(--brand-soft); }
.bk-back svg, .bk-meta svg, .bk-tz svg, .bk-sum svg, .bk-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-host { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.bk-title { font-size: 26px; line-height: 1.2; margin: 4px 0 20px; font-weight: 700; }
.bk-meta { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.bk-meta li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.bk-meta li svg { flex: none; margin-top: 1px; color: var(--ink-3); }
.bk-meta li.bk-chosen { color: var(--ink); font-weight: 600; }
.bk-meta li.bk-chosen svg { color: var(--brand); }
.bk-welcome { white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.bk-h { font-size: 20px; margin: 0 0 22px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.bk-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.bk-pick.has-times { grid-template-columns: minmax(0, 1fr) 220px; }
.bk-cal { max-width: 420px; }
.bk-month { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.bk-month strong { min-width: 150px; text-align: center; font-size: 15px; text-transform: capitalize; }
.bk-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 20px; line-height: 1; cursor: pointer; }
.bk-nav:disabled { background: none; color: var(--ink-3); opacity: .5; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; justify-items: center; }
.bk-w { font-size: 11.5px; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.bk-d { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--ink-3); border: 0; background: none; font-family: inherit; }
.bk-d.open { background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer; }
.bk-d.open:hover { filter: brightness(.96); box-shadow: inset 0 0 0 1.5px var(--brand); }
.bk-d.sel { background: var(--brand); color: var(--brand-ink); }
.bk-d.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.bk-tz { margin-top: 26px; font-size: 14px; }
.bk-tz div { display: flex; gap: 6px; align-items: center; color: var(--ink-2); margin-top: 6px; }
.bk-tz svg { width: 17px; height: 17px; }
.bk-times { min-width: 0; }
.bk-times-hint { display: none; }
.bk-day { font-size: 15px; margin: 6px 0 16px; color: var(--ink); text-transform: lowercase; }
.bk-day::first-letter { text-transform: uppercase; }
.bk-slots { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.bk-slot { height: 50px; border: 1px solid var(--brand); color: var(--brand); background: var(--card); border-radius: 8px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.bk-slot:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.bk-slot-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-slot-sel span { height: 50px; display: grid; place-items: center; background: #5c6170; color: #fff; border-radius: 8px; font-weight: 700; font-size: 15.5px; }
.bk-slot-sel .btn { height: 50px; font-size: 15px; font-weight: 700; }
.bk-form { max-width: 520px; }
.bk-form input, .bk-form textarea { font-size: 15.5px; }
.bk-guests-btn { border-color: var(--brand); color: var(--brand); border-radius: 999px; margin: -2px 0 16px; }
.bk-submit { padding: 12px 26px; font-size: 16px; border-radius: 999px; margin-top: 4px; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-note { background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.bk-link { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.bk-empty { padding: 40px 10px; text-align: center; color: var(--ink-3); }
.bk-done { max-width: 520px; }
.bk-check { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 14px; }
.bk-check svg { width: 26px; height: 26px; stroke-width: 2.4; }
.bk-done .bk-h { margin-bottom: 8px; }
.bk-sum { display: grid; grid-template-columns: 24px 1fr; gap: 10px 10px; margin: 18px 0 14px; font-size: 15px; }
.bk-sum dt { color: var(--ink-3); }
.bk-sum dd { margin: 0; word-break: break-word; }
.bk-who { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; font-size: 14.5px; }
.bk-actions { margin-bottom: 14px; }
.btn.bk-danger, .btn.bk-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.bk-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
/* etapas e pesquisa NPS */
.bk-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.bk-steps li { display: flex; align-items: center; gap: 7px; }
.bk-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); }
.bk-steps li span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bk-steps li.cur { color: var(--ink); font-weight: 600; }
.bk-steps li.cur span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bk-steps li.done span { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.nps-intro { margin: -12px 0 20px; font-size: 14.5px; line-height: 1.55; max-width: 560px; }
.nps-form { max-width: 600px; }
.nps-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.nps-q legend { padding: 0; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; line-height: 1.4; color: var(--ink); }
.nps-q legend .req, .nps-form label .req { color: var(--bad); }
.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.nps-n { position: relative; margin: 0; }
.nps-n input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nps-n span { display: grid; place-items: center; height: 42px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--ink-2); background: var(--card); cursor: pointer; transition: background .12s, border-color .12s; }
.nps-n:hover span { border-color: var(--brand); color: var(--brand); }
.nps-n input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.nps-lo input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff; }
.nps-mid input:checked + span { background: var(--warn); border-color: var(--warn); color: #16181d; }
.nps-hi input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.nps-ends { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.nps-miss .nps-n span { border-color: var(--bad); }
.nps-miss legend { color: var(--bad); }
.nps-ref { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 4px; margin: 4px 0 16px; }
.nps-ref-t { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.nps-ref .hint { margin: 4px 0 12px; color: var(--brand); font-weight: 500; }
.nps-ref-f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.nps-ref-f + .nps-ref-f { border-top: 1px dashed var(--line); padding-top: 12px; }
.nps-ref-n { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.nps-ref-n .bk-link { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.nps-ref-n .bk-link:hover { color: var(--bad); }
.nps-add { border-color: var(--brand); color: var(--brand); border-radius: 999px; margin: 0 0 14px; }
.nps-game { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.nps-game svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-thanks { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); color: var(--ink); border-radius: 9px; padding: 10px 14px; margin-bottom: 18px; font-size: 14.5px; }
.bk-thanks svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bk-mine { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .bk-pick.has-times { grid-template-columns: 1fr; }
  .bk-cal { max-width: none; }
}
@media (max-width: 760px) {
  .bk-wrap { padding: 16px 12px 24px; }
  .bk-card, .bk-card.is-wide { grid-template-columns: 1fr; min-height: 0; }
  .bk-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .bk-main { padding: 22px 18px; }
  .bk-logo { height: 30px; margin-bottom: 16px; }
  .bk-title { font-size: 22px; margin-bottom: 14px; }
  .bk-welcome { font-size: 14px; }
  .bk-d { width: 40px; height: 40px; }
  .bk-slots { max-height: none; }
  .nps-scale { gap: 3px; }
  .nps-n span { height: 38px; font-size: 13.5px; border-radius: 6px; }
  .nps-ref-f { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .bk-d { width: 36px; height: 36px; font-size: 14px; } .nps-n span { font-size: 12.5px; } }

/* ---------------------------------------------------------------- Pesquisa NPS: painel da agência */
.nps-month { gap: 8px; align-items: center; }
.nps-month strong { min-width: 130px; text-align: center; text-transform: capitalize; }
.nps-top { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-bottom: 16px; }
.nps-top > .card { margin-top: 0; }
.nps-top .lbl, .nps-avgs .lbl { font-size: 13px; color: var(--ink-3); }
.nps-hero { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nps-big { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.nps-bar { display: flex; gap: 2px; height: 14px; margin: 14px 0 12px; }
.nps-bar span { min-width: 6px; }
.nps-bar span:first-child { border-radius: 4px 0 0 4px; }
.nps-bar span:last-child { border-radius: 0 4px 4px 0; }
.nps-bar span:only-child { border-radius: 4px; }
.nps-seg-hi { background: var(--ok); } .nps-seg-mid { background: var(--warn); } .nps-seg-lo { background: var(--bad); }
.nps-seg-empty { flex: 1; background: var(--raised); border-radius: 4px; }
.nps-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.nps-legend div { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.nps-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.nps-legend strong { color: var(--ink); }
.nps-avgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.nps-avgs .num { font-size: 22px; font-weight: 700; color: var(--ink); }
.nps-chart { width: 100%; overflow: hidden; }
.nps-chart svg { display: block; }
.nps-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.nps-zero { stroke: var(--ink-3); stroke-width: 1; }
.nps-axis { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
.nps-axis.sel { fill: var(--ink); font-weight: 700; }
.nps-col { fill: var(--brand); opacity: .45; }
.nps-col.sel { opacity: 1; }
.nps-val { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: inherit; }
.nps-none { fill: var(--ink-3); opacity: .5; }
.nps-hit { fill: transparent; cursor: pointer; outline: none; }
.nps-hit.on { fill: var(--brand-soft); opacity: .5; }
.nps-tip { position: absolute; z-index: 50; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 8px 11px; font-size: 13px; color: var(--ink); pointer-events: none; max-width: 280px; }
.nps-tip strong { text-transform: capitalize; }
.nps-table td { vertical-align: top; }
.nps-table .badge { margin-top: 6px; }
.nps-cells { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 14px; }
.nps-cell { display: flex; flex-direction: column; font-size: 12px; }
.nps-cell strong { font-size: 16px; color: var(--ink); }
.nps-cell strong.nps-low { color: var(--bad); }
.nps-comment { max-width: 300px; white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); }
.nps-del { margin-top: 10px; gap: 5px; color: var(--ink-2); }
.nps-del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nps-del:hover { color: var(--bad); border-color: var(--bad); }
.nps-ref-item + .nps-ref-item { margin-top: 8px; }
.nps-ref-count { margin-bottom: 4px; }
.nps-qs { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .nps-top { grid-template-columns: 1fr; }
  .nps-big { font-size: 42px; }
  .nps-avgs { gap: 8px; }
  .nps-avgs .num { font-size: 19px; }
}

/* ---------------------------------------------------------------- Reunião Mensal: painel da agência */
.rm-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rm-link input { width: 300px; max-width: 100%; font-size: 13.5px; background: var(--raised); padding: 8px 10px; }
.rm-week { display: grid; gap: 10px; }
.rm-day { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.rm-dot { width: 46px; height: 34px; border-radius: 17px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; margin-top: 2px; }
.rm-ranges { display: grid; gap: 8px; }
.rm-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rm-range input[type=time] { width: 136px; padding: 8px 10px; }
.rm-off { color: var(--ink-3); display: flex; gap: 10px; align-items: center; min-height: 38px; }
.rm-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 17px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; }
.rm-icon:hover { background: var(--raised); color: var(--ink); }
.rm-ov { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: start; }
.rm-ov + .rm-ov { margin-top: 8px; }
.rm-ov .rm-date { font-weight: 600; padding-top: 6px; }
@media (max-width: 620px) { .rm-ov { grid-template-columns: 1fr; } }
.rm-sub { font-size: 15px; margin: 22px 0 4px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.rm-when { white-space: nowrap; font-weight: 600; }
.rm-notes { max-width: 280px; white-space: pre-wrap; font-size: 13px; color: var(--ink-2); }

/* ---------------------------------------------------------------- escolher acesso */
.pick-list { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.pick:hover { border-color: var(--brand); background: var(--brand-soft); }
.pick-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.pick-txt { display: grid; flex: 1; min-width: 0; }
.pick-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-go { color: var(--ink-3); font-size: 22px; }
.usermenu .menu .menu-sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 8px 10px 2px; }
.usermenu .menu button.switch { display: flex; gap: 8px; align-items: baseline; }
.usermenu .menu button.switch .muted { font-size: 12px; }

/* Reunião Mensal: calendário pequeno do painel */
.rm-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.rm-table { margin: 0 -20px 0 0; }
.rm-mini { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.rm-mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rm-mhead strong { font-size: 14px; text-transform: capitalize; }
.rm-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.rm-mw { font-size: 11px; color: var(--ink-3); padding: 2px 0 4px; }
.rm-md { position: relative; height: 32px; display: grid; place-items: center; font-size: 13px; color: var(--ink-2); border-radius: 8px; border: 0; background: none; font-family: inherit; }
.rm-md.past { color: var(--ink-3); opacity: .6; }
.rm-md.today { box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: var(--ink); }
.rm-md.has { background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer; }
.rm-md.has:hover, .rm-md.has:focus-visible { background: var(--brand); color: var(--brand-ink); outline: none; }
.rm-md i { position: absolute; top: -4px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: 10px; font-style: normal; line-height: 16px; }
.rm-tip { position: absolute; z-index: 90; background: var(--ink); color: var(--bg); border-radius: 9px; padding: 9px 12px; font-size: 13px; box-shadow: var(--shadow-lg); max-width: 300px; pointer-events: none; }
.rm-tip strong { display: block; margin-bottom: 4px; font-size: 12px; opacity: .8; font-weight: 600; }
.rm-tip::first-letter { text-transform: uppercase; }
.rm-tip span { font-weight: 700; }
tr.rm-hl td { background: var(--brand-soft); }
@media (max-width: 900px) { .rm-split { grid-template-columns: 1fr; } .rm-mini { max-width: 340px; } .rm-table { margin: 0 -20px; } }

/* ---------------------------------------------------------------- WhatsApp */
.wa-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #25d366; color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.wa-how { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.wa-manual { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.wa-manual summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.wa-sec { }
.wa-chat { max-height: 360px; overflow-y: auto; background: var(--col); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.wa-day { align-self: center; font-size: 11.5px; color: var(--ink-3); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 6px 0 2px; }
.wa-msg { display: flex; }
.wa-msg.out { justify-content: flex-end; }
.wa-bubble { max-width: 82%; background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 7px 10px 5px; font-size: 14px; line-height: 1.4; }
.wa-msg.out .wa-bubble { background: color-mix(in srgb, #25d366 16%, var(--card)); border-color: color-mix(in srgb, #25d366 30%, var(--line)); border-radius: 12px 12px 4px 12px; }
.wa-text { white-space: pre-wrap; word-break: break-word; }
.wa-meta { font-size: 11px; color: var(--ink-3); text-align: right; margin-top: 3px; }
.wa-tick { letter-spacing: -2px; }
.wa-tick.lida { color: #34b7f1; }
.wa-tick.falhou { color: var(--bad); font-weight: 700; letter-spacing: 0; }
.wa-img { display: block; max-width: 100%; max-height: 240px; border-radius: 8px; margin-bottom: 4px; }
.wa-bubble audio { max-width: 240px; display: block; margin-bottom: 4px; }
.wa-compose { display: flex; gap: 8px; align-items: flex-end; }
.wa-compose textarea { min-height: 44px; flex: 1; }

/* ---------------------------------------------------------------- Agenda ligada ao Google */
.gbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; color: var(--ink); }
.gbanner.ok { background: var(--raised); color: var(--ink-2); }
.text-bad { color: var(--bad); }
.cal-ev.gev { background: var(--raised); color: var(--ink-2); border-left: 3px solid var(--ink-3); }
.row-ev.gev strong { color: var(--ink-2); font-weight: 600; }
.gtag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.gbring { margin: 0 0 4px; padding: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; font-size: 14px; }
.check-row input { margin-top: 3px; width: auto; }
.check-row .hint { display: block; margin-top: 2px; }
.gcard-status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- limites do plano */
.text-bad { color: var(--bad); }
.text-warn { color: var(--warn); }
.plan-banner { margin: 0 0 14px; }
.plan-use { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 16px; }
.plan-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--raised); }
.plan-stat .lbl { font-size: 12.5px; color: var(--ink-2); }
.plan-stat .num { font-size: 24px; font-weight: 700; margin: 2px 0 6px; }
.plan-stat .num span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.meter span { display: block; height: 100%; background: var(--ok, #3cb371); border-radius: 99px; }
.meter.aviso span { background: var(--warn); }
.meter.cheio span { background: var(--bad); }
.fields-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 860px) { .fields-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plan-use, .fields-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- atividades */
.ico { flex: none; vertical-align: middle; }
.act-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.act-chip.today { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.act-chip.late { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.act-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); flex: none; }
.act-done { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2, var(--line)); background: var(--card); color: transparent; font-size: 12px; line-height: 1; display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.act-done:hover { border-color: var(--ok, #3cb371); color: var(--ok, #3cb371); }
.act-done.meet { border: 0; background: var(--raised); color: var(--ink-2); cursor: default; }
.done .act-done, .act-row.done .act-done { background: var(--ok, #3cb371); border-color: var(--ok, #3cb371); color: #fff; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.act-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.act-item .act-main { flex: 1; min-width: 0; }
.act-item .act-ico { width: 26px; height: 26px; border-radius: 7px; }
.act-item.late { border-color: var(--bad-soft); background: linear-gradient(0deg, var(--bad-soft), var(--bad-soft)), var(--card); }
.act-item.late .act-when { color: var(--bad); font-weight: 600; }
.act-item.today { border-color: var(--warn-soft); background: linear-gradient(0deg, var(--warn-soft), var(--warn-soft)), var(--card); }
.act-item.today .act-when { color: var(--warn); font-weight: 600; }
.act-item.done { opacity: .65; }
.act-item.done strong { text-decoration: line-through; }
.act-note { color: var(--ink-2); margin-top: 3px; white-space: pre-wrap; }
.act-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.act-type { 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: 7px 10px; border-radius: 9px; cursor: pointer; }
.act-type:hover { color: var(--ink); }
.act-type.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.act-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.act-bar select { width: auto; }
.act-period { display: flex; flex-wrap: wrap; gap: 6px; }
.act-typebar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.act-tf { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.act-tf:hover { background: var(--raised); color: var(--ink); }
.act-tf.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.list-wrap .act-table { min-width: 760px; }
.act-table td { vertical-align: middle; }
.act-table .act-c { width: 44px; text-align: center; }
.act-row { cursor: pointer; }
.act-row:hover td { background: var(--raised); }
.act-subj { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.act-due { font-size: 13.5px; }
.act-due.late { color: var(--bad); font-weight: 600; }
.act-due.today { color: var(--warn); font-weight: 600; }
.act-row.done strong { text-decoration: line-through; color: var(--ink-2); }
.act-row.done .act-due { color: var(--ink-2); }
.act-ev { display: flex; align-items: center; gap: 4px; }
.act-ev.late { background: var(--bad-soft); border-left-color: var(--bad); }
.act-ev.today { background: var(--warn-soft); border-left-color: var(--warn); }
.act-ev.done { opacity: .5; text-decoration: line-through; border-left-color: var(--line); background: var(--raised); }
.act-off { max-width: 680px; text-align: center; margin: 10px auto; padding: 34px 28px; }
.act-off-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.act-off p { line-height: 1.6; }
.act-cfg { margin-bottom: 16px; }
.act-cfg h3 { margin: 18px 0 8px; font-size: 15px; }
.act-switches { display: grid; gap: 4px; margin-top: 10px; }
.rule-list { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.rule-when { display: flex; gap: 6px; align-items: center; }
.rule-when input { width: 70px; }
.rule-when select { width: auto; }
.rule-on { display: flex; gap: 6px; align-items: center; font-size: 13px; margin: 0; white-space: nowrap; }
.rule-row input[type=checkbox] { width: auto; }
@media (max-width: 860px) { .rule-row { grid-template-columns: 1fr 1fr; } .rule-row > input[type=text] { grid-column: 1 / -1; order: 2; } .rule-when { order: 3; } .rule-on { order: 4; } .rule-row > .btn { order: 5; justify-self: end; } }
.type-list { display: flex; flex-direction: column; gap: 6px; }
.type-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.type-row.off { opacity: .6; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-pick { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.icon-pick:hover { color: var(--ink); }
.icon-pick.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 640px) { .hide-sm { display: none; } .list-wrap .act-table { min-width: 0; } .act-subj { min-width: 0; } }
.act-mob { display: none; font-size: 13px; margin-top: 3px; }
@media (max-width: 640px) { .act-mob { display: block; } .act-table .act-c { width: 36px; padding-left: 10px; padding-right: 0; } }
@media (max-width: 640px) { .type-row .sub { display: none; } .type-row strong { flex: 1; min-width: 0; } .type-row .spacer { display: none; } }

/* ---------------------------------------------------------------- WhatsApp: vários números, arquivos e áudio */
.wa-num h2 { font-size: 18px; }
.wa-set { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.wa-set summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.wa-set form { margin-top: 10px; }
.wa-num-tag { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); margin-right: 2px; }
.wa-msg.robo .wa-bubble { background: var(--brand-soft); border-color: transparent; }
.wa-via { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 8px 0 6px; font-weight: 400; }
.wa-via select { width: auto; padding: 4px 8px; font-size: 13px; }
.wa-compose .wa-icon { padding: 6px 8px; align-self: flex-end; }
.wa-rec { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); font-size: 14px; }
.wa-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: waRec 1s infinite; }
@keyframes waRec { 50% { opacity: .25; } }
.api-key-new { margin-top: 12px; }
.api-key-new code { display: block; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; word-break: break-all; user-select: all; }
.key-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.key-row:last-child { border-bottom: 0; }
.key-row.revoked { opacity: .55; }
.key-row code { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 860px) { .plan-use { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plan-use { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Agenda de captações */
.sh-cal .cal-day.sh-day { min-height: 132px; cursor: default; gap: 2px; }
.sh-cal .cal-day.sh-day:hover { background: transparent; }
.sh-full { display: flex; flex-direction: column; gap: 2px; }
.sh-half { flex: 1; display: flex; flex-direction: column; gap: 2px; border-radius: 6px; padding: 2px 3px; min-height: 34px; cursor: pointer; border: 1px dashed transparent; }
.sh-half + .sh-half { border-top: 1px dashed var(--line); border-radius: 0 0 6px 6px; }
.sh-half:hover { background: var(--raised); border-color: var(--line); }
.sh-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.sh-chip { display: block; width: 100%; text-align: left; font: inherit; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; border: 0; border-left: 3px solid; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.sh-chip.full { font-weight: 600; }
.sh-newprov { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 12px; }
.sh-pact { white-space: nowrap; text-align: right; } .sh-pact .btn-link { margin-left: 10px; }
.sh-chip.st-pendente { background: var(--warn-soft); border-color: var(--warn); }
.sh-chip.st-atrasado { background: var(--bad-soft); border-color: var(--bad); }
.sh-chip.st-pronto { background: var(--ok-soft); border-color: var(--ok); }
.sh-chip.st-feita { background: var(--raised); border-color: var(--line); color: var(--ink-3); }
.sh-chip.cancel { text-decoration: line-through; }
.sh-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sh-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sh-dot.st-pendente { background: var(--warn); } .sh-dot.st-atrasado { background: var(--bad); }
.sh-dot.st-pronto { background: var(--ok); } .sh-dot.st-feita { background: var(--line); }
.sh-row { align-items: center !important; flex-wrap: wrap; }
.sh-when { display: flex; flex-direction: column; min-width: 74px; }
.sh-what { flex: 1; min-width: 200px; }
.sh-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-past summary { cursor: pointer; margin: 18px 0 6px; color: var(--ink-2); font-weight: 600; }
.strike { text-decoration: line-through; }
.modal:has(.sh-detail), .modal:has([data-f] [name=shift]) { max-width: 640px; }
.sh-h { font-size: 14px; margin: 18px 0 8px; }
[data-f] [data-due] { margin: -4px 0 12px; }
.sh-file { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; word-break: break-all; }
.sh-refs { margin: 0; padding-left: 18px; } .sh-refs li { margin-bottom: 4px; word-break: break-word; }
.sh-notes { white-space: pre-wrap; margin: 0; }
.sh-hist { margin-top: 16px; } .sh-hist summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.sh-hist ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; } .sh-hist li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.sh-actions { margin-top: 18px; gap: 8px; flex-wrap: wrap; }
.sh-shifts { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-shifts label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13.5px; }
.sh-shifts label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sh-ref { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 6px; }
@media (max-width: 520px) { .sh-ref { grid-template-columns: 1fr auto; } .sh-ref [data-ru] { grid-column: 1 / 2; } }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; }
.btn-link.text-bad { color: var(--bad); }
@media (max-width: 760px) {
  .sh-cal .cal-day.sh-day { min-height: 96px; padding: 3px; }
  .sh-lbl { font-size: 0; }
  .sh-lbl::after { content: attr(data-s); font-size: 9.5px; }
  .sh-chip { font-size: 10.5px; padding: 2px 4px; }
}
.cp-wrap { max-width: 640px; margin: 0 auto; padding: 28px 16px; }
.cp-logo { height: 38px; display: block; margin: 0 auto 18px; }
.cp-card { padding: 24px; }
.cp-when { font-size: 16px; margin: 0 0 14px; }

/* ---------------------------------------------------------------- Relatórios de tráfego */
.rp-head { align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.rp-bar select { width: auto; min-width: 180px; }
.rp-custom { display: inline-flex; gap: 6px; align-items: center; } .rp-custom input { width: auto; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rp-cards > .card, .rp-card { margin: 0; padding: 14px 16px; }
.rp-card .lbl { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.rp-num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-chg { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rp-chg.up-good { color: var(--ok); } .rp-chg.up-bad { color: var(--bad); } .rp-chg .muted { font-weight: 400; }
.rp-note { border-left: 3px solid var(--brand); } .rp-note .lbl { font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rp-note p { margin: 6px 0 0; white-space: normal; line-height: 1.55; }
.rp-chart svg { width: 100%; height: 240px; display: block; }
.rp-b { fill: color-mix(in srgb, var(--ink-3) 45%, transparent); } .rp-b:hover { fill: var(--ink-3); }
.rp-l { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rp-d { fill: var(--brand); } .rp-g { stroke: var(--line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; } .rp-g0 { stroke: var(--line); vector-effect: non-scaling-stroke; }
.rp-t { fill: var(--ink-3); font-size: 11px; }
.rp-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.rp-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.rp-bar-i { width: 12px; height: 10px; background: color-mix(in srgb, var(--ink-3) 45%, transparent); border-radius: 2px; display: inline-block; }
.rp-line-i { width: 14px; height: 3px; background: var(--brand); border-radius: 2px; display: inline-block; }
.rp-table td.num, .rp-table th.num, td.num, th.num { text-align: right; white-space: nowrap; }
.rp-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rp-ad { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.rp-thumb { aspect-ratio: 1 / 1; background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-ad-b { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-ad-b strong, .rp-ad-b > .small:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ad-res { font-size: 18px; font-weight: 700; color: var(--brand); margin-top: 4px; } .rp-ad-res span { font-size: 12.5px; font-weight: 600; }
.rp-empty { text-align: center; padding: 40px 20px; }
.rp-warn { border-color: var(--warn); }
.rp-actions { white-space: nowrap; text-align: right; } .rp-actions .btn + .btn { margin-left: 6px; }
.modal:has(.rp-cfg) { max-width: 680px; }
.rp-acclist { list-style: none; margin: 0; padding: 0; } .rp-acclist li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rp-mets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }
.rp-mets .check-row { margin: 0; }
@media (max-width: 560px) {
  .rp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rp-card { padding: 11px 12px; } .rp-num { font-size: 19px; }
  .rp-chg .muted { display: block; }
  .rp-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rp-chart svg { height: 180px; }
}
.rm-acts { white-space: nowrap; } .rm-acts .btn + .btn { margin-left: 6px; }
.rm-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }

/* ---------------------------------------------------------------- Agente de IA */
.ag-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .ag-layout { grid-template-columns: 1fr; } }
.ag-steps { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
@media (max-width: 860px) { .ag-steps { flex-direction: row; overflow-x: auto; position: static; } }
.ag-steps button { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; white-space: nowrap; }
.ag-steps button:hover { background: var(--raised); }
.ag-steps button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.ag-steps .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ag-steps .n.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ag-panel h2 { margin-top: 0; }
.ag-nav { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.ag-k { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ag-k-body { margin-top: 6px; white-space: pre-wrap; max-height: 4.5em; overflow: hidden; }
.ag-campo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ag-campo > input[data-c="label"] { flex: 1 1 260px; }
.ag-campo select { width: auto; }
.ag-req { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.ag-req input { width: auto; }
.ag-opts { flex-basis: 100%; }
.ag-review { grid-template-columns: 170px 1fr; font-size: 14px; gap: 8px 14px; }
.ag-num { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.ag-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.ag-state.bot { background: var(--brand-soft); }
.ag-state.team { background: var(--raised); border: 1px solid var(--line); }
.ag-summary { margin-top: 10px; background: var(--raised); border-radius: 9px; padding: 9px 12px; font-size: 14px; }
.temp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 1px; margin-left: 2px; }
.temp-dot.quente, .temp-tag.quente { background: #f26363; }
.temp-dot.morno, .temp-tag.morno { background: #f0b04a; }
.temp-dot.frio, .temp-tag.frio { background: #5aa9f0; }
.temp-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; padding: 2px 9px; border-radius: 999px; }
.wa-ai, .sim-ai { font-size: 12.5px; color: var(--ink-2); font-style: italic; border-left: 2px solid var(--line); padding-left: 8px; margin: 4px 0 2px; white-space: pre-wrap; }
.history li.ev-agente strong { color: var(--brand); }
.wa-msg.robo .wa-bubble { background: color-mix(in srgb, var(--brand) 13%, var(--card)); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }

/* Simulador */
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .sim-layout { grid-template-columns: 1fr; } }
.sim-phone { display: flex; flex-direction: column; }
.sim-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sim-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sim-chat { min-height: 380px; max-height: 60vh; overflow-y: auto; background: var(--col); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sim-compose { display: flex; gap: 8px; align-items: flex-end; }
.sim-compose textarea { min-height: 44px; flex: 1; }
.sim-typing .wa-text { color: var(--ink-3); font-style: italic; }
.sim-side h2 { font-size: 17px; }
.sim-side .kv { grid-template-columns: 120px 1fr; }
.sim-actions { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }

/* Conectar WhatsApp: guia antes de conectar */
.wa-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--raised); border-radius: 12px; padding: 14px 16px; margin: 6px 0 12px; }
@media (max-width: 800px) { .wa-guide { grid-template-columns: 1fr; } }
.wa-guide h3 { margin: 0 0 8px; font-size: 14px; }
.wa-check, .wa-steps { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 6px; }
.wa-check { list-style: none; padding-left: 0; }
.wa-check li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* ---- Addetto: paleta da marca (laranja #FF6B18, grafite #202020, off-white #F7F3EE) */
:root { --brand-ink: #202020; }
:root[data-theme="claro"] {
  --bg: #F7F3EE;
  --raised: #FBF8F4;
  --col: #EFE9E1;
  --line: #EDE6DD;
  --ink: #202020;
  --ink-2: #3D3833;
  --ink-3: #6B645C;
  --topbar-hover: #F7F3EE;
  --topbar-active: #FCE2CF;
  --brand-soft: #FCE2CF;
}
.btn-primary { font-weight: 700; }
.card { border-radius: 18px; }
.btn { border-radius: 12px; }
.tpl-preview { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; line-height: 1.5; }
.tpl-preview mark { background: var(--brand-soft); color: var(--ink); border-radius: 4px; padding: 0 3px; }
