body.map-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--map-bg);
}

.map-header {
  min-height: 46px;
  gap: 10px;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 1000;
}

.map-brand {
  min-width: 0;
}

.map-brand .site-brand-mark {
  font-size: 16px;
  animation: spin 8s linear infinite;
}

.map-brand .site-brand-text {
  font-size: 13px;
}

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

.hstats {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  flex-shrink: 0;
}

.sp {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10px;
  white-space: nowrap;
}

.sp-link {
  text-decoration: none;
  color: inherit;
}

.sp-link:hover {
  background: #eff6ff;
  border-color: var(--acc);
}

.sd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sn {
  font-weight: 700;
  color: var(--txt);
}

.sl {
  color: var(--mut);
}

.src-b,
.legal-link,
#data-status {
  font-size: 9px;
  color: var(--mut);
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

.legal-link {
  text-decoration: none;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--subtle-hover-text);
  background: var(--subtle-hover-bg);
  border-color: var(--subtle-hover-border);
}

.mob-btn,
.panel-visibility-btn {
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brd);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: var(--control-bg);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  cursor: pointer;
  box-shadow: var(--control-shadow);
}

.map-menu-anchor {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.mob-btn {
  margin-left: 0;
}

.mob-btn:hover,
.panel-visibility-btn:hover {
  background: var(--control-hover-bg);
  border-color: var(--control-hover-border);
  color: var(--control-hover-text);
}

.map-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  width: 230px;
  padding: 7px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: var(--surf);
  color: var(--txt);
  box-shadow: var(--shadow-panel);
}

.map-action-menu[hidden] {
  display: none;
}

.map-menu-section + .map-menu-section {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--brd);
}

.map-menu-title {
  padding: 3px 7px 5px;
  color: var(--mut);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.map-menu-item {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 8px;
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
}

.map-menu-item:hover,
.map-menu-item:focus-visible {
  background: var(--surf2);
  border-color: var(--brd);
}

.map-menu-item[aria-checked="true"]::after {
  content: "✓";
  color: var(--acc);
  font-weight: 800;
}

#data-status {
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

#data-status:hover {
  background: #eff6ff;
  border-color: var(--acc);
}

#data-status.ok {
  color: var(--op);
}

#data-status.err {
  color: var(--off);
}

.main {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sidebar {
  position: relative;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surf);
  border-right: 1px solid var(--brd);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brd) var(--surf);
  transition: width 0.25s, min-width 0.25s, transform 0.25s, border-color 0.25s;
  z-index: 900;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--surf);
}

.sidebar::-webkit-scrollbar-thumb {
  border: 2px solid var(--surf);
  border-radius: 999px;
  background: var(--brd);
}

.sidebar::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  cursor: ew-resize;
  z-index: 4;
  touch-action: none;
}

.sidebar-resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  right: 4px;
  width: 2px;
  height: 100%;
  background: transparent;
  transition: background 0.15s;
}

.sidebar-resize-handle:hover::after,
.sidebar-resize-handle:focus-visible::after,
body.is-resizing-sidebar .sidebar-resize-handle::after {
  background: var(--resizer-hover);
}

body.is-resizing-sidebar {
  cursor: ew-resize;
  user-select: none;
}

body.is-resizing-sidebar .sidebar {
  transition: none;
}

.sidebar.is-hidden {
  width: 0;
  min-width: 0;
  border-right-color: transparent;
}

.ss {
  padding: 10px 12px;
  border-bottom: 1px solid var(--brd);
}

.sidebar-status-section {
  margin-top: auto;
  border-top: 1px solid var(--brd);
  border-bottom: none;
}

.st {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 8px;
}

.st-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.st-row .st {
  margin-bottom: 0;
}

.scope-toggle {
  border: 1px solid var(--brd);
  background: var(--surf2);
  color: var(--mut);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 8px;
  line-height: 1.4;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scope-toggle:hover {
  background: var(--surf);
}

.scope-toggle.on {
  border-color: var(--acc);
  color: #1d4ed8;
  background: #eff6ff;
}

.fg {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--brd);
  border-radius: 999px;
  padding: 4px 7px;
  cursor: pointer;
  color: var(--txt);
  font-family: var(--fm);
  font-size: 10px;
  text-align: center;
  transition: all 0.12s;
  min-height: 25px;
}

.fb:hover {
  background: var(--surf2);
}

.fb.active {
  background: #eff6ff;
  border-color: var(--acc);
  color: #1d4ed8;
}

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

.fc {
  margin-left: 0;
  font-size: 9px;
  color: var(--mut);
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 999px;
}

.sx {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: 5px;
  padding: 6px 9px;
  color: var(--txt);
  font-size: 11px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sx:focus {
  border-color: var(--acc);
  background: var(--surf);
}

.sx::placeholder {
  color: var(--mut);
}

.map-search {
  position: absolute;
  z-index: 650;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 40px));
  pointer-events: none;
}

.map-search-inner {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 6px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--brd);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
}

.map-search-input {
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 7px 9px;
}

.map-search-input:focus {
  background: transparent;
}

.map-search-clear {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.map-search-clear:hover {
  background: var(--surf2);
  border-color: var(--brd);
  color: var(--txt);
}

.country-filter-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.side-context {
  color: var(--txt);
  font-size: 11px;
  line-height: 1.5;
}

.side-context strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  color: var(--txt);
  margin-bottom: 2px;
}

.side-context span {
  display: block;
  color: var(--mut);
}

.side-context .side-time-active {
  display: inline;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.side-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  overflow: visible;
}

.side-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-country-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: currentColor;
  font-size: 9px;
  line-height: 1;
}

.side-country-chip:hover,
.side-country-chip:focus-visible {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
  outline: none;
}

.side-country-chip.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.24);
}

.side-country-chip.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.side-country-list.is-compact {
  gap: 4px;
}

.side-country-list.is-compact .side-country-chip {
  padding: 2px 7px;
  font-size: 10px;
}

.side-country-list.is-dense {
  gap: 3px;
}

.side-country-list.is-dense .side-country-chip {
  padding: 1px 6px;
  font-size: 9px;
}

.side-country-list.is-dense .side-country-chip:not(.is-active) span {
  display: none;
}

.year-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  margin-bottom: 8px;
}

.year-step {
  width: 100%;
  border: 1px solid var(--brd);
  border-radius: 10px;
  background: var(--surf2);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.year-step:hover {
  background: #eff6ff;
  border-color: #bfd2fb;
  color: #1d4ed8;
}

.year-step:disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--surf2);
  color: var(--mut);
  border-color: var(--brd);
}

.year-display-value {
  grid-column: span 2;
  width: 100%;
  border: 1px solid var(--brd);
  border-radius: 10px;
  background: var(--surf2);
  color: var(--txt);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 8px;
}

.year-display-value.is-time-active {
  background: #eaf2ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-size: 34px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.year-display-value:hover {
  background: #eff6ff;
  border-color: #bfd2fb;
  color: #1d4ed8;
}

.year-filter-native {
  display: none;
}

.year-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.year-quick-btn {
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: var(--surf2);
  color: var(--txt);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.year-quick-btn:hover {
  background: #eff6ff;
  border-color: #bfd2fb;
  color: #1d4ed8;
}

.year-quick-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 800;
}

.bp-bar .mini-reset {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 11px;
}

.year-note {
  margin: 10px 0 9px;
  font-size: 9px;
  color: var(--mut);
  line-height: 1.5;
}

.sel-hint {
  padding: 0 10px 6px;
  font-size: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mut);
  line-height: 1.4;
}

.pl {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brd) transparent;
}

.pl::-webkit-scrollbar {
  width: 3px;
}

.pl::-webkit-scrollbar-thumb {
  background: var(--brd);
  border-radius: 2px;
}

.pi {
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1px;
}

.pi:hover {
  background: var(--surf2);
}

.pi.is-active {
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.28);
}

.pi.is-active .pn,
.pi.is-active .pm {
  color: #fff;
}

.pi.is-active .pdot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pn {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--txt);
}

.pm {
  font-size: 9px;
  color: var(--mut);
  margin-top: 1px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.noR {
  text-align: center;
  color: var(--mut);
  font-size: 11px;
  padding: 20px;
}

.loading {
  text-align: center;
  color: var(--mut);
  font-size: 11px;
  padding: 30px 16px;
  line-height: 1.8;
}

#map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: #d4e6f1 !important;
}

.leaflet-control-zoom {
  border: 1px solid var(--brd) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  margin-top: 10px !important;
}

.leaflet-control-zoom a {
  background: var(--surf) !important;
  color: var(--txt) !important;
  border-color: var(--brd) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surf2) !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75) !important;
  color: var(--mut) !important;
  font-size: 8px !important;
  transform-origin: bottom right;
  transform: rotate(-90deg) translateX(100%);
  white-space: nowrap;
  position: absolute !important;
  bottom: 0;
  right: 0;
}

.map-link-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  margin-bottom: 8px !important;
}

.map-link-button {
  border: 1px solid var(--brd);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mut);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
}

.map-link-button:hover {
  background: #eff6ff;
  border-color: var(--acc);
  color: #1d4ed8;
}

.map-link-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.map-legend {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 7px 11px;
  z-index: 640;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  flex-wrap: nowrap;
  max-width: min(560px, calc(100% - 40px));
  overflow-x: auto;
  white-space: nowrap;
}

.li {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--mut);
  white-space: nowrap;
}

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

.time-layer {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  z-index: 720;
  display: block;
  width: min(920px, calc(100% - 170px));
  pointer-events: none;
}

.time-layer[hidden] {
  display: none;
}

.time-layer.nuclear-live-band {
  --nlb-bg: linear-gradient(90deg, #0f2c52 0%, #1c5b95 45%, #164572 100%);
  --nlb-text: #eff7ff;
  --nlb-muted: #c6dcf6;
  --nlb-update: #38bdf8;
  border: 1px solid rgba(102, 179, 235, 0.38);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(18, 58, 102, 0.22);
  padding: 4px 12px 7px;
  min-height: 28px;
}

.time-layer .nlb-row {
  min-height: 17px;
  justify-content: center;
  position: relative;
  padding-right: 92px;
}

.time-layer .nlb-pill {
  background: var(--nlb-update);
  color: #f8fdff;
}

.time-layer-copy {
  font-size: 11px;
  color: var(--nlb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
  text-align: center;
  max-width: 100%;
}

.time-layer-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  border: 1px solid rgba(198, 220, 246, 0.45);
  background: rgba(9, 27, 50, 0.28);
  color: var(--nlb-text);
  border-radius: 999px;
  padding: 2px 8px;
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.time-layer-clear:hover {
  background: rgba(9, 27, 50, 0.52);
  border-color: rgba(239, 247, 255, 0.7);
}

.time-layer-clear[hidden] {
  display: none;
}

/* ── Bottom Panel (replaces floating .info and .vp-info) ── */
.bottom-panel {
  position: absolute;
  --bp-content-max-width: 1040px;
  bottom: 0;
  left: 0;
  right: var(--map-control-lane-width);
  z-index: 600;
  background: var(--surf);
  border-top: 1px solid var(--brd);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, opacity 0.2s;
}

.bottom-panel[data-hidden="true"] {
  transform: translateY(calc(100% + 12px));
  opacity: 0;
  pointer-events: none;
}

.panel-visibility-btn {
  position: absolute;
  right: calc(var(--map-control-lane-width) + 8px);
  bottom: 12px;
  z-index: 650;
}

.panel-visibility-btn.is-panel-hidden {
  background: var(--control-hover-bg);
  border-color: var(--control-hover-border);
  color: var(--control-hover-text);
}

.bp-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--brd);
  border-radius: 2px;
  margin: 8px auto 0;
  flex-shrink: 0;
  cursor: ns-resize;
  touch-action: none;
  transition: background 0.12s, width 0.12s;
}

.bp-drag-handle:hover {
  width: 44px;
  background: var(--resizer-active);
}

.bp-bar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  padding-right: max(10px, calc(100% - var(--bp-content-max-width) + 14px));
  cursor: pointer;
  gap: 8px;
  flex-shrink: 0;
  user-select: none;
}

.bp-bar-text {
  font-size: 11px;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.bp-expand-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--brd);
  border-radius: 50%;
  background: var(--surf2);
  color: var(--mut);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.12s, color 0.12s;
}

.bp-expand-btn:hover {
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
  border-color: var(--control-hover-border);
}

.bottom-panel[data-expanded="true"] .bp-expand-btn {
  transform: rotate(90deg);
}

.bp-sections {
  display: none;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--brd);
  overflow: hidden;
}

.bottom-panel[data-expanded="true"] .bp-sections {
  display: flex;
}

.bottom-panel[data-expanded="true"] {
  min-height: 180px;
  height: clamp(180px, var(--bp-height, min(380px, 55dvh)), 82dvh);
  max-height: 82dvh;
  overflow: hidden;
}

.bp-section {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: var(--brd) transparent;
}

body.is-resizing-bottom-panel {
  user-select: none;
  cursor: ns-resize;
}

body.is-resizing-bottom-panel .bp-drag-handle {
  width: 44px;
  background: var(--resizer-active);
}

.bp-section + .bp-section {
  border-left: 1px solid var(--brd);
}

.bp-section::-webkit-scrollbar {
  width: 3px;
}

.bp-section::-webkit-scrollbar-thumb {
  background: var(--brd);
  border-radius: 2px;
}

/* Lift leaflet bottom controls above compact bar */
.leaflet-bottom.leaflet-left,
.leaflet-bottom.leaflet-right {
  bottom: 74px;
}

.ih {
  padding: 12px 14px;
  padding-right: max(14px, calc(100% - var(--bp-content-max-width) + 14px));
  border-bottom: 1px solid var(--brd);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  position: sticky;
  top: 0;
  background: var(--surf);
  z-index: 1;
}

.in {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
  margin-right: 8px;
}

.info-stealth-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: inherit;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.12s ease, text-shadow 0.12s ease, color 0.12s ease;
}

.info-stealth-link--title {
  display: inline-block;
  color: #1d4ed8;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
}

.ih:hover .info-stealth-link--title,
.irow:hover .info-stealth-link,
.info-stealth-link:hover,
.info-stealth-link:focus-visible {
  border-bottom-color: currentColor;
  border-bottom-style: solid;
  text-shadow: 0 0 0 currentColor;
}

.info-stealth-link:focus-visible {
  outline: none;
}

.ih-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.ih-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ic {
  font-size: 11px;
  color: var(--mut);
}

.in .side-country-chip,
.ic .side-country-chip {
  vertical-align: top;
}

.in .active-plant-chip {
  border-color: #0284c7;
  background: #0284c7;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.28);
}

.ic .active-country-chip {
  font-size: 12px;
}

.info-country-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 1px 8px 2px;
  font-size: 11px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.info-country-link:hover,
.info-country-link:focus-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.clean-firm-pill-link {
  text-decoration: none;
  color: inherit;
}

.clean-firm-pill-link[hidden] {
  display: none;
}

.sidebar-reactor-section .ih {
  justify-content: flex-start;
  align-items: flex-start;
}

.sidebar-reactor-section {
  border-top: 1px solid var(--brd);
  border-bottom: 1px solid var(--brd);
  background: var(--surf);
}

.sidebar-reactor-section .ih {
  padding: 10px 12px;
  position: static;
}

.sidebar-reactor-section .ib {
  padding: 10px 12px 14px;
}

.sidebar-reactor-section .in {
  font-size: 14px;
  margin-right: 0;
}

.sidebar-reactor-section .ih-pills {
  gap: 6px;
}

.sidebar-reactor-section .clean-firm-pill {
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px;
  white-space: normal;
}

.sidebar-reactor-section .irow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: start;
  padding-bottom: 6px;
}

.sidebar-reactor-section .ik {
  flex: none;
  font-size: 9px;
}

.sidebar-reactor-section .iv {
  font-size: 11px;
}

.sidebar-reactor-section .unit-pop-table {
  min-width: 620px;
}

.clean-firm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--clean-firm-pill-border);
  border-radius: 999px;
  background: var(--clean-firm-pill-bg);
  box-shadow: var(--clean-firm-pill-shadow);
  white-space: nowrap;
}

.clean-firm-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clean-firm-pill-label);
  font-weight: 700;
}

.clean-firm-pill-icon {
  font-size: 11px;
  line-height: 1;
}

.clean-firm-pill-value {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: var(--clean-firm-pill-value-bg);
}


.ix {
  background: var(--surf2);
  border: 1px solid var(--brd);
  color: var(--mut);
  cursor: pointer;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ix:hover {
  color: var(--txt);
}

.ib {
  padding: 12px 14px;
  padding-right: max(14px, calc(100% - var(--bp-content-max-width) + 14px));
}

.isb {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ibdg {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  min-height: 27px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ibdg[hidden] {
  display: none;
}

.ir {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 820px;
}

.irow {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 4px;
}

.irow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ik {
  font-size: 10px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex: 0 0 170px;
}

.iv {
  min-width: 0;
  text-align: left;
  word-break: break-word;
  font-size: 12px;
  color: var(--txt);
  font-weight: 600;
  flex: 0 1 auto;
}

.iv-with-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iv-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.iv-sub {
  font-size: 10px;
  line-height: 1.35;
  color: var(--mut);
  text-transform: none;
  letter-spacing: 0;
}

.mini-chevron {
  width: 18px;
  height: 18px;
  border: 1px solid var(--brd);
  border-radius: 50%;
  background: var(--surf2);
  color: var(--mut);
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.12s, color 0.12s;
}

.mini-chevron:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.mini-chevron.is-open {
  transform: rotate(90deg);
  color: #1d4ed8;
  border-color: #9fb7ea;
  background: #e8f0ff;
}

.unit-pop {
  margin-top: 10px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: var(--surf2);
  padding: 8px;
}

.unit-pop[hidden] {
  display: none;
}

.unit-pop-title {
  font-size: 10px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.unit-pop-wrap {
  overflow-x: auto;
}

.unit-pop-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 10px;
}

.unit-pop-table th,
.unit-pop-table td {
  padding: 5px 6px;
  border-bottom: 1px dashed #d6deea;
  text-align: left;
  white-space: nowrap;
}

.unit-pop-table th {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.manual-link-mini {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.manual-link-mini[hidden] {
  display: none;
}

.manual-link-mini-splash {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--brd);
  background: #e2e8f0;
}

.manual-link-mini-splash img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.manual-link-mini-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 10px;
  color: #1d4ed8;
  text-decoration: none;
}

.manual-link-mini-card:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.manual-link-mini-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
  border: 1px solid #dbeafe;
}

.manual-link-mini-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-link-mini-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.manual-link-mini-text {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.3;
}

.manual-link-mini-arrow {
  font-size: 16px;
  line-height: 1;
  color: #1d4ed8;
}

/* Source citation block (compact, inside .manual-link-mini panel) */
.manual-source-ref {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d7deeb;
  border-radius: 10px;
  background: #f7fbff;
  transition: background .15s ease, border-color .15s ease;
}

.manual-source-ref:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.msrc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 1px;
}

.msrc-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.35);
  width: fit-content;
  line-height: 1.25;
}

.msrc-title:hover {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.manual-source-ref:hover .msrc-title {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.msrc-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  padding-left: 6px;
  border-left: 2px solid #1d4ed8;
  line-height: 1.35;
}

.msrc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 10px;
  color: #646f83;
  margin: 2px 0 0;
}

.msrc-sep { opacity: 0.4; }

.msrc-lang {
  padding: 1px 5px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 9px;
}

.manual-history-link {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.manual-history-link[hidden] {
  display: none;
}

.manual-history-link .history-link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

.manual-history-link .history-link-card:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.manual-history-link .history-link-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.manual-history-link .history-link-kicker {
  color: #64748b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-history-link .history-link-arrow {
  color: #1d4ed8;
  font-size: 16px;
  line-height: 1;
}

.manual-history-link .history-link-menu-card {
  display: block;
}

.manual-history-link .history-link-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.manual-history-link .history-link-nav-item {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.manual-history-link .history-link-nav-item summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  cursor: pointer;
  list-style: none;
}

.manual-history-link .history-link-nav-item summary::-webkit-details-marker {
  display: none;
}

.manual-history-link .history-link-nav-item span,
.manual-history-link .history-link-nav-link {
  color: #1d4ed8;
}

.manual-history-link .history-link-nav-item span {
  font-variant-numeric: tabular-nums;
}

.manual-history-link .history-link-nav-links {
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 0 7px 7px;
}

.manual-history-link .history-link-nav-link {
  grid-template-columns: 1fr auto;
  padding: 8px 9px;
}

.itime-note {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fff7ed;
  border-radius: 4px;
  font-size: 10px;
  color: #9a3412;
  line-height: 1.6;
  border-left: 3px solid #fdba74;
  --info-collapsible-bg: #fff7ed;
}

.itime-note[hidden] {
  display: none;
}

.inote {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--surf2);
  border-radius: 4px;
  font-size: 10px;
  color: var(--mut);
  line-height: 1.6;
  border-left: 3px solid var(--brd);
  --info-collapsible-bg: var(--surf2);
}

.itime-note .info-collapsible-text,
.inote .info-collapsible-text {
  white-space: pre-line;
  word-break: break-word;
}

.itime-note.is-collapsed .info-collapsible-text,
.inote.is-collapsed .info-collapsible-text {
  display: -webkit-box;
  line-clamp: var(--info-clamp-lines, 6);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--info-clamp-lines, 6);
  overflow: hidden;
  position: relative;
  padding-right: 18px;
}

.itime-note.is-collapsed .info-collapsible-text::after,
.inote.is-collapsed .info-collapsible-text::after {
  content: '...';
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--info-collapsible-bg) 45%);
}

.info-collapsible-toggle {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.info-collapsible-toggle:hover {
  text-decoration: underline;
}

.isrc {
  margin-top: 8px;
  font-size: 9px;
  color: var(--mut);
  text-align: left;
}

.ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 850;
}

.ov.vis {
  display: block;
}

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

.vp-tt-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 3px 0;
  border-bottom: 1px solid var(--brd);
  font-size: 11px;
}

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

.vp-tt-key {
  color: var(--mut);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 170px;
}

.vp-tt-val {
  font-weight: 700;
  color: var(--txt);
  text-align: left;
  flex: 0 1 auto;
}

.vp-tt-row-s {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  border-bottom: 1px solid var(--brd);
  font-size: 11px;
}

.vp-tt-row-s:last-child {
  border-bottom: none;
}

.vp-tt-s-left {
  flex: 0 0 240px;
  color: var(--mut);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vp-tt-s-mid {
  color: var(--mut);
  font-size: 9px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  padding: 0;
  min-width: 56px;
}

.vp-tt-s-right {
  font-weight: 700;
  color: var(--txt);
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}

@media (max-width: 960px) {
  .ik,
  .vp-tt-key {
    flex-basis: 150px;
  }

  .vp-tt-s-left {
    flex-basis: 190px;
  }
}

@media (max-width: 960px) {
  .src-b {
    display: none;
  }

  .sl {
    display: none;
  }

  .sp {
    padding: 3px 7px;
  }
}

@media (max-width: 680px) {
  .year-display-value {
    min-height: 44px;
    font-size: 28px;
  }

  .year-quick-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .bp-bar {
    padding-right: 10px;
  }

  .ih,
  .ib {
    padding-right: 14px;
  }

  .irow,
  .vp-tt-row,
  .vp-tt-row-s {
    gap: 8px;
  }

  .ik,
  .vp-tt-key,
  .vp-tt-s-left {
    flex: 0 0 auto;
  }

  .vp-tt-s-right {
    white-space: normal;
  }

  .hstats {
    display: none;
  }

  .map-menu-anchor {
    margin-left: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    height: 100dvh;
    transform: translateX(-100%);
  }

  .sidebar-resize-handle {
    display: none;
  }

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

  .sidebar.is-hidden {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    border-right-color: var(--brd);
  }

  .map-search {
    top: 8px;
    width: calc(100% - 16px);
  }

  .time-layer {
    top: 0;
    width: calc(100% - 16px);
  }

  .map-legend {
    top: 60px;
    max-width: calc(100% - 16px);
  }

  .bp-sections {
    flex-direction: column;
  }

  .bp-section {
    max-height: none;
  }

  .bp-section + .bp-section {
    border-left: none;
    border-top: 1px solid var(--brd);
  }
}

/* ── bpReactorSection heading ────────────────────────── */
.sb-section-header {
  padding: 10px 12px 0;
}

/* ── bpFurtherInfoSection ────────────────────────────── */
.fi-dismiss-btn {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mut);
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  border-radius: 3px;
}

.fi-dismiss-btn:hover {
  color: var(--txt);
  background: var(--surf2);
}

.fi-sub {
  margin-top: 8px;
  border-radius: 6px;
}

#vp-subtitle.is-time-active {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.fi-sub[hidden] {
  display: none;
}

.sidebar-further-info.has-running-history #fi-news,
.sidebar-further-info.has-running-history #fi-news-restore,
.sidebar-further-info.has-running-history #fi-nav-history-item {
  display: none;
}

.fi-sub-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 4px;
}

.fi-title-year {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.fi-event-group {
  margin-bottom: 6px;
}

.fi-event-group-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 2px;
}

.fi-event-item {
  font-size: 11px;
  color: var(--txt);
  padding: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fi-event-more {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
  font: inherit;
  color: var(--mut);
  font-style: italic;
  text-align: left;
  cursor: pointer;
}

.fi-event-more:hover {
  color: var(--txt);
  background: var(--surf2);
  border-color: var(--brd);
}

.fi-news-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.fi-news-card {
  cursor: default;
}

.fi-news-card .fi-news-text {
  grid-row: 1 / 3;
  align-self: center;
}

.fi-news-text {
  font-size: 11px;
  color: var(--txt);
  line-height: 1.4;
}

.fi-news-link {
  color: var(--acc);
  text-decoration: underline;
  font-size: 11px;
}

.fi-news-link:hover {
  text-decoration: none;
}

.fi-links {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.fi-nav-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--brd);
  background: var(--surf2);
  color: inherit;
  text-decoration: none;
  gap: 0 4px;
  transition: background 0.12s, border-color 0.12s;
}

#fi-news .fi-nav-card {
  background: #fffaf1;
  border-color: #f1dfbd;
}

.fi-links .fi-nav-card {
  background: #f8fafc;
  border-color: #dbe3ee;
}

.fi-nav-card:hover {
  border-color: var(--acc);
}

.fi-event-card--outage {
  background: color-mix(in srgb, var(--off) 9%, #fff);
  border-color: color-mix(in srgb, var(--off) 28%, #e5e7eb);
}

.fi-event-card--outage .fi-nav-kicker,
.fi-event-card--outage .fi-nav-arr {
  color: color-mix(in srgb, var(--off) 72%, #475569);
}

.fi-event-card--activation {
  background: color-mix(in srgb, var(--op) 9%, #fff);
  border-color: color-mix(in srgb, var(--op) 28%, #e5e7eb);
}

.fi-event-card--activation .fi-nav-kicker,
.fi-event-card--activation .fi-nav-arr {
  color: color-mix(in srgb, var(--op) 72%, #475569);
}

.fi-event-card--construction {
  background: color-mix(in srgb, var(--con) 10%, #fff);
  border-color: color-mix(in srgb, var(--con) 30%, #e5e7eb);
}

.fi-event-card--construction .fi-nav-kicker,
.fi-event-card--construction .fi-nav-arr {
  color: color-mix(in srgb, var(--con) 74%, #475569);
}

.fi-event-card.is-active,
.fi-event-card.is-pulsing-highlight {
  background: var(--event-active-bg);
  border-color: var(--event-active-border);
  box-shadow: inset 3px 0 0 var(--event-active-shadow);
}

.fi-event-card.is-active .fi-nav-title,
.fi-event-card.is-active .fi-nav-arr,
.fi-event-card.is-pulsing-highlight .fi-nav-title,
.fi-event-card.is-pulsing-highlight .fi-nav-arr {
  color: var(--control-hover-text);
}

.fi-nav-kicker {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  grid-column: 1;
  grid-row: 1;
}

.fi-nav-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt);
  grid-column: 1;
  grid-row: 2;
}

.fi-nav-arr {
  font-size: 16px;
  color: var(--mut);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

button.fi-nav-card {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.fi-nav-item {
  display: grid;
  gap: 2px;
}

.fi-nav-panel {
  border: 1px solid var(--brd);
  border-radius: 6px;
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}

.fi-nav-panel[hidden] {
  display: none;
}

.fi-nav-panel-link {
  display: block;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--txt);
  text-decoration: none;
  border-bottom: 1px solid var(--brd);
}

.fi-nav-panel-link:last-child {
  border-bottom: none;
}

.fi-nav-panel-link:hover {
  background: var(--surf2);
}

.fi-nav-panel-link-kicker {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1px;
}

.fi-nav-history-menu {
  display: grid;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--brd);
  background: var(--surf2);
  font-size: 11px;
}

.fi-nav-history-menu-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fi-nav-history-menu-item {
  border: 1px solid var(--brd);
  border-radius: 6px;
  background: var(--surf);
}

.fi-nav-history-menu-item summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  cursor: pointer;
  list-style: none;
  color: var(--txt);
  font-weight: 700;
}

.fi-nav-history-menu-item summary::-webkit-details-marker {
  display: none;
}

.fi-nav-history-menu-item summary span {
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}

.fi-nav-history-menu-links {
  display: grid;
  gap: 0;
  min-width: 160px;
  padding: 0 7px 7px;
  overflow: hidden;
  border: 1px solid var(--brd);
  border-radius: 6px;
}

.fi-nav-history-menu-link {
  background: var(--surf);
}

.fi-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.fi-sub-row .fi-sub-label {
  margin-bottom: 0;
}

.fi-news-nav {
  display: flex;
  align-items: center;
  gap: 1px;
}

.fi-news-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mut);
  font-size: 14px;
  padding: 0 3px;
  line-height: 1;
  border-radius: 3px;
}

.fi-news-btn:hover:not(:disabled) {
  color: var(--txt);
}

.fi-news-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.fi-news-counter {
  font-size: 9px;
  color: var(--mut);
  min-width: 20px;
  text-align: center;
}

.fi-restore-strip {
  border-bottom: none;
}

.fi-restore-btn {
  width: 100%;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  background: var(--surf2);
  border: 1px solid var(--brd);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}

.fi-restore-btn:hover {
  color: var(--txt);
  border-color: var(--acc);
}

button.fi-nav-panel-link {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid var(--brd);
}

button.fi-nav-panel-link:last-child {
  border-bottom: none;
}

button.fi-nav-panel-link:hover {
  background: var(--surf2);
}

:root[data-map-theme="dark"] .leaflet-container {
  background: var(--leaflet-container-bg) !important;
}

:root[data-map-theme="dark"] .leaflet-control-zoom a,
:root[data-map-theme="dark"] .leaflet-control-attribution,
:root[data-map-theme="dark"] .leaflet-control-layers {
  background: var(--surf) !important;
  color: var(--txt) !important;
  border-color: var(--brd) !important;
}

:root[data-map-theme="dark"] .leaflet-control-zoom a:hover {
  background: var(--surf2) !important;
}

:root[data-map-theme="dark"] .leaflet-tooltip-nuc {
  background: var(--leaflet-tooltip-bg) !important;
  border-color: var(--leaflet-tooltip-border) !important;
  color: var(--leaflet-tooltip-text) !important;
}

:root[data-map-theme="dark"] .leaflet-tooltip-nuc b {
  color: var(--leaflet-tooltip-accent) !important;
}

:root[data-map-theme="dark"] .sp-link:hover,
:root[data-map-theme="dark"] #data-status:hover,
:root[data-map-theme="dark"] .scope-toggle.on,
:root[data-map-theme="dark"] .fb.active,
:root[data-map-theme="dark"] .year-quick-btn.active,
:root[data-map-theme="dark"] .mini-reset:hover,
:root[data-map-theme="dark"] .mini-chevron:hover,
:root[data-map-theme="dark"] .manual-link-mini a:hover,
:root[data-map-theme="dark"] .info-collapsible-toggle:hover {
  background: var(--control-hover-bg);
  border-color: var(--control-hover-border);
  color: var(--control-hover-text);
}

:root[data-map-theme="dark"] #fi-news .fi-nav-card {
  background: var(--news-card-bg);
  border-color: var(--news-card-border);
}

:root[data-map-theme="dark"] .fi-links .fi-nav-card,
:root[data-map-theme="dark"] .fi-nav-card {
  background: var(--link-card-bg);
  border-color: var(--link-card-border);
}

:root[data-map-theme="dark"] .info-stealth-link--title,
:root[data-map-theme="dark"] .manual-link-mini a,
:root[data-map-theme="dark"] .info-collapsible-toggle {
  color: var(--control-hover-text);
}

:root[data-map-theme="dark"] .info-collapsible--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-left-color: var(--warning-border);
  --info-collapsible-bg: var(--warning-bg);
}

:root[data-map-theme="dark"] .manual-link-mini,
:root[data-map-theme="dark"] .manual-history-link {
  background: var(--info-soft-bg);
  border-color: var(--info-soft-border);
}

:root[data-map-theme="dark"] .noR,
:root[data-map-theme="dark"] .loading {
  background: var(--empty-bg);
  color: var(--empty-text);
}

:root[data-map-theme="dark"] .map-search-inner {
  background: #dfe7f2;
  border-color: #9fb2cc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

:root[data-map-theme="dark"] .map-search-input {
  color: #071327;
}

:root[data-map-theme="dark"] .map-search-input::placeholder {
  color: #71839b;
}

:root[data-map-theme="dark"] .year-step,
:root[data-map-theme="dark"] .year-display-value,
:root[data-map-theme="dark"] .year-quick-btn,
:root[data-map-theme="dark"] .mini-reset,
:root[data-map-theme="dark"] .history-toolbar--timeline .history-button {
  background: #e3eaf3;
  border-color: #aebdd0;
  color: #071327;
}

:root[data-map-theme="dark"] .year-step:hover,
:root[data-map-theme="dark"] .year-display-value:hover,
:root[data-map-theme="dark"] .year-quick-btn:hover,
:root[data-map-theme="dark"] .mini-reset:hover,
:root[data-map-theme="dark"] .history-toolbar--timeline .history-button:hover {
  background: #d9e4f2;
  border-color: #8fa8c8;
  color: #0f45a6;
}

:root[data-map-theme="dark"] .year-display-value.is-time-active {
  background: #d7e5ff;
  border-color: #7da2ef;
  color: #0f45a6;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

:root[data-map-theme="dark"] .year-quick-btn.active,
:root[data-map-theme="dark"] .history-toolbar--timeline .history-button.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #f8fbff;
}

:root[data-map-theme="nuclear"] .leaflet-container {
  background: var(--leaflet-container-bg) !important;
}

:root[data-map-theme="nuclear"] .leaflet-control-zoom a,
:root[data-map-theme="nuclear"] .leaflet-control-attribution,
:root[data-map-theme="nuclear"] .leaflet-control-layers {
  background: var(--surf) !important;
  color: var(--txt) !important;
  border-color: var(--brd) !important;
}

:root[data-map-theme="nuclear"] .leaflet-control-zoom a:hover {
  background: var(--surf2) !important;
}

:root[data-map-theme="nuclear"] .leaflet-tooltip-nuc {
  background: var(--leaflet-tooltip-bg) !important;
  border-color: var(--leaflet-tooltip-border) !important;
  color: var(--leaflet-tooltip-text) !important;
}

:root[data-map-theme="nuclear"] .leaflet-tooltip-nuc b {
  color: var(--leaflet-tooltip-accent) !important;
}

:root[data-map-theme="nuclear"] .time-layer.nuclear-live-band {
  --nlb-bg: linear-gradient(90deg, #06120c 0%, #12301c 48%, #0b1713 100%);
  --nlb-text: #e8f3ea;
  --nlb-muted: #bcd2bf;
  --nlb-update: #84cc16;
  border-color: rgba(163, 230, 53, 0.28);
  box-shadow: 0 8px 24px rgba(6, 18, 12, 0.28);
}

:root[data-map-theme="nuclear"] .sp-link:hover,
:root[data-map-theme="nuclear"] #data-status:hover,
:root[data-map-theme="nuclear"] .scope-toggle.on,
:root[data-map-theme="nuclear"] .fb.active,
:root[data-map-theme="nuclear"] .mini-reset:hover,
:root[data-map-theme="nuclear"] .mini-chevron:hover,
:root[data-map-theme="nuclear"] .manual-link-mini a:hover,
:root[data-map-theme="nuclear"] .info-collapsible-toggle:hover {
  background: var(--control-hover-bg);
  border-color: var(--control-hover-border);
  color: var(--control-hover-text);
}

:root[data-map-theme="nuclear"] .side-context .side-time-active,
:root[data-map-theme="nuclear"] #vp-subtitle.is-time-active,
:root[data-map-theme="nuclear"] .fi-title-year {
  color: var(--control-hover-text);
}

:root[data-map-theme="nuclear"] .side-country-chip {
  border-color: var(--control-hover-border);
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
}

:root[data-map-theme="nuclear"] .side-country-chip span {
  background: color-mix(in srgb, var(--acc) 14%, transparent);
}

:root[data-map-theme="nuclear"] .side-country-chip:hover,
:root[data-map-theme="nuclear"] .side-country-chip:focus-visible {
  border-color: var(--control-active-border);
  background: var(--control-active-bg);
  color: var(--control-active-text);
}

:root[data-map-theme="nuclear"] .side-country-chip.is-active {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--brand-mark-color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--acc) 28%, transparent);
}

:root[data-map-theme="nuclear"] #fi-news .fi-nav-card {
  background: var(--news-card-bg);
  border-color: var(--news-card-border);
}

:root[data-map-theme="nuclear"] .fi-links .fi-nav-card,
:root[data-map-theme="nuclear"] .fi-nav-card {
  background: var(--link-card-bg);
  border-color: var(--link-card-border);
}

:root[data-map-theme="nuclear"] .info-stealth-link--title,
:root[data-map-theme="nuclear"] .manual-link-mini a,
:root[data-map-theme="nuclear"] .info-collapsible-toggle {
  color: var(--control-hover-text);
}

:root[data-map-theme="nuclear"] .info-collapsible--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-left-color: var(--warning-border);
  --info-collapsible-bg: var(--warning-bg);
}

:root[data-map-theme="nuclear"] .manual-link-mini,
:root[data-map-theme="nuclear"] .manual-history-link {
  background: var(--info-soft-bg);
  border-color: var(--info-soft-border);
}

:root[data-map-theme="nuclear"] .noR,
:root[data-map-theme="nuclear"] .loading {
  background: var(--empty-bg);
  color: var(--empty-text);
}

:root[data-map-theme="nuclear"] .map-search-inner {
  background: #e5f2dc;
  border-color: #a7c77a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

:root[data-map-theme="nuclear"] .map-search-input {
  color: #10200f;
}

:root[data-map-theme="nuclear"] .map-search-input::placeholder,
:root[data-map-theme="nuclear"] .map-search-clear {
  color: #6b7d61;
}

:root[data-map-theme="nuclear"] .map-search-clear:hover {
  background: #d2e2c2;
  border-color: #a9bd86;
  color: #10200f;
}

:root[data-map-theme="nuclear"] .year-step,
:root[data-map-theme="nuclear"] .year-display-value,
:root[data-map-theme="nuclear"] .year-quick-btn,
:root[data-map-theme="nuclear"] .mini-reset,
:root[data-map-theme="nuclear"] .history-toolbar--timeline .history-button {
  background: #dfead6;
  border-color: #a9bd86;
  color: #10200f;
}

:root[data-map-theme="nuclear"] .year-step:hover,
:root[data-map-theme="nuclear"] .year-display-value:hover,
:root[data-map-theme="nuclear"] .year-quick-btn:hover,
:root[data-map-theme="nuclear"] .mini-reset:hover,
:root[data-map-theme="nuclear"] .history-toolbar--timeline .history-button:hover {
  background: #d2e2c2;
  border-color: #9fbb67;
  color: #315314;
}

:root[data-map-theme="nuclear"] .year-display-value.is-time-active {
  background: #eaf8d6;
  border-color: #a3e635;
  color: #315314;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.22);
}

:root[data-map-theme="nuclear"] .year-quick-btn.active,
:root[data-map-theme="nuclear"] .history-toolbar--timeline .history-button.primary {
  background: #a3e635;
  border-color: #a3e635;
  color: #07120d;
}
