/* =========================================================================
   SERA HUB — Design System
   Base preto e branco. Um único acento — turquesa — e suas variações
   respondem por todo detalhe e por toda série de dados. A única cor
   fora dessa família é o vermelho quente, reservado ao que é negativo.
   ========================================================================= */

:root {
  /* superfícies */
  --bg: #000000;
  --bg-soft: #050505;
  --surface: #0a0a0b;
  --surface-2: #0f0f11;
  --surface-3: #151517;
  --line: #18181a;
  --line-strong: #232326;
  --line-soft: #121214;

  /* texto — escala neutra */
  --text: #ffffff;
  --text-2: #d7d7dc;
  --text-3: #9d9da5;
  --text-4: #74747c;
  --text-5: #54545c;

  /* acento único */
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-3: #a5f3fc;
  --accent-deep: #0e7490;

  /* ganho usa o acento; só a perda escapa da família */
  --pos: #22d3ee;
  --pos-dim: #0891b2;
  --neg: #e5705f;
  --neg-dim: #b8564a;
  --warn: #d9897a;
  --info: #9d9da5;

  /* rampa categórica: variações do acento (séries, canais, projetos) */
  --s1: #ecfeff;
  --s2: #c2f5fb;
  --s3: #a5f3fc;
  --s4: #67e8f9;
  --s5: #3ddcf2;
  --s6: #22d3ee;
  --s7: #12b3d3;
  --s8: #0e93ae;

  /* geometria */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sidebar-w: 262px;
  --topbar-h: 66px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .6);
  --shadow-2: 0 24px 60px -32px rgba(0, 0, 0, 1);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .14);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 640px at 76% -20%, rgba(34, 211, 238, .045), transparent 62%),
    radial-gradient(900px 520px at 0% 100%, rgba(255, 255, 255, .012), transparent 58%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(34, 211, 238, .25); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e1e21; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c2c31; }

/* texturas do tema ------------------------------------------------------- */
.bg-stripes {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px,
    rgba(255, 255, 255, .015) 40px, rgba(255, 255, 255, .015) 41px);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* =========================================================================
   Layout shell
   ========================================================================= */
.shell { position: relative; z-index: 1; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #050506;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .35s var(--ease), width .3s var(--ease);
}

.sidebar__brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #04171c;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -.05em;
  flex: 0 0 auto;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .22em; color: var(--text-5); }

.sidebar__scroll { flex: 1 1 auto; overflow-y: auto; padding: 18px 12px 8px; }
.sidebar__scroll::-webkit-scrollbar { width: 6px; }
.sidebar__scroll::-webkit-scrollbar-thumb { border-width: 2px; }

.nav-group + .nav-group { margin-top: 20px; }
.nav-group__label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-5);
  padding: 0 10px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: background .18s, color .18s;
}
.nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; stroke-width: 1.7; }
.nav-item.is-active { background: rgba(34, 211, 238, .07); color: #fff; }
.nav-item.is-active::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.nav-item__badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(229, 112, 95, .16);
  color: #f0917f;
  border: 1px solid rgba(229, 112, 95, .25);
}

.sidebar__foot { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--line); }

.plan-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 13px;
  background: var(--surface-2);
  margin-bottom: 10px;
}
.plan-card__bar { height: 3px; border-radius: 99px; background: #1b1b1e; overflow: hidden; margin-top: 10px; }
.plan-card__bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  transition: background .18s;
  cursor: pointer;
}
.user-chip:hover { background: rgba(255, 255, 255, .04); }
/* o botão de sair só aparece quando o cartão recebe o ponteiro — presente
   quando procurado, discreto quando não */
.user-chip .icon-btn { opacity: 0; flex: 0 0 auto; transition: opacity .18s, color .18s; }
.user-chip:hover .icon-btn, .user-chip .icon-btn:focus-visible { opacity: 1; }
.user-chip .icon-btn:hover { color: var(--neg); }
@media (hover: none) { .user-chip .icon-btn { opacity: 1; } }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #17171a;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  flex: 0 0 auto;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* topbar ----------------------------------------------------------------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 32px;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { min-width: 0; }
.topbar__title h1 { font-size: 16px; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__crumb { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-5); }
.topbar__spacer { flex: 1 1 auto; }
.topbar__tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-3);
  transition: .18s;
  position: relative;
  flex: 0 0 auto;
}
.icon-btn:hover { color: #fff; border-color: #3f3f46; background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.icon-btn__dot {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neg);
  box-shadow: 0 0 0 2px var(--surface), 0 0 10px var(--neg);
}

.search-trigger {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-4);
  font-size: 12.5px;
  cursor: pointer;
  min-width: 220px;
  transition: .18s;
}
.search-trigger:hover { border-color: #3f3f46; color: var(--text-2); }
/* A lupa é um círculo fechado; ao lado de ícones abertos (sino, refresh)
   ela parece maior no mesmo tamanho nominal. Desenhamos um pouco menor
   para os três pesarem igual na barra. */
.search-trigger svg { width: 14px; height: 14px; stroke-width: 1.8; }
.kbd {
  font-family: var(--mono); font-size: 9.5px;
  padding: 2px 5px; border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: #0f0f11; color: var(--text-4);
  margin-left: auto;
}

.menu-toggle { display: none; }

/* barra de filtros -------------------------------------------------------- */
.filterbar {
  position: sticky; top: var(--topbar-h); z-index: 45;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 12px 32px;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0; background: transparent;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-4);
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-active { background: #fff; color: #050505; }

.pill-select {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.pill-select:hover { border-color: #3f3f46; color: #fff; }
/* período personalizado ativo: precisa se distinguir dos atalhos, senão
   não dá para saber, de relance, que recorte está valendo */
.pill-select.is-on {
  border-color: rgba(34, 211, 238, .45);
  color: var(--accent-2);
  background: rgba(34, 211, 238, .07);
}
.pill-select.is-on svg { color: var(--accent); }
.pill-select svg { width: 14px; height: 14px; color: var(--text-5); }
.pill-select b { font-weight: 650; color: #fff; }
.pill-select.is-open { border-color: rgba(34, 211, 238, .45); background: var(--surface-2); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px;
  background: #0b0b0d;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  padding: 7px;
  z-index: 80;
  max-height: 340px; overflow-y: auto;
  animation: pop .18s var(--ease) both;
}
.dropdown--right { left: auto; right: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s;
}
.dd-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.dd-item small { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-5); }
.dd-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dd-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--text-5); padding: 8px 10px 5px; }

.checkbox {
  width: 15px; height: 15px; border-radius: 5px;
  border: 1px solid #3f3f46; flex: 0 0 auto;
  display: grid; place-items: center;
  transition: .15s;
}
.checkbox.is-on { background: var(--accent); border-color: var(--accent); }
.checkbox.is-on::after { content: ""; width: 4px; height: 8px; border: solid #04171c; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

/* botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 15px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { color: #fff; border-color: #46464e; transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn--primary { background: #fafafa; color: #08080a; border-color: #fafafa; }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #04171c; }
.btn--accent { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .28); color: var(--accent-2); }
.btn--accent:hover { background: rgba(34, 211, 238, .14); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); }
.btn--sm { height: 29px; padding: 0 12px; font-size: 11.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* =========================================================================
   Conteúdo / grid
   ========================================================================= */
.page { padding: 28px 32px 88px; max-width: 1640px; width: 100%; margin: 0 auto; }

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.mt-lg { margin-top: 38px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.035em; margin-top: 6px; }
.section-head p { font-size: 12.5px; color: var(--text-4); margin-top: 7px; max-width: 74ch; line-height: 1.65; }

.eyebrow {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--text-5);
}

/* cards ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  overflow: hidden;
  --mouse-x: -999px; --mouse-y: -999px;
  transition: border-color .3s, transform .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--mouse-x) var(--mouse-y), rgba(34, 211, 238, .05), transparent 44%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: #242428; }
.card--flat { background: var(--surface); }
.card--pad-0 { padding: 0; }
.card--tight { padding: 15px; }
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.card__title { font-size: 13.5px; font-weight: 600; letter-spacing: -.025em; }
.card__sub { font-size: 11.5px; color: var(--text-4); margin-top: 5px; line-height: 1.6; max-width: 68ch; }

/* KPI -------------------------------------------------------------------- */
.kpi { position: relative; }
.kpi__label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--text-5);
}
.kpi__label svg { width: 12px; height: 12px; opacity: .7; }
.kpi__value {
  font-size: 29px; font-weight: 250;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
  line-height: 1.05;
  display: flex; align-items: baseline; gap: 6px;
}
.kpi__value small { font-size: 13px; color: var(--text-4); font-weight: 500; letter-spacing: 0; }
.kpi__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kpi__spark { height: 34px; margin-top: 6px; }
.kpi__hint { font-size: 11px; color: var(--text-5); }

.delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.delta svg { width: 11px; height: 11px; stroke-width: 2.4; }
.delta--up { color: var(--accent-2); background: rgba(34, 211, 238, .07); border-color: rgba(34, 211, 238, .2); }
.delta--down { color: #f0917f; background: rgba(229, 112, 95, .07); border-color: rgba(229, 112, 95, .2); }
.delta--flat { color: var(--text-4); background: rgba(255, 255, 255, .03); border-color: var(--line); }

/* badges ----------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--text-3);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}
.badge--pos { color: var(--accent-2); border-color: rgba(34, 211, 238, .24); background: rgba(34, 211, 238, .07); }
.badge--neg { color: #f0917f; border-color: rgba(229, 112, 95, .24); background: rgba(229, 112, 95, .07); }
.badge--warn { color: #eaa89a; border-color: rgba(229, 112, 95, .18); background: rgba(229, 112, 95, .045); }
.badge--info { color: var(--text-2); border-color: var(--line-strong); background: rgba(255, 255, 255, .035); }
.badge--accent { color: var(--accent-2); border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-3);
}

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* tabelas ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left;
  font-family: var(--mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--text-5); font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, .01);
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(8px);
}
.tbl th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
.tbl th.sortable:hover { color: var(--text-2); }
.tbl th .sort-ind { opacity: .35; margin-left: 4px; }
.tbl th.is-sorted { color: var(--accent-2); }
.tbl th.is-sorted .sort-ind { opacity: 1; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
.tbl tbody tr { transition: background .16s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .022); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .strong { color: #fff; font-weight: 600; }
.tbl tr.is-clickable { cursor: pointer; }
.tbl tfoot td { padding: 13px 16px; border-top: 1px solid var(--line-strong); color: #fff; font-weight: 600; background: rgba(255, 255, 255, .015); }

.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-main__txt { min-width: 0; }
.cell-main__txt b { display: block; color: #fff; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-main__txt span { font-size: 11px; color: var(--text-5); }

.sq {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.sq img { width: 100%; height: 100%; object-fit: cover; }

/* barra proporcional dentro de célula */
.minibar { height: 4px; border-radius: 99px; background: #17171a; overflow: hidden; min-width: 54px; }
.minibar i { display: block; height: 100%; border-radius: 99px; transition: width .8s var(--ease); }

/* progress ---------------------------------------------------------------- */
.progress { height: 5px; border-radius: 99px; background: #17171a; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 1s var(--ease); }

/* metas ------------------------------------------------------------------- */
.goal-row { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.goal-row:last-child { border-bottom: 0; }
.goal-row__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.goal-row__top b { color: #fff; font-weight: 600; }
.goal-row__val { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* listas ------------------------------------------------------------------ */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.list-row:last-child { border-bottom: 0; }
.list-row__txt { min-width: 0; flex: 1 1 auto; }
.list-row__txt b { display: block; font-size: 12.5px; color: #fff; font-weight: 600; }
.list-row__txt span { font-size: 11px; color: var(--text-5); }
.list-row__end { text-align: right; flex: 0 0 auto; }
.list-row__end b { display: block; font-family: var(--mono); font-size: 12.5px; color: #fff; }

/* insights ---------------------------------------------------------------- */
.insight {
  display: flex; gap: 12px;
  padding: 13px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: .22s var(--ease);
}
.insight:hover { transform: translateX(2px); border-color: #26262a; }
.insight__ic {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.insight__ic svg { width: 15px; height: 15px; }
.insight b { display: block; font-size: 12.5px; color: #fff; font-weight: 650; margin-bottom: 2px; }
.insight p { font-size: 11.8px; color: var(--text-4); line-height: 1.5; }
.insight__act { font-size: 11px; color: var(--accent-2); font-weight: 600; margin-top: 6px; display: inline-flex; gap: 4px; align-items: center; }

/* charts ------------------------------------------------------------------ */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--font); }
.chart text.cmono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chart-legend button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-4);
  background: none; border: 0; cursor: pointer; padding: 0;
  transition: color .15s, opacity .15s;
}
.chart-legend button:hover { color: var(--text); }
.chart-legend button.is-off { opacity: .35; text-decoration: line-through; }

.tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: rgba(10, 10, 12, .97);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 10px 12px;
  box-shadow: var(--shadow-2);
  font-size: 11.5px;
  min-width: 150px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s, transform .14s;
  backdrop-filter: blur(10px);
}
.tooltip.is-on { opacity: 1; transform: translateY(0); }
.tooltip__t { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-5); margin-bottom: 7px; }
.tooltip__r { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tooltip__r span { color: var(--text-3); }
.tooltip__r b { margin-left: auto; font-family: var(--mono); color: #fff; font-weight: 600; }

/* heatmap ----------------------------------------------------------------- */
.heat-cell { border-radius: 5px; transition: transform .15s, filter .15s; }
.heat-cell:hover { transform: scale(1.14); filter: brightness(1.25); }

/* criativos --------------------------------------------------------------- */
.creative {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: .3s var(--ease);
  display: flex; flex-direction: column;
}
.creative:hover { transform: translateY(-4px); border-color: #33333a; box-shadow: var(--shadow-2); }
.creative__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.creative__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.creative:hover .creative__media img { transform: scale(1.06); }
.creative__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 2, 2, .1) 0%, rgba(2, 2, 2, .82) 100%);
}
.creative__ov { position: absolute; inset: auto 0 0 0; padding: 12px; z-index: 2; }
.creative__top { position: absolute; inset: 10px 10px auto 10px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.creative__body { padding: 13px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.creative__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creative__metric span { display: block; font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-5); }
.creative__metric b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* integrações ------------------------------------------------------------- */
.integration {
  display: flex; align-items: center; gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: .25s var(--ease);
}
.integration:hover { border-color: #2f2f36; background: var(--surface-2); }
.integration__logo {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  font-weight: 800; font-size: 14px;
}
.integration__txt { flex: 1 1 auto; min-width: 0; }
.integration__txt b { display: block; font-size: 13px; color: #fff; }
.integration__txt span { font-size: 11.5px; color: var(--text-5); }

.switch {
  width: 38px; height: 21px; border-radius: 99px;
  background: #232327; border: 1px solid var(--line-strong);
  position: relative; cursor: pointer; flex: 0 0 auto;
  transition: .22s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #71717a; transition: .22s var(--ease);
}
.switch.is-on { background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .4); }
.switch.is-on::after { left: 19px; background: var(--accent); }

/* inputs ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-5); }
.input {
  height: 38px; padding: 0 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #08080a;
  color: #fff; font-size: 13px;
  outline: none;
  transition: .18s;
  width: 100%;
}
textarea.input { height: auto; padding: 11px 13px; resize: vertical; min-height: 88px; line-height: 1.6; }
.input::placeholder { color: var(--text-5); }
.input:focus { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 0 3px rgba(34, 211, 238, .1); }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 15px; padding-right: 34px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: #232327; outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
  transition: transform .15s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* tabs -------------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  border: 0; background: transparent;
  padding: 10px 15px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-4);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .18s;
}
.tabs button:hover { color: var(--text-2); }
.tabs button.is-active { color: #fff; }
.tabs button.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}

/* estados ----------------------------------------------------------------- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 52px 24px;
  gap: 8px;
}
.empty__ic {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  border: 1px dashed #2f2f36;
  color: var(--text-5);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, .015);
}
.empty__ic svg { width: 24px; height: 24px; }
.empty h3 { font-size: 14.5px; }
.empty p { font-size: 12.5px; color: var(--text-4); max-width: 42ch; }

.skeleton {
  position: relative; overflow: hidden;
  background: #101013; border-radius: var(--r);
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 11px; border-radius: 6px; }
.sk-card { height: 148px; border-radius: var(--r-lg); }
.sk-chart { height: 300px; border-radius: var(--r-lg); }

/* Formas menores. Cada uma imita o que vai ocupar o lugar — legenda,
   nota de rodapé, linha de lista — para que a troca pelo conteúdo real
   não empurre o layout para os lados. */
/* Faixa de números do resumo: quatro colunas iguais, separadas por um fio
   em vez de quatro caixas — menos moldura, mesma leitura. */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 16px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.hero-stat { padding: 0 18px; border-left: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
/* Duas colunas já no celular: empilhar os quatro em coluna única fazia o
   cartão crescer meia tela para mostrar quatro números curtos. */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 15px 0; margin-top: 14px; padding-top: 12px; }
  .hero-stat { padding: 0 14px; }
  .hero-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stat .mono { font-size: 17px; }
}

.sk-pill { height: 12px; width: 78px; border-radius: 99px; }
.sk-note { height: 9px; border-radius: 5px; }
.sk-tile { height: 76px; border-radius: var(--r); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.sk-rows { display: grid; gap: 12px; }
/* larguras diferentes evitam o efeito de "grade" e lembram texto real */
.sk-chips .sk-pill:nth-child(2n) { width: 62px; }
.sk-chips .sk-pill:nth-child(3n) { width: 92px; }
.sk-rows .sk-note:nth-child(2n) { width: 82%; }
.sk-rows .sk-note:nth-child(3n) { width: 64%; }

/* A primeira pintura entra com um desvanecer curto: sem isso o conteúdo
   surge de supetão no lugar do skeleton e a tela parece dar um solavanco. */
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page--in { animation: page-in .32s cubic-bezier(.2, .7, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .page--in { animation: none; }
  .skeleton::after { animation: none; }
}

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts ------------------------------------------------------------------ */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: rgba(12, 12, 14, .97);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 12px 15px;
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  min-width: 268px;
  animation: toast-in .35s var(--ease) both;
  backdrop-filter: blur(12px);
}
.toast.is-out { animation: toast-out .3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) scale(.96); } }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* command palette --------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(2, 2, 2, .72);
  backdrop-filter: blur(6px);
  display: none;
}
.overlay.is-open { display: block; animation: fade .2s both; }
/* quando o backdrop serve ao menu lateral, ele fica ABAIXO da sidebar */
.overlay--menu { z-index: 55; }
@keyframes fade { from { opacity: 0; } }

.cmdk {
  position: fixed; top: 14vh; left: 50%; transform: translateX(-50%);
  width: min(620px, calc(100vw - 32px));
  background: #0a0a0c;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
  overflow: hidden;
  z-index: 260;
  display: none;
}
.cmdk.is-open { display: block; animation: cmd-in .26s var(--ease) both; }
@keyframes cmd-in { from { opacity: 0; transform: translate(-50%, -14px) scale(.97); } }
.cmdk__input { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.cmdk__input input { flex: 1; background: none; border: 0; outline: none; font-size: 14.5px; color: #fff; }
.cmdk__input input::placeholder { color: var(--text-5); }
.cmdk__list { max-height: 58vh; overflow-y: auto; padding: 8px; }
.cmdk__item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.cmdk__item svg { width: 16px; height: 16px; color: var(--text-4); }
.cmdk__item.is-sel { background: rgba(34, 211, 238, .08); color: #fff; }
.cmdk__item.is-sel svg { color: var(--accent); }
.cmdk__item small { margin-left: auto; font-family: var(--mono); font-size: 9.5px; color: var(--text-5); }
.cmdk__foot { padding: 9px 16px; border-top: 1px solid var(--line); display: flex; gap: 14px; font-size: 10.5px; color: var(--text-5); }

/* drawer ------------------------------------------------------------------ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: #060607;
  border-left: 1px solid var(--line-strong);
  z-index: 260;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 1);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__foot { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; gap: 9px; }

/* timeline ---------------------------------------------------------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--line-strong), transparent); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
}
.tl-item--accent::before { border-color: var(--accent); background: var(--accent); }
.tl-item time { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-5); }
.tl-item b { display: block; font-size: 12.5px; color: #fff; margin-top: 3px; }
.tl-item p { font-size: 11.8px; color: var(--text-4); margin-top: 2px; }

/* funil ------------------------------------------------------------------- */
.funnel-step {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.funnel-step:last-child { border-bottom: 0; }
.funnel-step__bar { flex: 1 1 auto; height: 36px; border-radius: 8px; background: #0e0e10; overflow: hidden; position: relative; }
.funnel-step__bar i {
  display: block; height: 100%;
  background: rgba(34, 211, 238, .14);
  border-right: 1.5px solid var(--accent);
  transition: width 1.1s var(--ease);
}
.funnel-step__bar span { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 13px; font-size: 12px; color: #fff; font-weight: 600; }
.funnel-step__end { width: 118px; text-align: right; flex: 0 0 auto; }

/* reveal ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { animation: reveal .75s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--accent-2); }
.neg { color: #f0917f; }
.muted { color: var(--text-4); }
.dim { color: var(--text-5); }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.scroll-x { overflow-x: auto; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 1400px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
}
/* o resumo de filtros existe só no celular */
.filterbar__resumo { display: none; }

@media (max-width: 900px) {
  :root { --topbar-h: 56px; }
  .sidebar { transform: translateX(-100%); box-shadow: 30px 0 80px -30px #000; }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .page { padding: 16px 14px 64px; }
  .topbar { padding: 0 12px; gap: 8px; }

  /* ---- topo: só o essencial ----
     Cabeçalho de celular tem que caber numa linha curta. O botão branco
     "Exportar" era o elemento mais gritante da tela inteira; vira ícone.
     A trilha some, o título encolhe, e o selo "ao vivo" fica porque é o
     que diz se o número na tela vale alguma coisa. */
  .topbar__title h1 { font-size: 15px; }
  .topbar__tools { gap: 6px; }
  .search-trigger { min-width: 0; width: 34px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger .kbd { display: none; }
  .topbar__tools .btn--primary { padding: 0; width: 34px; height: 34px; justify-content: center; }
  .topbar__tools .btn--primary .nowrap { display: none; }
  .topbar__tools .icon-btn, .topbar__tools .search-trigger { width: 34px; height: 34px; }
  #dataSource { font-size: 9px; padding: 0 7px; }

  /* ---- filtros: uma linha, aberta sob demanda ----
     Antes eram três linhas de pílulas empurrando o primeiro número para
     fora da dobra. Agora a barra mostra o recorte atual e só abre quando
     a pessoa vai de fato mexer nele. */
  .filterbar {
    padding: 8px 14px; gap: 8px;
    flex-wrap: wrap; align-items: center;
  }
  .filterbar__resumo {
    display: flex; align-items: center; gap: 8px; width: 100%;
    height: 36px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface-2); color: var(--text-3);
    font-size: 12px; font-family: inherit; cursor: pointer;
    transition: border-color .18s, color .18s;
  }
  .filterbar__resumo:hover { color: #fff; border-color: #2a2a30; }
  .filterbar__resumo span {
    flex: 1; min-width: 0; text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .filterbar__resumo svg { width: 14px; height: 14px; flex: 0 0 auto; }
  .filterbar__resumo svg:last-child { transition: transform .2s; color: var(--text-5); }
  .filterbar.is-open .filterbar__resumo svg:last-child { transform: rotate(180deg); }

  /* fechada: só o resumo aparece */
  .filterbar > *:not(.filterbar__resumo) { display: none; }
  .filterbar.is-open > * { display: flex; }
  .filterbar.is-open > .seg {
    display: flex; width: 100%;
    max-width: 100%; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filterbar > .seg::-webkit-scrollbar { display: none; }
  .filterbar .topbar__spacer { display: none !important; }
  .filterbar .seg button { padding: 5px 10px; font-size: 11px; white-space: nowrap; }
  .filterbar .pill-select { height: 32px; padding: 0 11px; font-size: 12px; }

  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: minmax(0, 1fr); }
  .creative-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kpi__value { font-size: 26px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; }
}
@media (max-width: 620px) {
  .creative-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .topbar__crumb { display: none; }
  .funnel-step__end { width: 88px; }
  .drawer { width: 100vw; }
  .section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   Impressão / PDF
   ========================================================================= */
@media print {
  @page { margin: 14mm; size: A4; }
  body { background: #fff !important; color: #111 !important; }
  body::before { display: none !important; }
  .sidebar, .topbar, .filterbar, .no-print, .toasts, .cmdk, .overlay, .drawer { display: none !important; }
  .main { margin-left: 0 !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .card {
    background: #fff !important; border: 1px solid #d4d4d8 !important;
    box-shadow: none !important; break-inside: avoid; padding: 0 !important;
  }
  .card::after { display: none !important; }
  h1, h2, h3, b, .strong { color: #0a0a0a !important; }
  p, td, li, span, div { color: #27272a !important; }
  .muted, .dim, .kpi__hint, .eyebrow { color: #71717a !important; }
  .tbl th { background: #f4f4f5 !important; color: #52525b !important; }
  .tbl td, .tbl th { border-color: #e4e4e7 !important; }
  .badge, .delta { border-color: #d4d4d8 !important; background: #fafafa !important; }
  .pos { color: #0e7490 !important; }
  .neg { color: #b03a2c !important; }
  .brand-mark { background: #22d3ee !important; color: #04171c !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .divider { background: #e4e4e7 !important; }
}
