@charset "UTF-8";
:root {
  --paper: #faf8f5;
  --surface: #faf8f5;
  --surface-alt: #f3efe8;
  --surface-hover: #ece6dc;
  --border: #d6d1c7;
  --border-strong: #171511;
  --rule-soft: #e5e0d7;
  --ink: #171511;
  --ink-secondary: #4c4740;
  --ink-muted: #6e685f;
  --crimson: #ac1b18;
  --crimson-bright: #b71916;
  --crimson-bg: #f9ebe8;
  --crimson-border: #ac1b18;
  --ochre: #8a4b08;
  --ochre-bg: #f7efe2;
  --ochre-border: #c9a66b;
  --navy: #171511;
  --navy-dark: #171511;
  --navy-bg: #f3efe8;
  --navy-border: #d6d1c7;
  --plum: #ac1b18;
  --plum-bg: #f9ebe8;
  --plum-border: #ac1b18;
  --teal: #1d6352;
  --teal-bg: #ebf3f0;
  --teal-border: #8ab5a8;
  --slate-bg: #f3efe8;
  --slate-border: #d6d1c7;
  --radius: 0px;
  --font-serif: 'Newsreader', 'Charter', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme=dark] {
  --paper: #11100e;
  --surface: #161512;
  --surface-alt: #1f1d19;
  --surface-hover: #282520;
  --border: #332f29;
  --border-strong: #e7e2d8;
  --rule-soft: #26231e;
  --ink: #f4f1ea;
  --ink-secondary: #c7c1b6;
  --ink-muted: #968f83;
  --crimson: #e04f4b;
  --crimson-bright: #ef5955;
  --crimson-bg: rgba(224, 79, 75, 0.14);
  --crimson-border: rgba(224, 79, 75, 0.55);
  --ochre: #e5a93c;
  --ochre-bg: rgba(229, 169, 60, 0.12);
  --ochre-border: rgba(229, 169, 60, 0.45);
  --navy: #d6d1c7;
  --navy-dark: #f4f1ea;
  --navy-bg: #1f1d19;
  --navy-border: #3d3830;
  --plum: #e04f4b;
  --plum-bg: rgba(224, 79, 75, 0.14);
  --plum-border: rgba(224, 79, 75, 0.55);
  --teal: #52b79a;
  --teal-bg: rgba(82, 183, 154, 0.12);
  --teal-border: rgba(82, 183, 154, 0.45);
  --slate-bg: #1f1d19;
  --slate-border: #332f29;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--crimson);
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

em, h1 em, h2 em, h3 em {
  color: var(--crimson);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 1px 5px;
  border: 1px solid var(--border);
}

/* =========================================================================
   MASTHEAD (.topbar — 3-Column Modern SaaS / GovTech Header)
   ========================================================================= */
.topbar {
  background: #0b111c;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 45;
}

.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .topbar-inner {
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
}
.topbar-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo:hover {
  text-decoration: none;
  color: #ffffff;
}

.brand-logo-icon {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-logo-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #f59e0b 30%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 2px;
}

/* Center Search Bar in Header */
.topbar-center {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  max-width: 420px;
}

.btn-cmd-center {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  border-radius: 4px;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-cmd-center:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: #f59e0b;
  color: #ffffff;
}

.cmd-search-icon {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1;
}

.cmd-search-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cmd-center kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: #0f172a;
  border: 1px solid #475569;
  color: #94a3b8;
}

/* Right Action Buttons in Header */
.topbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .btn.topbar-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 4px;
  padding: 6px 12px;
}

.topbar .btn.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #94a3b8;
  color: #ffffff;
}

.topbar .btn.topbar-btn-theme {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  min-width: 98px;
  justify-content: center;
  gap: 0;
}

.topbar .btn.topbar-btn-theme .theme-prefix {
  color: #ffffff;
  font-weight: 700;
}

.topbar .btn.topbar-btn-theme .theme-suffix-light {
  color: #fbbf24;
}

.topbar .btn.topbar-btn-theme .theme-suffix-dark {
  color: #cbd5e1;
}

.topbar .btn.topbar-btn-ai {
  background: #f59e0b;
  border: 1px solid #f59e0b;
  color: #0b111c;
  font-weight: 700;
  border-radius: 4px;
  padding: 6px 13px;
}

.topbar .btn.topbar-btn-ai:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #0b111c;
}

/* Single-Line Thin Informational Subbar Under Header */
.info-subbar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.info-subbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 7px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1080px) {
  .info-subbar-inner {
    padding: 7px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.info-subbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1080px) {
  .info-subbar-meta {
    white-space: normal;
  }
}
.civic-positioning-tag {
  color: var(--ink);
  font-weight: 500;
}

.info-subbar-sep {
  color: var(--border-strong);
  opacity: 0.35;
}

.info-subbar-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.subbar-link,
.subbar-link-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.subbar-link:hover,
.subbar-link-btn:hover {
  color: var(--crimson);
  text-decoration: underline;
}

/* Buttons (sigma.midt.bg Editorial Monospace Style) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

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

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--paper);
}

.btn-cmd {
  background: var(--paper);
  border-color: var(--border);
  color: var(--ink-secondary);
}

.btn-cmd kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.btn-oracle, .btn-oracle-solid {
  border-color: var(--crimson);
  background: var(--crimson-bg);
  color: var(--crimson);
}

.btn-oracle:hover, .btn-oracle-solid:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--paper);
}

.btn-proposal {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.btn-proposal:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Container */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 36px 36px 64px;
}

@media (max-width: 880px) {
  .container {
    padding: 24px 20px 48px;
  }
}
/* =========================================================================
   HERO (.hero — Modeled after sigma.midt.bg .hero-panel + .page-header)
   ========================================================================= */
.hero {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 28px;
}

.hero-top-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 34px;
}

.hero-section {
  position: relative;
  padding: 6px 0 12px;
}

.hero-editorial-col {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-emblem-stage {
  flex: 0 0 auto;
  width: clamp(340px, 34vw, 490px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  margin: -10px 0;
}

.hero-emblem-visual {
  width: 100%;
  aspect-ratio: 880/816;
  background-image: url("./hero-emblem.png?v=20261120j");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  filter: drop-shadow(0 14px 20px rgba(23, 21, 17, 0.14));
}

@media (max-width: 960px) {
  .hero-top-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-emblem-stage {
    display: none;
  }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--crimson);
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--crimson);
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 24ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--crimson);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 26px;
  max-width: 64ch;
}

/* sigma.midt.bg Smart Search in Hero */
.hero-search-box {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 760px;
}

.hero-search-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: end;
  gap: 12px;
}

.smart-search-prompt {
  color: var(--crimson);
  font: 400 1.75rem/1 var(--font-serif);
  user-select: none;
  margin-bottom: 6px;
}

.hero-search-row input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  width: 100%;
  min-width: 0;
  padding: 0 0 6px;
  font: 400 1.35rem/1.2 var(--font-serif);
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.hero-search-row input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

.hero-search-row input:focus {
  border-bottom-color: var(--crimson);
}

@media (max-width: 680px) {
  .hero-search-row {
    grid-template-columns: auto 1fr;
  }
  .hero-search-row .btn {
    grid-column: 1/-1;
    justify-content: center;
  }
}
.quick-cities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}

.quick-cities span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-right: 4px;
}

.city-chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.city-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.chip-accent {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--crimson-bg);
}

.chip-accent:hover {
  background: var(--crimson);
  color: var(--paper);
  border-color: var(--crimson);
}

/* =========================================================================
   6-STAGE TOTALS STRIP (.funnel-box — Modeled after sigma.midt.bg .totals)
   ========================================================================= */
.funnel-box {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 12px;
}

.funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.funnel-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0;
}

.funnel-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 1120px) {
  .funnel-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .funnel-strip-grid .funnel-step:nth-child(1),
  .funnel-strip-grid .funnel-step:nth-child(2),
  .funnel-strip-grid .funnel-step:nth-child(3) {
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 640px) {
  .funnel-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.funnel-step {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px 18px 20px 0;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s;
}

.funnel-step + .funnel-step {
  padding-left: 18px;
}

.funnel-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.funnel-step:hover {
  background: var(--surface-alt);
}

.funnel-step.warn,
.funnel-step.danger,
.funnel-step.plum,
.funnel-step.navy {
  background: transparent;
}

.funnel-step.warn:hover,
.funnel-step.danger:hover,
.funnel-step.plum:hover,
.funnel-step.navy:hover {
  background: var(--surface-alt);
}

.funnel-step-num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.funnel-step.danger .funnel-step-num,
.funnel-step.plum .funnel-step-num {
  color: var(--crimson);
}

.funnel-step-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}

.funnel-step-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* =========================================================================
   PUBLIC AUDIT SESSION COUNTER + TOP 50 CONCENTRATION HIERARCHY BAR
   (Clean sigma.midt.bg Editorial Strip — Zero Neon / Rainbow Gradients)
   ========================================================================= */
.hof-trigger-wrap {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.truth-counter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 0;
  background: transparent;
  border: 0;
}

.truth-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
}

.truth-counter-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.truth-counter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.truth-counter-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.truth-counter-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.hof-trigger {
  flex: 1 1 520px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hof-trigger:hover {
  background: var(--crimson-bg);
  border-color: var(--crimson);
}

.hof-trigger-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hof-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hof-trigger-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--crimson);
  color: var(--paper);
}

.hof-trigger-label {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.hof-trigger-meta {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.hof-trigger-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.hof-trigger:hover .hof-trigger-cta {
  background: var(--crimson);
}

/* =========================================================================
   NAVIGATION TABS (.tabs — Modeled after sigma.midt.bg .site-nav / .tab-labels)
   ========================================================================= */
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-muted);
  padding: 10px 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  border-radius: 0;
  transition: color 0.12s, border-color 0.12s;
}

.tab-btn:hover {
  color: var(--crimson);
  background: transparent;
}

.tab-btn.active {
  color: var(--ink);
  background: transparent;
  border-bottom: 2.5px solid var(--crimson);
  font-weight: 600;
}

.tab-btn-oracle,
.tab-btn-proposal,
.tab-btn-forensics,
.tab-btn-judicial {
  color: var(--ink-secondary);
}

.tab-btn-oracle.active,
.tab-btn-proposal.active,
.tab-btn-forensics.active,
.tab-btn-judicial.active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =========================================================================
   PANELS, GRIDS & CALLOUTS (sigma.midt.bg .section / .tile / .callout)
   ========================================================================= */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
}

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

@media (max-width: 1120px) {
  .two-col-wide, .three-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .charts-grid, .two-col {
    grid-template-columns: 1fr;
  }
}
.panel-box, .chart-card {
  background: var(--paper);
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0;
}

.panel-box h3, .chart-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.chart-caption {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}

/* Editorial Callouts (.callout on sigma.midt.bg) */
.editorial-note {
  background: transparent;
  border: 0;
  border-left: 4px solid var(--ink);
  border-radius: 0;
  padding: 12px 20px;
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.editorial-note.note-plum,
.editorial-note.note-crimson {
  border-left-color: var(--crimson);
  background: var(--crimson-bg);
  color: var(--ink);
}

.editorial-note strong {
  color: var(--ink);
  font-weight: 600;
}

.meta-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* =========================================================================
   KPI STRIP (.kpi-grid — Modeled after sigma.midt.bg .totals)
   ========================================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin-bottom: 26px;
}

.kpi-card {
  background: transparent;
  padding: 20px 20px 20px 0;
  border-right: 1px solid var(--border);
}

.kpi-card + .kpi-card {
  padding-left: 20px;
}

.kpi-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 500;
}

.kpi-val {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 8px 0 6px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-card.emphasis .kpi-val {
  color: var(--crimson);
}

.kpi-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Time-Series Trend Chart & Sankey */
.trend-chart-host {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
}

.trend-years-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.trend-yr-card {
  background: transparent;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.trend-yr-card:last-child {
  border-right: 0;
}

.trend-yr-card .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.trend-yr-card .val {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 3px;
}

.trend-yr-card .sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.sankey-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.sankey-svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 560px;
}

.sankey-ribbon {
  cursor: pointer;
  transition: opacity 0.15s;
}

.sankey-node-rect {
  cursor: pointer;
}

.sankey-readout {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-left: 3px solid var(--ink);
  font-size: 13px;
  color: var(--ink);
  min-height: 36px;
}

/* Horizontal Bar Charts & Donut */
.hbar-item {
  margin-bottom: 8px;
  cursor: pointer;
  padding: 6px 4px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.12s;
}

.hbar-item:hover {
  background: var(--surface-alt);
}

.hbar-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.hbar-name {
  font-weight: 500;
  color: var(--ink);
}

.hbar-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.hbar-track {
  height: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
}

.hbar-fill {
  height: 100%;
  transition: width 0.35s ease;
}

.donut-layout {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 540px) {
  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.donut-legend li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}

.donut-legend li:last-child {
  border-bottom: none;
}

.donut-legend li:hover {
  background: var(--surface-alt);
}

.gauge-block {
  margin-bottom: 16px;
}

.gauge-bar {
  height: 20px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ink);
  margin: 8px 0;
}

.gauge-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.gauge-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* 28-Oblast Cartographic Atlas */
.atlas-shell {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1040px) {
  .atlas-shell {
    grid-template-columns: 1fr;
  }
}
.bulgaria-svg-host {
  background: var(--surface-alt);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 12px;
}

.bg-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.oblast-poly {
  stroke: var(--paper);
  stroke-width: 2;
  cursor: pointer;
  transition: filter 0.14s, stroke-width 0.14s;
}

.oblast-poly:hover {
  filter: brightness(1.08);
  stroke: var(--ink);
  stroke-width: 2.8;
}

.oblast-poly.selected {
  stroke: var(--crimson);
  stroke-width: 3.5;
}

.oblast-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(250, 248, 245, 0.88);
  stroke-width: 3px;
  fill: #171511;
}

[data-theme=dark] .oblast-lbl {
  stroke: rgba(17, 16, 14, 0.9);
  fill: #f4f1ea;
}

.atlas-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.atlas-swatch {
  display: inline-block;
  width: 20px;
  height: 10px;
  border: 1px solid var(--ink);
}

/* =========================================================================
   CONTROLS, PILLS & TABLES (Modeled after sigma.midt.bg .table-wrap / .chip)
   ========================================================================= */
.controls-card {
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.search-input {
  flex: 1 1 300px;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  outline: 2px solid var(--crimson);
  outline-offset: 1px;
  border-color: var(--ink);
}

.select-ctrl {
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s;
}

.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-alt);
}

.pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pill .cnt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.75;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Tables (Exact sigma.midt.bg Hairline Table Style) */
.table-wrap {
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

thead th {
  text-align: left;
  padding: 10px 14px 10px 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

thead th:first-child, tbody td:first-child {
  padding-left: 10px;
}

th.num, td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background 0.1s;
}

tbody tr:hover td {
  background: var(--surface-alt);
}

tbody td {
  padding: 12px 14px 12px 0;
  vertical-align: top;
  color: var(--ink);
}

.official-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  display: block;
}

.inst-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  margin-top: 3px;
}

.comp-item {
  margin-bottom: 3px;
}

.comp-name {
  font-weight: 600;
  color: var(--ink);
}

.eik-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 4px;
}

/* Risk Score & Editorial Flags (.score & .flag on sigma.midt.bg) */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 0;
}

.risk-crit {
  background: var(--crimson-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.risk-high {
  background: var(--ochre-bg);
  color: var(--ochre);
  border: 1px solid var(--ochre-border);
}

.risk-mid {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}

.risk-low {
  background: var(--paper);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-crimson {
  background: var(--crimson-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.tag-ochre {
  background: var(--ochre-bg);
  color: var(--ochre);
  border: 1px solid var(--ochre-border);
}

.tag-navy {
  background: var(--surface-alt);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.tag-plum {
  background: var(--crimson-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.tag-teal {
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.tag-slate {
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Clusters & Mega Consortia */
.clusters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.cluster-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 16px 18px;
}

.cluster-card.has-own {
  border-top: 2px solid var(--crimson);
}

.cluster-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cluster-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}

.cluster-metrics {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.cluster-people {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cluster-people li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--rule-soft);
}

.cluster-people li:last-child {
  border-bottom: none;
}

.cluster-people li:hover {
  background: var(--surface-alt);
}

/* Network Graph 3.0 */
.graph-shell {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 20px;
  min-height: 680px;
}

@media (max-width: 980px) {
  .graph-shell {
    grid-template-columns: 1fr;
  }
}
.graph-sidebar {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 740px;
  overflow-y: auto;
}

.graph-canvas-wrap {
  background-color: var(--paper);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 660px;
}

#networkCanvas {
  width: 100%;
  height: 680px;
  display: block;
  cursor: grab;
}

#networkCanvas:active {
  cursor: grabbing;
}

.graph-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 7px 11px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  pointer-events: none;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.graph-tooltip {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 330px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--ink);
}

.path-result-box {
  margin-top: 8px;
  padding: 10px 13px;
  background: var(--surface-alt);
  border-left: 3px solid var(--crimson);
  font-size: 12.5px;
}

/* SIGMA 3.0 ORACLE AI COPILOT */
.oracle-shell {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oracle-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.oracle-prompts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.oracle-messages {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px;
  min-height: 380px;
  max-height: 580px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble {
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.55;
}

.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
}

.msg-ai {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--crimson);
  color: var(--ink);
  width: 100%;
}

.msg-ai-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--crimson);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.oracle-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Proposal Tab */
.proposal-hero {
  background: var(--surface-alt);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-left: 4px solid var(--crimson);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.clean-list strong {
  color: var(--ink);
}

/* Mandate vs Contracts Overlap Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.tl-col {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 6px 4px;
  text-align: center;
}

.tl-col.tl-overlap {
  border-color: var(--crimson);
  background: var(--crimson-bg);
}

.tl-col.tl-office {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.tl-yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.tl-bar-wrap {
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 4px 0;
}

.tl-bar {
  width: 62%;
  min-height: 2px;
}

.tl-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-muted);
}

/* Slide-Over Drawer & Modals */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 17, 0.52);
  z-index: 90;
  display: none;
}

.drawer-backdrop.open, .modal-backdrop.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px;
  overflow-y: auto;
}

.drawer-backdrop.open {
  display: block;
  padding: 0;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(740px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--ink);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-alt);
}

.drawer-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 3px 0 6px;
  font-size: 24px;
  color: var(--ink);
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-section h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 500;
}

.close-btn {
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.close-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--paper);
}

.contract-row {
  padding: 10px 12px;
  background: var(--surface-alt);
  border-left: 2px solid var(--ink);
  margin-bottom: 8px;
  font-size: 13px;
}

/* Command Palette & Contract Inspector Modal */
.cmd-dialog {
  width: min(720px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink);
}

.cmd-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font-serif);
}

.cmd-results {
  max-height: 62vh;
  overflow-y: auto;
  padding: 8px 0;
}

.cmd-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--crimson);
  padding: 10px 16px 4px;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule-soft);
}

.cmd-item:hover {
  background: var(--surface-alt);
}

.contract-modal-dialog {
  width: min(860px, 100%);
  max-height: 88vh;
  background: var(--paper);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.signal-pre {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  margin: 0;
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================================
   TOP 50 CONCENTRATION HIERARCHY MODAL (Clean Editorial Architecture)
   ========================================================================= */
.hof-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 21, 17, 0.72);
  display: none;
  overflow-y: auto;
  padding: 28px 18px 40px;
}

.hof-modal-backdrop.open {
  display: block;
}

.hof-modal-dialog {
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}

.hof-modal-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 10;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.hof-modal-close:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.hof-shell {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.hof-inner {
  background: var(--paper);
  padding: 28px 24px 24px;
  color: var(--ink);
}

.hof-header {
  text-align: left;
  max-width: 880px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
}

.hof-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}

.hof-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.hof-subtitle {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 14px;
  max-width: 72ch;
}

.hof-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hof-mode-btn {
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hof-mode-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hof-mode-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.hof-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hof-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

.hof-row.tier-apex {
  max-width: 470px;
}

.hof-row.tier-2 {
  max-width: 760px;
}

.hof-row.tier-3 {
  max-width: 980px;
}

.hof-row.tier-4 {
  max-width: 1120px;
}

.hof-row.tier-5 {
  max-width: 1220px;
}

.hof-row.tier-6 {
  max-width: 1300px;
}

.hof-row.tier-7 {
  max-width: 1340px;
}

.hof-row.tier-base {
  max-width: 100%;
  flex-wrap: wrap;
}

.hof-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 2px solid var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: var(--ink);
}

.hof-card:hover {
  background: var(--surface-hover);
  border-color: var(--crimson);
}

.hof-card.rank-apex {
  padding: 16px 18px;
  border-top: 3px solid var(--crimson);
  background: var(--crimson-bg);
}

.hof-card.rank-upper {
  padding: 12px 14px;
  border-top-color: var(--crimson);
}

.hof-card.rank-base {
  flex: 1 1 124px;
  max-width: 195px;
  padding: 8px 10px;
}

.hof-card.is-own {
  border-top: 2.5px solid var(--crimson);
}

.hof-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.hof-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--crimson);
}

.hof-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  padding: 1px 5px;
  white-space: nowrap;
}

.hof-pill-own {
  background: var(--crimson-bg);
  color: var(--crimson);
  border: 1px solid var(--crimson);
}

.hof-pill-dzzd {
  background: var(--paper);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.hof-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.22;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hof-card.rank-apex .hof-name {
  font-size: 20px;
}

.hof-inst {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-amount {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--ink);
}

.hof-card.rank-apex .hof-amount {
  font-size: 22px;
  color: var(--crimson);
}

.hof-subline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 1024px) {
  .hof-row {
    flex-wrap: wrap;
  }
  .hof-row.tier-5 .hof-card, .hof-row.tier-6 .hof-card, .hof-row.tier-7 .hof-card {
    flex: 1 1 160px;
  }
}
/* Footer (sigma.midt.bg .site-footer) */
.site-footer {
  max-width: 1340px;
  margin: 48px auto 0;
  padding: 20px 36px 40px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* Forensics 7 + Judicial 6 Highlights */
.nlp-hl {
  background: var(--crimson-bg);
  color: var(--crimson);
  font-weight: 600;
  padding: 1px 4px;
  border-bottom: 1.5px solid var(--crimson);
}

.legend-diamond {
  display: inline-block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  margin-right: 5px;
  vertical-align: middle;
}

.legend-square {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  vertical-align: middle;
}

.legend-tri {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--teal);
  margin-right: 4px;
  vertical-align: middle;
}

/* Official Ministerial 1-2 Page Print / PDF Export Styling */
.print-executive-header {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm;
  }
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11px !important;
    line-height: 1.38 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .topbar,
  .info-subbar,
  .hero,
  .tabs,
  .hof-trigger-wrap,
  .hero-search-box,
  .btn,
  .site-footer,
  .modal-backdrop,
  .drawer-backdrop,
  .drawer,
  .tab-panel:not(.active) {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .print-executive-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #111111;
  }
  .print-exec-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .print-exec-kicker {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: #ac1b18;
    font-weight: 700;
  }
  .print-exec-title {
    font-family: var(--font-serif);
    font-size: 18px !important;
    margin: 2px 0 3px !important;
    color: #111111 !important;
  }
  .print-exec-meta {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: #444444;
  }
  .print-exec-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: #111111;
  }
  .proposal-hero {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-left: 3px solid #ac1b18 !important;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
  }
  .kpi-grid {
    border-top: 1.5px solid #111111 !important;
    border-bottom: 1.5px solid #111111 !important;
    margin-bottom: 12px !important;
  }
  .kpi-card {
    padding: 8px 10px !important;
  }
  .kpi-val {
    font-size: 16px !important;
    margin: 3px 0 !important;
  }
  .panel-box {
    background: #ffffff !important;
    border: 0 !important;
    border-top: 1px solid #111111 !important;
    padding: 8px 0 !important;
    margin-bottom: 10px !important;
    break-inside: avoid;
  }
  table {
    font-size: 9.5px !important;
  }
  thead th, tbody td {
    padding: 4px 6px 4px 0 !important;
  }
  .two-col {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}
:root {
  --node-official: #b91c1c;
  --node-official-bg: #fef2f2;
  --node-official-border: #fecaca;
  --node-family: #b45309;
  --node-family-bg: #fffbeb;
  --node-family-border: #fde68a;
  --node-company: #7c2d12;
  --node-company-bg: #fff7ed;
  --node-company-border: #fed7aa;
  --node-inst: #1e3a8a;
  --node-inst-bg: #eff6ff;
  --node-inst-border: #bfdbfe;
  --node-consortium: #6b21a8;
  --node-consortium-bg: #faf5ff;
  --node-consortium-border: #e9d5ff;
  --node-donor: #0f766e;
  --node-donor-bg: #f0fdfa;
  --node-donor-border: #99f6e4;
  --node-judicial: #4f46e5;
  --node-judicial-bg: #eef2ff;
  --node-judicial-border: #c7d2fe;
  --node-lawyer: #0284c7;
  --node-lawyer-bg: #f0f9ff;
  --node-lawyer-border: #bae6fd;
  --node-expert: #059669;
  --node-expert-bg: #ecfdf5;
  --node-expert-border: #a7f3d0;
  --node-court_case: #4f46e5;
}

.sigma3-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.node-chip--official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

.node-chip--family {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.node-chip--company {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #7c2d12;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  white-space: nowrap;
}

.node-chip--inst {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #1e3a8a;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.node-chip--consortium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #6b21a8;
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  white-space: nowrap;
}

.node-chip--donor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  background-color: #f0fdfa;
  border: 1px solid #99f6e4;
  white-space: nowrap;
}

.node-chip--judicial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #4f46e5;
  background-color: #eef2ff;
  border: 1px solid #c7d2fe;
  white-space: nowrap;
}

.node-chip--lawyer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.node-chip--expert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.node-glyph {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.node-glyph--circle {
  border-radius: 50%;
}
.node-glyph--diamond {
  transform: rotate(45deg);
  border-radius: 1px;
}
.node-glyph--square {
  border-radius: 2px;
}
.node-glyph--triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

:root {
  --risk-critical-fg: #991b1b;
  --risk-critical-bg: #fee2e2;
  --risk-critical-border: #fca5a5;
  --risk-high-fg: #9a3412;
  --risk-high-bg: #ffedd5;
  --risk-high-border: #fdba74;
  --risk-elevated-fg: #854d0e;
  --risk-elevated-bg: #fef9c3;
  --risk-elevated-border: #fde047;
  --risk-low-fg: #065f46;
  --risk-low-bg: #d1fae5;
  --risk-low-border: #6ee7b7;
}

.risk-tier--critical {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  white-space: nowrap;
}

.risk-tier--high {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #9a3412;
  background-color: #ffedd5;
  border: 1px solid #fdba74;
  white-space: nowrap;
}

.risk-tier--elevated {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #854d0e;
  background-color: #fef9c3;
  border: 1px solid #fde047;
  white-space: nowrap;
}

.risk-tier--low {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #065f46;
  background-color: #d1fae5;
  border: 1px solid #6ee7b7;
  white-space: nowrap;
}

.risk-meter-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.risk-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.25s ease;
}

.nlp-clause--brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #f87171;
  white-space: nowrap;
}

.nlp-clause--turnover {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #9a3412;
  background-color: #ffedd5;
  border: 1px solid #fb923c;
  white-space: nowrap;
}

.nlp-clause--iso {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #5b21b6;
  background-color: #f3e8ff;
  border: 1px solid #c084fc;
  white-space: nowrap;
}

.nlp-clause--deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #1e40af;
  background-color: #dbeafe;
  border: 1px solid #60a5fa;
  white-space: nowrap;
}

.nlp-clause--SingleBid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #be123c;
  background-color: #ffe4e6;
  border: 1px solid #fda4af;
  white-space: nowrap;
}

.nlp-excerpt-highlight {
  padding: 1px 5px;
  border-radius: 3px;
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 2px solid #ef4444;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.judicial-radar-scope .eiss-live-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #4f46e5;
  border-radius: 6px;
  padding: 14px 16px;
}
.judicial-radar-scope .lawyer-network-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0284c7;
  border-radius: 6px;
  padding: 14px 16px;
}
.judicial-radar-scope .expert-network-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #059669;
  border-radius: 6px;
  padding: 14px 16px;
}
.judicial-radar-scope .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.judicial-radar-scope .table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.judicial-radar-scope .table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
}
.judicial-radar-scope .table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.eiss-disposition-box {
  padding: 6px 9px;
  background: #f8fafc;
  border-left: 3px solid var(--node-judicial, #4f46e5);
  border-radius: 3px;
  font-size: 11.6px;
  line-height: 1.38;
}

.forensics-radar-scope .annex-inflation-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #b91c1c;
  border-radius: 6px;
  padding: 14px 16px;
}
.forensics-radar-scope .salami-cluster-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #b45309;
  border-radius: 6px;
  padding: 14px 16px;
}
.forensics-radar-scope .cartel-rotation-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #6b21a8;
  border-radius: 6px;
  padding: 14px 16px;
}
.forensics-radar-scope .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.forensics-radar-scope .table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.forensics-radar-scope .table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
}
.forensics-radar-scope .table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

body[data-density=compact] .table-wrap table {
  font-size: 11.4px;
  line-height: 1.22;
}
body[data-density=compact] .table-wrap table th,
body[data-density=compact] .table-wrap table td {
  padding: 4px 7px;
}
body[data-density=compact] .kpi-card {
  padding: 8px 10px;
}
body[data-density=compact] .kpi-val {
  font-size: 18px;
}
body[data-density=compact] .panel-box {
  padding: 10px 12px;
}
