/* ClinPRO Comercial: branco, preto e roxo. Linhas finas, sem caixas desnecessárias. */
:root {
  --bg: #ffffff; --fg: #0b0b0f; --muted: #6e6e78; --faint: #a3a3ad;
  --line: #ececf0; --soft: #f7f7f9;
  --accent: #a02af4; --accent-ink: #ffffff; --accent-soft: #f5ebfe; --accent-dark: #7d12cc;
  --ok: #17803d; --bad: #c8283e; --warn: #9a6200;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: 15px; } h3 { font-size: 13px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* barra do topo */
.bar { background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 10; }
.bar-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 12px; }
.bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pb { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-weight: 500; text-decoration: none; position: relative; }
.pb:hover { background: rgba(255,255,255,.16); }
.pb.ghost { border-color: transparent; background: none; }
.pb.ghost:hover { background: rgba(255,255,255,.12); }
.pb .dot { position: absolute; top: 8px; right: 10px; background: #fff; }
.brandchip { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--fg); border-radius: 12px; padding: 7px 12px; text-decoration: none; flex: none; }
.brandchip svg, .drawer-head svg { height: 18px; width: auto; display: block; stroke: none; fill: initial; }
.tag { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.search { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.14); }
.search:focus-within { background: #fff; color: var(--fg); }
.search input[type=search] { flex: 1; min-width: 0; border: 0; background: none; color: inherit; padding: 0; outline: none; border-radius: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: rgba(255,255,255,.8); }
.search:focus-within input::placeholder { color: var(--faint); }
.search kbd { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.85); }
.search:focus-within kbd { display: none; }
.res { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--fg); border-radius: 14px; box-shadow: 0 18px 48px rgba(20, 10, 40, .18); padding: 8px; max-height: 70vh; overflow: auto; }
.res .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px 4px; }
.res a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.res a:hover, .res a.on { background: var(--accent-soft); }
.res a span:last-child { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.res .empty { padding: 10px; color: var(--muted); }
.metapill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px; background: #fff; color: var(--accent-dark); text-decoration: none; font-size: 13px; flex: none; }
.metapill b { font-size: 16px; }
.metapill.done { color: var(--ok); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent-dark); display: grid; place-items: center; font-weight: 700; flex: none; }

/* menu lateral */
.drawer { margin: 0; height: 100%; max-height: none; width: min(320px, 88vw); border-radius: 0 16px 16px 0; padding: 20px; will-change: transform; }
.drawer[open] { animation: drawer-in .32s cubic-bezier(.22, 1, .36, 1); }
.drawer[open]::backdrop { animation: veu-in .32s ease; }
.drawer.fechando { animation: drawer-out .22s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
.drawer.fechando::backdrop { animation: veu-out .22s ease forwards; }
.drawer[open] .drawer-nav a { animation: item-in .32s cubic-bezier(.22, 1, .36, 1) both; }
.drawer[open] .drawer-nav a:nth-of-type(2) { animation-delay: .02s; } .drawer[open] .drawer-nav a:nth-of-type(3) { animation-delay: .04s; }
.drawer[open] .drawer-nav a:nth-of-type(4) { animation-delay: .06s; } .drawer[open] .drawer-nav a:nth-of-type(5) { animation-delay: .08s; }
.drawer[open] .drawer-nav a:nth-of-type(n+6) { animation-delay: .1s; }
.drawer.fechando .drawer-nav a { animation: none; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes veu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes veu-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes item-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer[open]::backdrop, .drawer[open] .drawer-nav a { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.drawer-nav a:hover { background: var(--soft); }
.drawer-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.drawer-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-nav .sep { height: 1px; background: var(--line); margin: 8px 0; }

/* início */
.home { text-align: center; padding-top: 24px; }
.h-date { color: var(--muted); margin: 0; font-size: 15px; }
.h-hello { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.035em; margin-top: 6px; }
.h-sub { color: var(--muted); font-size: 17px; margin: 8px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 22px 26px; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #dcc2fb; box-shadow: 0 10px 30px rgba(160, 42, 244, .10); transform: translateY(-2px); }
.card .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.card .st { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.card .st.alerta { color: var(--bad); background: #fcebed; }
.todaybox { max-width: 1120px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; text-align: left; }
.todaybox-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.todaybox-hd h2 { font-size: 20px; }
.todaybox-hd .link { margin-left: auto; }

/* agenda (início e aba) */
.ag { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.ag:hover .t { color: var(--accent-dark); }
.ag time { font-size: 17px; font-weight: 600; }
.ag time.none { color: var(--faint); font-size: 13px; font-weight: 500; }
.ag .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag .d { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag .late { color: var(--bad); font-size: 12px; font-weight: 600; }
.ag .chev { color: var(--faint); }
.tipo { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; justify-self: start; background: var(--soft); color: var(--muted); }
.tipo.reuniao { background: var(--accent); color: #fff; }
.tipo.fechar { background: var(--fg); color: #fff; }
.tipo.retorno { background: var(--accent-soft); color: var(--accent-dark); }
.tipo.trial { background: #fbf3e4; color: var(--warn); }
.tipo.aumento { background: #eaf6ee; color: var(--ok); }
.agenda h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 4px; }
.agenda h2:first-child { margin-top: 0; }
.agenda h2.bad { color: var(--bad); }

/* pipeline */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { min-width: 0; background: var(--soft); border-radius: 14px; padding: 12px; min-height: 120px; }
.col-hd { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
.col-hd b { font-size: 13px; }
.col-hd span { color: var(--muted); font-size: 12.5px; }
.col-hd .mrr { display: block; color: var(--ok); font-size: 12px; }
.kc { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.kc:hover { border-color: var(--accent); }
.kc .nm { min-width: 0; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.kc .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc .m2 { color: var(--muted); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc .m2.late { color: var(--bad); }
.col .more { display: block; text-align: center; font-size: 12.5px; padding: 6px; }

.pagehead { margin-bottom: 22px; }
.pagehead h1 { font-size: 26px; letter-spacing: -.025em; }
.pagehead p { margin: 4px 0 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }

/* botões */
.btn { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 12px; font-weight: 500; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.dark { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; font-size: 13px; }
kbd { font: 500 11px var(--font); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--muted); }

/* linha do dia */
.dayline { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dayline .main { display: flex; align-items: baseline; gap: 8px; }
.dayline .big { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.dayline .of { color: var(--muted); }
.dayline .stat b { font-weight: 600; }
.dayline .stat { color: var(--muted); }
.dayline .stat b { color: var(--fg); }
.dayline .meter { flex: 1 1 200px; min-width: 160px; height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; align-self: center; }
.dayline .meter i { display: block; height: 100%; background: var(--accent); }

/* ligar */
.call { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 28px; align-items: start; }
.focus .why { font-size: 12px; color: var(--accent); font-weight: 600; }
.focus h1 { font-size: 26px; margin-top: 4px; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.facts .st { color: var(--fg); font-weight: 500; }
.prio { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); }
.prio.p3 { background: var(--accent); color: var(--accent-ink); }
.prio.p2 { background: var(--accent-soft); color: var(--accent-dark); }
.phone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phone .n { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-right: auto; user-select: all; }

.checks { margin-top: 22px; display: grid; }
.ck { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.ck input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--fg); border-radius: 4px; margin: 0; flex: none; display: grid; place-content: center; cursor: pointer; }
.ck input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ck input:checked { background: var(--accent); border-color: var(--accent); }
.ck input:checked::after { opacity: 1; }
.ck .t { font-weight: 500; }
.ck small { margin-left: auto; color: var(--faint); font-size: 12px; text-align: right; }
.ck.sub { padding-left: 28px; } .ck.sub2 { padding-left: 56px; }
.ck.dis { opacity: .35; cursor: not-allowed; }
.ck.dis input { cursor: not-allowed; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pills label { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label:has(input:checked) { border-color: var(--fg); background: var(--fg); color: #fff; }
.pills label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.when { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.when label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { font-size: 12px; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.quick button:hover { border-color: var(--fg); }
:where(input[type=text], input[type=search], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=month], input:not([type]), select, textarea) { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
input:hover, select:hover, textarea:hover { border-color: #d4d4dc; }
textarea { width: 100%; resize: vertical; }
.focus textarea { margin-top: 16px; min-height: 56px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.actions .btn.primary { padding: 10px 18px; font-size: 14px; }
.actions .kb { margin-left: auto; color: var(--faint); font-size: 12px; }
.err { color: var(--bad); font-size: 13px; margin: 10px 0 0; }
.meet { margin-top: 22px; padding: 16px; background: var(--accent-soft); border-radius: 10px; }
.meet p { margin: 0 0 10px; font-weight: 500; }
.meet .row { display: flex; gap: 8px; flex-wrap: wrap; }
.hist { margin-top: 28px; display: grid; gap: 8px; font-size: 13px; }
.hist .it { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.hist time { color: var(--muted); }
.tk { font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 4px; background: var(--soft); color: var(--muted); }
.tk.on { color: var(--ok); background: #eaf6ee; }
.tk.off { color: var(--bad); background: #fcebed; }

.queue h3 { display: flex; justify-content: space-between; margin: 22px 0 6px; color: var(--muted); font-weight: 500; }
.queue h3:first-child { margin-top: 0; }
.qi { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; }
.qi:hover { background: var(--soft); }
.qi.cur { background: var(--accent-soft); }
.qi > div { min-width: 0; flex: 1; }
.qi .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi .m2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tabelas e barras de ferramentas */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1 1 220px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .seg { margin: 0; }
.seg button { border: 1px solid transparent; background: none; border-radius: 99px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { border-color: var(--fg); color: var(--fg); }
.tablewrap { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl tbody tr[data-id]:hover td { background: var(--soft); }
.tbl .c { text-align: center; } .tbl .r { text-align: right; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
.y { color: var(--ok); font-weight: 700; } .no { color: var(--bad); } .na { color: var(--line); }
.pill { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.pill.Ativo, .pill.ganho { background: #eaf6ee; color: var(--ok); }
.pill.Trial, .pill.agendado, .pill.reuniao_feita, .pill.em_contato { background: var(--accent-soft); color: var(--accent-dark); }
.pill.Cancelado, .pill.perdido, .pill.invalido, .pill.esgotado { background: #fcebed; color: var(--bad); }
.pill.Pausado, .pill.tentando { background: #fbf3e4; color: var(--warn); }
.alert { color: var(--bad); font-size: 12.5px; }
.alert.info { color: var(--muted); }

/* resumo */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.kpis.kpis-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis-2 .v { font-size: 22px; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.kpi .s { color: var(--muted); font-size: 12.5px; }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block > h2 { margin-bottom: 4px; }
.block > .muted { margin: 0 0 16px; font-size: 13px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.goal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.goal .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.goal .bar i { display: block; height: 100%; background: var(--accent); }
.goal .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.goal .big small { font-size: 16px; color: var(--muted); font-weight: 500; }
.chain { display: grid; gap: 0; }
.chain .st { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 9px 0; border-bottom: 1px solid var(--line); }
.chain .st b { font-weight: 600; }
.chain .st.hl b { color: var(--accent); font-size: 17px; }
.chain .st span:last-child { text-align: right; }
.note { margin-top: 12px; font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.note.bad { background: #fcebed; }
.inline-edit { display: inline-flex; gap: 6px; align-items: center; }
.inline-edit input { width: 120px; }
.fun .st { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 12px; align-items: center; padding: 7px 0; }
.fun .tr { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.fun .tr i { display: block; height: 100%; background: var(--fg); }
.fun .st.leak .tr i { background: var(--bad); }
.fun .st.leak .pc { color: var(--bad); }
.fun .pc { text-align: right; font-weight: 600; }
.fun .pc small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.mini { display: grid; gap: 0; }
.mini .rw { display: grid; grid-template-columns: minmax(0, 1fr) 70px 90px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini .rw span:not(:first-child) { text-align: right; }
.mini .hd { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ajustes */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.form-grid label, .grid-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.planos { display: grid; gap: 8px; max-width: 420px; }
.planos .rw { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.rev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rev .boxes { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rev .boxes label { display: flex; gap: 5px; align-items: center; }
.rev input[type=checkbox] { accent-color: var(--accent); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; font-size: 13px; max-width: 460px; }
.kv span:nth-child(even) { text-align: right; font-weight: 500; }

/* diálogo */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: 0 24px 64px rgba(10, 10, 20, .18); color: var(--fg); }
dialog::backdrop { background: rgba(11, 11, 15, .35); }
dialog form { padding: 22px 24px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dlg-head h2 { font-size: 18px; }
.x { border: 0; background: none; font-size: 22px; color: var(--muted); line-height: 1; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid-form .span2 { grid-column: 1 / -1; }
.grid-form .chk { flex-direction: row; align-items: center; gap: 8px; color: var(--fg); }
.grid-form .chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.grid-form.inner { margin-top: 10px; }
details summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 500; }
.dlg-foot { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.dlg-foot .muted { margin-right: auto; }
dialog:not(.cancel) .if-cancel, dialog:not(.trial) .if-trial { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; display: flex; gap: 14px; align-items: center; z-index: 30; max-width: calc(100% - 32px); }
.toast button { border: 0; background: none; color: #d6a6ff; font-weight: 600; padding: 0; }

@media (max-width: 1100px) {
  .metapill span, .tag { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pb span { display: none; }
  .bar-in { gap: 8px; padding: 0 16px; }
  .pb { padding: 0 12px; }
  .search kbd { display: none; }
  .ag { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .ag .tipo { display: none; }
}
@media (max-width: 1000px) {
  .call, .goal, .cols2, .cols3 { grid-template-columns: 1fr; gap: 32px; }
  .kpis, .kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metapill { padding: 0 12px; }
  .grid-form { grid-template-columns: 1fr; }
  .fun .st { grid-template-columns: 100px minmax(0, 1fr) 80px; }
  .ck.sub { padding-left: 14px; } .ck.sub2 { padding-left: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================= camada viva: movimento e luz ================= */
:root { --hot: #ff4d6d; --warm: #ff9f1c; --cold: #8aa1c1; --ease: cubic-bezier(.22,1,.36,1); }

/* troca de tela (View Transitions) */
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.bar { view-transition-name: bar; }

/* luz que segue o mouse */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(160, 42, 244, .10), transparent 45%); }
.spot:hover::before { opacity: 1; }
.card.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(160, 42, 244, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card.spot:hover::after { opacity: 1; }
.card .ic { transition: transform .35s var(--ease); }
.card:hover .ic { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

/* botão com brilho passando */
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3.6s var(--ease) infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.big { padding: 13px 22px; font-size: 15px; border-radius: 12px; gap: 10px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.big svg { fill: currentColor; stroke: none; }
.btn .cnt { background: rgba(255,255,255,.22); border-radius: 99px; padding: 1px 9px; font-size: 13px; }
.btn.dark svg { stroke: currentColor; }

/* aurora atrás da saudação */
.home { position: relative; }
.aurora { position: absolute; inset: -28px -24px auto; height: 380px; z-index: -1; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.aurora i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .28; animation: blob 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #c77dff; left: 8%; top: -260px; }
.aurora i:nth-child(2) { background: #a02af4; right: 6%; top: -300px; animation-delay: -6s; opacity: .18; }
.aurora i:nth-child(3) { background: #ffb3f0; left: 40%; top: -340px; animation-delay: -12s; opacity: .16; }
@keyframes blob { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 30px) scale(1.12); } 100% { transform: translate(-40px, 10px) scale(.95); } }
.h-hello { background: linear-gradient(100deg, var(--fg) 30%, #7d12cc 50%, var(--fg) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hello 6s var(--ease) 1 both; }
@keyframes hello { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ================= LIGAR: lista ================= */
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lhero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 8px 0 26px; }
.lhero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.lhero-txt > .muted { max-width: 620px; margin: 8px 0 0; font-size: 15px; }
.lhero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.lhero-ring { position: relative; display: grid; justify-items: center; gap: 10px; }
.ring-in { position: absolute; top: 0; height: 132px; display: grid; place-content: center; text-align: center; }
.ring-in b { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ring-in span { color: var(--muted); font-size: 12.5px; }
.ring-legend { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.ring-legend b { color: var(--fg); }
.lstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.lstat { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.lstat b { font-size: 24px; letter-spacing: -.03em; }
.lstat span:last-child { color: var(--muted); font-size: 13px; }
.lstat .dotc { width: 8px; height: 8px; border-radius: 50%; align-self: center; background: var(--accent); }
.lstat.quente .dotc { background: var(--hot); box-shadow: 0 0 0 4px rgba(255,77,109,.15); animation: pulse 2s infinite; }
.lstat.morno .dotc { background: var(--warm); } .lstat.frio .dotc { background: var(--cold); }
.lstat.reuniao .dotc { background: var(--fg); }
.lstat:hover { border-color: #dcc2fb; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,77,109,0); } }
.ltool { justify-content: space-between; }
.ltool .seg { margin: 0; }
.ltool input[type=search] { flex: 0 1 300px; }
.seg .muted { font-size: 12px; }

.lrows { display: grid; gap: 6px; }
.lrow { display: grid; grid-template-columns: 30px 118px minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1fr) 84px; gap: 16px; align-items: center;
  width: 100%; text-align: left; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.lrow:hover { border-color: #dcc2fb; transform: translateX(3px); box-shadow: 0 8px 24px rgba(160, 42, 244, .08); }
.lrow.later { background: var(--soft); }
.lrow.later .who .nm { color: var(--muted); }
.lrow .rank { color: var(--faint); font-size: 12.5px; font-weight: 600; text-align: right; }
.who { min-width: 0; display: grid; }
.who .nm { display: flex; gap: 8px; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .pf { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.why2 { display: flex; gap: 6px; overflow: hidden; }
.chip { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lrow .next { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .go { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); }
.lrow .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lrow:hover .go, .lrow:focus-visible .go { opacity: 1; transform: none; }
.vazio { display: grid; gap: 4px; place-items: center; padding: 48px 0; border: 1px dashed var(--line); border-radius: 14px; }

/* termômetro */
.temp { display: inline-flex; align-items: center; gap: 8px; }
.temp b { font-size: 13px; min-width: 22px; }
.tbar { width: 64px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tbar i { display: block; height: 100%; width: var(--w); border-radius: inherit; animation: grow .9s var(--ease) both; }
@keyframes grow { from { width: 0; } }
.temp.quente .tbar i { background: linear-gradient(90deg, var(--warm), var(--hot)); } .temp.quente b { color: var(--hot); }
.temp.morno .tbar i { background: linear-gradient(90deg, #ffd166, var(--warm)); } .temp.morno b { color: var(--warm); }
.temp.frio .tbar i { background: linear-gradient(90deg, #c9d6e8, var(--cold)); } .temp.frio b { color: var(--cold); }
.temp.big { flex-wrap: wrap; } .temp.big .tbar { width: 100%; height: 8px; order: 3; flex-basis: 100%; }
.temp.big b { font-size: 30px; letter-spacing: -.04em; } .temp.big span:not(.tbar) { font-weight: 600; font-size: 13px; }
.temp.big.quente span:not(.tbar) { color: var(--hot); } .temp.big.morno span:not(.tbar) { color: var(--warm); } .temp.big.frio span:not(.tbar) { color: var(--cold); }

/* ================= LIGAR: ligação ================= */
.callbar { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.callbar .back { padding-left: 4px; }
.sess { font-size: 13px; color: var(--muted); } .sess b { color: var(--fg); }
.callbar .dayline { margin-left: auto; padding: 0; border: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; flex-wrap: nowrap; }
.callbar .dl-n { color: var(--muted); } .callbar .dl-n b { color: var(--fg); font-size: 16px; }
.callbar .meter { width: 120px; flex: none; }
.call { grid-template-columns: minmax(0, 1fr) 380px; }
.lead-hd { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; align-items: start; }
.focus .why { display: flex; align-items: center; gap: 8px; }
.focus h1 { font-size: 30px; letter-spacing: -.03em; }
.tcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.tcard.quente { border-color: rgba(255,77,109,.35); box-shadow: 0 10px 30px rgba(255,77,109,.10); }
.tcard ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.tcard li { display: flex; gap: 8px; } .tcard li span { min-width: 28px; font-weight: 600; color: var(--fg); }
.side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fcf9ff, #fff 120px); }
.side .seg { margin-bottom: 12px; }
.script { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.s-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.s-n { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.s-hd .muted { margin-left: auto; }
.fala { margin: 0; font-size: 14px; line-height: 1.55; padding: 10px 12px; border-left: 2px solid var(--accent); background: #fff; border-radius: 0 10px 10px 0; }
.script ul { margin: 0; padding: 8px 12px 8px 28px; background: #fff; border-radius: 10px; display: grid; gap: 4px; font-size: 13.5px; }
.dica { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.obj { border-top: 1px solid var(--line); }
.obj summary { list-style: none; padding: 10px 0; cursor: pointer; font-weight: 500; font-size: 13.5px; display: flex; justify-content: space-between; color: var(--fg); }
.obj summary::-webkit-details-marker { display: none; }
.obj summary::after { content: "+"; color: var(--accent); font-weight: 600; transition: transform .25s var(--ease); }
.obj[open] summary::after { transform: rotate(45deg); }
.obj p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #33333d; }
.obj[open] p { animation: vt-in .3s var(--ease); }
.side .qi { gap: 12px; }
.side .qi .temp .tbar { width: 34px; }

.ck input { transition: background .15s, border-color .15s, transform .2s var(--ease); }
.ck input:checked { transform: scale(1.08); }
.ck input:active { transform: scale(.9); }

@media (max-width: 1100px) {
  .lrow { grid-template-columns: 26px 100px minmax(0, 1fr) minmax(0, 1fr) 70px; }
  .lrow .why2 { display: none; }
  .lstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-hd, .call { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .lhero { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 90px minmax(0, 1fr); }
  .lrow .rank, .lrow .next, .lrow .go { display: none; }
  .callbar .dayline { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .aurora i, .shine::after, .h-hello, .tbar i, .lstat.quente .dotc { animation: none !important; } }

/* ---- topo: venda e conta ---- */
.pb.sale { background: #fff; color: var(--accent-dark); border-color: #fff; font-weight: 600; cursor: pointer; }
.pb.sale:hover { background: #f5ebfe; }
button.avatar { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; transition: box-shadow .2s; }
button.avatar:hover, button.avatar[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
#user-menu a, #user-menu button { color: inherit; cursor: pointer; font: inherit; }
.btn svg { flex: none; }
/* ---- CRM ---- */
.crm-board { scrollbar-width: thin; scrollbar-color: #d4d4d8 transparent; }
.crm-list { scrollbar-width: thin; scrollbar-color: #e4e4e7 transparent; }
.crm-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crm-card { touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.crm-board { cursor: grab; }
.crm-board.cursor-grabbing, body.crm-arrastando, body.crm-arrastando * { cursor: grabbing !important; }
body.crm-arrastando { user-select: none; -webkit-user-select: none; }
.crm-origem { opacity: .35; transform: scale(.98); }
.crm-fantasma { position: fixed; z-index: 90; pointer-events: none; margin: 0; box-shadow: 0 24px 48px -12px rgb(60 20 110 / .35); will-change: transform; transition: none !important; }
.crm-col.crm-alvo { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
#v-crm .prio { font-size: 10px; }
dialog#dlg-ia { width: min(860px, calc(100% - 32px)); } dialog#dlg-lead { width: min(520px, calc(100% - 32px)); }
dialog#dlg-ia, dialog#dlg-lead { border: 0; border-radius: 20px; padding: 0; max-height: calc(100vh - 48px); }
dialog#dlg-ia::backdrop, dialog#dlg-lead::backdrop { background: rgba(15, 10, 30, .4); backdrop-filter: blur(2px); }

/* ---- celular ---- */
@media (max-width: 640px) {
  .callbar .dayline { flex-wrap: wrap; row-gap: 6px; }
  .callbar .dayline .meter { display: none; }
}
@media (max-width: 640px) {
  .home { overflow-x: clip; }
  .lstats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lstat { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
}
.tipo.google { background: #e8f0fe; color: #1a56db; }
a.ag { color: inherit; }
@media (max-width: 640px) {
  /* busca: ícone que abre na largura toda ao tocar */
  .bar .search { transition: none; }
  .bar .search:focus-within { position: absolute; left: 12px; right: 12px; z-index: 40; width: auto; max-width: none; }
  /* alvos de toque de pelo menos 36px */
  .seg button, .chips button, [data-lf], [data-cs] { min-height: 36px; }
}
@media (max-width: 640px) { .bar-in { position: relative; } }
@media (max-width: 640px) {
  .cards .card { padding: 18px 12px; }
  .cards .card p { display: none; }
  .cards .card h3 { margin: 10px 0 8px; }
}
