/* App do cliente Little Boss: identidade laranja e rosé, neutros quentes. */
:root {
  --orange: #FF6A1F; --rose: #E4457C; --rose-2: #F07AA2;
  --grad: linear-gradient(135deg, #FF6A1F 0%, #F2566B 55%, #E4457C 100%);
  --bg: #FBF6F3; --surface: #FFFFFF; --surface-2: #FFF3EC; --surface-3: #FDE8EF;
  --line: #F0E1DA; --line-2: #E6D2C9;
  --ink: #2B1A1C; --ink-2: #6E5658; --ink-3: #9C8486; --rose-ink: #B42A5C; --accent-ink: #B8401A;
  --ok: #1F9D6B; --ok-bg: #E3F6EE; --warn: #B7791F; --warn-bg: #FDF2DC; --bad: #D23B3B; --bad-bg: #FCE6E6; --info: #3A6FD8; --info-bg: #E6EEFC;
  --wa: #E7DED6; --wa-out: #DCF8C6;
  --shadow: 0 1px 2px rgba(80,30,20,.06), 0 8px 24px rgba(80,30,20,.06);
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17100F; --surface: #211816; --surface-2: #2C1D18; --surface-3: #2E1A22;
    --line: #3A2925; --line-2: #4A3530; --ink: #F7ECE8; --ink-2: #C9B3AE; --ink-3: #977F7A; --rose-ink: #F58BB0; --accent-ink: #FF9B66;
    --ok: #4CC793; --ok-bg: #16382A; --warn: #E5B04E; --warn-bg: #3A2D12; --bad: #F07070; --bad-bg: #3E1A1A; --info: #7EA6F5; --info-bg: #1A2742;
    --wa: #1E1714; --wa-out: #1F3B2A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15.5px; } h4 { font-size: 14px; }
p { margin: 0; }
a { color: var(--rose-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name.light, .brand-name.light b { color: #fff; background: none; -webkit-text-fill-color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.pad { padding: 20px; } .pad-sm { padding: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 15px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--rose-2); }
.btn.pri { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(228,69,124,.25); }
.btn.pri:hover { filter: brightness(1.05); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.big { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.p-ok { background: var(--ok-bg); color: var(--ok); } .p-warn { background: var(--warn-bg); color: var(--warn); } .p-bad { background: var(--bad-bg); color: var(--bad); }
.p-n { background: var(--surface-2); color: var(--ink-2); } .p-rose { background: var(--surface-3); color: var(--rose-ink); } .p-or { background: var(--surface-2); color: var(--accent-ink); } .p-info { background: var(--info-bg); color: var(--info); }

.inp { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
textarea.inp { min-height: 110px; resize: vertical; line-height: 1.55; }
.inp::placeholder { color: var(--ink-3); font-style: italic; opacity: .75; }
.inp:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 18%, transparent); }
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
.hint { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.msg { font-weight: 600; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.sw { position: relative; width: 40px; height: 23px; flex: none; display: inline-block; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; cursor: pointer; transition: .2s; }
.sw span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.sw input:checked + span { background: var(--ok); }
.sw input:checked + span::after { transform: translateX(17px); }
.sw input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-side { background: var(--grad); color: #fff; display: grid; place-items: center; padding: 40px; }
.login-quote { max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.login-quote h2 { font-size: 34px; line-height: 1.1; }
.login-quote ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.login-main { display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.code-inp { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 800; font-family: var(--f-display); }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 16px; z-index: 40; }
.side .brand { padding: 2px 8px; }
.ws { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.ws span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--surface-3); color: var(--rose-ink); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.side-usage { margin-top: auto; border-radius: 14px; padding: 14px; background: var(--grad); color: #fff; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.side-usage b { font-family: var(--f-display); font-size: 15px; }
.side-usage .bar { height: 6px; background: rgba(255,255,255,.3); border-radius: 99px; overflow: hidden; }
.side-usage .bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.crumb { font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.burger { display: none; }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 22px 70px; display: flex; flex-direction: column; gap: 20px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; max-width: 640px; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.info { background: var(--info-bg); color: var(--info); }

/* ---------- Primeiros passos ---------- */
.steps-card { overflow: hidden; }
.steps-head { padding: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; min-width: 160px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); background: var(--surface-3); color: var(--rose-ink); }
.step.done .n { background: var(--ok); color: #fff; }
.step.done h3 { color: var(--ink-2); }
.step .body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step.current { background: color-mix(in srgb, var(--surface-3) 45%, transparent); }

.kpi { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font-family: var(--f-display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .lbl { font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.bar { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.bar.warn i { background: var(--warn); } .bar.bad i { background: var(--bad); }

/* ---------- Agentes ---------- */
.ag-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ag-av { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; flex: none; background: var(--surface-3); }
.ag-top { display: flex; gap: 12px; align-items: flex-start; }
.ag-top .t { flex: 1; min-width: 0; }
.ag-top .t p { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag-new { border: 2px dashed var(--line-2); background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 190px; cursor: pointer; color: var(--ink-2); border-radius: 14px; padding: 18px; }
.ag-new:hover { border-color: var(--rose-2); color: var(--rose-ink); }
.ag-new .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); color: var(--rose-ink); display: grid; place-items: center; font-size: 26px; font-weight: 700; }

/* Assistente de criação */
.wizard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.stepper { padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.stepper button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.stepper button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); flex: none; }
.stepper button.on { background: var(--surface-3); color: var(--rose-ink); }
.stepper button.on .n { background: var(--grad); color: #fff; }
.stepper button.done .n { background: var(--ok); color: #fff; }
.wz-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.wz-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.choice { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.choice label { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; background: var(--surface); }
.choice label:hover { border-color: var(--rose-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--rose); background: var(--surface-3); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.choice b { font-size: 14px; }
.emojis { display: flex; gap: 6px; flex-wrap: wrap; }
.emojis button { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 21px; cursor: pointer; }
.emojis button.on { border-color: var(--rose); background: var(--surface-3); }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--info-bg); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.tip b { color: var(--info); }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
details.adv summary { cursor: pointer; font-weight: 700; }
details.adv[open] summary { margin-bottom: 12px; }

/* Chat de teste e WhatsApp */
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--wa); min-height: 380px; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; }
.bub { max-width: 82%; padding: 8px 11px; border-radius: 10px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.b-in { align-self: flex-end; background: var(--wa-out); }
.b-ai { align-self: flex-start; background: var(--surface); }
.b-sys { align-self: center; background: var(--surface-2); color: var(--ink-2); font-size: 12px; text-align: center; }
.composer { display: flex; gap: 8px; padding: 10px; background: var(--surface); border-top: 1px solid var(--line); }
.composer .inp { border-radius: 99px; }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bl 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.code-box { font-family: var(--f-display); font-size: 36px; font-weight: 800; letter-spacing: .2em; text-align: center; padding: 16px; background: var(--surface-3); color: var(--rose-ink); border-radius: 14px; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.link-box { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 12px; background: var(--surface-2); }
.link-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }

/* Planos */
.plan-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.current { border: 2px solid var(--rose); }
.plan-card .price { font-family: var(--f-display); font-size: 28px; font-weight: 800; }

/* Modal e toast */
.scrim { position: fixed; inset: 0; background: rgba(30,12,14,.45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: min(600px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.wide { width: min(820px, 100%); }
.modal-h { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px 20px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 99; max-width: calc(100% - 32px); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------- Manual do usuário ---------- */
.manual { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.toc { padding: 14px; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.toc b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 8px 8px; }
.toc a { padding: 7px 9px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13px; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.m-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.m-sec { padding: 24px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.m-sec > p, .m-sec li { color: var(--ink-2); }
.m-sec ul, .m-sec ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.m-kicker { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-ink); background: var(--surface-3); padding: 3px 9px; border-radius: 99px; }
.m-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: ms; }
.m-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.m-step::before { counter-increment: ms; content: counter(ms); width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); }
.m-step > div { display: flex; flex-direction: column; gap: 6px; }
.m-step p { color: var(--ink-2); }
.m-pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.mock { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); font-size: 12px; }
.mock-bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); align-items: center; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 8px; color: var(--ink-3); font-size: 11px; }
.mock-in { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-field { display: flex; flex-direction: column; gap: 3px; }
.mock-field small { font-weight: 700; color: var(--ink-2); font-size: 10.5px; }
.mock-field div { border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; color: var(--ink); background: var(--surface); }
.mock-btn { align-self: flex-start; background: var(--grad); color: #fff; border-radius: 7px; padding: 6px 10px; font-weight: 700; }
.hl { outline: 2px dashed var(--rose); outline-offset: 2px; border-radius: 8px; }
.phone { width: 230px; max-width: 100%; margin: 0 auto; border-radius: 30px; border: 8px solid #2B1A1C; background: var(--wa); overflow: hidden; box-shadow: var(--shadow); }
.phone-top { background: #128C4A; color: #fff; padding: 9px 12px; font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.phone-top i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.3); }
.phone-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 230px; }
.phone .bub { font-size: 11.5px; max-width: 88%; }
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.flow > div { flex: 1 1 140px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.flow > div b { font-size: 13px; }
.flow .arrow { flex: 0 0 auto; border: 0; background: none; padding: 0; align-self: center; color: var(--rose); font-size: 20px; font-weight: 800; }
.m-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-table th, .m-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.m-table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--ink-2); }
.good-bad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.good-bad > div { border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.good-bad .good { background: var(--ok-bg); } .good-bad .bad { background: var(--bad-bg); }
.good-bad b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }


/* ---------- Conversas ---------- */
.nav a .count { margin-left: auto; font-size: 11px; background: var(--rose); color: #fff; border-radius: 99px; padding: 0 7px; font-weight: 800; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 230px); min-height: 520px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.inbox-tabs button { border: 0; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.inbox-tabs button.on { background: var(--surface-3); color: var(--rose-ink); }
.inbox-items { overflow: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.conv:hover { background: var(--surface-2); }
.conv.on { background: var(--surface-3); }
.conv.wait { border-left-color: var(--warn); }
.conv-av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-family: var(--f-display); }
.conv-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.conv .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .last { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--wa); }
.thread-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.thread-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.thread .msgs { flex: 1; max-height: none; }
.thread .composer { align-items: flex-end; }
.thread .composer textarea { min-height: 42px; max-height: 140px; border-radius: 14px; resize: none; }
.thread > p.tiny { background: var(--surface); margin: 0; }
.thread .b-hu { align-self: flex-end; background: var(--grad); color: #fff; }
.bub .who { display: block; font-size: 10.5px; font-weight: 800; opacity: .75; margin-bottom: 2px; }
.bub .meta { display: block; font-size: 10px; opacity: .6; text-align: right; margin-top: 3px; }
.thread .b-ai { align-self: flex-end; background: var(--wa-out); }
.thread .b-in { align-self: flex-start; background: var(--surface); }
.only-mobile { display: none; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .only-mobile { display: inline-flex; }
}


/* ---------- Menu em grupos ---------- */
.nav-label { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; padding: 12px 10px 4px; }

/* ---------- Gráficos (paleta validada: 3 primeiras cores, claro e escuro) ---------- */
:root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; }
@media (prefers-color-scheme: dark) { :root { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; } }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 7px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--grad); color: #fff; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--f-body); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.viz-tip { position: fixed; z-index: 90; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }
table.mini, table.ct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th, table.mini td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.agent-row { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.agent-row b { text-align: right; }
.stage-sum { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); border-top: 4px solid var(--c); text-decoration: none; color: var(--ink); background: var(--surface); }
.stage-sum b { font-family: var(--f-display); font-size: 24px; }

/* ---------- Funil (kanban) ---------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kcol { flex: 0 0 270px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 250px); }
.kcol.over { outline: 2px dashed var(--rose); outline-offset: -4px; }
.kcol-h { display: flex; align-items: center; gap: 7px; padding: 12px 12px 4px; font-size: 13px; }
.kdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kcol-b { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 60px; }
.deal { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: grab; display: flex; flex-direction: column; gap: 5px; font: inherit; color: inherit; }
.deal:hover { border-color: var(--rose-2); }
.deal.dragging { opacity: .5; }
.deal .last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 1px 9px; font-size: 11.5px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip-btn { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.chip-btn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); }
.stage-row { display: flex; gap: 6px; align-items: center; }
.stage-row input[type="color"] { width: 36px; height: 36px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }

/* ---------- Contatos ---------- */
table.ct-table th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ct-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.ct-table tbody tr { cursor: pointer; }
table.ct-table tbody tr:hover td, table.ct-table tbody tr:focus td { background: var(--surface-2); }
table.ct-table .r { text-align: right; }
@media (max-width: 560px) {
  .kcol { flex-basis: 85vw; }
  table.ct-table th:nth-child(3), table.ct-table td:nth-child(3), table.ct-table th:nth-child(5), table.ct-table td:nth-child(5) { display: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard, .manual { grid-template-columns: 1fr; }
  .stepper { position: static; flex-direction: row; overflow-x: auto; }
  .stepper button { white-space: nowrap; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc b { width: 100%; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-105%); transition: transform .2s; box-shadow: none; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .burger { display: grid; }
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .m-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .good-bad { grid-template-columns: 1fr; }
  .page { padding: 18px 16px 60px; }
  .top { padding: 10px 16px; }
  h1 { font-size: 23px; }
  .wz-body, .m-sec { padding: 18px; }
  .stepper button .lbl { display: none; }
  .code-box { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Equipe */
.member { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.inp.sm { padding: 6px 10px; font-size: 13px; }

/* Agenda */
.ag-day.today { border-color: var(--rose); }
.ag-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 10px 4px; cursor: pointer; color: var(--ink); font: inherit; flex-wrap: wrap; }
.ag-item:first-of-type { border-top: 0; }
.ag-item:hover { background: var(--surface-2); border-radius: 10px; }
.ag-item.st-cancelado .ag-main b { text-decoration: line-through; color: var(--ink-2); }
.ag-time { display: flex; flex-direction: column; min-width: 50px; font-variant-numeric: tabular-nums; }
.ag-main { display: flex; flex-direction: column; flex: 1; min-width: 150px; }
.ag-hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.ag-hrow .inp.sm { width: auto; }
