:root {
  --bg: #061724;
  --bg-deep: #03111c;
  --panel: rgba(7, 28, 44, 0.96);
  --panel-soft: rgba(11, 38, 58, 0.86);
  --border: rgba(94, 151, 184, 0.28);
  --border-strong: rgba(96, 165, 250, 0.36);
  --text: #f8fafc;
  --muted: #9eb3c7;
  --blue: #0ea5e9;
  --blue-deep: #075985;
  --red: #ef2929;
  --orange: #ff8744;
  --yellow: #ffc861;
  --green: #9bd265;
  --purple: #8b5cf6;
  --cyan: #38bdf8;
  --anchor-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes panelIn {
  from {
    opacity: 0;
    filter: blur(6px);
    clip-path: inset(0 0 14% 0);
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes revealBorder {
  0% {
    box-shadow:
      0 0 0 rgba(92, 188, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  38% {
    box-shadow:
      0 0 0 1px rgba(92, 188, 255, 0.22),
      0 0 32px rgba(14, 165, 233, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  100% {
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 0 rgba(92, 188, 255, 0);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 22px rgba(92, 188, 255, 0.24);
  }
}

@keyframes playInvite {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(56, 189, 248, 0.2),
      0 14px 30px rgba(2, 6, 23, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  48% {
    box-shadow:
      0 0 0 10px rgba(56, 189, 248, 0),
      0 0 30px rgba(56, 189, 248, 0.34),
      0 16px 34px rgba(2, 6, 23, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

@keyframes ctaNudge {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  48% {
    transform: translate(-50%, -2px);
  }
}

@keyframes liveBeat {
  0%,
  100% {
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.34);
  }

  45% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0);
  }
}

@keyframes packetRun {
  0% {
    left: 4%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  9%,
  90% {
    opacity: 1;
  }

  100% {
    left: 96%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes packetRunMobile {
  0% {
    top: 4%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  9%,
  90% {
    opacity: 1;
  }

  100% {
    top: 96%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes botWake {
  0%,
  100% {
    color: rgba(158, 179, 199, 0.9);
    text-shadow: none;
  }

  48% {
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.36);
  }
}

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

@keyframes scoreCorePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.18),
      0 0 28px rgba(56, 189, 248, 0.12),
      inset 0 0 30px rgba(56, 189, 248, 0.08);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 200, 97, 0.36),
      0 0 38px rgba(255, 135, 68, 0.2),
      inset 0 0 34px rgba(56, 189, 248, 0.14);
  }
}

@keyframes scoreFactorWake {
  0%,
  100% {
    border-color: rgba(94, 151, 184, 0.2);
    transform: translateY(0);
  }

  45% {
    border-color: rgba(56, 189, 248, 0.42);
    transform: translateY(-2px);
  }
}

@keyframes scaleFill {
  from {
    width: 0;
  }

  to {
    width: calc(var(--level) * 1%);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(210%);
  }
}

@keyframes markerPulse {
  0% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--marker-color), transparent 42%),
      0 0 16px var(--marker-color);
  }

  72%,
  100% {
    box-shadow:
      0 0 0 14px color-mix(in srgb, var(--marker-color), transparent 100%),
      0 0 16px var(--marker-color);
  }
}

@keyframes stripeDrift {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      0 0,
      36px 0;
  }
}

@keyframes mapSweep {
  0%,
  18% {
    transform: translateX(-130%);
    opacity: 0;
  }

  30%,
  58% {
    opacity: 1;
  }

  72%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes chartSweep {
  0%,
  26% {
    transform: translateX(-120%);
    opacity: 0;
  }

  42%,
  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes dataResolve {
  0%,
  42% {
    text-shadow: 0 0 18px rgba(92, 188, 255, 0.32);
  }

  100% {
    text-shadow: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 55% 18%,
      rgba(14, 165, 233, 0.12),
      transparent 34%
    ),
    linear-gradient(135deg, #03111c 0%, #061724 46%, #03111c 100%);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
select,
input {
  font: inherit;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.app-shell > * {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: 76px;
  background: rgba(3, 17, 28, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.18));
}

.brand > span {
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1;
}

.brand > span span {
  color: var(--cyan);
}

.brand small {
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.78rem;
}

.side-nav {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0 auto;
}

.side-nav-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.side-nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-left: auto;
  color: var(--cyan);
  background: #061724;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.08);
}

.nav-toggle i {
  font-size: 1.7rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  color: rgba(248, 250, 252, 0.78);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 720;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  background: linear-gradient(90deg, #0b64a7, #0c7dc6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.side-nav a:hover {
  transform: translateY(-1px);
}

.side-nav i {
  width: 24px;
  font-size: 1.16rem;
  text-align: center;
}

.sidebar-note {
  display: none;
  gap: 12px;
  align-items: center;
  margin-top: 44px;
  padding: 18px;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(12, 41, 62, 0.82);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sidebar-note i {
  color: var(--muted);
  font-size: 2.25rem;
}

.sidebar-caption {
  margin: 18px 8px 0;
  color: #6f879c;
  font-size: 0.86rem;
}

@media (min-width: 761px) {
  .side-nav.collapse:not(.show) {
    display: block;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .side-nav-inner {
    gap: 6px;
  }

  .side-nav a {
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .side-nav a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .side-nav i {
    width: auto;
    font-size: 1.28rem;
  }
}

.dashboard {
  min-width: 0;
  padding: 0 0 18px;
}

.content-container {
  min-width: 0;
}

#map-panel,
#summary-panel,
#analytics-panel,
#topics-panel,
#rating-panel,
#about-panel,
#score-method-panel,
#bot-status-panel {
  scroll-margin-top: var(--anchor-offset);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chip-button,
.icon-button,
.play-button,
.wide-button {
  color: var(--text);
  background: rgba(7, 28, 44, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  color: rgba(248, 250, 252, 0.86);
  font-weight: 760;
}

.chip-button:hover,
.icon-button:hover,
.play-button:hover,
.wide-button:hover {
  border-color: var(--border-strong);
  background: rgba(12, 45, 68, 0.94);
  box-shadow:
    0 0 0 1px rgba(92, 188, 255, 0.12),
    0 10px 26px rgba(2, 6, 23, 0.24);
  transform: translateY(-1px);
}

.icon-only {
  width: 42px;
  justify-content: center;
  padding-inline: 0;
}

.metric-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric-card,
.panel {
  background: linear-gradient(
    180deg,
    rgba(8, 31, 49, 0.98),
    rgba(5, 24, 39, 0.96)
  );
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.motion-ready .motion-target {
  opacity: 0;
  filter: blur(6px);
  clip-path: inset(0 0 12% 0);
  transform: translateY(18px);
}

.motion-ready .motion-target.is-visible {
  animation:
    panelIn 920ms cubic-bezier(0.16, 1, 0.3, 1) both,
    revealBorder 1200ms ease both;
  animation-delay: calc(min(var(--reveal-index), 7) * 105ms);
}

.metric-card:hover,
.panel:hover {
  border-color: rgba(96, 165, 250, 0.44);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metric-card.metric-counting {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(56, 189, 248, 0.12),
    0 0 28px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.metric-card.metric-counting > i {
  color: rgba(217, 243, 255, 0.96);
  filter: drop-shadow(0 0 16px rgba(92, 188, 255, 0.34));
}

.metric-card.metric-counting strong {
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.2);
}

.metric-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px 18px;
}

.metric-card > i {
  color: var(--cyan);
  font-size: 3.7rem;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.2));
  transition:
    color 220ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

.metric-card:hover > i {
  color: #d9f3ff;
  filter: drop-shadow(0 0 22px rgba(92, 188, 255, 0.38));
  transform: translateY(-1px) scale(1.02);
}

.metric-card > div > span,
.metric-card small,
.panel-header p {
  color: var(--muted);
}

.metric-card > div > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 2px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.motion-ready .metric-card.is-visible strong {
  animation: dataResolve 1100ms ease both;
  animation-delay: calc(min(var(--reveal-index), 7) * 105ms + 220ms);
}

.impact-card strong {
  display: flex;
  gap: 2px;
  align-items: baseline;
}

.impact-card strong span {
  display: inline;
}

.metric-card em {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  font-weight: 750;
}

.metric-card .positive {
  color: var(--green);
}

.impact-track {
  width: 100%;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}

.impact-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: inherit;
  transition: width 260ms ease;
}

.impact-track span::after,
.bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transform: translateX(-110%);
  animation: shimmer 2.8s ease-in-out infinite;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  align-items: stretch;
  gap: 10px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-heading {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
}

.section-heading h2,
.panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.25vw, 1.38rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: uppercase;
}

.section-heading > p:not(.eyebrow),
.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 0.95vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
}

.section-lead {
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: clamp(1rem, 1.15vw, 1.2rem) !important;
  font-weight: 850 !important;
}

.map-canvas {
  width: 100%;
  margin-bottom: 10px;
}

.map-panel {
  grid-column: 1 / -1;
  min-height: auto;
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
}

.timeline-panel {
  position: relative;
  z-index: 4;
  overflow: visible;
  background: transparent;
  border-color: rgba(94, 151, 184, 0.2);
}

.map-hero {
  position: absolute;
  top: 14px;
  left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  z-index: 1;
  max-width: min(640px, calc(100% - 430px));
}

.map-hero h1 {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.16rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.map-actions {
  position: absolute;
  top: 14px;
  right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: min(420px, calc(100% - 28px));
}

.map-actions .chip-button {
  min-height: 36px;
  background: rgb(0 142 255 / 20%);
  border-color: rgba(94, 151, 184, 0.32);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(3px);
}

.map-period {
  max-width: min(330px, calc(100vw - 80px));
}

.map-filter {
  width: 40px;
  justify-content: center;
  padding-inline: 0;
}

.map-tools {
  position: absolute;
  right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.icon-button {
  width: 36px;
  height: 34px;
}

.map-tools .icon-button {
  background: rgb(0 142 255 / 20%);
  border-color: rgba(94, 151, 184, 0.32);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(3px);
}

.map-reset-view {
  background: rgb(0 142 255 / 20%);
  border-color: rgba(94, 151, 184, 0.32);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(3px);
}

.map-stage {
  position: relative;
  height: max(520px, calc(100vh - 214px));
  height: max(520px, calc(100svh - 214px));
  overflow: hidden;
  background: #061724;
  border-top: 1px solid rgba(94, 151, 184, 0.18);
  border-bottom: 1px solid rgba(94, 151, 184, 0.18);
}

.map-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.map-ui > * {
  pointer-events: auto;
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0 35%,
      rgba(92, 188, 255, 0.13) 48%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(92, 188, 255, 0.12) 52%,
      transparent 66%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 12px,
      rgba(92, 188, 255, 0.035) 12px 13px
    );
  mix-blend-mode: screen;
  animation: mapSweep 8.5s cubic-bezier(0.42, 0, 0.18, 1) infinite;
}

.map-panel {
  animation-delay: 160ms;
}
.trend-panel {
  animation-delay: 210ms;
}
.topics-panel {
  animation-delay: 250ms;
}
.rating-panel {
  animation-delay: 290ms;
}
.facts-panel {
  animation-delay: 330ms;
}
.responsible-panel {
  animation-delay: 370ms;
}
.about-method-panel {
  animation-delay: 410ms;
}
.score-method-panel {
  animation-delay: 455ms;
}
.bot-status-panel {
  animation-delay: 500ms;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #061724;
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 23, 36, 0.58),
      transparent 34%,
      rgba(6, 23, 36, 0.25)
    ),
    radial-gradient(
      circle at 45% 48%,
      transparent 0 44%,
      rgba(6, 23, 36, 0.34) 76%
    );
}

.map-legend {
  position: absolute;
  left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 12px;
  background: rgb(0 142 255 / 20%);
  border: 1px solid rgba(94, 151, 184, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(3px);
}

.map-legend strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.map-legend span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.8rem;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.critical {
  color: var(--red);
  background: var(--red);
}
.high {
  color: var(--orange);
  background: var(--orange);
}
.medium {
  color: var(--yellow);
  background: var(--yellow);
}
.low {
  color: var(--green);
  background: var(--green);
}
.none {
  color: var(--cyan);
  background: var(--cyan);
}
.territory-rf {
  color: #ef2929;
  background: #ef2929;
}
.occupied {
  color: #7c3f13;
  background: #7c3f13;
}

.occupied-label {
  pointer-events: none;
}

.occupied-label span {
  display: inline-flex;
  max-width: 230px;
  padding: 3px 7px;
  color: #fde68a;
  background: rgba(67, 33, 11, 0.82);
  border: 1px solid rgba(253, 230, 138, 0.34);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.timeline-bar {
  position: relative;
  display: grid;
  grid-template-columns: 74px 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 34px 12px 12px;
  background: linear-gradient(
    180deg,
    rgba(8, 31, 49, 0.98),
    rgba(5, 24, 39, 0.96)
  );
  border-radius: 8px;
}

.timeline-cta {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.timeline-cta span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 142px;
  padding: 4px 7px;
  color: #ffffff;
  background: rgb(137 0 0);
  box-shadow: 0px 0px 15px -3px red;
  border: 1px solid rgba(92, 188, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  transform: translateX(-50%);
  animation: ctaNudge 2.8s ease-in-out infinite;
  pointer-events: none;
}

.timeline-cta span::after {
  margin-left: 5px;
  color: var(--cyan);
  content: "↓";
  font-size: 0.78rem;
  line-height: 1;
}

.timeline-cta.is-playing span {
  color: #ffffff;
  animation: none;
}

.timeline-cta.is-playing span::after {
  content: "";
}

.play-button {
  position: relative;
  width: 58px;
  height: 58px;
  color: #d9f3ff;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.42),
    rgba(0, 142, 255, 0.18)
  );
  border-color: rgba(92, 188, 255, 0.44);
  border-radius: 999px;
  font-size: 1.28rem;
  box-shadow:
    0 14px 30px rgba(2, 6, 23, 0.28),
    0 0 0 1px rgba(92, 188, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: playInvite 2.8s ease-in-out infinite;
}

.play-button::before {
  position: absolute;
  inset: -6px;
  content: "";
  border: 1px solid rgba(92, 188, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

.play-button:hover {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.58),
    rgba(0, 142, 255, 0.24)
  );
  transform: translateY(-1px) scale(1.03);
}

.play-button.is-playing {
  animation: glowPulse 1.35s ease-in-out infinite;
  background: linear-gradient(
    135deg,
    rgba(239, 41, 41, 0.46),
    rgba(255, 135, 68, 0.22)
  );
  border-color: rgba(255, 135, 68, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 135, 68, 0.22),
    0 0 28px rgba(239, 41, 41, 0.18);
}

.stop-button {
  width: 40px;
  height: 40px;
  color: #d9f3ff;
  background: rgba(6, 23, 36, 0.78);
  border-color: rgba(94, 151, 184, 0.32);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.22);
}

.stop-button:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(92, 188, 255, 0.42);
  transform: translateY(-1px);
}

.timeline-bar .form-range {
  grid-column: 3;
  margin: 0;
  accent-color: #5cbcff;
}

.timeline-month-marks {
  grid-column: 3;
  position: relative;
  height: 13px;
  margin: -2px 6px 0;
  pointer-events: none;
}

.timeline-month-marks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 5px;
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.timeline-month-marks span.year {
  height: 8px;
  background: rgba(203, 213, 225, 0.62);
}

.timeline-month-marks span.major {
  width: 2px;
  height: 9px;
  background: rgba(92, 188, 255, 0.9);
  animation: glowPulse 2.4s ease-in-out infinite;
}

.timeline-ticks {
  grid-column: 3;
  position: relative;
  height: 20px;
  margin: 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.timeline-ticks span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.timeline-ticks .start {
  transform: translateX(0);
}

.timeline-ticks .middle {
  transform: translateX(-50%);
}

.timeline-ticks .end {
  transform: translateX(-100%);
}

.trend-panel {
  position: relative;
  order: 10;
  grid-column: 1 / -1;
  min-height: 500px;
  overflow: hidden;
}

.trend-panel::after {
  content: "";
  position: absolute;
  inset: 52px 16px 16px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 188, 255, 0.12),
    rgba(255, 255, 255, 0.07),
    transparent
  );
  mix-blend-mode: screen;
  animation: chartSweep 5.8s ease-in-out infinite;
}

#trendChart {
  width: 100%;
  height: 305px;
}

.trend-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 5px 8px 5px 14px;
  overflow: visible;
}

.trend-legend span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  overflow: visible;
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.8rem;
  animation: panelIn 360ms ease both;
}

.trend-legend .dot {
  flex: 0 0 auto;
}

.trend-legend span:nth-child(2) {
  animation-delay: 60ms;
}
.trend-legend span:nth-child(3) {
  animation-delay: 120ms;
}
.trend-legend span:nth-child(4) {
  animation-delay: 180ms;
}
.trend-legend span:nth-child(5) {
  animation-delay: 240ms;
}

.risk-marker {
  position: relative;
  display: block;
  width: var(--marker-size);
  height: var(--marker-size);
  background: color-mix(in srgb, var(--marker-color), transparent 22%);
  border: 1px solid rgba(248, 250, 252, 0.74);
  border-radius: 999px;
  box-shadow: 0 0 16px var(--marker-color);
  animation: markerPulse 2.7s ease-out infinite;
}

.risk-marker::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: var(--marker-color);
  border-radius: inherit;
  box-shadow: 0 0 10px var(--marker-color);
}

.risk-marker.no-risk-data {
  opacity: 0.52;
  animation: none;
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.16);
}

.risk-marker.no-risk-data::after {
  inset: 34%;
  opacity: 0.75;
}

.map-stage.is-timeline-playing .risk-marker:not(.no-risk-data) {
  background: color-mix(in srgb, var(--marker-color), transparent 8%);
  border-color: rgba(248, 250, 252, 0.92);
  box-shadow:
    0 0 22px var(--marker-color),
    0 0 0 3px color-mix(in srgb, var(--marker-color), transparent 76%);
}

.topic-list,
.rating-list {
  display: grid;
  gap: 10px;
}

.topics-panel {
  grid-column: 1 / -1;
  order: 20;
}

.topics-panel .panel-header {
  align-items: flex-start;
  gap: 14px;
}

.topic-month-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.topic-month-controls button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--cyan);
  background: #061724;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.topic-month-controls button:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.68);
  transform: translateY(-1px);
}

.topic-month-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.topic-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}

.topic-pie-panel {
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(56, 189, 248, 0.08),
      transparent 58%
    ),
    #061724;
  border: 1px solid rgba(94, 151, 184, 0.2);
  border-radius: 8px;
}

.topic-pie {
  position: relative;
  display: grid;
  place-items: center;
  width: min(92%, 430px);
  aspect-ratio: 1;
  background: conic-gradient(var(--topic-pie, rgba(56, 189, 248, 0.16) 0 100%));
  border-radius: 999px;
  filter: drop-shadow(0 0 26px rgba(56, 189, 248, 0.12));
  transition: background 260ms ease;
}

.topic-pie::before {
  content: "";
  position: absolute;
  inset: 25%;
  background: #061724;
  border: 1px solid rgba(94, 151, 184, 0.18);
  border-radius: inherit;
  box-shadow: inset 0 0 28px rgba(56, 189, 248, 0.08);
}

.topic-pie::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: inherit;
}

.topic-pie-core {
  position: relative;
  z-index: 1;
  text-align: center;
}

.topic-pie-core strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
}

.topic-pie-core span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.rating-panel {
  grid-column: 1 / -1;
  order: 30;
}

.facts-panel {
  order: 40;
}

.responsible-panel {
  order: 50;
}

.topic-row,
.rating-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.topic-row:hover,
.rating-row:hover {
  background: rgba(148, 163, 184, 0.045);
  transform: translateX(2px);
}

.topic-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(88px, 170px) 44px;
  min-height: 44px;
}

.topic-row span,
.rating-row span {
  color: rgba(248, 250, 252, 0.82);
  font-weight: 720;
}

.topic-row .topic-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #061724;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  background: var(--topic-color);
  border: 1px solid color-mix(in srgb, var(--topic-color), white 24%);
  border-radius: 999px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--topic-color), transparent 82%),
    0 0 18px color-mix(in srgb, var(--topic-color), transparent 56%);
}

.bar {
  height: 7px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

.bar i {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--topic-color, #f97316),
    color-mix(in srgb, var(--topic-color, #f97316), white 18%)
  );
  border-radius: inherit;
  transition: width 360ms ease;
}

.latest-fact {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: stretch;
}

.latest-signal-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 150px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 54% 46%,
      color-mix(in srgb, var(--risk-color), transparent 34%) 0 5px,
      transparent 6px
    ),
    radial-gradient(
      circle at 54% 46%,
      color-mix(in srgb, var(--risk-color), transparent 76%) 0 38px,
      transparent 39px
    ),
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(8, 31, 49, 0.94), rgba(5, 20, 34, 0.98));
  background-size:
    auto,
    auto,
    28px 28px,
    28px 28px,
    auto;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
}

.latest-signal-card::before {
  content: "";
  position: absolute;
  inset: 24px 32px 36px;
  border: 2px solid color-mix(in srgb, var(--risk-color), transparent 18%);
  border-radius: 48% 52% 44% 56%;
  filter: drop-shadow(
    0 0 12px color-mix(in srgb, var(--risk-color), transparent 64%)
  );
}

.signal-date {
  position: relative;
  margin: 0 12px 12px;
  padding: 5px 8px;
  width: fit-content;
  color: rgba(248, 250, 252, 0.86);
  background: rgba(3, 17, 28, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 780;
}

.signal-pulse {
  position: absolute;
  top: calc(46% - 8px);
  left: calc(54% - 8px);
  width: 16px;
  height: 16px;
  background: var(--risk-color);
  border: 2px solid rgba(248, 250, 252, 0.78);
  border-radius: 999px;
  box-shadow: 0 0 22px var(--risk-color);
  animation: markerPulse 2.7s ease-out infinite;
}

.latest-fact-main {
  min-width: 0;
}

.latest-fact h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
  font-weight: 850;
}

.fact-meta,
.fact-text,
.responsible-card span,
.responsible-card small {
  color: var(--muted);
}

.fact-meta {
  font-size: 0.82rem;
}

.theme-badge {
  display: inline-flex;
  margin: 10px 0;
  padding: 4px 10px;
  color: #ffe4e6;
  background: rgba(239, 41, 41, 0.22);
  border: 1px solid rgba(239, 41, 41, 0.36);
  border-radius: 6px;
  font-weight: 780;
}

.fact-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.fact-score {
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(7, 28, 44, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.latest-fact:hover .fact-score {
  border-color: rgba(239, 41, 41, 0.42);
  background: rgba(15, 34, 50, 0.86);
  transform: translateY(-1px);
}

.fact-score span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fact-score strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.fact-score strong small {
  color: var(--muted);
  font-size: 1rem;
}

.fact-score em {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.responsible-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 164px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: rgba(248, 250, 252, 0.78);
  background: radial-gradient(
    circle,
    rgba(248, 250, 252, 0.22),
    rgba(94, 151, 184, 0.14)
  );
  border: 2px solid rgba(248, 250, 252, 0.46);
  border-radius: 999px;
  font-size: 3.55rem;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.responsible-card:hover .avatar {
  border-color: rgba(217, 243, 255, 0.7);
  box-shadow: 0 0 28px rgba(92, 188, 255, 0.16);
  transform: scale(1.03);
}

.responsible-card strong,
.responsible-card span,
.responsible-card small {
  display: block;
}

.responsible-card span {
  margin-top: 8px;
  line-height: 1.45;
}

.responsible-card small {
  margin: 6px 0 14px;
}

.rating-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(180px, 260px) 86px;
  min-height: 42px;
}

.rating-row > strong,
.topic-row > strong,
.fact-score strong {
  font-variant-numeric: tabular-nums;
}

.rating-name {
  min-width: 0;
}

.rating-name strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-name small {
  color: var(--muted);
}

.rating-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(94, 151, 184, 0.16);
}

.rating-page-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.rating-page-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.rating-page-button {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  color: rgba(248, 250, 252, 0.88);
  font-weight: 820;
  background: #061724;
  border: 1px solid rgba(94, 151, 184, 0.28);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.rating-page-button:hover:not(:disabled),
.rating-page-button.is-active {
  color: var(--text);
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.58);
  transform: translateY(-1px);
}

.rating-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.rating-page-gap {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  color: var(--muted);
  font-weight: 820;
}

.wide-button {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 70%;
  min-height: 48px;
  margin: 24px auto 0;
  padding: 10px 18px;
  font-weight: 780;
}

.methodology-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: clamp(28px, 4vw, 58px);
}

.site-footer {
  padding: 0 0 clamp(30px, 5vw, 70px);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0 0;
  border-top: 1px solid rgba(94, 151, 184, 0.22);
}

.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.footer-brand img {
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.16));
}

.footer-brand span span {
  color: var(--cyan);
}

.footer-brand small {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.74rem;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  color: rgba(158, 179, 199, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.footer-copy {
  color: rgba(158, 179, 199, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.methodology-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.about-method-panel {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  align-items: stretch;
}

.score-method-panel {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  align-items: stretch;
}

.score-method-panel .methodology-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
}

.bot-status-panel {
  display: grid;
  gap: 14px;
}

.methodology-panel p,
.bot-status-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.methodology-copy > .section-heading {
  margin-bottom: 16px;
}

.methodology-copy .section-heading + p,
.methodology-copy > p + p {
  margin-top: 10px;
}

.methodology-points {
  display: grid;
  gap: 8px;
  align-content: center;
}

.methodology-points span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(248, 250, 252, 0.82);
  font-weight: 720;
}

.methodology-points i {
  color: var(--cyan);
  font-size: 1.28rem;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.project-columns span {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 148px;
  padding: 14px;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: rgba(2, 12, 22, 0.36);
  border: 1px solid rgba(94, 151, 184, 0.22);
  border-radius: 8px;
}

.project-columns i {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-inline: auto;
  color: var(--cyan);
  font-size: 3rem;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.3));
}

.project-columns strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.98rem;
  font-weight: 860;
  text-transform: uppercase;
}

.project-columns small {
  color: var(--muted);
  line-height: 1.42;
}

.methodology-side {
  display: grid;
  gap: 10px;
}

.scale-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scale-list span {
  padding: 12px;
  color: rgba(248, 250, 252, 0.82);
  background: rgba(2, 12, 22, 0.36);
  border: 1px solid rgba(94, 151, 184, 0.2);
  border-radius: 8px;
}

.scale-list strong {
  display: block;
  color: var(--yellow);
}

.method-formula {
  padding: 14px;
  background: rgba(2, 12, 22, 0.32);
  border: 1px solid rgba(94, 151, 184, 0.2);
  border-radius: 8px;
}

.method-formula strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.88rem;
  font-weight: 860;
  text-transform: uppercase;
}

.score-infographic {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 10px;
}

.score-core {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(56, 189, 248, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(2, 12, 22, 0.52), rgba(2, 12, 22, 0.24));
  border: 1px solid rgba(94, 151, 184, 0.22);
  border-radius: 8px;
  animation: scoreCorePulse 4.8s ease-in-out infinite;
}

.score-orbit {
  position: absolute;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  animation: scoreOrbit 9s linear infinite;
}

.score-orbit::before,
.score-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

.score-orbit::before {
  top: 16px;
  right: 18px;
}

.score-orbit::after {
  bottom: 18px;
  left: 16px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 41, 41, 0.72);
}

.score-number {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-number strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.3rem, 3.7vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.score-number span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.score-factors {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 1fr;
  gap: 8px;
}

.score-factors span,
.score-scale span {
  position: relative;
  overflow: hidden;
  background: rgba(2, 12, 22, 0.36);
  border: 1px solid rgba(94, 151, 184, 0.2);
  border-radius: 8px;
}

.score-factors span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 10px 14px;
  animation: scoreFactorWake 4.8s ease-in-out infinite;
}

.score-factors span:nth-child(2) {
  animation-delay: 0.45s;
}

.score-factors span:nth-child(3) {
  animation-delay: 0.9s;
}

.score-factors i {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0;
  color: var(--cyan);
  font-size: 2.55rem;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.34));
}

.score-factors strong,
.score-scale strong {
  display: block;
  color: rgba(248, 250, 252, 0.92);
}

.score-factors small,
.score-scale small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.score-scale {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.score-scale span {
  min-height: 54px;
  padding: 10px 12px;
}

.score-scale span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--yellow),
    var(--orange),
    var(--red)
  );
  animation: scaleFill 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--level) * 8ms);
}

.score-scale strong {
  color: var(--yellow);
  font-size: 1.02rem;
}

.bot-infographic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 46px 14px 14px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.08),
      transparent 18% 82%,
      rgba(255, 135, 68, 0.08)
    ),
    rgba(2, 12, 22, 0.28);
  border: 1px solid rgba(94, 151, 184, 0.2);
  border-radius: 8px;
}

.bot-live {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 999px;
  animation: liveBeat 1.55s ease-in-out infinite;
}

.bot-flow {
  position: absolute;
  top: 104px;
  left: 28px;
  right: 28px;
  z-index: 2;
  height: 5px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.06),
      rgba(56, 189, 248, 0.58),
      rgba(255, 200, 97, 0.52),
      rgba(255, 135, 68, 0.08)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 20px,
      rgba(255, 255, 255, 0.12) 20px 23px
    );
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.bot-flow::before,
.bot-flow::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(56, 189, 248, 0.42);
  border-radius: 999px;
  background: #061724;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.bot-flow::before {
  left: 0;
}

.bot-flow::after {
  right: 0;
  border-color: rgba(255, 200, 97, 0.36);
}

.data-pulse {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow:
    0 0 0 7px rgba(56, 189, 248, 0.1),
    0 0 24px rgba(56, 189, 248, 0.86);
  animation: packetRun 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.pulse-b {
  width: 14px;
  height: 14px;
  background: var(--yellow);
  box-shadow:
    0 0 0 6px rgba(255, 200, 97, 0.1),
    0 0 22px rgba(255, 200, 97, 0.68);
  animation-delay: 1.45s;
}

.pulse-c {
  width: 16px;
  height: 16px;
  background: var(--orange);
  box-shadow:
    0 0 0 6px rgba(255, 135, 68, 0.1),
    0 0 22px rgba(255, 135, 68, 0.64);
  animation-delay: 2.85s;
}

.bot-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 132px;
  padding: 14px 16px 16px;
  text-align: center;
  background: #061724;
  border: 1px solid rgba(94, 151, 184, 0.24);
  border-radius: 8px;
}

.bot-step i {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 76px;
  margin: 0 auto 14px;
  color: var(--cyan);
  font-size: 3.08rem;
  background: #07314a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 11px;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
  animation: botWake 4.8s ease-in-out infinite;
}

.bot-step-filter i {
  animation-delay: 0.55s;
}

.bot-step-analyze i {
  animation-delay: 1.1s;
}

.bot-step-update i {
  animation-delay: 1.65s;
}

.bot-step strong {
  position: relative;
  z-index: 3;
  display: block;
  margin-bottom: 6px;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.92rem;
  font-weight: 860;
  text-transform: uppercase;
}

.bot-step span {
  position: relative;
  z-index: 3;
  display: block;
  color: var(--muted);
  line-height: 1.42;
}

.form-select,
.form-control {
  color: var(--text);
  background-color: #061724;
  border-color: var(--border);
  border-radius: 8px;
}

.form-control::placeholder {
  color: rgba(158, 179, 199, 0.58);
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  background-color: #061724;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.12);
}

.filter-drawer {
  color: var(--text);
  background: #061724;
  border-left: 1px solid var(--border);
}

.filter-field {
  display: block;
  margin-bottom: 18px;
}

.filter-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 780;
}

.leaflet-container {
  background: #061724;
  font-family: inherit;
}

.leaflet-control-attribution {
  display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--text);
  background: #061724;
  border: 1px solid var(--border);
}

.popup-title {
  margin-bottom: 6px;
  font-weight: 850;
}

.popup-row {
  color: var(--muted);
  font-size: 0.84rem;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 86px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.risk-low {
  color: var(--green);
  background: rgba(155, 210, 101, 0.14);
}
.risk-medium {
  color: var(--yellow);
  background: rgba(255, 200, 97, 0.14);
}
.risk-high {
  color: var(--orange);
  background: rgba(255, 135, 68, 0.14);
}
.risk-critical {
  color: #ff6b6b;
  background: rgba(239, 41, 41, 0.16);
}
.risk-none {
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.11);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.evidence-modal {
  color: var(--text);
  background: #061724;
  border: 1px solid var(--border);
}

.modal-backdrop {
  z-index: 3000;
}

.evidence-modal-shell {
  z-index: 3010;
}

.evidence-modal-shell.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.evidence-modal-shell .modal-dialog {
  width: min(1140px, calc(100vw - 2rem));
  max-width: min(1140px, calc(100vw - 2rem));
  min-height: 0;
  margin: 1rem;
  transform: none !important;
}

.evidence-modal-shell .modal-content {
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.evidence-modal-shell .modal-body {
  overflow: auto;
}

.modal-header {
  border-color: var(--border);
}

.modal-title {
  font-weight: 850;
}

.risk-profile {
  display: grid;
  gap: 16px;
}

.risk-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(3, 17, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.risk-hero::before {
  position: absolute;
  inset: -35% 45% auto -12%;
  height: 180px;
  content: "";
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--risk-color) 34%, transparent),
    transparent 68%
  );
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

.risk-gauge {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #061724 0 56%, transparent 57%),
    conic-gradient(
      var(--risk-color) calc(var(--risk-score) * 1%),
      rgba(148, 163, 184, 0.18) 0
    );
  box-shadow: 0 0 42px color-mix(in srgb, var(--risk-color) 24%, transparent);
  position: relative;
}

.risk-gauge::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 50%;
}

.risk-gauge span {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
}

.risk-gauge small {
  margin-top: -34px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 850;
}

.risk-hero-copy {
  position: relative;
  z-index: 1;
}

.risk-hero-copy strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.risk-hero-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.institution-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.institution-summary div {
  padding: 14px;
  background: rgba(3, 17, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.institution-summary span,
.modal-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.institution-summary strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  line-height: 1.28;
}

@media (max-width: 1540px) {
  .map-panel {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1181px) and (max-width: 1540px) {
  .score-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .sidebar {
    min-height: auto;
  }

  .side-nav {
    justify-content: flex-start;
  }

  .dashboard-grid,
  .metric-grid,
  .methodology-panel {
    grid-template-columns: 1fr 1fr;
  }

  .about-method-panel,
  .score-method-panel {
    grid-template-columns: 1fr;
  }

  .project-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score-method-panel .methodology-copy {
    grid-column: 1;
    grid-row: auto;
    max-width: 760px;
  }

  .map-panel {
    grid-column: 1 / -1;
  }

  .latest-fact {
    grid-template-columns: 1fr;
  }

  .latest-signal-card {
    min-height: 180px;
  }

  .topic-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-pie {
    width: min(100%, 300px);
  }

  .score-infographic {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .score-core,
  .score-factors,
  .score-scale {
    grid-column: 1;
    grid-row: auto;
  }

  .score-core {
    min-height: 190px;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding: 0 0 10px;
  }

  .topbar,
  .topbar-actions,
  .latest-fact,
  .responsible-card,
  .dashboard-grid,
  .metric-grid,
  .methodology-panel,
  .about-method-panel,
  .score-method-panel,
  .scale-list,
  .modal-fact-grid,
  .risk-hero,
  .institution-summary {
    grid-template-columns: 1fr;
  }

  .bot-infographic {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .score-infographic,
  .score-factors,
  .score-scale {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .score-core {
    min-height: 180px;
  }

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

  .project-columns span {
    min-height: 138px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
  }

  .project-columns i {
    grid-row: 1 / span 2;
  }

  .score-method-panel .methodology-copy {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .score-factors span {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 84px;
  }

  .topics-panel .panel-header {
    align-items: center;
    flex-direction: row;
  }

  .topic-board {
    grid-template-columns: 1fr;
  }

  .topic-pie-panel {
    min-height: 190px;
    padding: 12px;
  }

  .topic-pie {
    width: min(62vw, 180px);
  }

  .topic-month-controls button {
    width: 36px;
    height: 36px;
  }

  .bot-flow {
    top: 50px;
    bottom: 18px;
    left: 50%;
    right: auto;
    width: 5px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(56, 189, 248, 0.04),
      rgba(56, 189, 248, 0.42),
      rgba(255, 200, 97, 0.38),
      rgba(255, 135, 68, 0.05)
    );
  }

  .bot-flow::before,
  .bot-flow::after {
    left: -7px;
  }

  .bot-flow::after {
    right: auto;
    top: auto;
    bottom: -4px;
  }

  .data-pulse {
    top: 4%;
    left: 50%;
    animation-name: packetRunMobile;
  }

  .risk-hero {
    padding: 14px;
  }

  .risk-gauge {
    width: 128px;
    height: 128px;
  }

  .topbar,
  .topbar-actions {
    display: grid;
  }

  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .topbar-actions .chip-button:first-child {
    grid-column: auto;
  }

  .nav-container {
    flex-wrap: wrap;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand {
    min-height: 50px;
    width: auto;
    max-width: 100%;
  }

  .nav-toggle {
    display: grid;
  }

  .side-nav {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
  }

  .side-nav:not(.show) {
    display: none;
  }

  .side-nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 0 2px;
  }

  .side-nav a {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.96rem;
  }

  .sidebar-note {
    display: none;
  }

  .sidebar-caption {
    display: none;
  }

  .map-stage {
    height: max(540px, calc(100vh - 214px));
    height: max(540px, calc(100svh - 214px));
  }

  .map-hero {
    top: 12px;
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    max-width: calc(100% - 24px);
  }

  .map-hero h1 {
    font-size: 1.18rem;
    line-height: 1.08;
  }

  .map-actions {
    top: 64px;
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    max-width: min(284px, calc(100% - 24px));
  }

  .map-actions .chip-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .map-period {
    max-width: min(230px, calc(100vw - 118px));
  }

  .map-filter {
    width: 36px;
    flex: 0 0 36px;
  }

  .map-tools {
    right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    bottom: 12px;
  }

  .map-legend {
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    bottom: 12px;
    max-width: calc(100% - 82px);
  }

  .map-stage::after {
    display: none;
  }

  .timeline-month-marks {
    margin-inline: 4px;
  }

  .timeline-ticks {
    height: 34px;
    margin-inline: 4px;
    font-size: 0.68rem;
  }

  .timeline-ticks .start,
  .timeline-ticks .end {
    top: 17px;
  }

  .timeline-bar {
    grid-template-columns: 70px 34px minmax(0, 1fr);
  }

  .timeline-cta span {
    display: inline-flex;
    max-width: 122px;
    padding: 3px 6px;
    font-size: 0.52rem;
  }

  .play-button {
    width: 58px;
    height: 58px;
  }

  .topics-panel,
  .facts-panel,
  .responsible-panel,
  .rating-panel {
    grid-column: 1 / -1;
  }

  .topic-row,
  .rating-row {
    grid-template-columns: 36px 1fr;
  }

  .topic-row .bar,
  .topic-row strong,
  .rating-row .bar,
  .rating-row > strong {
    grid-column: 2;
  }

  .rating-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .rating-page-controls {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .footer-inner p {
    max-width: none;
  }

  .footer-copy {
    white-space: normal;
  }
}
