:root {
  --bg: #060B14; --bg2: #0A1220; --panel: rgba(14, 24, 42, .78); --panel2: #101C33; --solid: #0E182A;
  --line: rgba(120, 160, 230, .14); --line2: rgba(120, 160, 230, .26);
  --text: #E6EDF7; --muted: #8B9BB6; --dim: #5D6C86;
  --blue: #2457D6; --blue2: #3B82F6; --sky: #60A5FA; --cyan: #22D3EE;
  --green: #34D399; --amber: #FBBF24; --red: #F87171; --violet: #A78BFA;
  --r: 14px; --sw: 248px; --swc: 68px;
  --head: "Manrope", "Segoe UI", Arial, sans-serif; --body: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(900px 500px at 85% -10%, rgba(36, 87, 214, .22), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(34, 211, 238, .08), transparent 60%),
  linear-gradient(rgba(120, 160, 230, .035) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(120, 160, 230, .035) 1px, transparent 1px) 0 0 / 40px 40px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 160, 230, .2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== layout ===== */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sw) 1fr; height: 100vh; transition: grid-template-columns .25s ease; }
.app.collapsed { grid-template-columns: var(--swc) 1fr; }
.side { background: rgba(8, 14, 26, .86); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; backdrop-filter: blur(10px); }
.side-top { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px 18px; height: 64px; }
.side-top img { height: 30px; }
.app.collapsed .side-top img.full { display: none; }
.side-top img.mini { display: none; height: 28px; }
.app.collapsed .side-top img.mini { display: block; }
.app.collapsed .side-top { justify-content: center; padding-left: 14px; }
.org { margin: 4px 12px 10px; }
.org-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: left; }
.org-btn:hover { border-color: var(--line2); }
.org-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 12px var(--head); color: #04101F; flex: none; }
.org-txt { min-width: 0; flex: 1; }
.org-txt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-txt small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app.collapsed .org-txt, .app.collapsed .org-btn > .ico { display: none; }
.app.collapsed .org-btn { justify-content: center; padding: 8px 0; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.nav-label { font: 600 10.5px var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; padding: 14px 10px 6px; white-space: nowrap; }
.app.collapsed .nav-label { visibility: hidden; height: 10px; padding: 6px 0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 1px 0; border-radius: 10px; color: #B4C1D6; text-decoration: none; white-space: nowrap; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(36, 87, 214, .32), rgba(36, 87, 214, .06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .25); }
.nav a.on .ico { color: var(--cyan); }
.nav a.locked { opacity: .45; }
.nav .cnt { margin-left: auto; font: 600 11px var(--mono); background: rgba(34, 211, 238, .14); color: var(--cyan); padding: 1px 7px; border-radius: 999px; }
.nav .cnt.warn { background: rgba(248, 113, 113, .16); color: var(--red); }
.app.collapsed .nav a { justify-content: center; padding: 10px 0; }
.app.collapsed .nav a span, .app.collapsed .nav .cnt { display: none; }
.app.collapsed .nav a .pip { display: block; }
.nav .pip { display: none; position: absolute; top: 7px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.side-foot { padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.collapse-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.collapse-btn:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.app.collapsed .collapse-btn { justify-content: center; }
.app.collapsed .collapse-btn span { display: none; }
.app.collapsed .collapse-btn .ico { transform: rotate(180deg); }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(6, 11, 20, .6); backdrop-filter: blur(10px); flex: none; }
.burger { display: none; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 460px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; text-align: left; }
.search:hover { border-color: var(--line2); }
.search kbd { margin-left: auto; font: 11px var(--mono); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.xp-mini { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; }
.xp-mini b { font: 700 12px var(--mono); color: var(--cyan); }
.xp-mini .bar { width: 90px; }
.xp-mini small { color: var(--muted); font-size: 11.5px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; color: #C7D2E4; }
.icon-btn:hover { border-color: var(--line2); color: #fff; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; }
.me-btn:hover { border-color: var(--line); }
.me-btn .who { text-align: left; line-height: 1.2; }
.me-btn .who b { display: block; font-size: 13px; }
.me-btn .who small { color: var(--muted); font-size: 11.5px; }
.view { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }
.view-in { max-width: 1440px; margin: 0 auto; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 7px 22px; background: linear-gradient(90deg, rgba(36, 87, 214, .25), rgba(34, 211, 238, .08)); border-bottom: 1px solid var(--line); font-size: 12.5px; color: #C7D2E4; flex: none; }
.demo-banner a { color: var(--cyan); }
.demo-banner button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; }

/* ===== cabeçalho de página ===== */
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph h1 { font-size: 24px; font-weight: 800; }
.ph p { color: var(--muted); margin-top: 2px; }
.ph .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hud-label { font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); opacity: .85; }

/* ===== componentes ===== */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(8px); min-width: 0; }
.card.hud::before, .card.hud::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--cyan); opacity: .55; pointer-events: none; }
.card.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.card.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 700; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: rgba(120, 160, 230, .45); background: rgba(255, 255, 255, .06); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #2E63E6, var(--blue)); border-color: #3B6FEA; color: #fff; box-shadow: 0 6px 20px -8px rgba(36, 87, 214, .9); }
.btn.primary:hover { background: linear-gradient(180deg, #3A6EF0, #2A5EDF); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.btn.danger { color: var(--red); border-color: rgba(248, 113, 113, .35); }
.btn.ok { color: var(--green); border-color: rgba(52, 211, 153, .35); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line2); color: #C7D2E4; background: rgba(255, 255, 255, .03); white-space: nowrap; }
.chip.blue { color: var(--sky); border-color: rgba(96, 165, 250, .35); background: rgba(59, 130, 246, .1); }
.chip.cyan { color: var(--cyan); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.chip.green { color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.chip.amber { color: var(--amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.chip.red { color: var(--red); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.chip.violet { color: var(--violet); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); }
.chip .ico { width: 12px; height: 12px; }
.filt { cursor: pointer; }
.filt.on { background: var(--text); color: #0A1220; border-color: var(--text); }

.av { display: inline-grid; place-items: center; border-radius: 50%; font: 700 12px var(--head); color: #06101F; flex: none; width: 32px; height: 32px; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.av.xl { width: 76px; height: 76px; font-size: 25px; }
.avs { display: flex; }
.avs .av { box-shadow: 0 0 0 2px var(--solid); margin-left: -6px; }

.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue2), var(--cyan)); transition: width .6s ease; }
.bar.green i { background: linear-gradient(90deg, #10B981, var(--green)); }
.bar.amber i { background: linear-gradient(90deg, #F59E0B, var(--amber)); }
.bar.lg { height: 10px; }

.input, .select, textarea.input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(6, 11, 20, .55); color: var(--text); }
.input:focus, .select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(96, 165, 250, .2); }
.select option { background: #0E182A; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.up { color: var(--green); }
.down { color: var(--red); }
.right { margin-left: auto; }
.tr { text-align: right; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--sky); outline-offset: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; border-bottom-color: var(--cyan); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.seg button.on { background: rgba(59, 130, 246, .22); color: #fff; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(120, 160, 230, .07); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tbl.static tbody tr { cursor: default; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user b { display: block; font-weight: 600; }
.cell-user small { color: var(--muted); }
.tbl-wrap { overflow-x: auto; }

/* KPI */
.kpi .k-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.kpi .k-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(59, 130, 246, .14); color: var(--sky); }
.kpi .k-val { font: 800 26px var(--head); margin: 10px 0 2px; letter-spacing: -.02em; }
.kpi .k-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.kpi svg.spark { position: absolute; right: 16px; top: 54px; width: 96px; height: 34px; opacity: .9; }

/* listas */
.list > * + * { border-top: 1px solid rgba(120, 160, 230, .08); }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t small { color: var(--muted); }
.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); background: none; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; padding: 0; }
.check:hover { border-color: var(--cyan); }
.check.on { background: var(--green); border-color: var(--green); color: #04101F; }
.check .ico { width: 13px; height: 13px; stroke-width: 3; }
.done-t { text-decoration: line-through; color: var(--dim) !important; }

/* briefing */
.brief { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); cursor: pointer; }
.brief + .brief { margin-top: 10px; }
.brief:hover { border-color: rgba(34, 211, 238, .4); }
.brief .bi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.brief b { display: block; font-size: 13.5px; }
.brief small { color: var(--muted); font-size: 12.5px; }

/* ring */
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-wrap .ring-c { position: absolute; text-align: center; }
.ring-c b { display: block; font: 800 26px var(--head); }
.ring-c small { color: var(--muted); font-size: 12px; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.col { background: rgba(10, 18, 32, .65); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; max-height: calc(100vh - 260px); min-height: 200px; }
.col-h { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.col-h .row b { font-family: var(--head); font-size: 13.5px; }
.col-h .n { font: 600 11px var(--mono); color: var(--muted); }
.col-h .sum { font: 700 13px var(--mono); color: var(--sky); margin-top: 4px; }
.col-h .prog { height: 2px; border-radius: 2px; margin-top: 8px; }
.col-b { padding: 10px; overflow-y: auto; flex: 1; display: grid; gap: 8px; align-content: start; min-height: 80px; }
.col.over { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 238, .3), inset 0 0 40px -20px rgba(34, 211, 238, .4); }
.deal { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab; transition: border-color .15s, transform .15s, box-shadow .15s; }
.deal:hover { border-color: var(--line2); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.deal.drag { opacity: .4; }
.deal .d-t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.deal .d-c { color: var(--muted); font-size: 12px; margin-top: 2px; }
.deal .d-f { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.deal .d-v { font: 700 13px var(--mono); color: var(--text); }
.stale { color: var(--amber); font-size: 11px; display: inline-flex; gap: 4px; align-items: center; }
.stale .ico { width: 12px; height: 12px; }

/* chat */
.inbox { display: grid; grid-template-columns: 320px 1fr 290px; height: calc(100vh - 64px - 34px - 48px - 70px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-list .hd { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ib-items { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid rgba(120, 160, 230, .07); cursor: pointer; position: relative; }
.conv:hover { background: rgba(255, 255, 255, .03); }
.conv.on { background: rgba(36, 87, 214, .18); }
.conv.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--cyan); }
.conv .t { flex: 1; min-width: 0; }
.conv .t .row b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .t p { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .time { font: 11px var(--mono); color: var(--dim); margin-left: auto; flex: none; }
.unread { min-width: 18px; height: 18px; border-radius: 9px; background: var(--cyan); color: #04101F; font: 700 10.5px var(--mono); display: grid; place-items: center; padding: 0 5px; }
.ib-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ib-thread .hd { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ib-thread .hd .who { flex: 1; min-width: 160px; }
.ib-thread .hd .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-list .seg button { padding: 6px 4px; font-size: 12px; white-space: nowrap; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(rgba(6, 11, 20, .25), rgba(6, 11, 20, .25)); }
.msg { max-width: 72%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg.in { background: #16243D; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: linear-gradient(180deg, #2A5CDB, #2350C2); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.note { align-self: center; max-width: 86%; background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .45); color: #FDE68A; font-size: 12.5px; }
.msg.sys { align-self: center; background: none; color: var(--dim); font: 11px var(--mono); padding: 2px; }
.msg .mt { display: block; font: 10.5px var(--mono); opacity: .65; margin-top: 4px; text-align: right; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #16243D; border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.composer .modes { display: flex; gap: 4px; margin-bottom: 8px; }
.composer .modes button { border: 0; background: none; color: var(--muted); padding: 4px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.composer .modes button.on { background: rgba(59, 130, 246, .2); color: #fff; }
.composer .modes button.on.n { background: rgba(251, 191, 36, .15); color: var(--amber); }
.composer .box { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ib-info { border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; }
.ib-info h4 { font-size: 12px; color: var(--muted); margin: 16px 0 8px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* gamificação */
.lvl-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.lvl-hero .big { font: 800 30px var(--head); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.badge { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, .02); text-align: center; position: relative; }
.badge .hex { width: 58px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.badge .hex .ico { width: 24px; height: 24px; color: #04101F; }
.badge.locked { opacity: .6; }
.badge.locked .hex { background: rgba(255, 255, 255, .08) !important; }
.badge.locked .hex .ico { color: var(--muted); }
.badge b { display: block; font-size: 13.5px; }
.badge small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.badge .tier { position: absolute; top: 10px; right: 10px; font: 600 10px var(--mono); color: var(--muted); }
.chal { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, .02); display: grid; gap: 10px; }
.chal.done { border-color: rgba(52, 211, 153, .4); }
.rank-row { display: grid; grid-template-columns: 34px 1fr 110px 130px 70px; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid rgba(120, 160, 230, .07); }
.rank-row.me { background: rgba(36, 87, 214, .14); border-radius: 10px; }
.pos { font: 800 16px var(--head); color: var(--muted); text-align: center; }
.pos.p1 { color: #FCD34D; } .pos.p2 { color: #CBD5E1; } .pos.p3 { color: #FDBA74; }

/* permissões */
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.lv { border: 1px solid var(--line2); background: none; border-radius: 8px; padding: 3px 10px; font: 600 11.5px var(--mono); color: var(--dim); cursor: pointer; min-width: 64px; }
.lv.l1 { color: var(--sky); border-color: rgba(96, 165, 250, .4); background: rgba(59, 130, 246, .08); }
.lv.l2 { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.lv[disabled] { cursor: not-allowed; opacity: .7; }

/* planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.cur { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 1px rgba(34, 211, 238, .2); }
.plan .price { font: 800 30px var(--head); }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #C7D2E4; font-size: 13px; }
.plan li { display: flex; gap: 8px; }
.plan li .ico { width: 15px; height: 15px; color: var(--cyan); margin-top: 2px; }
.plan .tag { position: absolute; top: -10px; right: 16px; }

/* whatsapp */
.inst { display: grid; gap: 12px; }
.inst-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.st-on { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.st-off { background: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); }
.st-wait { background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); animation: blink 1.2s infinite; }
.qr { width: 196px; height: 196px; background: #fff; border-radius: 12px; padding: 10px; margin: 0 auto; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare ul { margin: 8px 0 0; padding-left: 18px; color: #C7D2E4; display: grid; gap: 4px; font-size: 13px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 14, .6); backdrop-filter: blur(3px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #0B1426; border-left: 1px solid var(--line2); z-index: 61; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .8); }
.drawer.open { transform: none; }
.dr-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dr-b { padding: 18px 20px; overflow-y: auto; flex: 1; }
.dr-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.modal { position: fixed; left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; background: #0B1426; border: 1px solid var(--line2); border-radius: 18px; z-index: 62; transition: .2s; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal.wide { width: min(720px, calc(100% - 32px)); }
.md-h { display: flex; align-items: center; padding: 18px 20px 4px; }
.md-h h3 { font-size: 18px; }
.md-b { padding: 14px 20px; }
.md-f { padding: 4px 20px 20px; display: flex; gap: 8px; justify-content: flex-end; }
.pop { position: fixed; z-index: 70; background: #0D1830; border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); padding: 6px; min-width: 240px; display: none; }
.pop.open { display: block; animation: fade .15s ease; }
.pop .pi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; width: 100%; border: 0; background: none; text-align: left; color: var(--text); }
.pop .pi:hover, .pop .pi.sel { background: rgba(255, 255, 255, .05); }
.pop .ph2 { padding: 8px 10px 4px; font: 600 10.5px var(--mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: #0F1C35; border: 1px solid var(--line2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); animation: tin .25s ease; }
.toast.xp { border-color: rgba(34, 211, 238, .5); background: linear-gradient(90deg, rgba(34, 211, 238, .12), #0F1C35 60%); }
.toast.xp b { color: var(--cyan); font-family: var(--mono); }
.toast.ach { border-color: rgba(167, 139, 250, .6); background: linear-gradient(90deg, rgba(167, 139, 250, .16), #0F1C35 60%); }
.toast.out { animation: tout .25s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tout { to { opacity: 0; transform: translateX(20px); } }
.pulse { animation: pulse 1s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); } }

.cmd { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); background: #0B1426; border: 1px solid var(--line2); border-radius: 16px; z-index: 75; display: none; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95); overflow: hidden; }
.cmd.open { display: block; animation: fade .15s ease; }
.cmd input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 18px; font-size: 16px; outline: none; }
.cmd .res { max-height: 50vh; overflow-y: auto; padding: 6px; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line2); }
.tl { position: relative; padding: 0 0 14px; }
.tl::before { content: ""; position: absolute; left: -17px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sky); }
.tl small { color: var(--muted); display: block; font-size: 11.5px; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* responsivo */
@media (max-width: 1280px) {
  .inbox { grid-template-columns: 290px 1fr; }
  .ib-info { display: none; }
  .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c8 { grid-column: span 12; } .c5, .c7 { grid-column: span 12; }
}
@media (max-width: 960px) {
  .app, .app.collapsed { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 65; top: 0; bottom: 0; left: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .app.mnav .side { transform: none; }
  .app.collapsed .side-top img.full, .app.collapsed .org-txt, .app.collapsed .nav a span, .app.collapsed .nav .cnt, .app.collapsed .collapse-btn span { display: initial; }
  .collapse-btn { display: none !important; }
  .burger { display: grid; }
  .xp-mini, .me-btn .who, .search kbd { display: none; }
  .view { padding: 18px 16px 40px; }
  .top { padding: 0 12px; gap: 8px; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ib-list .seg button { font-size: 11px; padding: 6px 2px; min-width: 0; }
  .ib-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ib-thread { height: 520px; }
  .plans, .compare, .grid2 { grid-template-columns: 1fr; }
  .lvl-hero { grid-template-columns: 1fr; text-align: center; }
  .rank-row { grid-template-columns: 30px 1fr 80px; }
  .rank-row .hide-sm { display: none; }
  .demo-banner span.long { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== plataforma interna ===== */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.login-card { width: min(420px, 100%); background: rgba(11, 20, 38, .92); border: 1px solid var(--line2); border-radius: 20px; padding: 32px 28px; box-shadow: 0 40px 100px -40px rgba(36, 87, 214, .6); }
.login-card img { height: 46px; margin-bottom: 22px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card .err { color: var(--red); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.login-card .btn { width: 100%; justify-content: center; padding: 11px; }
.user-foot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; color: var(--text); }
.user-foot:hover { background: rgba(255, 255, 255, .04); }
.user-foot .t { min-width: 0; flex: 1; }
.user-foot .t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-foot .t small { color: var(--muted); font-size: 11.5px; }
.app.collapsed .user-foot .t, .app.collapsed .user-foot > .ico { display: none; }
.app.collapsed .user-foot { justify-content: center; }
.lead-card { display: grid; gap: 10px; }
.lead-card .facts { font-size: 13px; color: #C7D2E4; white-space: pre-wrap; }
.lead-card .hyp { font-size: 13px; color: var(--amber); white-space: pre-wrap; }
.kanban.wide { grid-auto-columns: minmax(230px, 1fr); }
.col.lost { opacity: .85; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.mini-bars .mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mini-bars .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.mini-bars .pair i { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.mini-bars small { color: var(--muted); font-size: 11px; }
.pw-box { font: 700 18px var(--mono); background: rgba(34, 211, 238, .08); border: 1px dashed rgba(34, 211, 238, .5); color: var(--cyan); padding: 12px; border-radius: 10px; text-align: center; letter-spacing: .05em; user-select: all; }
.group-h { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 16px 0 4px; }
.group-h.red { color: var(--red); }
