@font-face { font-family: Inter; src: url(../assets/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #11151d; --night: #1b202d; --night-2: #232a3a; --night-3: #2b3346;
  --line: rgb(245 247 250 / 0.10); --line-2: rgb(245 247 250 / 0.18);
  --tx: #f5f7fa; --tx-2: #9aa6b8; --tx-3: #6b778b;
  --paper: #f5f7fa; --paper-2: #e9edf3; --ink: #1b202d; --ink-2: #5a6578; --pline: #d3d9e3;
  --accent: #608bc1; --accent-soft: #8db0dc; --accent-deep: #3f6aa3;
  --p0: #ff5d52; --p1: #f29b38; --p2: #d8c25a; --p3: #7d8aa0; --ok: #4cc38a; --fail: #ff5d52; --warn: #f29b38;
  --snappy: linear(0, 0.0534, 0.1756, 0.3246, 0.4741, 0.6095, 0.7236, 0.8147, 0.8839, 0.9342, 0.9689, 0.9914, 1.0049, 1.012, 1.0148, 1.015, 1.0136, 1.0104, 1.007, 1);
  --spring: linear(0, 0.0407, 0.136, 0.2563, 0.3822, 0.5019, 0.6091, 0.701, 0.7771, 0.8382, 0.886, 0.9225, 0.9496, 0.9693, 0.983, 0.9924, 0.9984, 1.002, 1.004, 1.0049, 1);
  --r: 10px;
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
.muted { color: var(--tx-2); }
.dim { color: var(--tx-3); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: 56px 1fr; height: 100vh; height: 100dvh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--night); }
.top .logo { height: 22px; }
.top .sep { width: 1px; height: 22px; background: var(--line-2); }
.top .ctx { font-weight: 600; white-space: nowrap; }
@media (max-width: 1280px) { .top .ctx, .top .badge:not(.sim) { display: none; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line-2); color: var(--tx-2); white-space: nowrap; }
.badge.sim::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--p2); }
.top .grow { flex: 1; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--night-2); border: 1px solid var(--line); min-width: 92px; text-align: center; }
.timer.over { color: var(--p0); }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--night-2); font-weight: 550; font-size: 13px; transition: background .25s var(--snappy), border-color .25s var(--snappy), transform .25s var(--snappy); white-space: nowrap; }
.btn:hover { background: var(--night-3); }
.btn:active { transform: scale(0.97); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #0d1320; }
.btn.pri:hover { background: var(--accent-soft); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #0d1320; }

.nav { border-right: 1px solid var(--line); background: var(--night); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav h6 { margin: 14px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--tx-2); font-weight: 520; transition: background .25s var(--snappy), color .25s var(--snappy); }
.nav a:hover { background: var(--night-2); color: var(--tx); }
.nav a.on { background: var(--night-3); color: var(--tx); }
.nav a .n { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--night-2); color: var(--tx-2); flex: none; }
.nav a.on .n { background: var(--accent); color: #0d1320; }
.nav .foot { margin-top: auto; padding: 12px 10px 4px; font-size: 11.5px; color: var(--tx-3); line-height: 1.5; }

.main { overflow: auto; position: relative; }
.screen { padding: 22px 26px 40px; max-width: 1680px; margin: 0 auto; animation: enter .45s var(--spring) both; }
@keyframes enter { from { transform: translateY(10px); opacity: 0.001; } to { transform: none; opacity: 1; } }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { font-size: 22px; }
.head p { margin: 4px 0 0; color: var(--tx-2); max-width: 780px; }
.head .grow { flex: 1; }

.card { background: var(--night); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-2); font-weight: 650; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3 .grow { flex: 1; }
.grid { display: grid; gap: 14px; }

.seg { display: inline-flex; background: var(--night-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--tx-2); transition: background .25s var(--snappy), color .25s var(--snappy); }
.seg button.on { background: var(--night-3); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button.on.acc { background: var(--accent); color: #0d1320; box-shadow: none; }

.pri { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #11151d; white-space: nowrap; }
.pri.p0 { background: var(--p0); } .pri.p1 { background: var(--p1); } .pri.p2 { background: var(--p2); } .pri.p3 { background: var(--p3); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--night); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--tx-2); font-weight: 550; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--tx-2); }
.kpi .cmp { font-size: 12px; color: var(--tx-2); margin-top: 2px; }
.kpi .cmp b { color: var(--ok); font-weight: 650; }
.kpi .cmp b.bad { color: var(--p0); }
.kpi.meta { border-color: rgb(96 139 193 / .45); }

/* range */
input[type=range] { accent-color: var(--accent); width: 100%; }
label.fld { display: grid; gap: 4px; font-size: 12px; color: var(--tx-2); }
label.fld b { color: var(--tx); font-weight: 600; }

/* ---------- simulador ---------- */
.sim-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.clock { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 92px; }
.scrub { flex: 1; min-width: 260px; position: relative; }
.scrub .peaks { position: absolute; inset: -6px 0 auto 0; height: 4px; pointer-events: none; }
.scrub .peaks span { position: absolute; top: 0; height: 4px; background: rgb(242 155 56 / .55); border-radius: 2px; }
.postos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.posto { background: var(--night); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px 10px; min-height: 86px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s var(--snappy), background .3s var(--snappy); cursor: pointer; }
.posto:hover { border-color: var(--line-2); }
.posto.hot { border-color: rgb(255 93 82 / .6); background: #2a1f25; }
.posto.sel { box-shadow: inset 0 0 0 1.5px var(--accent); }
.posto .ph { display: flex; flex-direction: column; gap: 0; font-size: 11.5px; min-width: 0; }
.posto .ph b { font-weight: 650; white-space: nowrap; }
.posto .ph span { color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posto .q { display: flex; gap: 3px; flex-wrap: wrap; min-height: 14px; }
.posto .q i { width: 11px; height: 14px; border-radius: 3px; display: block; animation: pop .35s var(--snappy) both; }
@keyframes pop { from { transform: scale(0.4); } to { transform: none; } }
.posto .pf { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tx-2); margin-top: auto; }
.posto .pf .w.bad { color: var(--p0); font-weight: 650; }
.posto .op { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx-3); }
.posto .op .dot { width: 7px; height: 7px; }
.compare { display: grid; grid-template-columns: 1.7fr 0.8fr 0.8fr 1.1fr; font-size: 13px; }
.compare > div { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.compare .h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); font-weight: 650; }
.compare .on { color: var(--accent-soft); font-weight: 650; }
.compare .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--tx-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--tx-3); font-size: 11px; font-family: inherit; }

/* ---------- chamada ---------- */
.call-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.scen { display: flex; flex-direction: column; gap: 8px; }
.scen button { text-align: left; background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; transition: border-color .25s var(--snappy), background .25s var(--snappy); }
.scen button:hover { border-color: var(--line-2); }
.scen button.on { border-color: var(--accent); background: #1d2638; }
.scen button b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.scen button span { font-size: 12px; color: var(--tx-2); }
.phone-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--night-3); display: grid; place-items: center; font-weight: 700; color: var(--tx-2); flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { width: 3px; border-radius: 2px; background: var(--tx-3); height: 6px; transition: height .18s var(--snappy), background .2s; }
.wave.ia i { background: var(--accent); }
.wave.c i { background: var(--tx); }
.transcript { display: flex; flex-direction: column; gap: 10px; padding: 16px 2px 6px; min-height: 420px; max-height: calc(100vh - 330px); overflow-y: auto; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 14px; animation: msg .4s var(--spring) both; }
@keyframes msg { from { transform: translateY(8px) scale(0.98); } to { transform: none; } }
.msg.ia { background: #1f2c42; border: 1px solid rgb(96 139 193 / .35); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.c { background: var(--night-3); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .who { font-size: 11px; font-weight: 650; color: var(--tx-2); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.msg.sys { align-self: stretch; max-width: none; background: transparent; border: 1px dashed var(--line-2); color: var(--tx-2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; padding: 7px 10px; }
.controls { display: flex; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.und .row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.und .row > span:first-child { color: var(--tx-3); font-size: 12px; }
.und .row .empty { color: var(--tx-3); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 3px 8px; border-radius: 6px; background: var(--night-2); border: 1px solid var(--line); font-size: 12px; animation: pop .35s var(--snappy) both; }
.checks { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; animation: msg .35s var(--spring) both; }
.checks li::before { content: '✓'; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; background: rgb(76 195 138 / .18); color: var(--ok); }
.checks li.warn::before { content: '!'; background: rgb(242 155 56 / .18); color: var(--warn); }
.checks li.fail::before { content: '✕'; background: rgb(255 93 82 / .2); color: var(--fail); }
.toolslog { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: var(--tx-2); display: flex; flex-direction: column; gap: 3px; }
.toolslog div { animation: msg .3s var(--spring) both; }
.outcome { margin-top: 12px; padding: 11px 12px; border-radius: 9px; background: rgb(76 195 138 / .12); border: 1px solid rgb(76 195 138 / .4); font-weight: 600; font-size: 13px; animation: msg .4s var(--spring) both; }
.outcome.p0, .outcome.bloqueio { background: rgb(255 93 82 / .1); border-color: rgb(255 93 82 / .45); }
.outcome.p1 { background: rgb(242 155 56 / .1); border-color: rgb(242 155 56 / .45); }
.flowstrip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.flowstrip span { padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); font-size: 11.5px; color: var(--tx-3); transition: all .3s var(--snappy); }
.flowstrip span.done { color: var(--tx-2); border-color: var(--line-2); }
.flowstrip span.on { background: var(--accent); color: #0d1320; border-color: var(--accent); font-weight: 650; }
.free { display: flex; gap: 8px; margin-top: 10px; }
.free input { flex: 1; background: var(--night-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; color: var(--tx); font: inherit; }
.free input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mic.rec { background: var(--p0); border-color: var(--p0); color: #fff; }

/* ---------- operador ---------- */
.op-wrap { display: grid; grid-template-columns: 360px minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.qitem { background: var(--night); border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 11px 12px; display: grid; gap: 5px; cursor: pointer; transition: border-color .25s var(--snappy), background .25s var(--snappy), transform .4s var(--spring); animation: msg .45s var(--spring) both; }
.qitem:hover { background: #20263480; }
.qitem.sel { background: #1d2638; box-shadow: inset 0 0 0 1px var(--accent); }
.qitem.p0 { border-left-color: var(--p0); } .qitem.p1 { border-left-color: var(--p1); } .qitem.p2 { border-left-color: var(--p2); } .qitem.p3 { border-left-color: var(--p3); }
.qitem.new.p0 { animation: msg .45s var(--spring) both, alarm 1.2s ease-in-out 3; }
@keyframes alarm { 50% { background: rgb(255 93 82 / .22); } }
.qitem .t { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--tx-2); }
.qitem .t .grow { flex: 1; }
.qitem b { font-size: 13.5px; }
.qitem p { margin: 0; font-size: 12.5px; color: var(--tx-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case h2 { font-size: 19px; margin: 8px 0 4px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.kv div { background: var(--night-2); border-radius: 8px; padding: 9px 11px; }
.kv span { display: block; font-size: 11.5px; color: var(--tx-3); margin-bottom: 2px; }
.just { padding: 10px 12px; border-radius: 9px; background: var(--night-2); border-left: 3px solid var(--accent); font-size: 13px; margin: 10px 0; }
.copilot .q { display: flex; flex-direction: column; gap: 6px; }
.copilot .q button { text-align: left; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.copilot .ans { margin-top: 4px; font-size: 15px; padding: 10px 12px; border-radius: 9px; background: #1f2c42; border: 1px solid rgb(96 139 193 / .35); animation: msg .35s var(--spring) both; }
.copilot .src { margin-top: 6px; font-size: 11.5px; color: var(--tx-2); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps input { accent-color: var(--accent); }

/* ---------- digital ---------- */
.dig-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px minmax(0, 1fr); gap: 22px; align-items: start; }
.phone { width: 380px; height: 760px; border-radius: 46px; background: #0b0e14; padding: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgb(0 0 0 / .45); position: relative; }
.phone .scr { width: 100%; height: 100%; border-radius: 36px; background: #eef1f6; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone .sb { height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0 26px; font-size: 13px; font-weight: 650; }
.phone .ah { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid var(--pline); background: #fff; }
.phone .ah .av { width: 34px; height: 34px; border-radius: 50%; background: var(--night); display: grid; place-items: center; }
.phone .ah .av img { width: 22px; }
.phone .ah b { font-size: 14px; display: block; }
.phone .ah span { font-size: 11.5px; color: var(--ink-2); }
.phone .chat { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.phone .b { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; animation: msg .4s var(--spring) both; }
.phone .b.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 0 var(--pline); }
.phone .b.me { background: var(--accent-deep); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.phone .b.card { background: #fff; border: 1px solid var(--pline); align-self: stretch; max-width: none; }
.phone .b.card h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.phone .b.card .r { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--paper-2); }
.phone .qr { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 18px; background: #fff; border-top: 1px solid var(--pline); }
.phone .qr button { border: 1px solid var(--accent-deep); color: var(--accent-deep); background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.phone .qr button:active { transform: scale(0.97); }
.push { position: absolute; left: 10px; right: 10px; top: 44px; background: rgb(255 255 255 / .96); border-radius: 18px; padding: 11px 13px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); display: flex; gap: 10px; align-items: flex-start; z-index: 3; animation: pushin .55s var(--spring) both; }
@keyframes pushin { from { transform: translateY(-120%); } to { transform: none; } }
.push .av { width: 32px; height: 32px; border-radius: 8px; background: var(--night); display: grid; place-items: center; flex: none; }
.push .av img { width: 20px; }
.push b { font-size: 13px; display: block; }
.push span { font-size: 12.5px; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 22px 24px; font-size: 13px; animation: msg .4s var(--spring) both; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li span { display: block; font-size: 11.5px; color: var(--tx-3); }

/* ---------- fluxo ---------- */
.stack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.stack div { background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 12.5px; color: var(--tx-2); position: relative; }
.stack div b { display: block; color: var(--tx); font-size: 13px; margin-bottom: 2px; }
.stack div:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--tx-3); font-size: 13px; z-index: 1; }
.canvas { position: relative; background: var(--night); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background-image: radial-gradient(rgb(245 247 250 / .07) 1px, transparent 1px); background-size: 18px 18px; }
.canvas .inner { position: relative; width: 1710px; height: 520px; }
.canvas svg { position: absolute; inset: 0; }
.fnode { position: absolute; background: var(--night-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; cursor: pointer; transition: border-color .25s var(--snappy), box-shadow .3s var(--snappy), background .3s; }
.fnode:hover { border-color: var(--accent-soft); }
.fnode .ty { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-3); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.fnode b { display: block; font-size: 13px; margin-top: 2px; }
.fnode .tl { margin-top: 5px; display: flex; gap: 4px; flex-wrap: wrap; }
.fnode .tl span { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: var(--night-3); color: var(--tx-2); font-family: ui-monospace, Menlo, monospace; }
.fnode.sel { box-shadow: 0 0 0 2px var(--accent); }
.fnode.lit { background: #1f2c42; border-color: var(--accent); }
.fnode.glob { border-style: dashed; }
.edge { fill: none; stroke: rgb(245 247 250 / .2); stroke-width: 1.5; transition: stroke .3s; }
.edge.lit { stroke: var(--accent); stroke-width: 2.5; }
.elabel { fill: var(--tx-3); font-size: 10.5px; }

/* ---------- gestão ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; } .s3 { grid-column: span 3; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tb th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
table.tb td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tb td.n { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--night-3); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgb(242 155 56 / .1); border: 1px solid rgb(242 155 56 / .4); font-size: 13px; }
.alert b { color: var(--p1); }
.reco { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.reco div { display: flex; gap: 8px; }
.reco div::before { content: '→'; color: var(--accent-soft); }

/* ---------- pitch ---------- */
.pitch { height: 100%; display: flex; flex-direction: column; }
.stage-wrap { flex: 1; display: grid; place-items: center; padding: 18px; overflow: hidden; min-height: 0; }
.stage { width: 1600px; height: 900px; transform-origin: center center; position: relative; flex: none; }
.slide { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; padding: 72px 88px; display: flex; flex-direction: column; animation: enter .5s var(--spring) both; }
.slide.night { background: var(--night); color: var(--tx); border: 1px solid var(--line); }
.slide.paper { background: var(--paper); color: var(--ink); }
.slide .kick { font-size: 18px; font-weight: 650; color: var(--accent); letter-spacing: .02em; display: flex; gap: 14px; align-items: center; }
.slide.paper .kick { color: var(--accent-deep); }
.slide .kick .crit { padding: 4px 10px; border-radius: 6px; border: 1.5px solid currentColor; font-size: 15px; }
.slide h2 { font-size: 58px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; margin: 18px 0 0; max-width: 1300px; }
.slide h2.md { font-size: 46px; }
.slide .lead { font-size: 24px; line-height: 1.4; color: var(--tx-2); margin-top: 20px; max-width: 1180px; }
.slide.paper .lead { color: var(--ink-2); }
.slide .body { margin-top: auto; }
.slide .logoS { position: absolute; right: 88px; top: 72px; height: 30px; }
.slide .pg { position: absolute; right: 88px; bottom: 40px; font-size: 15px; color: var(--tx-3); }
.slide.paper .pg { color: var(--ink-2); }
.cols { display: grid; gap: 22px; }
.tile { border-radius: 14px; padding: 24px 26px; }
.slide.night .tile { background: var(--night-2); border: 1px solid var(--line); }
.slide.paper .tile { background: #fff; border: 1px solid var(--pline); }
.tile .big { font-size: 54px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.tile .big small { font-size: 24px; font-weight: 650; }
.tile h4 { font-size: 22px; margin-bottom: 8px; }
.tile p { margin: 8px 0 0; font-size: 18px; line-height: 1.4; color: var(--tx-2); }
.slide.paper .tile p { color: var(--ink-2); }
.tile ul { margin: 10px 0 0; padding-left: 20px; font-size: 18px; line-height: 1.5; }
.ph-fill { background: rgb(216 194 90 / .22); border: 1.5px dashed var(--p2); border-radius: 6px; padding: 1px 8px; color: inherit; }
.slide.paper .ph-fill { background: #fbf3cf; border-color: #b9a23a; }
.demo-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 12px; background: var(--accent); color: #0d1320; font-weight: 700; font-size: 20px; border: 0; transition: transform .3s var(--snappy), background .3s; }
.demo-btn:hover { background: var(--accent-soft); transform: translateY(-2px); }
.demo-btn small { font-weight: 550; font-size: 15px; opacity: .8; }
.pitch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--night); }
.pitch-bar .dots { display: flex; gap: 5px; flex: 1; justify-content: center; }
.pitch-bar .dots button { width: 30px; height: 6px; border-radius: 3px; border: 0; background: var(--night-3); padding: 0; }
.pitch-bar .dots button.on { background: var(--accent); }
.notes { position: fixed; right: 18px; bottom: 70px; width: 440px; max-height: 50vh; overflow: auto; background: var(--night-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.55; z-index: 20; box-shadow: 0 20px 60px rgb(0 0 0 / .45); animation: msg .4s var(--spring) both; }
.notes h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-soft); }
.back-pitch { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; box-shadow: 0 12px 40px rgb(0 0 0 / .5); animation: pushin .5s var(--spring) both; }
.arch { display: grid; grid-template-columns: 230px 1fr 230px; gap: 18px; align-items: stretch; }
.arch .col { display: flex; flex-direction: column; gap: 12px; }
.arch .box { border-radius: 12px; padding: 14px 16px; font-size: 17px; }
.slide.night .arch .box { background: var(--night-2); border: 1px solid var(--line); }
.arch .core { border-radius: 14px; padding: 20px; background: #1f2c42; border: 1.5px solid var(--accent); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.arch .core div { background: rgb(17 21 29 / .5); border-radius: 10px; padding: 14px; font-size: 16px; }
.arch .core div b { display: block; font-size: 18px; margin-bottom: 4px; color: var(--accent-soft); }
.trl { display: flex; gap: 6px; align-items: flex-end; }
.trl div { flex: 1; border-radius: 8px 8px 0 0; background: var(--paper-2); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-weight: 700; font-size: 18px; color: var(--ink-2); }
.trl div.now { background: var(--accent); color: #fff; }
.trl div.goal { background: var(--accent-deep); color: #fff; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.money { width: 100%; border-collapse: collapse; font-size: 19px; }
.money td, .money th { padding: 12px 14px; border-bottom: 1px solid var(--pline); text-align: left; }
.money th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.money td.n { text-align: right; font-weight: 650; }
.money tr.tot td { font-weight: 750; border-top: 2px solid var(--ink); }

body.present .app { grid-template-columns: 0 1fr; grid-template-rows: 0 1fr; }
body.present .top, body.present .nav { display: none; }
body.present .pitch-bar { opacity: 0.0; transition: opacity .3s; }
body.present .pitch-bar:hover { opacity: 1; }

@media (max-width: 1360px) {
  .call-wrap { grid-template-columns: 250px minmax(0, 1fr) 330px; }
  .op-wrap { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .dig-wrap { grid-template-columns: minmax(0, 1fr) 380px; }
  .dig-wrap > :last-child { grid-column: 1 / -1; }
}

/* Slide de arquitetura técnica */
.slide.tech { padding: 50px 64px; }
.slide.tech h2 { font-size: 40px; margin-top: 10px; }
.slide.tech .pg { bottom: 18px; right: 64px; }
.flowbtns { position: absolute; right: 64px; top: 112px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.flowbtns span { color: var(--tx-3); margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 650; }
.flowbtns button { font: inherit; font-weight: 600; color: var(--tx-2); background: var(--night-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.flowbtns button:hover { color: var(--tx); border-color: var(--accent); }
.flowbtns button.on { background: var(--accent); border-color: var(--accent); color: #0d1320; }
.archx { display: block; margin-top: 22px; flex: none; overflow: visible; }
.archx text { fill: var(--tx); font-size: 12px; }
.archx .t { font-size: 14px; font-weight: 650; }
.archx .s { fill: var(--tx-2); font-size: 11.5px; }
.archx .xs { fill: var(--tx-3); font-size: 11.5px; }
.archx .lbl { fill: var(--tx-3); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.archx .ht { font-size: 15px; font-weight: 700; fill: var(--tx); }
.archx .bx rect { fill: var(--night-2); stroke: var(--line-2); }
.archx .bx.chip rect, .archx .bx.mini rect, .archx .bx.row rect { fill: rgb(17 21 29 / .55); stroke: var(--line); }
.archx .ct > rect { fill: rgb(35 42 58 / .45); stroke: var(--line-2); }
.archx .ct.core > rect { fill: #1f2c42; stroke: var(--accent); stroke-width: 1.5; }
.archx .ct.core .ht { fill: var(--accent-soft); }
.archx .ct.dom > rect { fill: rgb(96 139 193 / .07); stroke: var(--accent-soft); stroke-dasharray: 6 4; }
.archx .wf rect { fill: rgb(96 139 193 / .16); stroke: rgb(96 139 193 / .45); }
.archx .wt { font-size: 11px; font-weight: 600; fill: var(--accent-soft); }
.archx .ed { stroke: rgb(245 247 250 / .4); stroke-width: 1.5; fill: none; }
.archx .bus > rect { fill: rgb(96 139 193 / .13); stroke: var(--accent); stroke-width: 1.5; }
.archx .bt { font-size: 17px; font-weight: 700; fill: var(--accent-soft); }
.archx .rail { stroke: rgb(96 139 193 / .35); stroke-width: 1; }
.archx .topic rect { fill: rgb(17 21 29 / .7); stroke: rgb(96 139 193 / .45); }
.archx .tp { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; fill: var(--accent-soft); }
.archx .pulse { fill: var(--accent-soft); }
.archx .au rect { fill: rgb(17 21 29 / .55); stroke: var(--line); }
.archx .at { font-size: 12.5px; font-weight: 550; }
.archx .at .n { fill: var(--accent-soft); font-weight: 750; }
.archx .ol { fill: var(--tx-2); font-size: 12px; }
.archx .pill rect { fill: var(--night-2); stroke: var(--line-2); }
.archx .pill.hi rect { fill: #1f2c42; stroke: var(--accent); }
.archx .pill.hi .t { fill: var(--accent-soft); }
.archx .el { transition: opacity .35s var(--spring); }
.archx.focus .el { opacity: .14; }
.archx.focus .el.on { opacity: 1; }
.archx.focus .ed.on { stroke: var(--accent-soft); stroke-width: 2; stroke-dasharray: 5 4; animation: archdash .7s linear infinite; }
.archx.focus .bx.on rect, .archx.focus .au.on rect { stroke: var(--accent-soft); }
@keyframes archdash { to { stroke-dashoffset: -9; } }
.archx .chip .s { font-size: 11px; }
.archx.focus .pill { opacity: .45; }

/* Celular e telas estreitas */
#menuBtn { display: none; font-size: 16px; padding: 5px 10px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .top { gap: 10px; padding-left: 10px; padding-right: 10px; }
  #menuBtn { display: inline-flex; }
  .top .sep, .top .ctx, .top .badge:not(.sim), #timer { display: none; }
  .top .logo { height: 18px; }
  .nav { position: fixed; z-index: 60; top: 56px; left: 0; bottom: 0; width: min(280px, 82vw); overflow-y: auto; transform: translateX(-102%); transition: transform .35s var(--spring); box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0); }
  body.navopen .nav { transform: none; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); }
  .main { grid-column: 1; }
  .stage-wrap { padding: 8px; }
  .pitch-bar .dots { display: none; }
  .pitch-bar { justify-content: space-between; }
  .back-pitch { font-size: 12px; }
}
@media (max-width: 520px) { .top .badge.sim { display: none; } }
#exitPresent { display: none; position: fixed; top: 8px; right: 8px; z-index: 70; opacity: .55; }
@media (hover: none) { body.present #exitPresent { display: inline-flex; } }
@media (max-height: 500px) {
  .app { grid-template-rows: 42px 1fr; }
  .nav { top: 42px; }
  .pitch-bar { padding: 4px 10px; }
  .pitch-bar .btn { padding: 3px 10px; }
  .stage-wrap { padding: 4px; }
}

/* Slide 3 · Empresa e histórico */
.slide .emp-lead { font-size: 23px; margin-top: 16px; max-width: 1280px; }
.slide .emp-lead b { color: var(--tx); font-weight: 650; }
.emp { display: grid; grid-template-columns: 360px 1fr; gap: 28px; }
.emp-h { font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-soft); margin-bottom: 10px; }
.emp-orig { display: flex; flex-direction: column; }
.emp-step { position: relative; padding: 0 0 22px 24px; border-left: 2px solid var(--line-2); margin-left: 5px; }
.emp-step::before { content: ''; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--accent-soft); }
.emp-step.now { border-left-color: transparent; padding-bottom: 0; }
.emp-step.now::before { background: var(--accent); border-color: var(--accent); }
.emp-step b { font-size: 23px; display: flex; align-items: center; gap: 8px; }
.emp-step b span { font-size: 12px; font-weight: 650; color: var(--tx-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.emp-step p { margin: 5px 0 0; font-size: 17px; line-height: 1.38; color: var(--tx-2); }
.emp-soc { margin-top: auto; padding-top: 18px; font-size: 17px; color: var(--tx-2); }
.emp-cases { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 18px; }
.emp-cases .tile { padding: 22px 24px; display: flex; flex-direction: column; }
.emp-cases .tile h4 { font-size: 22px; margin: 14px 0 0; }
.emp-cases .tile .emp-h + h4 { margin-top: 2px; }
.emp-cases .tile p { font-size: 17px; line-height: 1.38; margin-top: 4px; }
.slide.night .emp-cases .tile.hi { border-color: rgb(96 139 193 / .55); background: rgb(96 139 193 / .10); }
.emp-tag { margin-top: auto; align-self: flex-start; position: relative; top: 4px; font-size: 15px; font-weight: 650; color: var(--accent-soft); border: 1px solid rgb(141 176 220 / .5); border-radius: 999px; padding: 4px 10px; }

/* Slide 10 · Orçamento e esforço por mês */
.gantt { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.gantt .gh, .gantt .gr, .gantt .gp { display: grid; grid-template-columns: 490px repeat(12, 1fr); column-gap: 4px; align-items: center; }
.gantt .gh span { font-size: 13px; font-weight: 650; color: var(--ink-2); text-align: center; }
.gantt .gl { font-size: 16px; white-space: nowrap; font-weight: 600; grid-column: 1; padding-right: 12px; }
.gantt .gb { height: 30px; border-radius: 7px; font-size: 13px; font-weight: 650; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.gantt .gb.a { background: var(--accent-deep); color: #fff; }
.gantt .gb.b { background: var(--accent); color: #0d1320; }
.gantt .gb.c { background: #c9d8ec; color: var(--ink); }
.gantt .gp { margin-top: 4px; }
.gantt .gp b { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-top: 2px solid var(--ink); padding-top: 6px; margin-right: 6px; }
.money .mm { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.money td.ef { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.money td.n { white-space: nowrap; }
.slide .split { display: flex; margin-top: 14px; height: 34px; border-radius: 8px; overflow: hidden; font-size: 14px; font-weight: 700; }
.slide .split span { display: flex; align-items: center; padding: 0 12px; }
.slide .split span:first-child { background: var(--ink); color: #fff; }
.slide .split span:last-child { background: var(--accent); color: #0d1320; }
.slide.paper .money td b { font-size: 18px; white-space: nowrap; }
.slide.paper .money td, .slide.paper .money th { padding: 10px 14px; }

/* Operador humano na chamada com áudio */
.msg.op { background: #2a2433; border: 1px solid rgb(242 155 56 / .35); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.op .who { color: var(--p1); }
.wave.op i { background: var(--p1); }

/* Transcrição em streaming e ligação atendida no console */
.tx.typing::after { content: '▍'; margin-left: 2px; color: var(--accent-soft); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.handoff { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(242 155 56 / .5); background: rgb(242 155 56 / .08); font-size: 13.5px; }
.handoff span { color: var(--tx-2); }
.handoff div { margin-top: 4px; }
.aovivo { margin: 12px 0 4px; border: 1px solid rgb(242 155 56 / .45); background: rgb(242 155 56 / .06); border-radius: 12px; padding: 10px 12px; }
.aovivo.chamando p { margin: 6px 0 0; font-size: 13.5px; color: var(--tx-2); }
.av-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--p0); animation: blink 1.2s steps(2) infinite; }
.dot-live.off { background: var(--tx-3); animation: none; }
.vivo-tr { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.vivo-tr .msg { font-size: 13.5px; }
.btn.ring, .badge.ring { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgb(242 155 56 / .55); } 50% { box-shadow: 0 0 0 6px rgb(242 155 56 / 0); } }
.badge.ring { border-color: var(--p1); color: var(--p1); }
.badge.live { border-color: var(--p0); color: var(--p0); }
