:root {
  color-scheme: dark;
  --night: #070a12;
  --graphite: #0b1020;
  --asphalt: #111827;
  --cobalt: #0047ff;
  --lime: #b7ff2a;
  --persimmon: #ff5a36;
  --cloud: #f5f3ea;
  --cyan: #39d9d9;
  --muted: #99a3b7;
  --border: rgba(245, 243, 234, 0.14);
  --panel: rgba(11, 16, 32, 0.78);
  --panel-strong: rgba(8, 12, 22, 0.92);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
  color: var(--cloud);
  font-family:
    Inter, Manrope, "IBM Plex Sans", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
  overflow-y: hidden;
}

button,
input,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.app-shell {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(57, 217, 217, 0.08), transparent 26%),
    linear-gradient(135deg, #070a12 0%, #0b1020 52%, #10131a 100%);
}

.site-loading-bar {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--cyan));
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(57, 217, 217, 0.42);
  transform-origin: left center;
  animation: loadingSweep 900ms ease-in-out infinite;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-loaded .site-loading-bar {
  opacity: 0;
  transform: scaleX(0);
  pointer-events: none;
}

@keyframes loadingSweep {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 220% 0;
  }
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(172px, 238px) minmax(420px, 640px) minmax(390px, 1fr);
  gap: 10px;
  align-items: center;
  height: 72px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.94), rgba(7, 10, 18, 0.72));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition:
    height 180ms ease,
    padding 180ms ease,
    background 180ms ease;
}

body.is-scrolled .topbar,
body.is-footer-visible .topbar {
  height: 42px;
  padding-top: 5px;
  padding-bottom: 5px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(7, 10, 18, 0.84));
}

body.is-scrolled .brand-mark,
body.is-footer-visible .brand-mark {
  width: 30px;
  height: 30px;
}

body.is-scrolled .brand-mark svg,
body.is-footer-visible .brand-mark svg {
  width: 24px;
  height: 24px;
}

body.is-scrolled .brand small,
body.is-footer-visible .brand small {
  display: none;
}

body.is-scrolled .search-wrap input,
body.is-footer-visible .search-wrap input,
body.is-scrolled .header-actions a,
body.is-footer-visible .header-actions a {
  height: 30px;
}

body.is-scrolled .header-actions a,
body.is-footer-visible .header-actions a {
  padding: 0 8px;
  font-size: 12px;
}

body.is-scrolled .mode-button,
body.is-footer-visible .mode-button {
  min-height: 30px;
  height: 30px;
  padding: 0 13px;
}

body.is-scrolled .mode-button span,
body.is-footer-visible .mode-button span {
  font-size: 11px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(183, 255, 42, 0.5);
  background:
    radial-gradient(circle at 32% 26%, rgba(245, 243, 234, 0.16), transparent 34%),
    rgba(183, 255, 42, 0.09);
  color: var(--lime);
  border-radius: 8px;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 0 32px rgba(183, 255, 42, 0.16);
  transition:
    width 180ms ease,
    height 180ms ease;
}

.brand-mark svg {
  width: 33px;
  height: 33px;
  transition:
    width 180ms ease,
    height 180ms ease;
}

.content-body .brand-mark {
  width: 42px;
  height: 42px;
}

.content-body .brand-mark svg {
  width: 33px;
  height: 33px;
}

.brand-bubble {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-bubble-main {
  stroke-width: 2.6;
}

.brand-bubble-ghost {
  opacity: 0.58;
  stroke-width: 2;
}

.brand-wave {
  fill: none;
  stroke: var(--cloud);
  stroke-linecap: round;
  stroke-width: 2.4;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.header-title {
  margin: 0;
  color: var(--cloud);
  font-size: 18px;
  line-height: 1;
  font-weight: 740;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.search-wrap::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(216, 222, 235, 0.72);
  border-radius: 50%;
  transform: translateY(-55%);
  box-shadow: 0 0 14px rgba(57, 217, 217, 0.22);
  pointer-events: none;
}

.search-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 23px;
  top: calc(50% + 5px);
  width: 7px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(216, 222, 235, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(245, 243, 234, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 243, 234, 0.055), rgba(245, 243, 234, 0.025)),
    rgba(7, 10, 18, 0.72);
  color: var(--cloud);
  padding: 0 14px 0 38px;
  outline: none;
  transition:
    height 180ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
  box-shadow:
    inset 0 -1px 0 rgba(57, 217, 217, 0.12),
    0 0 0 1px rgba(7, 10, 18, 0.18);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: rgba(216, 222, 235, 0.48);
}

.search-wrap input:focus {
  border-color: rgba(57, 217, 217, 0.5);
  background:
    linear-gradient(180deg, rgba(57, 217, 217, 0.085), rgba(245, 243, 234, 0.035)),
    rgba(7, 10, 18, 0.82);
  box-shadow:
    inset 0 -1px 0 rgba(183, 255, 42, 0.2),
    0 0 0 3px rgba(57, 217, 217, 0.09),
    0 0 24px rgba(57, 217, 217, 0.1);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 5px;
  border: 1px solid rgba(245, 243, 234, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(11, 16, 32, 0.98)),
    rgba(7, 10, 18, 0.96);
  box-shadow:
    var(--shadow),
    0 0 22px rgba(57, 217, 217, 0.08);
  backdrop-filter: blur(18px);
}

.search-results button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cloud);
  text-align: left;
  padding: 8px 10px 8px 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: rgba(57, 217, 217, 0.1);
  border-left-color: var(--cyan);
  outline: none;
}

.search-results span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #d9deea;
  background: rgba(245, 243, 234, 0.04);
  font-size: 13px;
  transition: height 180ms ease;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  border-color: rgba(183, 255, 42, 0.46);
  color: var(--cloud);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(480px, 35vw, 520px);
  gap: 14px;
  height: 100vh;
  padding: 86px 14px 14px;
  perspective: 1000px;
  transition: padding 180ms ease;
}

@media (min-width: 821px) {
  body.is-scrolled .workspace,
  body.is-footer-visible .workspace {
    padding-top: 56px;
    padding-bottom: 44px;
  }
}

.mode-rail,
.detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.mode-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  transform: none;
}

.mode-button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(57, 217, 217, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(57, 217, 217, 0.08), rgba(7, 10, 18, 0.3));
  padding: 0 13px;
  text-align: center;
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.mode-button:hover,
.mode-button:focus-visible,
.mode-button.is-active {
  border-color: rgba(57, 217, 217, 0.45);
  background: rgba(57, 217, 217, 0.11);
  outline: none;
}

.mode-button.is-active {
  box-shadow:
    inset 0 -2px 0 var(--cyan),
    0 0 16px rgba(57, 217, 217, 0.16);
}

.mode-button span,
.mode-button small {
  display: block;
}

.mode-button span {
  font-weight: 740;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.mode-button small {
  display: none;
}

.map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #070a12;
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-eyebrow {
  position: absolute;
  right: 40px;
  margin-top: 45px;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-modes {
  display: none;
}

.map-frame {
  position: absolute;
  inset: 0;
}

.maplibre-map {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: #070a12;
  z-index: 1;
}

.map-stage.is-maplibre .maplibre-map {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.map-stage.is-maplibre #europe-map {
  opacity: 0;
  pointer-events: none;
}

.maplibregl-ctrl-bottom-right {
  right: 16px;
  bottom: 16px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(245, 243, 234, 0.1);
  background-color: transparent;
  color: var(--cloud);
}

.maplibregl-ctrl-group button:last-child {
  border-bottom: 0;
}

.maplibregl-ctrl-group button:hover {
  background: rgba(57, 217, 217, 0.14);
}

.maplibregl-ctrl button .maplibregl-ctrl-icon {
  filter: invert(1) sepia(0.1) saturate(0.8);
  opacity: 0.88;
}

#europe-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.map-lat-lines path {
  fill: none;
  stroke: rgba(245, 243, 234, 0.07);
  stroke-width: 1;
  stroke-dasharray: 4 12;
}

.map-region {
  stroke: rgba(245, 243, 234, 0.34);
  stroke-width: 1.6;
  cursor: pointer;
  opacity: 0.9;
  transition:
    fill 160ms ease,
    opacity 120ms ease,
    stroke 120ms ease,
    filter 120ms ease;
}

.country-boundary {
  fill: none;
  stroke: rgba(57, 217, 217, 0.82);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(57, 217, 217, 0.65));
  mix-blend-mode: screen;
}

.map-region:hover,
.map-region:focus-visible {
  opacity: 1;
  stroke: var(--cloud);
  filter: url(#region-glow);
  outline: none;
}

.map-region.is-selected {
  opacity: 1;
  stroke: var(--lime);
  stroke-width: 2.5;
  filter: url(#region-glow);
}

.map-region.is-low-confidence {
  stroke-dasharray: 6 4;
}

.map-region[data-id^="EE"]:not(.is-selected),
.map-region[data-id^="LV"]:not(.is-selected),
.map-region[data-id^="LT"]:not(.is-selected),
.map-region[data-id^="UK"]:not(.is-selected),
.map-region[data-id^="CY"]:not(.is-selected) {
  stroke: rgba(245, 243, 234, 0.52);
  stroke-width: 1.8;
}

.map-label {
  fill: rgba(245, 243, 234, 0.76);
  font-family: "IBM Plex Mono", "JetBrains Mono", "Cascadia Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.map-tooltip {
  position: fixed;
  z-index: 50;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 11px;
  border: 1px solid rgba(57, 217, 217, 0.32);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.94);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.map-tooltip strong,
.map-tooltip span,
.map-tooltip small {
  display: block;
}

.map-tooltip span {
  margin-top: 5px;
  color: var(--lime);
  font-size: 13px;
}

.map-tooltip small {
  margin-top: 3px;
  color: var(--muted);
}

.legend-bar {
  position: absolute;
  z-index: 5;
  top: 6px;
  right: 12px;
  bottom: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 104px;
  max-height: calc(100% - 12px);
  margin-left: 0;
  padding: 9px 7px;
  border: 1px solid rgba(57, 217, 217, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.66);
  backdrop-filter: blur(14px);
  transform: none;
  overflow: hidden;
}

.site-footer {
  position: fixed;
  z-index: 22;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  height: clamp(36px, 4vh, 48px);
  padding: 0 20px;
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.96);
  color: var(--muted);
  font-size: 12px;
  transform: translateY(100%);
  transition: transform 180ms ease;
  backdrop-filter: blur(18px);
}

body.is-footer-visible .site-footer {
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
}

body.content-body {
  overflow-x: hidden;
  overflow-y: auto;
}

body.content-body .app-shell {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

body.content-body .topbar {
  height: 64px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.content-page {
  min-height: 100vh;
  padding: 112px 18px 32px;
}

.content-card {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 16, 32, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.content-card h2 {
  margin: 8px 0 16px;
  font-size: 30px;
  line-height: 1.1;
}

.content-card h3 {
  margin: 22px 0 8px;
  color: var(--cyan);
  font-size: 16px;
}

.content-card p {
  margin: 0 0 12px;
  color: #d9deea;
  line-height: 1.65;
}

.footer-release {
  justify-self: start;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Cascadia Mono", monospace;
}

.footer-release a {
  color: var(--lime);
  text-decoration: none;
}

.footer-release a:hover,
.footer-release a:focus-visible {
  color: var(--cloud);
  outline: none;
}

.footer-privacy {
  justify-self: center;
  color: #d9deea;
}

.footer-share {
  justify-self: end;
  height: 28px;
  border: 1px solid rgba(57, 217, 217, 0.28);
  border-radius: var(--radius);
  background: rgba(57, 217, 217, 0.08);
  color: var(--cloud);
  padding: 0 12px;
  cursor: pointer;
}

.footer-share:hover,
.footer-share:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.legend-title {
  display: block;
  margin: -9px -7px 8px;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.08);
  padding: 7px;
  color: var(--cloud);
  text-align: center;
  font-weight: 760;
  font-size: 11px;
  line-height: 1.2;
}

.legend-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.legend-scale {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.legend-scale span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d8deeb;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
}

.legend-scale i {
  flex: 0 0 auto;
  width: 14px;
  height: 9px;
  border: 1px solid rgba(245, 243, 234, 0.16);
  border-radius: 3px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.signal-strip span {
  min-width: 0;
  border: 1px solid rgba(245, 243, 234, 0.1);
  border-radius: 8px;
  overflow: hidden;
  padding: 0 9px 8px;
  background: rgba(245, 243, 234, 0.035);
  color: var(--cloud);
  font-size: 12px;
  line-height: 1.3;
}

.signal-strip b {
  display: block;
  margin: 0 -9px 7px;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.08);
  color: var(--cloud);
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.coverage-strip {
  display: grid;
  grid-template-columns: minmax(82px, 0.8fr) minmax(88px, 0.9fr) minmax(0, 1.8fr);
  gap: 8px;
  margin-top: -4px;
}

.coverage-strip span {
  min-width: 0;
  border: 1px solid rgba(57, 217, 217, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(57, 217, 217, 0.045);
  color: #d8deeb;
  font-size: 12px;
  line-height: 1.35;
}

.coverage-strip b {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.detail-panel {
  overflow: hidden;
  padding: 14px;
}

#region-card {
  transform: rotateY(-7.5deg);
  transform-origin: center left;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

#panel-kicker {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(183, 255, 42, 0.45);
}

.region-card-inner {
  display: grid;
  gap: 9px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.region-title-row {
  display: block;
}

.region-title-row h2 {
  margin: 7px 0 12px;
  font-size: 24px;
  line-height: 1.05;
}

.region-title-row p {
  margin: 0;
  color: var(--muted);
}

.panel-meta-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
}

.panel-meta-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid rgba(57, 217, 217, 0.18);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(57, 217, 217, 0.055);
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  cursor: help;
}

.panel-header-chips {
  margin-left: auto;
}

.panel-header-eyebrow {
  flex: 0 0 100%;
  margin-left: 16px;
}

.panel-meta-chips span:hover,
.panel-meta-chips span:focus-visible {
  border-color: rgba(57, 217, 217, 0.46);
  color: var(--cloud);
}

.primary-readout,
.facts-grid > div,
.spoken-section,
.source-line {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(245, 243, 234, 0.045);
}

.primary-readout {
  overflow: hidden;
  padding: 0 10px 9px;
}

.primary-readout span {
  display: block;
  margin: 0 -10px 8px;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.08);
  color: var(--cloud);
  padding: 7px 10px;
  font-size: 12px;
}

.primary-readout strong {
  display: block;
  margin-top: 0;
  color: var(--lime);
  font-size: 16px;
  line-height: 1.25;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.insight-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(57, 217, 217, 0.065), rgba(245, 243, 234, 0.025));
  overflow: hidden;
  padding: 0 9px 9px;
}

.insight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -9px 7px;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.08);
  padding: 7px 9px;
}

.insight-head span {
  min-width: 0;
  color: var(--cloud);
  font-size: 11px;
  white-space: nowrap;
}

.insight-head b {
  color: var(--lime);
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.metric-bars {
  display: grid;
  gap: 5px;
}

.metric-bar {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) minmax(46px, 0.7fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-size: 10px;
}

.metric-bar span {
  overflow: hidden;
  color: #d8deeb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-bar i {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 243, 234, 0.1);
}

.metric-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 10px rgba(57, 217, 217, 0.25);
}

.metric-bar i.is-negative::before {
  background: linear-gradient(90deg, #ff7c8f, #ffb84d);
}

.metric-bar i.is-positive::before {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.metric-bar b {
  color: #f5f3ea;
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.russian-card .metric-bars {
  min-width: 0;
}

.russian-card .metric-bar {
  grid-template-columns: minmax(48px, 0.95fr) minmax(34px, 0.75fr) minmax(28px, auto);
  gap: 5px;
}

.compact-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

.facts-grid > div {
  overflow: hidden;
  padding: 0 8px 8px;
  min-width: 0;
}

.facts-grid dt {
  margin: 0 -8px 7px;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.08);
  color: var(--cloud);
  padding: 7px 8px;
  font-size: 11px;
}

.facts-grid dd {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spoken-section {
  padding: 12px;
}

.spoken-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.spoken-section ul {
  margin: 0;
  padding-left: 18px;
  color: #d8deeb;
  line-height: 1.45;
}

.language-share-list {
  display: grid;
  gap: 7px;
  padding-left: 0;
  list-style: none;
}

.language-share-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(245, 243, 234, 0.08);
  padding-bottom: 6px;
}

.language-share-list b {
  color: var(--lime);
  font-weight: 760;
}

.source-line {
  display: none;
  gap: 5px;
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mobile-sheet {
  display: none;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(160px, 220px) minmax(320px, 1fr) minmax(330px, auto);
  }

  .mode-rail {
    justify-self: end;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 39vw);
    gap: 10px;
  }

  .detail-panel {
    display: block;
  }

  .mobile-sheet {
    position: fixed;
    z-index: 25;
    left: 10px;
    right: 10px;
    bottom: 35px;
    display: none;
    max-height: 40vh;
    overflow: hidden auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(7, 10, 18, 0.92);
    box-shadow: var(--shadow);
    transform: translateY(calc(100% - 64px));
    transition: transform 180ms ease;
    touch-action: pan-y;
  }

  .mobile-sheet:not(.is-open) {
    touch-action: none;
  }

  .mobile-sheet.is-open {
    transform: translateY(0);
    max-height: 86vh;
  }

  .sheet-handle {
    display: block;
    width: 56px;
    height: 28px;
    margin: 0 auto 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: none;
  }

  .sheet-handle::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 10px auto;
    border-radius: 999px;
    background: rgba(245, 243, 234, 0.42);
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    padding: 10px;
  }

  .brand small,
  .mode-rail,
  .header-actions {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .search-wrap input {
    height: 44px;
  }

  .workspace {
    display: block;
    height: 100vh;
    padding: 116px 8px 8px;
  }

  .detail-panel {
    display: none;
    transform: none;
  }

  #region-card {
    transform: none;
  }

  .mobile-sheet {
    position: fixed;
    z-index: 25;
    left: 10px;
    right: 10px;
    bottom: 35px;
    display: block;
    max-height: 40vh;
    overflow: hidden auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(7, 10, 18, 0.92);
    box-shadow: var(--shadow);
    transform: translateY(calc(100% - 64px));
    transition: transform 180ms ease;
    touch-action: pan-y;
  }

  .mobile-sheet:not(.is-open) {
    touch-action: none;
  }

  .mobile-sheet.is-open {
    transform: translateY(0);
    max-height: 86vh;
  }

  .sheet-handle {
    display: block;
    width: 56px;
    height: 28px;
    margin: 0 auto 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: none;
  }

  .sheet-handle::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 10px auto;
    border-radius: 999px;
    background: rgba(245, 243, 234, 0.42);
  }

  .map-stage {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 124px);
  }

  .mobile-modes {
    position: relative;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 8px 8px 6px;
  }

  .mode-chip {
    min-width: 0;
    min-height: 38px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(7, 10, 18, 0.78);
    padding: 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .map-frame {
    position: relative;
    min-height: 0;
  }

  .mode-chip.is-active {
    border-color: var(--cyan);
    background: rgba(57, 217, 217, 0.14);
  }

  .legend-bar {
    top: 100px;
    right: 8px;
    bottom: auto;
    width: 96px;
    max-height: 34vh;
    display: flex;
    padding: 9px 8px;
    transform: none;
  }

  .legend-scale {
    justify-content: flex-start;
    margin-top: 0;
    max-height: 28vh;
    overflow: hidden;
  }

  .legend-scale span {
    min-width: 0;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
  }

  .map-label {
    font-size: 15px;
  }

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

  .signal-strip,
  .coverage-strip {
    grid-template-columns: 1fr 1fr;
  }

  .coverage-strip span:last-child {
    grid-column: 1 / -1;
  }
}

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