@font-face { font-family: 'Inter'; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Grotesk'; src: url(../fonts/space-grotesk-latin-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-2199, U+2212; }
@font-face { font-family: 'Grotesk'; src: url(../fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --bg: #060a14; --bg2: #0a1020; --card: #0f172b; --card2: #131d36; --line: rgba(148, 163, 184, .13); --line2: rgba(148, 163, 184, .24);
  --text: #e8eefb; --muted: #97a6c3; --dim: #6b7a99;
  --brand: #22d3ee; --brand2: #2dd4bf; --coral: #ff6b5b; --gold: #facc15; --lime: #a3e635; --violet: #a78bfa; --red: #f87171;
  --r: 16px; --r2: 22px; --sh: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --side: 232px; --ease: cubic-bezier(.2, .8, .2, 1);
  --fs: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --fd: 'Grotesk', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--fs); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(255, 107, 91, .07), transparent 60%); }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--fd); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.num { font-family: var(--fd); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.ic.sm { width: 14px; height: 14px; } .ic.lg { width: 22px; height: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ── casca ───────────────────────────── */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, #0a1124, #070c19); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-family: var(--fd); font-size: 22px; letter-spacing: -.03em; }
.logo small { display: block; color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .02em; margin-top: -2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; position: relative; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(148, 163, 184, .07); color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .02)); }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side .war { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; border: 1px solid rgba(255, 107, 91, .35); background: rgba(255, 107, 91, .08); color: #ffb4ab; font-weight: 600; text-decoration: none; }
.side .war:hover { background: rgba(255, 107, 91, .16); }
.demo-tag { font-size: 11px; color: var(--dim); text-align: center; padding: 10px 6px 0; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 28px; margin-left: var(--side); background: rgba(6, 10, 20, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .crumb { font-weight: 600; font-family: var(--fd); font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(148, 163, 184, .1); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.live { color: #b9f6ff; border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); cursor: pointer; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: rgba(148, 163, 184, .4); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.pri { background: linear-gradient(135deg, #22d3ee, #2dd4bf); color: #04131a; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .6); }
.btn.pri:hover { box-shadow: 0 10px 30px -6px rgba(34, 211, 238, .75); }
.btn.coral { background: linear-gradient(135deg, #ff6b5b, #ff9a5b); color: #1e0703; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

main { margin-left: var(--side); padding: 26px 28px 80px; position: relative; z-index: 1; max-width: 1500px; }
.view { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mob { display: none; }

/* ── blocos ─────────────────────────── */
.grid { display: grid; gap: 16px; }
.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)); }
.g-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .g-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.card { background: linear-gradient(180deg, var(--card), #0d1528); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; position: relative; min-width: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.card h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card .sub { color: var(--muted); font-size: 13px; }
.card-h { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-family: var(--fd); font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .d { font-size: 12px; font-weight: 600; color: var(--lime); display: inline-flex; gap: 4px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(148, 163, 184, .08); border: 1px solid var(--line); color: #cdd7ea; white-space: nowrap; }
.chip.hot { background: rgba(255, 107, 91, .1); border-color: rgba(255, 107, 91, .3); color: #ffc2bb; }
.chip.ok { background: rgba(45, 212, 191, .1); border-color: rgba(45, 212, 191, .3); color: #a8f3e6; }
button.chip { cursor: pointer; }
button.chip[aria-pressed='true'] { background: rgba(34, 211, 238, .16); border-color: rgba(34, 211, 238, .5); color: #cffafe; }
.tier { display: inline-flex; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.tier.t1 { background: rgba(250, 204, 21, .16); color: #fde68a; } .tier.t2 { background: rgba(34, 211, 238, .14); color: #a5f3fc; } .tier.t3 { background: rgba(148, 163, 184, .14); color: #cbd5e1; }
.mono { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--fd); font-weight: 700; color: #fff; flex: none; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.mono.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #06101c; flex: none; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 12.5px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-h { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.035em; }
.hero-h em { font-style: normal; background: linear-gradient(90deg, #67e8f9, #2dd4bf 50%, #ff8a7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.sec-h h2 { font-size: 20px; }
.chart { width: 100%; height: 320px; }
.ai-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.bar { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand2)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.ring { --p: 50; --c: var(--brand); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, .14) 0); position: relative; flex: none; }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-family: var(--fd); font-size: 18px; }
.ring.sm { width: 44px; height: 44px; } .ring.sm::before { inset: 4px; } .ring.sm b { font-size: 13px; }
.ring.xl { width: 140px; height: 140px; } .ring.xl::before { inset: 10px; } .ring.xl b { font-size: 40px; }

/* ── hoje ─────────────────────────── */
.hello { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.hello .card { flex: 1; }
.copilot { background: radial-gradient(500px 200px at 100% 0, rgba(34, 211, 238, .22), transparent), linear-gradient(135deg, #0f1e3a, #0c1426); border-color: rgba(34, 211, 238, .25); overflow: hidden; }
.copilot .sweep { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .55; pointer-events: none; }
.t1-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; cursor: pointer; min-width: 0; }
.acc:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .4); }
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: hidden; position: relative; }
.feed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.sig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.sig .src { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.sig b { font-weight: 600; }
.sig time { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.sig.alert { background: rgba(255, 107, 91, .06); border-radius: 12px; border-bottom-color: transparent; }

/* ── icp wizard ─────────────────── */
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; cursor: pointer; }
.step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(148, 163, 184, .12); font-size: 12px; }
.step[aria-current='step'] { color: var(--text); border-color: rgba(34, 211, 238, .5); } .step[aria-current='step'] i { background: var(--brand); color: #04131a; }
.step.done i { background: rgba(45, 212, 191, .25); color: #a8f3e6; }
.opt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; text-align: left; transition: all .2s var(--ease); }
.opt .ic { width: 26px; height: 26px; color: var(--muted); }
.opt[aria-pressed='true'] { border-color: var(--brand); background: rgba(34, 211, 238, .1); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.opt[aria-pressed='true'] .ic { color: var(--brand); }
.range { width: 100%; accent-color: var(--brand); }
.pyr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.pyr .lv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; color: #06101c; font-weight: 700; transition: width .8s var(--ease); min-width: 220px; }
.pyr .lv span { font-family: var(--fd); font-size: 22px; }
.dots-field { position: relative; height: 220px; border-radius: 16px; background: rgba(148, 163, 184, .04); border: 1px dashed var(--line); overflow: hidden; }
.dots-field .pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }

/* ── universo ─────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--card2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.list { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow: auto; padding-right: 4px; }
.li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; text-align: left; background: transparent; width: 100%; }
.li:hover { background: rgba(148, 163, 184, .06); border-color: var(--line); }

/* ── conta ─────────────────── */
.acc-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a[aria-current='page'] { color: var(--text); border-color: var(--brand); }
#cy { width: 100%; height: 440px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.wf { display: flex; flex-direction: column; gap: 8px; }
.wf .r { display: grid; grid-template-columns: 140px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.xr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(148, 163, 184, .05); font-size: 13.5px; }
.xr.risco { background: rgba(248, 113, 113, .08); } .xr.bom { background: rgba(45, 212, 191, .07); }
.typing::after { content: '▍'; animation: blink 1s steps(2) infinite; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }

/* ── jornada ─────────────────── */
.lanes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.lane { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; min-height: 360px; display: flex; flex-direction: column; gap: 6px; }
.lane h4 { font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lane .vel { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lane .vel .bar { flex: 1; height: 4px; }
.tok { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; cursor: pointer; text-decoration: none; min-width: 0; }
.tok .mono { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.tok.moved { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163, 230, 53, .15); }

/* ── plano ─────────────────── */
.plan-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.build { display: flex; flex-direction: column; gap: 8px; }
.build .b { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(148, 163, 184, .05); color: var(--dim); font-size: 14px; transition: all .3s; }
.build .b.on { color: var(--text); background: rgba(34, 211, 238, .08); }
.build .b.ok { color: #a8f3e6; } .build .b .ic { color: inherit; }
.clock { font-family: var(--fd); font-size: 56px; font-weight: 600; letter-spacing: -.04em; }
.gantt { position: relative; overflow-x: auto; }
.gantt-in { min-width: 860px; position: relative; padding: 30px 18px 6px 118px; }
.g-phase { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line2); }
.g-phase b { position: absolute; top: 4px; left: 8px; font-size: 12px; font-family: var(--fd); white-space: nowrap; }
.g-row { position: relative; height: 40px; border-top: 1px solid var(--line); }
.g-row .lab { position: absolute; left: -118px; width: 110px; top: 0; bottom: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.g-pt { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 9px; display: grid; place-items: center; color: #06101c; cursor: pointer; border: 0; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .6); transition: transform .15s; }
.g-pt:hover, .g-pt:focus-visible { transform: scale(1.25); z-index: 3; }
.g-pt .ic { width: 14px; height: 14px; }
.g-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); padding-top: 6px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #0b1426; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; max-width: 280px; box-shadow: var(--sh); opacity: 0; transition: opacity .15s; }
.trail { position: relative; padding-left: 26px; }
.trail::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--lime), var(--gold)); border-radius: 2px; }
.tr { position: relative; padding: 8px 0 8px 8px; display: flex; gap: 10px; align-items: flex-start; }
.tr::before { content: ''; position: absolute; left: -21px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c, var(--brand)); }
.tr .d { font-family: var(--fd); font-weight: 700; color: var(--muted); width: 36px; flex: none; font-size: 13px; padding-top: 3px; }
.persona { border-left: 3px solid var(--c); }
.msg { background: rgba(148, 163, 184, .06); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }
.trig { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(148, 163, 184, .05); font-size: 13.5px; }
.trig .arrow { color: var(--brand); }
details.obj { border-radius: 14px; background: rgba(148, 163, 184, .05); padding: 0 14px; }
details.obj summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.obj summary::-webkit-details-marker { display: none; }
details.obj[open] summary .ic { transform: rotate(90deg); }
details.obj p { margin: 0 0 12px; color: #cdd7ea; font-size: 14px; }
.send-row { display: flex; flex-wrap: wrap; gap: 8px; }
.appbtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; font-weight: 600; font-size: 13px; transition: all .2s; }
.appbtn .ab { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.appbtn .ab .ic { width: 15px; height: 15px; }
.appbtn:hover { transform: translateY(-1px); border-color: var(--line2); }
.appbtn.sent { border-color: rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .08); }

/* ── sala ─────────────────── */
.sala-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: #fff; color: #0f172a; box-shadow: var(--sh); }
.browser { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e5e7eb; color: #334155; font-size: 12px; }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser .url { flex: 1; background: #fff; border-radius: 8px; padding: 4px 10px; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; }
.viewer.new { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: rgba(34, 211, 238, .25); } 100% { background: transparent; } }
.heat { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; align-items: center; }

/* ── território ─────────────────── */
.tilemap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 520px; margin: 0 auto; }
.uf { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 700; font-size: 15px; border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease); color: #e8eefb; }
.uf small { font-size: 10px; font-weight: 600; opacity: .85; font-family: var(--fs); }
.uf:hover { transform: scale(1.08); z-index: 2; }
.uf.off { background: rgba(148, 163, 184, .05); color: var(--dim); cursor: default; }
.uf.off:hover { transform: none; }
.uf[aria-pressed='true'] { outline: 2px solid #fff; }

/* ── conexões ─────────────────── */
.orbit { position: relative; width: 100%; aspect-ratio: 1.6; max-height: 560px; }
.orbit svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-app { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.orb-app .ab { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .2s var(--ease); }
.orb-app span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.orb-app:hover .ab, .orb-app[aria-pressed='true'] .ab { transform: scale(1.12); }
.orb-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 110px; height: 110px; border-radius: 32px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1e3a5f, #0b1730); border: 1px solid rgba(34, 211, 238, .4); box-shadow: 0 0 60px rgba(34, 211, 238, .25); }
.flow { stroke-dasharray: 4 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* ── guerra ─────────────────── */
body.war-on .side, body.war-on .top, body.war-on .mob { display: none; }
body.war-on main { margin: 0; max-width: none; padding: 24px; }
.war-wrap { min-height: calc(100vh - 48px); display: flex; flex-direction: column; gap: 16px; }
.war-head { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.war-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; flex: 1; }
.war-card { border-radius: 24px; padding: 20px; background: linear-gradient(160deg, var(--c2, #0f172b), #080d1a 70%); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.war-card .big { font-family: var(--fd); font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.ticker { overflow: hidden; white-space: nowrap; border-radius: 14px; background: rgba(255, 107, 91, .08); border: 1px solid rgba(255, 107, 91, .25); padding: 10px 0; }
.ticker div { display: inline-block; padding-left: 100%; animation: tick 40s linear infinite; font-weight: 600; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ── playbook ─────────────────── */
.pb { max-width: 820px; }
.pb h1 { font-size: 34px; margin-bottom: 8px; }
.pb h2 { font-size: 22px; margin: 32px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pb h3 { font-size: 16px; margin: 18px 0 6px; color: #cffafe; }
.pb p, .pb li { color: #d5def0; font-size: 15px; }
.pb ul, .pb ol { padding-left: 20px; }
.pb li { margin: 4px 0; }
.pb code { background: rgba(148, 163, 184, .12); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.pb blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--brand); background: rgba(34, 211, 238, .06); border-radius: 0 12px 12px 0; }

/* ── toast/fluxo ─────────────────── */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #0e1a31; border: 1px solid var(--line2); box-shadow: var(--sh); font-size: 13.5px; }
.toast .ab { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.fly { position: fixed; z-index: 99; width: 14px; height: 14px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 16px currentColor; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(3, 6, 14, .7); backdrop-filter: blur(6px); padding: 16px; }
.modal .card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; }

/* ── responsivo ─────────────────── */
@media (max-width: 1180px) {
  .t1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .war-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .side { display: none; }
  .top { padding: 12px 16px; }
  main { padding: 18px 16px 110px; }
  .g2, .g3, .g-7-5, .g-8-4 { grid-template-columns: minmax(0, 1fr); }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mob { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; justify-content: space-around; padding: 6px; border-radius: 20px; background: rgba(12, 19, 36, .92); backdrop-filter: blur(14px); border: 1px solid var(--line2); box-shadow: var(--sh); }
  .mob a, .mob button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 600; background: none; border: 0; cursor: pointer; }
  .mob a[aria-current='page'] { color: var(--text); background: rgba(34, 211, 238, .12); }
  .plan-hero { grid-template-columns: 1fr; }
  .trig { grid-template-columns: auto 1fr; }
  .trig .arrow { display: none; }
  .trig b { grid-column: 2; }
  .war-grid { grid-template-columns: 1fr; }
  .orbit { aspect-ratio: .62; max-height: none; }
  .orb-app .ab { width: 38px; height: 38px; border-radius: 12px; }
  .orb-app .ab .ic { width: 18px; height: 18px; }
  .orb-app span { font-size: 10px; }
  .orb-core { width: 84px; height: 84px; border-radius: 26px; }
  .chart { height: 280px; }
  #cy { height: 380px; }
}
@media (max-width: 600px) {
  .t1-grid, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
  .kpi .v { font-size: 26px; }
  .hide-sm { display: none !important; }
  .top .pill:not(.live) { display: none; }
  .wf .r { grid-template-columns: 110px 1fr 30px; }
  .clock { font-size: 44px; }
}
.more-sheet { position: fixed; left: 10px; right: 10px; bottom: 84px; z-index: 41; border-radius: 20px; background: #0e1830; border: 1px solid var(--line2); padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; box-shadow: var(--sh); }
.more-sheet a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(148, 163, 184, .06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker div { animation: none; padding-left: 0; white-space: normal; }
}

@media print {
  body { background: #fff; color: #0f172a; }
  body::before, .side, .top, .mob, .toasts, .no-print, .tabs { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  .card { background: #fff; border: 1px solid #cbd5e1; break-inside: avoid; color: #0f172a; }
  .muted, .dim, .card .sub, .pb p, .pb li, details.obj p { color: #334155 !important; }
  .gantt-in { min-width: 0; }
  details.obj { break-inside: avoid; } details.obj p { display: block; }
  .msg, .trig, .xr { background: #f1f5f9; }
  .hero-h em { color: #0e7490; -webkit-text-fill-color: #0e7490; }
  .pb h3 { color: #0e7490; }
  .view { animation: none; }
}

/* ═══ v1.1: contas reais (Receita, mapa, Apollo) ═══ */
.li > .ab, .vazio > .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.li > .ab .ic { width: 16px; height: 16px; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #b9c6dd; background: rgba(148, 163, 184, .08); border: 1px solid var(--line); white-space: normal; line-height: 1.3; }
.selo.g { color: #bbf7d0; border-color: rgba(45, 212, 191, .35); }
.ta, .in { width: 100%; box-sizing: border-box; background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.in { min-width: 0; width: auto; }
.ta { margin-top: 6px; resize: vertical; font-family: var(--fm, ui-monospace, monospace); font-size: 13px; }
.ta:focus, .in:focus { outline: none; border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.btn { position: relative; }
label.btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.fila { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fi { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(148, 163, 184, .07); border: 1px solid var(--line); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fi.vai { color: var(--text); border-color: rgba(34, 211, 238, .45); }
.fi.ok { color: #99f6e4; border-color: rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .07); }
.fi.err { color: #fecaca; border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .07); white-space: normal; }
.spin-s { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(34, 211, 238, .25); border-top-color: var(--brand); display: inline-block; animation: girar .8s linear infinite; vertical-align: -2px; flex: none; }
@keyframes girar { to { transform: rotate(360deg); } }
.real-tab { display: grid; gap: 4px; }
.rt-h, .rt-r { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr) minmax(0, 1.1fr) 52px minmax(0, 2.6fr) 40px; gap: 12px; align-items: center; }
.rt-h { font-size: 11.5px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 0 10px 4px; }
.rt-r { padding: 10px; border-radius: 14px; background: rgba(148, 163, 184, .035); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.rt-r:hover { border-color: var(--line2); background: rgba(148, 163, 184, .06); }
.ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vazio { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px dashed var(--line2); background: rgba(148, 163, 184, .03); }
.vazio > .ic { background: rgba(34, 211, 238, .12); color: var(--brand); padding: 6px; box-sizing: border-box; }
.regra-real { margin-top: 18px; padding: 14px; border-radius: 14px; border: 1px solid rgba(45, 212, 191, .25); background: rgba(45, 212, 191, .04); }
.dots-field .pt.real { border: 2px solid #fff; box-sizing: border-box; width: 13px; height: 13px; z-index: 2; }
.lg-real { background: transparent !important; border: 2px solid #fff; box-sizing: border-box; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.kv span { color: var(--muted); } .kv b { font-weight: 600; overflow-wrap: anywhere; }
.span2 { grid-column: 1 / -1; }
.mask { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; color: var(--muted); background: rgba(148, 163, 184, .08); border: 1px dashed var(--line2); font-family: var(--fm, ui-monospace, monospace); }
.li.ap { align-items: flex-start; border-color: var(--line); background: rgba(148, 163, 184, .03); margin-bottom: 6px; cursor: default; }
.col-b { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.li-b { border: 1px solid transparent; color: inherit; font: inherit; }
.li-b:hover { border-color: var(--line2); background: rgba(148, 163, 184, .05); }
.mapa { height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b1426; }
.mapa .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.5); }
.mapa .leaflet-control-attribution { background: rgba(6, 10, 20, .8); color: #97a6c3; font-size: 10.5px; }
.mapa .leaflet-control-attribution a { color: #cbd5e1; }
.mapa .leaflet-bar a { background: #0f172b; color: #e8eefb; border-color: var(--line2); }
.leaflet-tooltip { background: #0b1426; color: #e8eefb; border: 1px solid rgba(148, 163, 184, .25); border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); font: 12px Inter, system-ui, sans-serif; }
.leaflet-tooltip-top::before, .leaflet-tooltip-bottom::before, .leaflet-tooltip-left::before, .leaflet-tooltip-right::before { display: none; }
.pin { --c: #22d3ee; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c); color: #fff; font: 700 11px Inter, sans-serif; box-shadow: 0 0 0 3px #060a14, 0 6px 16px rgba(0, 0, 0, .5); }
.pin.t1 { box-shadow: 0 0 0 3px #facc15, 0 0 18px rgba(250, 204, 21, .6); }
.pin b { transform: rotate(45deg); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.lugar { display: grid; gap: 6px; font-size: 13px; }
.lugar > div { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.lugar .ic { flex: none; color: var(--brand); }
.fotos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.fotos img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 1180px) { .rt-h, .rt-r { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 52px minmax(0, 2.2fr) 40px; } .rt-h > :nth-child(2), .rt-r > :nth-child(2) { display: none; } }
@media (max-width: 900px) { .mapa { height: 340px; } }
@media (max-width: 600px) {
  .rt-h { display: none; }
  .rt-r { grid-template-columns: minmax(0, 1fr) 52px 36px; }
  .rt-r > :nth-child(5) { grid-column: 1 / -1; grid-row: 2; }
  .rt-r > :nth-child(6) { grid-column: 3; grid-row: 1; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv b { margin-bottom: 6px; }
  .li.ap { flex-wrap: wrap; } .li.ap .col-b { flex-direction: row; width: 100%; justify-content: flex-end; }
  .imp .row .in { flex: 1 1 100%; }
}
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 8px; margin-top: 10px; }
.ap-grid > p { grid-column: 1 / -1; }
.ap-grid .li.ap { margin-bottom: 0; }

/* ───── v1.2: espaço da empresa, modos e honestidade de tela ───── */
.pill.esp, .pill.modo { font-size: 12px; font-weight: 600; cursor: pointer; font: inherit; border: 1px solid var(--line, rgba(148,163,184,.25)); background: rgba(148,163,184,.08); color: inherit; }
.pill.esp .dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; display: inline-block; margin-right: 6px; }
.pill.esp.salvo .dot { background: #2dd4bf; } .pill.esp.salvando .dot, .pill.esp.ligando .dot { background: #facc15; } .pill.esp.erro .dot { background: #ff6b5b; }
.pill.modo.demo { color: #facc15; border-color: rgba(250,204,21,.45); } .pill.modo.empresa { color: #2dd4bf; border-color: rgba(45,212,191,.45); }
.demo-tag.real { color: #2dd4bf; border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.08); }
.ribbon-demo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; border: 1px dashed rgba(250,204,21,.6); background: repeating-linear-gradient(135deg, rgba(250,204,21,.10) 0 14px, rgba(250,204,21,.04) 14px 28px); color: #fde68a; font-size: 13px; }
.ribbon-demo b { letter-spacing: .08em; background: #facc15; color: #1a1400; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; }
.ribbon-demo .btn { margin-left: auto; }
.selo-ia { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); color: #97a6c3; }
.selo-ia.ia { color: #a78bfa; border-color: rgba(167,139,250,.55); background: rgba(167,139,250,.10); }
.vazio-real { padding: 28px; border: 1px dashed rgba(148,163,184,.3); border-radius: 18px; text-align: center; }
.sala-link { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; background: rgba(148,163,184,.05); }
.sala-link code { font-size: 11.5px; word-break: break-all; color: #97a6c3; }
@media (max-width: 720px) { .top { flex-wrap: wrap; gap: 6px; } .top .pill { font-size: 11.5px; padding: 4px 9px; } }
