:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --line: #1e2a44;
  --txt: #e8eefc;
  --mut: #8b9bb8;
  --acc: #7c5cff;
  --acc2: #3d7cff;
  --ok: #3dd68c;
  --hot: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font: 14px/1.4 Inter, system-ui, sans-serif; }
body { display: flex; }
.side {
  width: 64px; background: #0e1628; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 18px;
}
.logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--acc), var(--acc2)); display: grid; place-items: center; font-weight: 700; }
.side nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nav { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--mut); cursor: pointer; font-size: 16px; }
.nav.on, .nav:hover { background: #1a2540; color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #243152; display: grid; place-items: center; font-size: 12px; }
main { flex: 1; padding: 22px 28px; overflow: auto; }
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; }
.hello { margin: 0; color: var(--mut); font-size: 12px; }
h1 { margin: 2px 0 0; font-size: 22px; }
.top-right { display: flex; gap: 10px; align-items: center; }
.clock { font-variant-numeric: tabular-nums; color: var(--mut); background: var(--panel); border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; }
.btn { background: var(--acc); color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi b { display: block; font-size: 26px; }
.kpi span { color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.progress { height: 3px; background: var(--line); border-radius: 2px; margin: 12px 0 18px; }
.progress i { display: block; height: 100%; width: 0; background: var(--acc); }
.grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
h2, h3 { margin: 0; font-size: 15px; }
.toolbar { display: flex; gap: 8px; }
input, select { background: #0b1220; border: 1px solid var(--line); color: var(--txt); border-radius: 8px; padding: 8px 10px; }
.table-wrap { overflow: auto; max-height: 52vh; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--mut); font-weight: 500; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #1c2744; }
.pill.steal, .steal { background: #163528; color: var(--ok); }
.pill.skip, .skip { background: #3a2230; color: #ff9bb0; }
.pill.hot, .hot { background: #3a1c1c; color: var(--hot); }
.pbar { display: inline-block; width: 48px; height: 6px; background: #1c2744; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.pbar i { display: block; height: 100%; background: var(--acc); border-radius: 4px; }
.leads { display: flex; flex-direction: column; gap: 8px; max-height: 36vh; overflow: auto; }
.card { background: #0d1526; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.card h3 { font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--mut); font-size: 11px; margin: 6px 0; }
.next { margin: 0; color: #c9d4ee; font-size: 12px; }
.rail { display: flex; flex-direction: column; gap: 16px; }
.team { list-style: none; padding: 0; margin: 10px 0; }
.team li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.team b { width: 24px; height: 24px; border-radius: 50%; background: #243152; display: grid; place-items: center; font-size: 11px; }
.team .off { opacity: .45; }
.hint { color: var(--mut); font-size: 12px; }
dialog { border: 0; border-radius: 16px; background: var(--panel); color: var(--txt); padding: 20px; width: min(420px, 92vw); }
.nicho { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 900px) {
  .grid, .kpis { grid-template-columns: 1fr; }
  .side { width: 52px; }
}
