/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --surface-bg: #070b14;
  --surface-base: #0d1117;
  --surface-card: #111827;
  --surface-raised: #161d2d;
  --surface-overlay: #1c2539;
  --surface-hover: #1f2c44;
  --text-primary: #f0f6ff;
  --text-secondary: #8b9ec7;
  --text-muted: #4a5d82;
  --text-disabled: #2d3d5c;
  --brand: #3b82f6;
  --brand-light: #60a5fa;
  --brand-dark: #2563eb;
  --brand-glow: #3b82f640;
  --brand-subtle: #3b82f614;
  --success: #10b981;
  --success-light: #34d399;
  --success-glow: #10b98133;
  --success-subtle: #10b98114;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-glow: #f59e0b33;
  --warning-subtle: #f59e0b14;
  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-glow: #ef444433;
  --danger-subtle: #ef444414;
  --info: #06b6d4;
  --info-light: #22d3ee;
  --info-glow: #06b6d433;
  --info-subtle: #06b6d414;
  --purple: #8b5cf6;
  --purple-subtle: #8b5cf61a;
  --border-subtle: #ffffff0a;
  --border-default: #ffffff12;
  --border-strong: #ffffff1f;
  --border-focus: #3b82f699;
  --grad-brand: linear-gradient(135deg, #3b82f6, #2563eb);
  --grad-success: linear-gradient(135deg, #10b981, #059669);
  --grad-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --grad-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --grad-info: linear-gradient(135deg, #06b6d4, #0891b2);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --grad-bg: radial-gradient(ellipse 120% 80% at 50% -10%, #3b82f60f 0%, transparent 60%), linear-gradient(180deg, #070b14 0%, #0d1117 100%);
  --shadow-xs: 0 1px 2px #0006;
  --shadow-sm: 0 2px 4px #00000080;
  --shadow-md: 0 4px 12px #0009, 0 1px 3px #0006;
  --shadow-lg: 0 10px 30px #000000b3, 0 4px 8px #00000080;
  --shadow-xl: 0 20px 50px #000c, 0 8px 16px #0009;
  --shadow-brand: 0 8px 30px #3b82f64d;
  --shadow-glow-sm: 0 0 20px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;
  --ease-fast: .15s cubic-bezier(.4, 0, .2, 1);
  --ease-base: .25s cubic-bezier(.4, 0, .2, 1);
  --ease-slow: .4s cubic-bezier(.4, 0, .2, 1);
  --ease-spring: .5s cubic-bezier(.34, 1.56, .64, 1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

[data-theme="light"] {
  --surface-bg: #f0f4fc;
  --surface-base: #f8faff;
  --surface-card: #fff;
  --surface-raised: #fff;
  --surface-overlay: #f8faff;
  --surface-hover: #f0f4fc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-disabled: #cbd5e1;
  --brand-subtle: #3b82f614;
  --brand-glow: #3b82f626;
  --border-subtle: #0000000a;
  --border-default: #00000014;
  --border-strong: #00000024;
  --shadow-xs: 0 1px 2px #0000000f;
  --shadow-sm: 0 2px 4px #00000014;
  --shadow-md: 0 4px 12px #0000001a;
  --shadow-lg: 0 10px 30px #0000001f;
  --shadow-xl: 0 20px 50px #00000026;
  --grad-bg: linear-gradient(180deg, #f0f4fc 0%, #f8faff 100%);
  --success-subtle: #10b98114;
  --warning-subtle: #f59e0b14;
  --danger-subtle: #ef444414;
  --info-subtle: #06b6d414;
}

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

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

img, svg {
  display: block;
}

button, input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-bg);
  background-image: var(--grad-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
}

::selection {
  background: var(--brand);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--surface-hover);
}

.app-shell {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.header {
  z-index: 200;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-default);
  background: #070b14cc;
  position: sticky;
  top: 0;
}

[data-theme="light"] .header {
  border-bottom: 1px solid var(--border-default);
  box-shadow: 0 1px 0 var(--border-default);
  background: #f8faffd9;
}

.header-inner {
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1440px;
  height: 64px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
}

.header-brand {
  align-items: center;
  gap: 12px;
  display: flex;
}

.header-logo {
  border-radius: var(--r-md);
  background: var(--grad-brand);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
  box-shadow: 0 4px 14px #3b82f666;
}

.header-title {
  flex-direction: column;
  display: flex;
}

.header-title h1 {
  color: var(--text-primary);
  letter-spacing: -.2px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-title span {
  color: var(--text-muted);
  letter-spacing: .3px;
  font-size: .7rem;
  font-weight: 500;
}

.header-nav {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.nav-pill {
  border-radius: var(--r-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: .8125rem;
  font-weight: 500;
  display: inline-flex;
}

.nav-pill:hover {
  color: var(--text-primary);
  background: var(--surface-raised);
  border-color: var(--border-default);
}

.nav-pill.active, .nav-pill.primary {
  background: var(--grad-brand);
  color: #fff;
  border-color: #0000;
  box-shadow: 0 4px 14px #3b82f659;
}

.nav-pill.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #3b82f673;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-hero {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
}

.page-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-light);
  align-items: center;
  gap: 6px;
  margin-bottom: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  display: inline-flex;
}

.page-label:before {
  content: "";
  background: var(--brand);
  border-radius: 2px;
  width: 20px;
  height: 2px;
  display: block;
}

.page-hero h1 {
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin-bottom: .5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: .9375rem;
  font-weight: 400;
}

.page-hero-meta {
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.meta-chip {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
}

.meta-chip .dot {
  background: var(--success);
  width: 6px;
  height: 6px;
  box-shadow: 0 0 6px var(--success);
  border-radius: 50%;
  animation: 2s ease-in-out infinite pulse-dot;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.kpi-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
}

.kpi-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  transition: all var(--ease-base);
  cursor: default;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.kpi-card:before {
  content: "";
  border-radius: inherit;
  background: var(--kpi-grad, var(--grad-brand));
  opacity: 0;
  transition: opacity var(--ease-base);
  position: absolute;
  inset: 0;
}

.kpi-card:hover:before {
  opacity: .03;
}

.kpi-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.kpi-card-link:hover .kpi-card {
  border-color: var(--kpi-color, var(--brand));
  box-shadow: 0 0 0 1px var(--kpi-color, var(--brand)) inset, var(--shadow-md);
  transform: translateY(-3px);
}

.kpi-top {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  display: flex;
}

.kpi-icon {
  border-radius: var(--r-md);
  background: var(--kpi-bg, var(--brand-subtle));
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: flex;
}

.kpi-trend {
  border-radius: var(--r-full);
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: .6875rem;
  font-weight: 600;
  display: flex;
}

.kpi-value {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  margin-bottom: .375rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.kpi-label {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: .8125rem;
  font-weight: 500;
}

.kpi-foot {
  border-top: 1px solid var(--border-subtle);
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  display: flex;
}

.kpi-sub {
  color: var(--text-muted);
  font-size: .75rem;
}

.kpi-sub strong {
  color: var(--kpi-color, var(--brand));
  font-weight: 600;
}

.kpi-arrow {
  color: var(--kpi-color, var(--brand));
  opacity: 0;
  transition: all var(--ease-base);
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  transform: translateX(-4px);
}

.kpi-card-link:hover .kpi-arrow {
  opacity: 1;
  transform: translateX(0);
}

.section-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.section-head {
  border-bottom: 1px solid var(--border-subtle);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
}

.section-head-left {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.section-icon {
  border-radius: var(--r-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: flex;
}

.section-title {
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: .75rem;
}

.section-badge {
  border-radius: var(--r-full);
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  align-items: center;
  padding: 3px 10px;
  font-size: .6875rem;
  font-weight: 600;
  display: inline-flex;
}

.section-body {
  padding: 1.5rem;
}

.funnel-stages {
  grid-template-columns: minmax(240px, .85fr) 28px minmax(320px, 1.3fr) 28px minmax(320px, 1.3fr);
  align-items: stretch;
  gap: .5rem;
  display: grid;
}

.funnel-stage {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: all var(--ease-base);
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.funnel-stage:not(.split) {
  flex-direction: column;
  justify-content: space-between;
}

.funnel-stage:before {
  content: "";
  background: var(--stage-color, var(--brand));
  opacity: .6;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.funnel-stage-num {
  background: var(--stage-color, var(--brand));
  opacity: .18;
  width: 22px;
  height: 22px;
  color: var(--stage-color, var(--brand));
  font-size: .6875rem;
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 12px;
  right: 14px;
}

.funnel-stage-content {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.funnel-stage-label {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--brand-light);
  font-size: .6875rem;
  font-weight: 700;
}

.funnel-stage-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.funnel-stage-meta {
  color: var(--text-muted);
  font-size: .75rem;
}

.funnel-stage-numbers {
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  display: flex;
}

.funnel-stage-value {
  font-size: 1.875rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1;
}

.funnel-stage-pct {
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.funnel-stage.split {
  border: 1px dashed var(--border-default);
  background: none;
  gap: .75rem;
  padding: .875rem .875rem 1rem;
}

.funnel-stage.split:before {
  display: none;
}

.funnel-split-row {
  align-items: stretch;
  gap: .625rem;
  height: 100%;
  min-height: 130px;
  display: flex;
}

.funnel-split-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  min-width: 0;
  transition: all var(--ease-base);
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .875rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.funnel-split-card:before {
  content: "";
  background: var(--card-glow);
  opacity: .05;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.funnel-split-card.success {
  --card-glow: var(--success);
  border-color: #10b98140;
}

.funnel-split-card.warning {
  --card-glow: var(--warning);
  border-color: #f59e0b40;
}

.funnel-split-card.mei {
  --card-glow: var(--warning);
  border-color: #f59e0b33;
}

.funnel-split-card.primary {
  --card-glow: var(--brand);
  border-color: #3b82f64d;
}

.funnel-split-card.highlight {
  background: linear-gradient(180deg, #3b82f614 0%, var(--surface-raised) 100%);
  box-shadow: 0 0 24px #3b82f61f;
}

.funnel-split-icon {
  border-radius: var(--r-sm);
  width: 32px;
  height: 32px;
  color: var(--card-glow);
  background: #ffffff0a;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.funnel-split-icon svg {
  width: 16px;
  height: 16px;
}

.funnel-split-info {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.funnel-split-label {
  color: var(--text-primary);
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 700;
  display: flex;
}

.funnel-pill {
  text-transform: uppercase;
  letter-spacing: .6px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  padding: 2px 6px;
  font-size: .5625rem;
  font-weight: 800;
  line-height: 1;
}

.funnel-split-stats {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.funnel-split-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.6px;
  line-height: 1;
}

.funnel-split-pct {
  color: var(--card-glow);
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-sm);
  background: #ffffff08;
  padding: 3px 8px;
}

.funnel-stage-caption {
  color: var(--text-muted);
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: .6875rem;
  display: flex;
}

.caption-step {
  background: var(--brand-subtle);
  width: 18px;
  height: 18px;
  color: var(--brand-light);
  font-size: .625rem;
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.funnel-arrow {
  color: var(--text-disabled);
  justify-content: center;
  align-items: center;
  display: flex;
}

@media (max-width: 1100px) {
  .funnel-stages {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .funnel-arrow {
    padding: .25rem 0;
    transform: rotate(90deg);
  }
}

.sit-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  display: grid;
}

.sit-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: all var(--ease-base);
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.sit-card:after {
  content: "";
  background: var(--sit-color, var(--brand));
  opacity: .7;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

a.sit-card {
  cursor: pointer;
}

a.sit-card:hover {
  background: var(--surface-hover);
  border-color: var(--sit-color, var(--brand));
  box-shadow: var(--shadow-md), 0 0 20px var(--sit-glow, var(--brand-glow));
  transform: translateY(-2px);
}

.sit-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.sit-icon-wrap {
  border-radius: var(--r-sm);
  background: var(--sit-bg, var(--brand-subtle));
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
}

.sit-code {
  font-size: .625rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xs);
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 6px;
}

.sit-value {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.sit-label {
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 600;
}

.sit-foot {
  border-top: 1px solid var(--border-subtle);
  justify-content: flex-end;
  align-items: center;
  padding-top: .5rem;
  display: flex;
}

.sit-cta {
  color: var(--sit-color, var(--brand));
  opacity: .6;
  transition: all var(--ease-fast);
  align-items: center;
  gap: 4px;
  font-size: .6875rem;
  font-weight: 600;
  display: flex;
}

a.sit-card:hover .sit-cta {
  opacity: 1;
}

.addr-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  display: grid;
}

.addr-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  display: flex;
}

.addr-top {
  align-items: center;
  gap: 10px;
  display: flex;
}

.addr-icon {
  border-radius: var(--r-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
}

.addr-label {
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 600;
}

.addr-sub {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: .7rem;
}

.addr-bar-wrap {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  height: 8px;
  position: relative;
  overflow: hidden;
}

.addr-bar {
  border-radius: var(--r-full);
  background: var(--addr-color, var(--grad-brand));
  height: 100%;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}

.addr-bar:after {
  content: "";
  background: linear-gradient(90deg, #0000 0%, #ffffff40 50%, #0000 100%);
  animation: 2.5s ease-in-out infinite shimmer;
  position: absolute;
  inset: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.addr-stats {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.addr-count {
  color: var(--text-secondary);
  font-size: .8125rem;
}

.addr-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.addr-pct {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  font-size: 1.375rem;
  font-weight: 800;
}

.alert-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  display: grid;
}

.alert-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: all var(--ease-base);
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.alert-card:before {
  content: "";
  background: var(--alert-color, var(--brand));
  width: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.alert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--alert-color, var(--brand));
  transform: translateY(-2px);
}

.alert-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.alert-title {
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}

.alert-count {
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-full);
  background: var(--alert-bg, var(--brand-subtle));
  color: var(--alert-color, var(--brand));
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 8px;
}

.alert-desc {
  color: var(--text-muted);
  font-size: .7875rem;
  line-height: 1.55;
}

.alert-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  display: flex;
}

.btn {
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  border-color: #0000;
  box-shadow: 0 4px 14px #3b82f64d;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #3b82f673;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--surface-raised);
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-success {
  background: var(--success-subtle);
  color: var(--success);
  border-color: #10b98133;
}

.btn-success:hover {
  background: #10b98126;
}

.btn-danger-ghost {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: #ef444433;
}

.btn-danger-ghost:hover {
  background: #ef444426;
}

.btn-warning-ghost {
  background: var(--warning-subtle);
  color: var(--warning);
  border-color: #f59e0b33;
}

.btn-info-ghost {
  background: var(--info-subtle);
  color: var(--info);
  border-color: #06b6d433;
}

.btn-sm {
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: .75rem;
}

.btn-lg {
  padding: 11px 22px;
  font-size: .9375rem;
}

.btn-icon {
  border-radius: var(--r-md);
  padding: 8px;
}

.btn-icon.btn-sm {
  border-radius: var(--r-sm);
  padding: 6px;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
}

.footer-inner {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
}

.footer-left {
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  display: flex;
}

.footer-item {
  color: var(--text-muted);
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  display: flex;
}

.footer-right {
  color: var(--text-disabled);
  font-size: .75rem;
}

.theme-toggle-fixed {
  z-index: 9999;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease-base);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
}

.theme-toggle-fixed:hover {
  color: var(--warning);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xl);
  transform: scale(1.1)rotate(15deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-up {
  animation: .5s ease-out both fadeInUp;
}

.animate-fade {
  animation: .3s ease-out both fadeIn;
}

.delay-1 {
  animation-delay: 50ms;
}

.delay-2 {
  animation-delay: .1s;
}

.delay-3 {
  animation-delay: .15s;
}

.delay-4 {
  animation-delay: .2s;
}

.delay-5 {
  animation-delay: .25s;
}

.delay-6 {
  animation-delay: .3s;
}

.divider {
  background: var(--border-subtle);
  height: 1px;
  margin: 0;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: .25rem;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: .75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.text-xs {
  font-size: .75rem;
}

.text-sm {
  font-size: .8125rem;
}

.text-base {
  font-size: .9375rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-brand {
  color: var(--brand);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.text-info {
  color: var(--info);
}

.bg-brand-subtle {
  background: var(--brand-subtle);
}

.bg-success-subtle {
  background: var(--success-subtle);
}

.bg-warning-subtle {
  background: var(--warning-subtle);
}

.bg-danger-subtle {
  background: var(--danger-subtle);
}

.bg-info-subtle {
  background: var(--info-subtle);
}

.mt-1 {
  margin-top: .25rem;
}

.mt-2 {
  margin-top: .5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.breadcrumb {
  align-items: center;
  gap: 6px;
  margin-bottom: .75rem;
  display: flex;
}

.breadcrumb-item {
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--text-secondary);
}

.breadcrumb-sep {
  color: var(--text-disabled);
  font-size: .75rem;
}

.breadcrumb-item.current {
  color: var(--text-secondary);
}

.consulta-hero {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  display: flex;
}

.consulta-title {
  color: var(--text-primary);
  letter-spacing: -.4px;
  align-items: center;
  gap: .75rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
}

.filter-tag {
  background: var(--brand-subtle);
  border-radius: var(--r-full);
  color: var(--brand-light);
  border: 1px solid #3b82f633;
  align-items: center;
  gap: 6px;
  margin-top: .625rem;
  padding: 5px 12px 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
}

.filter-tag-clear {
  cursor: pointer;
  color: var(--brand-light);
  opacity: .6;
  transition: opacity var(--ease-fast);
  background: none;
  border: none;
  align-items: center;
  margin-left: 2px;
  padding: 0;
  display: flex;
}

.filter-tag-clear:hover {
  opacity: 1;
}

.search-bar {
  align-items: stretch;
  gap: .75rem;
  display: flex;
}

.search-field {
  flex: 1;
  position: relative;
}

.search-field-icon {
  color: var(--text-muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.search-input {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  width: 100%;
  height: 46px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: all var(--ease-fast);
  padding: 0 3rem 0 2.75rem;
  font-size: .9375rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--brand);
  background: var(--surface-card);
  box-shadow: 0 0 0 3px var(--brand-glow);
  outline: none;
}

.search-clear {
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--ease-fast);
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 4px;
  display: flex;
  position: absolute;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
}

.search-clear:hover {
  color: var(--text-primary);
}

.table-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.table-head {
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  display: flex;
}

.table-head-title {
  align-items: center;
  gap: .625rem;
  display: flex;
}

.table-head-icon {
  border-radius: var(--r-sm);
  background: var(--brand-subtle);
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
}

.table-head-label {
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 700;
}

.table-head-actions {
  align-items: center;
  gap: .625rem;
  display: flex;
}

.record-count {
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .8125rem;
}

.data-table thead {
  background: var(--surface-raised);
  z-index: 10;
  position: sticky;
  top: 0;
}

.data-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .75px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  padding: .75rem 1.25rem;
  font-size: .6875rem;
  font-weight: 600;
}

.data-table th .th-inner {
  align-items: center;
  gap: 5px;
  display: flex;
}

.data-table td {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  padding: .875rem 1.25rem;
}

.data-table tbody tr {
  transition: background var(--ease-fast);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--surface-raised);
}

.cell-cnpj {
  font-family: var(--font-mono);
  color: var(--info);
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 500;
}

.cell-company {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.cell-main {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.cell-sub {
  color: var(--text-muted);
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  display: flex;
}

.compare-col {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.compare-name {
  color: var(--text-primary);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.compare-detail {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.compare-row-item {
  color: var(--text-muted);
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  display: flex;
}

.compare-icon-match {
  color: var(--success);
  flex-shrink: 0;
}

.compare-icon-mismatch {
  color: var(--danger);
  flex-shrink: 0;
}

.compare-icon-null {
  color: var(--text-disabled);
  flex-shrink: 0;
}

.status-badge {
  border-radius: var(--r-full);
  letter-spacing: .3px;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: .6875rem;
  font-weight: 700;
  display: inline-flex;
}

.status-badge:before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
}

.btn-row-action {
  border-radius: var(--r-sm);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
}

.btn-row-action:hover {
  background: var(--brand-subtle);
  color: var(--brand-light);
  border-color: #3b82f640;
}

.state-container {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 5rem 2rem;
  display: flex;
}

.state-icon {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: .5rem;
  display: flex;
}

.state-title {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 700;
}

.state-desc {
  color: var(--text-muted);
  max-width: 360px;
  font-size: .875rem;
  line-height: 1.6;
}

.spinner {
  border: 3px solid var(--border-default);
  border-top-color: var(--brand);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: .7s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: .8s linear infinite spin;
}

.pagination-bar {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
}

.pagination-info {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
}

.pagination-controls {
  align-items: center;
  gap: 4px;
  display: flex;
}

.pg-btn {
  border-radius: var(--r-sm);
  min-width: 34px;
  height: 34px;
  font-size: .8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--ease-fast);
  background: none;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  display: inline-flex;
}

.pg-btn:hover:not(:disabled) {
  background: var(--surface-overlay);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.pg-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.pg-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: #0000;
  font-weight: 700;
}

.pg-btn.active:hover {
  background: var(--brand-dark);
}

.modal-overlay {
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  background: #000000a6;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: .15s ease-out fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-box {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  box-shadow: var(--shadow-xl), 0 0 60px #00000080;
  flex-direction: column;
  animation: .2s cubic-bezier(.34, 1.4, .64, 1) scaleIn;
  display: flex;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-raised);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
}

.modal-header-left {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  display: flex;
}

.modal-header-title {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 700;
}

.modal-header-cnpj {
  font-size: .8125rem;
  font-family: var(--font-mono);
  color: var(--info);
  font-weight: 500;
}

.modal-header-right {
  align-items: center;
  gap: 6px;
  display: flex;
}

.modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-status-row {
  background: var(--surface-raised);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  display: flex;
}

.cmp-table {
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cmp-table-head {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-default);
  grid-template-columns: 160px 1fr 1fr;
  display: grid;
}

.cmp-th {
  text-transform: uppercase;
  letter-spacing: .75px;
  color: var(--text-muted);
  align-items: center;
  gap: 5px;
  padding: .75rem 1rem;
  font-size: .6875rem;
  font-weight: 700;
  display: flex;
}

.cmp-th.col-ipa {
  color: var(--brand-light);
  border-left: 2px solid var(--brand);
  background: #3b82f60f;
}

.cmp-th.col-rfb {
  color: var(--success-light);
  border-left: 2px solid var(--success);
  background: #10b9810f;
}

.cmp-row {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--ease-fast);
  grid-template-columns: 160px 1fr 1fr;
  display: grid;
}

.cmp-row:last-child {
  border-bottom: none;
}

.cmp-row:hover {
  background: var(--surface-raised);
}

.cmp-label {
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  background: #ffffff03;
  align-items: center;
  gap: 5px;
  padding: .75rem 1rem;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
}

.cmp-val {
  color: var(--text-primary);
  align-items: center;
  padding: .75rem 1rem;
  font-size: .8125rem;
  display: flex;
}

.cmp-val.col-ipa {
  border-right: 1px solid var(--border-subtle);
  background: #3b82f604;
}

.cmp-val.col-rfb {
  background: #10b98104;
}

.cmp-val.match {
  color: var(--success);
  font-weight: 600;
}

.cmp-val.mismatch {
  color: var(--danger);
  background: var(--danger-subtle);
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid var(--border-default);
  background: var(--surface-raised);
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  display: flex;
}

.loading-page {
  min-height: 100vh;
  color: var(--text-muted);
  justify-content: center;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  display: flex;
}

.conformidade-grid {
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 2rem;
  display: grid;
}

.score-block {
  justify-content: center;
  display: flex;
}

.score-ring {
  width: 120px;
  height: 120px;
  box-shadow: 0 0 0 4px var(--surface-raised);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.score-inner {
  background: var(--surface-card);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  width: 88px;
  height: 88px;
  display: flex;
}

.score-num {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .6rem;
  font-weight: 600;
}

.score-detail {
  flex-direction: column;
  gap: .875rem;
  display: flex;
}

.score-row {
  grid-template-columns: 200px 1fr 60px 52px;
  align-items: center;
  gap: .75rem;
  display: grid;
}

.score-row-left {
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  display: flex;
}

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

.score-val {
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .8125rem;
  font-weight: 700;
}

.score-pct {
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
}

.two-col-dash {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
}

.profile-rows {
  flex-direction: column;
  gap: .875rem;
  display: flex;
}

.profile-row {
  grid-template-columns: 130px 1fr 56px 48px;
  align-items: center;
  gap: .75rem;
  display: grid;
}

.profile-label {
  color: var(--text-secondary);
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: .8rem;
  display: flex;
}

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

.profile-val {
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 700;
}

.profile-pct {
  color: var(--text-muted);
  text-align: right;
  font-size: .72rem;
}

.profile-cta-row {
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
  padding-top: .875rem;
}

.rank-list {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.rank-row {
  grid-template-columns: 28px 1fr 100px 52px 44px;
  align-items: center;
  gap: .5rem;
  display: grid;
}

.rank-pos {
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
}

.rank-name {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8125rem;
  overflow: hidden;
}

.rank-bar-wrap {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  height: 6px;
  overflow: hidden;
}

.rank-bar {
  border-radius: var(--r-full);
  height: 100%;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.rank-val {
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 700;
}

.rank-pct {
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .7rem;
}

.timeline-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 1.5rem;
  height: 160px;
  display: grid;
}

.timeline-col {
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: .375rem;
  height: 100%;
  display: flex;
}

.timeline-bar-wrap {
  flex: 1;
  align-items: flex-end;
  width: 100%;
  max-height: 110px;
  display: flex;
}

.timeline-bar {
  border-radius: 6px 6px 0 0;
  width: 100%;
  min-height: 8px;
  transition: height 1.2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.timeline-bar:after {
  content: "";
  background: linear-gradient(#ffffff26 0%, #0000 60%);
  position: absolute;
  inset: 0;
}

.timeline-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.timeline-label {
  color: var(--text-muted);
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
}

.timeline-pct {
  color: var(--text-disabled);
  font-variant-numeric: tabular-nums;
  font-size: .65rem;
}

.kpi-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
}

.kpi-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
}

@media (max-width: 1100px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kpi-grid-4 {
    grid-template-columns: 1fr;
  }
}

.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
}

.story-section {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.story-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
}

.story-header-icon {
  border-radius: var(--r-sm);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
}

.story-header-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.story-header-sub {
  color: var(--text-muted);
  margin-top: 1px;
  font-size: .75rem;
}

.story-steps {
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  display: flex;
}

.story-step {
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.story-num {
  background: var(--grad-brand);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: .8125rem;
  font-weight: 800;
  display: flex;
  box-shadow: 0 4px 12px #3b82f64d;
}

.story-body {
  flex: 1;
}

.story-title {
  color: var(--text-primary);
  margin-bottom: .375rem;
  font-size: .9375rem;
  font-weight: 700;
}

.story-content {
  color: var(--text-secondary);
  flex-direction: column;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.6;
  display: flex;
}

.story-highlight {
  border-radius: var(--r-md);
  border-left: 3px solid;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  display: inline-flex;
}

.story-conclusion {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.insight-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  display: grid;
}

.insight-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: all var(--ease-base);
  flex-direction: column;
  gap: .625rem;
  padding: 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.insight-card:after {
  content: "";
  background: var(--ins-color, var(--brand));
  opacity: .8;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.insight-head {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.insight-label {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  font-size: .6875rem;
  font-weight: 700;
}

.insight-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.insight-desc {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.sit-breakdown {
  flex-direction: column;
  gap: .875rem;
  display: flex;
}

.sbd-row {
  grid-template-columns: 130px 1fr 52px 52px;
  align-items: center;
  gap: .75rem;
  display: grid;
}

.sbd-left {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

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

.sbd-label {
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 500;
}

.sbd-bar-wrap {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
}

.sbd-bar {
  border-radius: var(--r-full);
  height: 100%;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.sbd-bar:after {
  content: "";
  background: linear-gradient(90deg, #0000 0%, #fff3 50%, #0000 100%);
  animation: 2.5s ease-in-out infinite shimmer;
  position: absolute;
  inset: 0;
}

.sbd-val {
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 700;
}

.sbd-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  font-weight: 700;
}

.prog-wrap {
  align-items: center;
  gap: 6px;
  display: flex;
}

.prog-label {
  color: var(--text-muted);
  min-width: 110px;
  font-size: .7rem;
  font-weight: 500;
}

.prog-track {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.prog-fill {
  border-radius: var(--r-full);
  height: 100%;
  transition: width 1s ease-out;
}

.prog-val {
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  font-size: .7rem;
  font-weight: 600;
}

.bairros-list {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.bairro-row {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all var(--ease-fast);
  grid-template-columns: 28px 130px 1fr 90px;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1rem;
  display: grid;
}

.bairro-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-default);
}

.bairro-rank {
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
}

.bairro-name {
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .8rem;
  font-weight: 700;
  overflow: hidden;
}

.bairro-bars {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.bairro-meta {
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  display: flex;
}

.bairro-total {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  font-weight: 800;
}

.bairro-pct-badge {
  font-size: .6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.motivos-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: .875rem;
  display: grid;
}

.motivo-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  flex-direction: column;
  gap: .625rem;
  padding: 1rem;
  display: flex;
}

.motivo-head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.motivo-count {
  font-size: .75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  padding: 2px 8px;
}

.motivo-desc {
  color: var(--text-secondary);
  text-transform: capitalize;
  font-size: .78rem;
  line-height: 1.45;
}

.motivo-bar-wrap {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  height: 4px;
  overflow: hidden;
}

.motivo-bar {
  border-radius: var(--r-full);
  opacity: .75;
  height: 100%;
  transition: width 1s ease-out;
}

.conclusion-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  display: grid;
}

.conclusion-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--cc-color, var(--brand));
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.conclusion-card h4 {
  color: var(--text-primary);
  font-size: .9375rem;
  font-weight: 700;
}

.conclusion-card p {
  color: var(--text-secondary);
  flex: 1;
  font-size: .8rem;
  line-height: 1.6;
}

.table-filters {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-raised);
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
}

.filter-tabs {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  display: flex;
}

.filter-tab {
  border-radius: var(--r-full);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease-fast);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: none;
  padding: 5px 12px;
}

.filter-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: #0000;
}

.badge-ativa {
  background: var(--success-subtle);
  color: var(--success);
}

.badge-suspensa {
  background: var(--warning-subtle);
  color: var(--warning);
}

.badge-baixada {
  background: var(--danger-subtle);
  color: var(--danger);
}

.badge-inapta {
  background: var(--purple-subtle);
  color: var(--purple);
}

.badge-sem {
  background: var(--surface-overlay);
  color: var(--text-muted);
}

.ar-kpi-destaque {
  position: relative;
  border-color: #3b82f666 !important;
  box-shadow: 0 0 0 1px #3b82f640, 0 4px 20px #3b82f626 !important;
}

.ar-kpi-destaque:before {
  content: "";
  background: var(--grad-brand);
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.ar-highlight {
  background: var(--brand-subtle);
  border-radius: var(--r-lg);
  border: 1px solid #3b82f640;
  align-items: center;
  gap: .75rem;
  margin-top: .25rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.ar-highlight-num {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.ar-highlight-label {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
}

.sbd-rank {
  font-size: .625rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-disabled);
  min-width: 22px;
}

.cnae-grid {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.cnae-row {
  grid-template-columns: 1fr 180px 52px 48px;
  align-items: center;
  gap: .75rem;
  display: grid;
}

.cnae-left {
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.cnae-codigo {
  font-size: .625rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-xs);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 6px;
}

.cnae-desc {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  overflow: hidden;
}

.cnae-bar-wrap {
  background: var(--surface-overlay);
  border-radius: var(--r-full);
  height: 6px;
  overflow: hidden;
}

.cnae-bar {
  border-radius: var(--r-full);
  height: 100%;
  transition: width 1s ease-out;
}

.cnae-total {
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 700;
}

.cnae-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  font-weight: 700;
}

.cnae-badge {
  font-size: .625rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--brand-subtle);
  color: var(--brand);
  border-radius: var(--r-xs);
  border: 1px solid #3b82f633;
  padding: 1px 5px;
  display: inline-block;
}

.cnae-badge-brand {
  font-size: .625rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--brand-subtle);
  color: var(--brand-light);
  border-radius: var(--r-xs);
  border: 1px solid #3b82f633;
  padding: 1px 5px;
  display: inline-block;
}

@media (max-width: 1024px) {
  .kpi-grid, .sit-grid, .addr-grid, .alert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col-dash, .three-col, .conformidade-grid {
    grid-template-columns: 1fr;
  }

  .score-block {
    justify-content: flex-start;
  }

  .score-row {
    grid-template-columns: 160px 1fr 56px 48px;
  }

  .rank-row {
    grid-template-columns: 28px 1fr 80px 48px 40px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 1rem;
  }

  .main {
    padding: 1.5rem 1rem 3rem;
  }

  .footer {
    padding: 1rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .sit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .addr-grid, .alert-grid {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: 1fr 80px 44px;
  }

  .score-row-left {
    display: none;
  }

  .page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .cmp-table-head, .cmp-row {
    grid-template-columns: 120px 1fr 1fr;
  }

  .modal-box {
    border-radius: var(--r-xl);
    max-height: 95vh;
  }

  .consulta-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    flex-direction: column;
  }

  .pagination-bar {
    flex-direction: column;
    gap: .75rem;
  }
}

@media (max-width: 480px) {
  .sit-grid {
    grid-template-columns: 1fr;
  }

  .header-title span {
    display: none;
  }
}

@media (max-width: 1280px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .insight-grid, .three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-row {
    grid-template-columns: 160px 1fr 56px 48px;
  }
}

@media (max-width: 1100px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    height: auto;
  }

  .timeline-col {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: .75rem;
    height: 48px;
  }

  .timeline-bar-wrap {
    flex: 1;
    height: 12px;
    max-height: 100%;
  }

  .timeline-bar {
    width: var(--w, 100%);
    border-radius: 4px;
    height: 100% !important;
  }

  .timeline-val {
    white-space: nowrap;
    font-size: .875rem;
  }

  .timeline-label {
    white-space: nowrap;
    font-size: .7rem;
  }
}

@media (max-width: 1024px) {
  .kpi-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col, .motivos-grid, .conclusion-grid {
    grid-template-columns: 1fr;
  }

  .bairro-row {
    grid-template-columns: 28px 110px 1fr 80px;
  }
}

@media (max-width: 768px) {
  .kpi-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .sbd-row {
    grid-template-columns: 100px 1fr 44px 44px;
  }

  .bairro-row {
    grid-template-columns: 1fr 70px;
    grid-template-areas: "name meta"
                         "bars bars";
  }

  .bairro-rank {
    display: none;
  }

  .bairro-name {
    grid-area: name;
  }

  .bairro-bars {
    grid-area: bars;
  }

  .bairro-meta {
    grid-area: meta;
  }

  .table-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vg-act {
  max-width: 880px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.vg-act-tag {
  border-bottom: 1px solid var(--border-default);
  align-items: baseline;
  gap: .625rem;
  margin-bottom: 1.25rem;
  padding-bottom: .625rem;
  display: inline-flex;
}

.vg-act-num {
  font-size: 1.125rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-light);
  letter-spacing: -.5px;
}

.vg-act-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-size: .6875rem;
  font-weight: 700;
}

.vg-act-title {
  color: var(--text-primary);
  letter-spacing: -.6px;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
}

.vg-act-title em {
  color: var(--brand-light);
  font-style: normal;
}

.vg-act-text {
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

.vg-act-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.vg-act-text code {
  font-family: var(--font-mono);
  background: var(--surface-overlay);
  border-radius: var(--r-xs);
  color: var(--brand-light);
  padding: 1px 6px;
  font-size: .875rem;
}

.vg-hero {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.vg-hero .vg-act-tag {
  border-bottom: none;
  justify-content: center;
  padding-bottom: 0;
}

.vg-headline {
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
}

.vg-headline-accent {
  color: var(--brand-light);
}

.vg-lede {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.vg-lede strong {
  color: var(--text-primary);
  font-weight: 700;
}

.vg-hero-takeaway {
  background: var(--brand-subtle);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  border: 1px solid #3b82f633;
  align-items: center;
  gap: 8px;
  padding: .625rem 1rem;
  font-size: .8125rem;
  display: inline-flex;
}

.vg-bases {
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  display: grid;
}

.vg-base {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  text-align: center;
  flex-direction: column;
  gap: .625rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.vg-base:before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.vg-base-ipa:before {
  background: var(--brand);
}

.vg-base-rfb:before {
  background: var(--info);
}

.vg-base-icon {
  border-radius: var(--r-md);
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: flex;
}

.vg-base-ipa .vg-base-icon {
  background: var(--brand-subtle);
}

.vg-base-rfb .vg-base-icon {
  background: var(--info-subtle);
}

.vg-base-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-size: .6875rem;
  font-weight: 700;
}

.vg-base-num {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -1.5px;
  line-height: 1;
}

.vg-base-ipa .vg-base-num {
  color: var(--brand-light);
}

.vg-base-rfb .vg-base-num {
  color: var(--info-light);
}

.vg-base-desc {
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.vg-vs {
  color: var(--text-disabled);
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
}

.vg-takeaway {
  background: var(--surface-raised);
  border-left: 3px solid var(--warning);
  border-radius: var(--r-md);
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.vg-takeaway p {
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
}

.vg-takeaway p strong {
  color: var(--text-primary);
}

.vg-takeaway svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.vg-cta {
  color: var(--brand-light);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: .5rem;
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.vg-cta:hover {
  text-decoration: underline;
}

.vg-mei-split {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .875rem;
  display: grid;
}

.vg-mei-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  align-items: center;
  gap: .875rem;
  padding: 1.125rem 1.25rem;
  display: flex;
}

.vg-mei-out {
  border-left: 3px solid var(--warning);
}

.vg-mei-in {
  border-left: 3px solid var(--brand);
  background: linear-gradient(180deg, #3b82f60f 0%, var(--surface-raised) 100%);
}

.vg-mei-info {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.vg-mei-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1;
}

.vg-mei-label {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: .8125rem;
}

.vg-mei-tag {
  letter-spacing: 1px;
  color: var(--warning);
  margin-top: 4px;
  font-size: .625rem;
  font-weight: 800;
}

.vg-mei-tag-in {
  color: var(--brand-light);
}

.vg-mei-arrow {
  color: var(--text-disabled);
}

.vg-funnel-vertical {
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.vg-step {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  display: flex;
  overflow: hidden;
}

.vg-step-bar {
  flex-shrink: 0;
  width: 4px;
}

.vg-step-body {
  flex: 1;
  padding: 1rem 1.25rem;
}

.vg-step-label {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
}

.vg-step-pill {
  letter-spacing: .6px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  padding: 2px 6px;
  font-size: .5625rem;
  font-weight: 800;
  line-height: 1;
}

.vg-step-row {
  align-items: baseline;
  gap: .875rem;
  margin: 4px 0 6px;
  display: flex;
}

.vg-step-num {
  font-size: 1.625rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1;
}

.vg-step-num-big {
  font-size: 2.25rem;
}

.vg-step-pct {
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.vg-step-desc {
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.vg-step-strong {
  border-color: var(--border-strong);
}

.vg-step-focus {
  background: linear-gradient(180deg, #3b82f60f 0%, var(--surface-raised) 100%);
  border-color: #3b82f640;
  box-shadow: 0 0 24px #3b82f614;
}

.vg-step-arrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-disabled);
  text-align: center;
  font-size: .6875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: .25rem 0;
}

.vg-result-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
  display: grid;
}

.vg-result-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  border-left: 3px solid;
  flex-direction: column;
  gap: 6px;
  padding: 1rem 1.125rem;
  display: flex;
}

.vg-result-success {
  border-left-color: var(--success);
}

.vg-result-warning {
  border-left-color: var(--warning);
}

.vg-result-danger {
  border-left-color: var(--danger);
}

.vg-result-num {
  font-size: 1.625rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
  margin-top: 4px;
  line-height: 1;
}

.vg-result-label {
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 600;
}

.vg-result-pct {
  color: var(--text-muted);
  font-size: .6875rem;
  font-family: var(--font-mono);
}

.vg-finale {
  margin-bottom: 5rem;
}

.vg-actions-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
}

.vg-action {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  transition: all var(--ease-base);
  flex-direction: column;
  gap: .625rem;
  padding: 1.5rem 1.375rem 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.vg-action:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.vg-action:before {
  content: "";
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.vg-action-warning:before {
  background: var(--warning);
}

.vg-action-info:before {
  background: var(--info);
}

.vg-action-brand:before {
  background: var(--brand);
}

.vg-action-num {
  font-size: .75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-disabled);
  letter-spacing: 1px;
  position: absolute;
  top: 14px;
  right: 16px;
}

.vg-action-icon {
  border-radius: var(--r-sm);
  background: var(--surface-overlay);
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  display: flex;
}

.vg-action-warning .vg-action-icon {
  background: var(--warning-subtle);
}

.vg-action-info .vg-action-icon {
  background: var(--info-subtle);
}

.vg-action-brand .vg-action-icon {
  background: var(--brand-subtle);
}

.vg-action-title {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.vg-action-stat {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
  gap: 6px;
  padding: .5rem 0;
  display: flex;
}

.vg-action-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
}

.vg-action-warning .vg-action-stat-num {
  color: var(--warning);
}

.vg-action-info .vg-action-stat-num {
  color: var(--info-light);
}

.vg-action-brand .vg-action-stat-num {
  color: var(--brand-light);
}

.vg-action-stat-label {
  color: var(--text-muted);
  font-size: .75rem;
}

.vg-action-desc {
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.55;
}

.vg-action-link {
  color: var(--text-secondary);
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.vg-action-warning .vg-action-link:hover {
  color: var(--warning);
}

.vg-action-info .vg-action-link:hover {
  color: var(--info-light);
}

.vg-action-brand .vg-action-link:hover {
  color: var(--brand-light);
}

.vg-method-note {
  color: var(--text-disabled);
  border-top: 1px solid var(--border-subtle);
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-size: .75rem;
  display: flex;
}

@media (max-width: 768px) {
  .vg-headline {
    font-size: 2rem;
  }

  .vg-act-title {
    font-size: 1.5rem;
  }

  .vg-bases {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .vg-vs {
    display: none;
  }

  .vg-mei-split {
    grid-template-columns: 1fr;
  }

  .vg-mei-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .vg-result-grid, .vg-actions-grid {
    grid-template-columns: 1fr;
  }
}

.docs-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  display: grid;
}

.docs-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  color: inherit;
  transition: all var(--ease-base);
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  text-decoration: none;
  display: flex;
}

.docs-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.docs-card-icon {
  border-radius: var(--r-md);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: flex;
}

.docs-card-body {
  flex: 1;
  min-width: 0;
}

.docs-card-title {
  color: var(--text-primary);
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.docs-card-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
}

.docs-card-arrow {
  color: var(--text-disabled);
  flex-shrink: 0;
}

.docs-card:hover .docs-card-arrow {
  color: var(--brand-light);
}

.docs-shell {
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1440px;
  min-height: calc(100vh - 200px);
  margin: 0 auto;
  display: grid;
}

.docs-sidebar {
  border-right: 1px solid var(--border-subtle);
  align-self: start;
  max-height: calc(100vh - 80px);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.docs-sidebar-header {
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: .75rem;
  padding: 0 .75rem 1rem;
}

.docs-sidebar-title {
  color: var(--text-primary);
  font-size: .875rem;
  font-weight: 700;
  display: block;
}

.docs-sidebar-sub {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  font-size: .6875rem;
  display: block;
}

.docs-sidebar-nav {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.docs-nav-item {
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

.docs-nav-item:hover {
  background: var(--surface-raised);
  color: var(--text-primary);
}

.docs-nav-item.active {
  background: var(--brand-subtle);
  color: var(--brand-light);
  font-weight: 600;
}

.docs-nav-item.active svg {
  color: var(--brand-light);
}

.docs-main {
  min-width: 0;
  padding: 2rem 2.5rem;
}

.docs-content {
  max-width: 800px;
}

.docs-eyebrow {
  background: var(--brand-subtle);
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-light);
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
  padding: 4px 10px;
  font-size: .6875rem;
  font-weight: 700;
  display: inline-flex;
}

.docs-h1 {
  color: var(--text-primary);
  letter-spacing: -.6px;
  margin: 0 0 .875rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.docs-lede {
  color: var(--text-secondary);
  margin: 0 0 2.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.docs-h2 {
  color: var(--text-primary);
  align-items: center;
  gap: 10px;
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
}

.docs-h2-dot {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.docs-step-num {
  background: var(--brand-subtle);
  width: 26px;
  height: 26px;
  color: var(--brand-light);
  font-size: .8125rem;
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: var(--r-sm);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.docs-text {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: .9375rem;
  line-height: 1.65;
}

.docs-content p {
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.65;
}

.docs-content p strong {
  color: var(--text-primary);
}

.docs-content code {
  font-family: var(--font-mono);
  background: var(--surface-overlay);
  border-radius: var(--r-xs);
  color: var(--brand-light);
  padding: 1px 6px;
  font-size: .85em;
}

.docs-card-info {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.docs-cell-meta {
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  gap: .625rem;
  margin-bottom: .625rem;
  padding-bottom: .625rem;
  display: flex;
}

.docs-tag {
  letter-spacing: 1px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  padding: 2px 8px;
  font-size: .625rem;
  font-weight: 800;
}

.docs-tag-info {
  background: var(--info-subtle);
  color: var(--info-light);
}

.docs-tag-md {
  background: var(--brand-subtle);
  color: var(--brand-light);
}

.docs-tag-counter {
  color: var(--text-muted);
  font-size: .6875rem;
  font-family: var(--font-mono);
}

.docs-callout {
  border-radius: var(--r-md);
  border-left: 3px solid;
  align-items: flex-start;
  gap: 12px;
  margin: 1.25rem 0;
  padding: .875rem 1.125rem;
  display: flex;
}

.docs-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.docs-callout strong {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: .875rem;
  display: block;
}

.docs-callout p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .8125rem;
  line-height: 1.55;
}

.docs-callout-tip {
  background: var(--brand-subtle);
  border-left-color: var(--brand);
}

.docs-callout-tip svg {
  color: var(--brand-light);
}

.docs-callout-warn {
  background: var(--warning-subtle);
  border-left-color: var(--warning);
}

.docs-callout-warn svg {
  color: var(--warning);
}

.docs-callout-success {
  background: var(--success-subtle);
  border-left-color: var(--success);
}

.docs-callout-success svg {
  color: var(--success);
}

.docs-callout-key {
  background: var(--info-subtle);
  border-left-color: var(--info);
}

.docs-callout-key svg {
  color: var(--info-light);
}

.docs-table {
  border-collapse: collapse;
  background: var(--surface-raised);
  border-radius: var(--r-md);
  border: 1px solid var(--border-default);
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: .8125rem;
  overflow: hidden;
}

.docs-table thead {
  background: var(--surface-overlay);
}

.docs-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  padding: 10px 14px;
  font-size: .6875rem;
  font-weight: 700;
}

.docs-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  padding: 10px 14px;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-pill {
  font-size: .6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-sm);
  background: var(--surface-overlay);
  color: var(--text-secondary);
  padding: 2px 8px;
  display: inline-block;
}

.docs-pill-success {
  background: var(--success-subtle);
  color: var(--success);
}

.docs-pill-info {
  background: var(--info-subtle);
  color: var(--info-light);
}

.docs-pill-warning {
  background: var(--warning-subtle);
  color: var(--warning);
}

.docs-code {
  background: var(--surface-base);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  margin: .75rem 0 1.5rem;
  padding: 1rem 1.125rem;
  font-size: .8125rem;
  line-height: 1.6;
  overflow-x: auto;
}

.docs-code code {
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: pre;
  background: none;
  padding: 0;
}

.docs-query-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 1.25rem 0 0;
  font-size: .75rem;
  font-weight: 700;
}

.docs-cnpj-split {
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  display: grid;
}

.docs-cnpj-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 1rem 1.125rem;
}

.docs-cnpj-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-size: .6875rem;
  font-weight: 700;
}

.docs-cnpj-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.docs-cnpj-parts {
  font-family: var(--font-mono);
  flex-direction: column;
  gap: 4px;
  font-size: .75rem;
  display: flex;
}

.docs-cnpj-arrow {
  color: var(--text-muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
}

.docs-cnpj-arrow-label {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .625rem;
  font-weight: 700;
}

.docs-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1rem 0 1.5rem;
  display: grid;
}

.docs-stat {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--r-md);
  padding: .875rem 1rem;
}

.docs-stat-success {
  border-left-color: var(--success);
}

.docs-stat-warning {
  border-left-color: var(--warning);
}

.docs-stat-info {
  border-left-color: var(--info);
}

.docs-stat-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -.5px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.docs-stat-label {
  color: var(--text-secondary);
  flex-direction: column;
  margin-top: 4px;
  font-size: .75rem;
  display: flex;
}

.docs-stat-label span {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: .6875rem;
}

.docs-flow {
  flex-direction: column;
  gap: .5rem;
  margin: 1rem 0 1.5rem;
  display: flex;
}

.docs-flow-step {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  align-items: flex-start;
  gap: .875rem;
  padding: .875rem 1rem;
  display: flex;
}

.docs-flow-num {
  background: var(--brand-subtle);
  width: 28px;
  height: 28px;
  color: var(--brand-light);
  font-weight: 800;
  font-family: var(--font-mono);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: .875rem;
  display: flex;
}

.docs-flow-step h4 {
  color: var(--text-primary);
  margin: 0 0 4px;
  font-size: .9375rem;
  font-weight: 700;
}

.docs-flow-step p {
  color: var(--text-muted);
  margin: 0;
  font-size: .8125rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    max-height: none;
    position: relative;
  }

  .docs-grid, .docs-cnpj-split {
    grid-template-columns: 1fr;
  }

  .docs-cnpj-arrow {
    transform: rotate(90deg);
  }

  .docs-stats {
    grid-template-columns: 1fr;
  }

  .docs-main {
    padding: 1.5rem 1.25rem;
  }
}

/*# sourceMappingURL=src_app_globals_0p2ml0n.css.map*/