:root,
[data-theme="dark"] {
  --bg: #0b1017;
  --bg-elev: #121925;
  --bg-card: #172131;
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef3fa;
  --muted: #a8b7c9;
  --accent: #f0b429;
  --accent-soft: #ffd56a;
  --brand-glow: #ffcc4d;
  --ikeja: #c8452c;
  --ok: #3dcf8e;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --radius: 14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --chrome: rgba(10, 14, 20, 0.78);
  --th-bg: #1c2736;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --chip-bg: rgba(240, 180, 41, 0.16);
  --chip-text: #ffe6a3;
  --combo-panel: #1a2433;
  --combo-search: #111925;
  --export-menu: #1a2433;
  --io-ok-bg: rgba(46, 139, 87, 0.15);
  --io-ok-border: rgba(46, 139, 87, 0.35);
  --io-ok-text: #b7e0c5;
  --io-err-bg: rgba(200, 69, 44, 0.15);
  --io-err-border: rgba(200, 69, 44, 0.4);
  --io-err-text: #f0b4a8;
  --tab-active-bg: #223247;
  --map-label-bg: rgba(12, 17, 24, 0.78);
  --map-label-text: #ffffff;
}

[data-theme="light"] {
  --bg: #e8eef5;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --line: rgba(15, 30, 50, 0.14);
  --text: #0f1c2e;
  --muted: #3d4f63;
  --accent: #9a3412;
  --accent-soft: #b45309;
  --brand-glow: #b45309;
  --ikeja: #b91c1c;
  --ok: #047857;
  --shadow: 0 14px 30px rgba(20, 40, 70, 0.10);
  --chrome: rgba(255, 255, 255, 0.92);
  --th-bg: #e4ebf3;
  --panel-soft: rgba(15, 30, 50, 0.04);
  --chip-bg: rgba(154, 52, 18, 0.10);
  --chip-text: #7c2d12;
  --combo-panel: #ffffff;
  --combo-search: #f3f6fa;
  --export-menu: #ffffff;
  --io-ok-bg: rgba(4, 120, 87, 0.10);
  --io-ok-border: rgba(4, 120, 87, 0.28);
  --io-ok-text: #065f46;
  --io-err-bg: rgba(185, 28, 28, 0.08);
  --io-err-border: rgba(185, 28, 28, 0.28);
  --io-err-text: #991b1b;
  --tab-active-bg: #e8eef5;
  --map-label-bg: rgba(255, 255, 255, 0.88);
  --map-label-text: #0f1c2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  position: relative;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.5rem);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  align-items: center;
}
.chrome-left, .chrome-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.btn.active-view {
  border-color: rgba(232, 163, 23, 0.55);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 23, 0.2);
}
.btn-accent {
  background: linear-gradient(135deg, #c8452c, #d99a1e);
  border: 0;
  color: #fff;
  font: 600 0.85rem var(--font-body);
  padding: 0.55rem 0.9rem;
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font: 500 0.85rem var(--font-body);
  padding: 0.55rem 0.85rem;
  min-height: 40px;
  border-radius: 10px;
  cursor: pointer;
}
.chrome-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chrome-nav-btn:hover {
  transform: translateY(-1px);
}
.chrome-nav-btn .nav-ico {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.chrome-nav-btn .nav-ico svg {
  width: 100%;
  height: 100%;
  animation: nav-ico-pulse 2.8s ease-in-out infinite;
}
.chrome-nav-btn.active-view .nav-ico svg {
  animation: nav-ico-pulse 2s ease-in-out infinite;
}
@keyframes nav-ico-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.chrome-nav-btn.btn-accent .nav-ico svg {
  animation: nav-ico-bob 2.2s ease-in-out infinite;
}
@keyframes nav-ico-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.chrome-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chrome-action-btn:hover {
  transform: translateY(-1px);
}
.chrome-action-btn .btn-ico {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  position: relative;
}
.chrome-action-btn .btn-ico svg {
  width: 100%;
  height: 100%;
}
.btn-ico-theme .ico-moon,
.btn-ico-audio .ico-mute {
  display: none;
}
#btn-theme[data-mode="to-dark"] .btn-ico-theme .ico-sun { display: none; }
#btn-theme[data-mode="to-dark"] .btn-ico-theme .ico-moon { display: block; }
#btn-audio[data-playing="true"] .btn-ico-audio .ico-play { display: none; }
#btn-audio[data-playing="true"] .btn-ico-audio .ico-mute { display: block; }

.btn-ico-reset svg { animation: ico-spin-soft 3.6s linear infinite; }
.btn-ico-theme svg { animation: ico-pulse 2.6s ease-in-out infinite; }
.btn-ico-audio svg { animation: ico-bob 1.8s ease-in-out infinite; }
.btn-ico-pdf svg { animation: ico-nudge 2.4s ease-in-out infinite; }
.btn-ico-excel svg { animation: ico-pulse 2.2s ease-in-out infinite; }
.btn-ico-upload svg { animation: ico-upload 1.6s ease-in-out infinite; }
.btn-ico-export svg { animation: ico-export 1.6s ease-in-out infinite; }
.chrome-action-btn:hover .btn-ico svg {
  animation-duration: 0.9s;
}

@keyframes ico-spin-soft {
  0%, 70%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-220deg); }
}
@keyframes ico-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes ico-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes ico-nudge {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-1px); }
  70% { transform: translateY(1px); }
}
@keyframes ico-upload {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ico-export {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 1.1rem clamp(0.75rem, 2vw, 1.5rem) 2rem;
}
.app-view[hidden] { display: none !important; }

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.6fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.brand { display: flex; gap: 0.85rem; align-items: center; min-width: 0; }
.brand-logo {
  width: auto;
  max-width: 168px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  image-rendering: auto;
}
[data-theme="light"] .brand-logo,
[data-theme="light"] .chrome-brand-trio img[data-brand="ie"] {
  /* Dedicated dark-ink logo asset — keep sharp, no invert filters */
  filter: none;
  -webkit-filter: none;
}
[data-theme="light"] .brand h1,
[data-theme="light"] .topbar h1,
[data-theme="light"] .coverage-topbar h1 {
  color: #0b1728;
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-theme="light"] .eyebrow,
[data-theme="light"] .eyebrow-static,
[data-theme="light"] .eyebrow-glow {
  color: #9a3412;
  font-weight: 700;
}
.toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: flex-end;
  justify-content: flex-end;
}
.io-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
  align-items: flex-end;
  flex: 0 0 auto;
}
.io-actions .btn,
.io-actions label.btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  white-space: nowrap;
  min-height: 38px;
}
.btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font: 500 0.86rem var(--font-body);
  cursor: pointer;
  color: var(--text);
  background: var(--bg-card);
}
.btn-primary {
  background: linear-gradient(135deg, #c8452c, #d99a1e);
  border-color: transparent;
  color: #fff;
}
.btn-secondary:hover { border-color: rgba(232, 163, 23, 0.45); }
.export-wrap { position: relative; }
.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 200px;
  background: var(--export-menu);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}
.export-menu[hidden] { display: none !important; }
.export-menu button {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font: 400 0.86rem var(--font-body);
  cursor: pointer;
}
.export-menu button:hover { background: rgba(232, 163, 23, 0.14); }
.io-status {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: var(--io-ok-bg);
  border: 1px solid var(--io-ok-border);
  color: var(--io-ok-text);
  font-size: 0.85rem;
}
.io-status.error {
  background: var(--io-err-bg);
  border-color: var(--io-err-border);
  color: var(--io-err-text);
}
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
  max-width: min(42rem, 100%);
}
.eyebrow-static {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted);
}
.eyebrow-sep {
  flex-shrink: 0;
  opacity: 0.55;
  letter-spacing: 0;
}
.eyebrow-glow {
  display: inline-block;
  white-space: nowrap;
  color: var(--brand-glow);
  font-weight: 700;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.12);
  animation: gis-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
[data-theme="dark"] .eyebrow-glow {
  text-shadow:
    0 0 8px rgba(255, 204, 77, 0.55),
    0 0 16px rgba(240, 180, 41, 0.35),
    0 0 22px rgba(200, 69, 44, 0.18);
}
[data-theme="light"] .eyebrow-glow {
  color: #7c2d12;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0.5px rgba(15, 28, 46, 0.45);
}
[data-theme="light"] .story-credit {
  color: #7c2d12;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
@keyframes gis-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-glow { animation: none; }
}
.brand h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.chrome-tabs {
  flex: 1 1 auto;
  display: inline-flex;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
  max-width: 100%;
}
.chrome-tabs[hidden] { display: none !important; }
.tabs {
  display: inline-flex;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem;
  gap: 0.22rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 18px rgba(0,0,0,0.18);
}
[data-theme="light"] .tabs {
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 14px rgba(15,30,50,0.08);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.82rem var(--font-body);
  letter-spacing: 0.01em;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tab .tab-ico {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.tab .tab-ico svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}
.tab:hover {
  color: var(--text);
  background: rgba(232, 163, 23, 0.08);
}
.tab:hover .tab-ico svg {
  transform: scale(1.15);
  animation: tab-ico-wiggle 0.7s ease;
}
.tab.active {
  background: linear-gradient(135deg, #c8452c, #d99a1e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 69, 44, 0.35);
  transform: translateY(-0.5px);
  animation: tab-active-in 0.35s ease;
}
.tab.active .tab-ico svg {
  animation: tab-ico-glow 1.8s ease-in-out infinite;
}
[data-theme="light"] .tab.active {
  color: #fff;
  box-shadow: 0 4px 12px rgba(154, 52, 18, 0.28);
}
@keyframes tab-active-in {
  from { transform: translateY(2px) scale(0.97); opacity: 0.7; }
  to { transform: translateY(-0.5px) scale(1); opacity: 1; }
}
@keyframes tab-ico-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1.15); }
  25% { transform: rotate(-8deg) scale(1.2); }
  75% { transform: rotate(8deg) scale(1.2); }
}
@keyframes tab-ico-glow {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.18); opacity: 1; }
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: flex-end;
  justify-content: stretch;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.combo {
  position: relative;
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
}
.combo-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.05em;
  line-height: 1.05;
}
.filter-ico {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--accent, #e8a317);
}
.filter-ico svg {
  width: 100%;
  height: 100%;
}
.filter-ico-bu svg { animation: filter-ico-bu 2.6s ease-in-out infinite; }
.filter-ico-ut svg { animation: filter-ico-ut 2.8s ease-in-out infinite; }
.filter-ico-feeder svg { animation: filter-ico-feeder 1.8s linear infinite; }
.filter-ico-dt svg { animation: filter-ico-dt 2.4s ease-in-out infinite; }
.filter-ico-iss svg { animation: filter-ico-iss 2.2s ease-in-out infinite; }
.filter-ico-tcn svg { animation: filter-ico-tcn 2.5s ease-in-out infinite; }
.combo:hover .filter-ico,
.combo.open .filter-ico {
  color: #f0b429;
}
.combo:hover .filter-ico svg,
.combo.open .filter-ico svg {
  animation-duration: 0.9s;
}
@keyframes filter-ico-bu {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.08); }
}
@keyframes filter-ico-ut {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.88); }
}
@keyframes filter-ico-feeder {
  0% { transform: translateX(0); }
  50% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
@keyframes filter-ico-dt {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(10deg); }
  70% { transform: rotate(-6deg); }
}
@keyframes filter-ico-iss {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes filter-ico-tcn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
.filter-io {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 0;
}
.io-actions-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.filter-io .combo-label {
  visibility: hidden;
}
.combo-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: 500 0.88rem var(--font-body);
  cursor: pointer;
  text-align: left;
}
.combo-trigger:hover,
.combo.open .combo-trigger {
  border-color: rgba(232, 163, 23, 0.45);
}
.combo-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combo-chevron { color: var(--muted); font-size: 0.75rem; }
.combo-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  min-width: 240px;
  background: var(--combo-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
}
.combo-panel[hidden] { display: none !important; }
.combo-search {
  width: 100%;
  background: var(--combo-search);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: 400 0.88rem var(--font-body);
  margin-bottom: 0.4rem;
}
.combo-search:focus {
  outline: none;
  border-color: rgba(232, 163, 23, 0.55);
}
.combo-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.linkish {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 500 0.78rem var(--font-body);
  cursor: pointer;
  padding: 0.15rem 0;
}
.combo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.combo-list li label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  color: var(--text);
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font: 400 0.84rem var(--font-body);
  cursor: pointer;
}
.combo-list li label:hover {
  background: rgba(232, 163, 23, 0.14);
}
.combo-list li input {
  margin-top: 0.15rem;
  accent-color: #d99a1e;
  flex-shrink: 0;
}
.combo-list .empty {
  padding: 0.6rem 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.combo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 100%;
}
.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.kpi {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-soft), transparent 70%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
  text-align: left;
  animation: kpi-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(232, 163, 23, 0.08) 48%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.kpi:hover::after {
  animation: kpi-sheen 0.9s ease;
}
.kpi-strip .kpi:nth-child(1) { animation-delay: 0.02s; }
.kpi-strip .kpi:nth-child(2) { animation-delay: 0.08s; }
.kpi-strip .kpi:nth-child(3) { animation-delay: 0.14s; }
.kpi-strip .kpi:nth-child(4) { animation-delay: 0.2s; }
.kpi-strip .kpi:nth-child(5) { animation-delay: 0.26s; }
.kpi-strip .kpi:nth-child(6) { animation-delay: 0.32s; }
.kpi-strip .kpi:nth-child(7) { animation-delay: 0.38s; }
.kpi.interactive {
  cursor: pointer;
  color: var(--text);
  font: inherit;
  width: 100%;
}
.kpi.interactive:hover,
.kpi:hover {
  border-color: rgba(232, 163, 23, 0.45);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.kpi-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.kpi-ico {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #e8a317;
}
.kpi-ico svg {
  width: 100%;
  height: 100%;
}
.kpi-ico-dt svg { animation: kpi-ico-dt 2.4s ease-in-out infinite; }
.kpi-ico-bu svg { animation: kpi-ico-bu 2.6s ease-in-out infinite; }
.kpi-ico-ut svg { animation: kpi-ico-ut 2.8s ease-in-out infinite; }
.kpi-ico-agree svg { animation: kpi-ico-agree 2.2s ease-in-out infinite; }
.kpi-ico-feeder svg { animation: kpi-ico-feeder 1.8s linear infinite; }
.kpi-ico-iss svg { animation: kpi-ico-iss 1.5s ease-in-out infinite; }
.kpi-ico-tcn svg { animation: kpi-ico-tcn 2.4s ease-in-out infinite; }
.kpi:hover .kpi-ico svg { animation-duration: 0.85s; }
.kpi .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .value {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
  animation: kpi-value-pop 0.55s ease both;
}
.kpi-strip .kpi:nth-child(1) .value { animation-delay: 0.12s; }
.kpi-strip .kpi:nth-child(2) .value { animation-delay: 0.18s; }
.kpi-strip .kpi:nth-child(3) .value { animation-delay: 0.24s; }
.kpi-strip .kpi:nth-child(4) .value { animation-delay: 0.3s; }
.kpi-strip .kpi:nth-child(5) .value { animation-delay: 0.36s; }
.kpi-strip .kpi:nth-child(6) .value { animation-delay: 0.42s; }
.kpi-strip .kpi:nth-child(7) .value { animation-delay: 0.48s; }
button.kpi .value,
.kpi.interactive .value {
  color: var(--text);
}
.kpi .hint {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
@keyframes kpi-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kpi-value-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kpi-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes kpi-ico-dt {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes kpi-ico-bu {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes kpi-ico-ut {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-1px); }
  66% { transform: translateY(1px); }
}
@keyframes kpi-ico-agree {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes kpi-ico-feeder {
  from { transform: translateX(-1px); }
  to { transform: translateX(1px); }
}
@keyframes kpi-ico-iss {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(0 0 4px rgba(232, 163, 23, 0.45)); }
}
@keyframes kpi-ico-tcn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.grid { display: grid; gap: 0.9rem; }
.overview-grid { grid-template-columns: 1.35fr 1fr; }
.overview-grid .card:nth-child(3),
.overview-grid .card:nth-child(4) { grid-column: 1 / -1; }
.assets-grid,
.feeders-grid { grid-template-columns: 1fr 1fr; }
.card.wide { grid-column: 1 / -1; }
.stack { display: grid; gap: 0.9rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  min-width: 0;
  animation: card-rise 0.6s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.grid > .card:nth-child(1),
.overview-grid > .card:nth-child(1) { animation-delay: 0.05s; }
.grid > .card:nth-child(2),
.overview-grid > .card:nth-child(2) { animation-delay: 0.12s; }
.grid > .card:nth-child(3),
.overview-grid > .card:nth-child(3) { animation-delay: 0.18s; }
.grid > .card:nth-child(4),
.overview-grid > .card:nth-child(4) { animation-delay: 0.24s; }
.grid > .card:nth-child(n+5) { animation-delay: 0.3s; }
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 23, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chrome-nav-btn .nav-ico svg,
  .tab .tab-ico svg,
  .tab.active .tab-ico svg,
  .filter-ico svg,
  .chrome-action-btn .btn-ico svg,
  .kpi-ico svg,
  .kpi,
  .kpi .value,
  .kpi::after,
  .card,
  .cov-insight,
  .story-bu-card,
  .story-cards article,
  .story-explore-grid article {
    animation: none !important;
  }
}
.cov-insight,
.story-bu-card,
.story-cards article,
.story-explore-grid article {
  animation: card-rise 0.55s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.cov-insight:hover,
.story-bu-card:hover,
.story-cards article:hover,
.story-explore-grid article:hover {
  transform: translateY(-3px);
}
.card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.card-head p {
  margin: 0.25rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Fixed chart hosts — prevents Chart.js stretch/collapse in hidden tabs */
.chart-box {
  position: relative;
  width: 100%;
  min-width: 0;
}
.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.chart-box.h-220 { height: 220px; }
.chart-box.h-240 { height: 240px; }
.chart-box.h-260 { height: 260px; }
.chart-box.h-280 { height: 280px; }

.map-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  position: relative;
  overflow: visible;
}
/* Title bar must stack above Leaflet (map panes ~200–700, controls ~1000) */
.card-head-map {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2000;
}
.card-head-map .card-head-text { min-width: 0; flex: 1 1 12rem; }
.map-card > .map,
.cov-map-card > .map {
  position: relative;
  z-index: 1;
}
.map-layer-host {
  flex: 0 0 auto;
  position: relative;
  z-index: 2001;
}
.map-layer-filter { position: relative; z-index: 2001; }
.map-layer-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(232, 163, 23, 0.55);
  background: linear-gradient(180deg, #2a3548 0%, #1a2436 100%);
  color: #f6e7c1;
  font: 600 0.78rem var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(15, 28, 46, 0.35);
}
.map-layer-filter-btn:hover {
  border-color: rgba(240, 180, 41, 0.85);
  background: linear-gradient(180deg, #33415a 0%, #1f2c42 100%);
  color: #ffe8a8;
}
.map-layer-filter.open .map-layer-filter-btn {
  border-color: #e8a317;
  background: linear-gradient(180deg, #3d2e14 0%, #2a2110 100%);
  color: #ffd36a;
  box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.35), 0 4px 16px rgba(0, 0, 0, 0.35);
}
.map-layer-filter-chevron {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.15s ease;
}
.map-layer-filter.open .map-layer-filter-chevron { transform: rotate(180deg); }
.map-layer-filter-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 3000;
  min-width: 236px;
  max-width: min(300px, 90vw);
  max-height: min(380px, 58vh);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 163, 23, 0.45);
  background: linear-gradient(165deg, #243247 0%, #162033 55%, #121c2c 100%);
  color: #eef3fa;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.map-layer-filter-panel[hidden] { display: none !important; }
.map-layer-filter-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem 0.35rem;
  border-bottom: 1px solid rgba(232, 163, 23, 0.28);
}
.map-layer-filter-action {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 163, 23, 0.4);
  background: rgba(232, 163, 23, 0.12);
  color: #ffe8a8;
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.map-layer-filter-action:hover {
  background: rgba(232, 163, 23, 0.28);
  border-color: rgba(240, 180, 41, 0.75);
  color: #fff4cc;
}
.map-layer-filter-leaflet.leaflet-control-layers {
  float: none !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #eef3fa !important;
  font-size: 0.8rem;
  width: 100%;
}
.map-layer-filter-leaflet .leaflet-control-layers-list {
  display: block !important;
  padding: 0.5rem 0.65rem 0.7rem;
}
.map-layer-filter-leaflet .leaflet-control-layers-base,
.map-layer-filter-leaflet .leaflet-control-layers-overlays {
  display: block;
}
.map-layer-filter-leaflet label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.3rem 0;
  color: #e8eef7 !important;
  white-space: normal;
  cursor: pointer;
}
.map-layer-filter-leaflet label:hover {
  color: #ffe8a8 !important;
}
.map-layer-filter-leaflet .leaflet-control-layers-separator {
  margin: 0.5rem 0;
  border-top: 1px solid rgba(232, 163, 23, 0.28);
}

/* Legend symbols beside Filter Layers checklist */
.layer-filter-swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
  margin-right: 0.1rem;
  box-sizing: border-box;
}
.layer-filter-swatch.lfs-basemap {
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.layer-filter-swatch.lfs-hybrid {
  background:
    linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 40%, #6b8f71 70%, #c4a35a 100%);
}
.layer-filter-swatch.lfs-light {
  background: #dce3ec;
}
.layer-filter-swatch.lfs-dark {
  background: #2a3340;
}
.layer-filter-swatch.lfs-line {
  height: 0;
  border: 0;
  border-top-width: 3px;
  border-top-style: solid;
  align-self: center;
  margin-top: 1px;
}
.layer-filter-swatch.lfs-lagos {
  border-top-color: #e8a317;
  border-top-style: dashed;
  border-top-width: 2px;
}
.layer-filter-swatch.lfs-feeder-11 {
  border-top-color: #00E5FF;
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.65);
}
.layer-filter-swatch.lfs-feeder-33 {
  border-top-color: #FFEA00;
  border-top-width: 4px;
  box-shadow: 0 0 4px rgba(255, 234, 0, 0.7);
}
.layer-filter-swatch.lfs-poly {
  border-radius: 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.layer-filter-swatch.lfs-bu-after,
.layer-filter-swatch.lfs-generic {
  background: linear-gradient(90deg, #1F6FB2 0 20%, #C8452C 20% 40%, #2E8B57 40% 60%, #D99A1E 60% 80%, #7A4FB5 80% 100%);
  opacity: 0.9;
}
.layer-filter-swatch.lfs-bu-before {
  background: linear-gradient(90deg, #8C8C8C 0 16%, #C8452C 16% 33%, #1F6FB2 33% 50%, #2E8B57 50% 66%, #D99A1E 66% 83%, #7A4FB5 83% 100%);
  opacity: 0.85;
}
.layer-filter-swatch.lfs-ut-after {
  background: rgba(31, 111, 178, 0.25);
  border-style: dashed;
  border-color: #5ec8ff;
}
.layer-filter-swatch.lfs-ut-before {
  background: rgba(140, 140, 140, 0.25);
  border-style: dashed;
  border-color: #a0a8b4;
}
.layer-filter-swatch.lfs-upload {
  background: rgba(232, 163, 23, 0.35);
  border-color: #e8a317;
}
.layer-filter-swatch.lfs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
.layer-filter-swatch.lfs-dt-public {
  background: #3d9cf0;
}
.layer-filter-swatch.lfs-dt-private {
  background: #e4572e;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border: 0;
  box-shadow: 0 0 0 1px rgba(255, 247, 242, 0.85);
}
.layer-filter-swatch.lfs-iss {
  background: #e8a317;
  border-color: #fff3c4;
}
.layer-filter-swatch.lfs-diamond {
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #c8452c;
  transform: rotate(45deg);
  border-radius: 1px;
}
.story-map-shell {
  margin-top: 1rem;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.story-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 2000;
}
.story-map-shell .story-map-panel,
.story-map-shell .story-map-mini {
  position: relative;
  z-index: 1;
}
.story-map-toolbar-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.ikedc-map-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.ikedc-map-popup .leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  min-width: 220px;
  max-width: 340px;
  line-height: 1.35;
}
.map-popup-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c90;
  margin-bottom: 0.25rem;
}
.map-popup-title {
  display: block;
  font-size: 1.02rem;
  color: #0f1c2e;
  margin-bottom: 0.15rem;
  white-space: normal;
  word-break: break-word;
}
.map-popup-sub {
  font-size: 0.82rem;
  color: #3d5166;
  margin-bottom: 0.55rem;
}
.map-popup-dl {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.map-popup-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.55rem;
  font-size: 0.8rem;
}
.map-popup-dl dt {
  margin: 0;
  color: #6b7c90;
  font-weight: 600;
}
.map-popup-dl dd {
  margin: 0;
  color: #132033;
}
.map-popup-wide {
  grid-template-columns: 1fr !important;
}
.map-popup-wide dd { margin-top: 0.15rem; }
.map {
  flex: 1;
  min-height: 420px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Expand / collapse basemap (same tab, full dashboard viewport) */
.map-expand-control a.map-expand-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #1a2332 !important;
  background: #fff !important;
}
.map-expand-control a.map-expand-btn:hover {
  background: #f0f4f8 !important;
}
.map-expand-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.map-expand-icon-close {
  display: none !important;
}
.map-expanded .map-expand-icon-open {
  display: none !important;
}
.map-expanded .map-expand-icon-close {
  display: block !important;
}
body.map-expand-active {
  overflow: hidden;
}
.map-card.map-expanded,
.cov-map-card.map-expanded,
.story-map-shell.map-expanded {
  position: fixed !important;
  inset: 0.65rem !important;
  z-index: 9000 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg-card, #0f1724);
  overflow: hidden;
}
.map-card.map-expanded .map,
.cov-map-card.map-expanded .map,
.story-map-shell.map-expanded .story-map-panel,
.story-map-shell.map-expanded .story-map-mini,
.story-map-shell.map-expanded .map {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  border-radius: 0 0 12px 12px !important;
}
.map-card.map-expanded .card-head,
.cov-map-card.map-expanded .card-head,
.story-map-shell.map-expanded .story-map-toolbar {
  flex: 0 0 auto;
  z-index: 2;
}
.map-card.map-expanded .map-legend {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  background: color-mix(in srgb, var(--bg-card, #0f1724) 92%, #000);
}
/* Instant map chrome while satellite tiles stream in */
.leaflet-container {
  background: #1c2836;
}
.leaflet-tile-pane {
  will-change: contents;
}
.ikedc-basemap-imagery,
.ikedc-basemap-labels,
.ikedc-basemap-placeholder {
  transition: opacity 0.22s ease;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.map-label {
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}
.map-label-bu,
.map-label-ut {
  background: transparent !important;
  border: none !important;
}
.map-label-chip {
  transform: translate(-50%, -50%);
  display: inline-block;
  color: #ffffff !important;
  font-family: Sora, "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 3px solid var(--label-accent, #f0b429);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.map-label-bu .map-label-chip {
  font-size: 13px;
}
.map-label-ut .map-label-chip {
  font-size: 11px;
  border-left-width: 2px;
}
.legend-swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
.compare .side {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}
.compare .side h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.compare .metric {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.92rem;
}
.compare .metric:last-child { border-bottom: 0; }
.compare .arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 360px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.table-wrap table { min-width: 560px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
th, td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--text);
}
th {
  position: sticky;
  top: 0;
  background: var(--th-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr { cursor: pointer; transition: background 0.15s ease, opacity 0.18s ease, filter 0.18s ease; }
tbody tr:hover { background: rgba(255,255,255,0.04); }
tbody tr.active { background: rgba(232, 163, 23, 0.12); }
tbody.has-selection tr:not(.active) {
  opacity: 0.34;
  filter: grayscale(0.35);
  font-weight: 400;
}
tbody.has-selection tr.active {
  opacity: 1;
  filter: none;
  font-weight: 700;
  background: rgba(232, 163, 23, 0.16);
  box-shadow: inset 3px 0 0 var(--accent, #e8a317);
}
tbody.has-selection tr.active td {
  font-weight: 700;
  color: var(--text);
}

.split-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.tab-panel[hidden] { display: none !important; }

/* Force KPI values white/high-contrast (fixes button inheritance) */
.kpi .value,
button.kpi .value {
  color: var(--text) !important;
}

/* Coverage dashboard */
.coverage-app { max-width: 1800px; }
.cov-header { margin-bottom: 1rem; }
.cov-header .brand { width: 100%; max-width: 52rem; }
.cov-header .brand > div { min-width: 0; flex: 1 1 auto; }
.cov-sub { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.01em; }
.coverage-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1.5fr) minmax(280px, 360px);
  gap: 0.9rem;
  align-items: start;
}
.cov-left-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.cov-kpis { display: grid; gap: 0.7rem; }
.cov-kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}
.cov-kpi:hover,
.cov-kpi.active {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.cov-kpi .label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cov-kpi .value {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}
.cov-kpi .hint { margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.accent-orange { color: #ea580c !important; }
.accent-yellow { color: #ca8a04 !important; }
.accent-cyan { color: #0d9488 !important; }
.accent-blue { color: #2563eb !important; }
.accent-green { color: #059669 !important; }
[data-theme="dark"] .accent-orange { color: #ff8a3d !important; }
[data-theme="dark"] .accent-yellow { color: #f0c040 !important; text-shadow: 0 0 18px rgba(240, 200, 80, 0.35); }
[data-theme="dark"] .accent-cyan { color: #4fd1c5 !important; }
[data-theme="dark"] .accent-blue { color: #6eb6ff !important; }
[data-theme="dark"] .accent-green { color: #3dcf8e !important; }
.cov-map-card { min-height: 520px; }
.cov-map-card .map { min-height: 420px; }
.cov-center { display: grid; gap: 0.8rem; }
.cov-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.cov-insight {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-align: left;
  color: inherit;
  font: inherit;
}
.cov-insight:hover,
.cov-insight.active {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cov-insight h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
}
.cov-insight p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.cov-insight .metric {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-soft);
}
[data-theme="light"] .cov-insight .metric { color: var(--accent); }
.cov-filter-card .cov-bu-chips {
  margin-top: 0.45rem;
  width: 100%;
  overflow-x: auto;
}
.cov-bu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cov-bu-table th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cov-bu-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  white-space: nowrap;
}
.cov-bu-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.cov-bu-row:hover { background: rgba(232, 163, 23, 0.08); }
.cov-bu-row.active {
  background: rgba(232, 163, 23, 0.14);
}
.cov-insights.has-selection .cov-insight:not(.active) {
  opacity: 0.38;
  filter: grayscale(0.3);
}
.cov-insights.has-selection .cov-insight.active {
  opacity: 1;
  filter: none;
  font-weight: 700;
  outline: 1px solid rgba(232, 163, 23, 0.45);
}
.cov-bu-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--bu-accent, var(--text));
}
.cov-bu-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--bu-accent, #6b7c90);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.cov-bu-row.active .cov-bu-name {
  color: var(--bu-accent, var(--accent));
}
.cov-feeder-list {
  margin: 0.5rem 0 0;
  max-height: 280px;
  overflow: auto;
}
.cov-feeder-table-wrap { max-height: 260px; overflow: auto; }
.cov-feeder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cov-feeder-table th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  z-index: 1;
}
.cov-feeder-table td {
  padding: 0.42rem 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.cov-feeder-table tbody tr {
  cursor: pointer;
}
.cov-feeder-table tbody tr:hover,
.cov-feeder-table tbody tr.active {
  background: rgba(232, 163, 23, 0.12);
}
.feeder-name-cell {
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  min-width: 12rem;
  max-width: 28rem;
  line-height: 1.35;
}
#feeder-table .feeder-name-cell {
  white-space: normal;
  word-break: break-word;
}
.cov-right { display: grid; gap: 0.8rem; }
.cov-feed-card .card-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: start; }
.cov-feed-card .live-feed-list {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.cov-feed-card .live-feed-host { max-height: 380px; }
.intel-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.9rem;
}
.intel-main { min-width: 0; }
.intel-feed-rail {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}
.intel-feed-rail .card-head {
  flex-shrink: 0;
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.intel-feed-rail .card-head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.intel-feed-rail .card-head p {
  font-size: 0.72rem;
  line-height: 1.35;
}
.live-feed-host { max-height: 440px; overflow: auto; }
.live-feed-host--rail {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}
.live-feed-host--rail .live-feed-list {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.live-feed-host--rail .feed-filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-card);
  padding-bottom: 0.35rem;
}
.live-feed-host--rail .feed-title {
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-feed-host--compact { max-height: 280px; }
.live-feed-host--compact .live-feed-list {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.live-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}
/* White/solid dual tabs removed — single green outlined filter bar only */
.live-feed-tabs,
.live-feed-tab { display: none !important; }
.feed-badges,
.feed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.feed-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--ok);
  color: var(--ok);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.feed-badge:hover {
  border-color: var(--accent);
  color: var(--accent-soft, var(--accent));
}
.feed-badge.ok { border-color: var(--ok); color: var(--ok); }
.feed-badge.err { border-color: var(--ikeja); color: var(--ikeja); opacity: 0.85; }
.feed-badge.active {
  background: rgba(232, 163, 23, 0.16);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 23, 0.28);
}
.chart-box { cursor: pointer; }
#ut-table tbody tr,
#feeder-table tbody tr,
#story-bu-table tbody tr {
  cursor: pointer;
}
#ut-table tbody tr:hover,
#feeder-table tbody tr:hover,
#story-bu-table tbody tr:hover,
#ut-table tbody tr.active,
#feeder-table tbody tr.active,
#story-bu-table tbody tr.active {
  background: rgba(232, 163, 23, 0.12);
}
.chart-box canvas {
  transition: filter 0.2s ease;
}
.map-label-bu,
.map-label-ut,
.map-label-chip {
  pointer-events: none;
}
.live-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.live-feed-list li a {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--accent);
  background: var(--panel-soft);
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  color: var(--text);
}
.live-feed-list li a:hover { border-left-color: var(--accent-soft); }
.feed-src {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-title { font-size: 0.86rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.feed-time { font-size: 0.72rem; color: var(--muted); }
.live-feed-empty {
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Story map */
.story-app { max-width: 980px; padding-bottom: 4rem; }
.story-hero {
  position: relative;
  text-align: center;
  padding: 3.2rem 1.2rem 2.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  background:
    linear-gradient(160deg, rgba(12, 17, 24, 0.55), rgba(12, 17, 24, 0.78)),
    url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/10/501/474")
      center / cover no-repeat;
  animation: storyIn 0.8s ease;
  border: 1px solid var(--line);
}
[data-theme="light"] .story-hero {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(232, 238, 245, 0.9)),
    url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/10/501/474")
      center / cover no-repeat;
}
.story-hero .brand-logo { height: 64px; margin: 0 auto 1rem; display: block; }
.story-credit {
  display: inline-block;
  color: var(--brand-glow);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  animation: pulseGlow 2.8s ease-in-out infinite;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
[data-theme="light"] .story-credit {
  color: #92400e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.story-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.8rem 0;
  letter-spacing: -0.03em;
  color: var(--text);
}
.story-lead {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 1.4rem;
  line-height: 1.55;
}
.story-quote {
  margin: 1.2rem auto 0;
  max-width: 680px;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}
.story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.2rem 0 0.4rem;
  position: sticky;
  top: 58px;
  z-index: 20;
  padding: 0.45rem;
  background: var(--chrome);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.story-nav button,
.story-nav a {
  color: var(--muted);
  text-decoration: none;
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.story-nav button:hover,
.story-nav a:hover {
  color: var(--text);
  background: var(--chip-bg);
}
.story-nav button.active,
.story-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #c8452c, #d99a1e);
  box-shadow: 0 4px 14px rgba(200, 69, 44, 0.28);
}
[data-theme="light"] .story-nav button.active {
  color: #fff;
}
.story-panel {
  display: none;
  margin: 1.1rem 0 2rem;
  padding: 1.45rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-panel.active {
  display: block;
}
.story-panel.story-panel-enter {
  animation: storyPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes storyPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.story-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}
.story-panel > p { color: var(--muted); line-height: 1.55; }
.story-map-panel {
  height: min(420px, 55vh);
  margin-top: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.story-filter-status {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(232, 163, 23, 0.12);
  border: 1px solid rgba(232, 163, 23, 0.35);
  color: var(--text);
  font-size: 0.82rem;
}
.story-filter-status[hidden] { display: none !important; }
.chart-interactive { cursor: pointer; }
.story-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.story-method-steps {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}
.story-method-steps li { margin: 0.45rem 0; }
.story-method-steps strong { color: var(--accent); }
.story-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.story-explore-grid article {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.story-explore-grid h3 { margin: 0 0 0.4rem; color: var(--text); }
.story-explore-grid p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.88rem; }
.story-bu-card {
  text-align: left;
  cursor: pointer;
  font: inherit;
  width: 100%;
  background: var(--panel-soft);
}
.story-section {
  margin: 1.6rem 0;
  padding: 1.45rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: storyIn 0.7s ease both;
  scroll-margin-top: 110px;
}
.story-section.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.story-section.reveal.in-view {
  opacity: 1;
  transform: none;
}
.story-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}
.story-section > p { color: var(--muted); line-height: 1.55; }
.story-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.story-stats div {
  text-align: center;
  padding: 0.9rem 0.5rem;
  border-radius: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.story-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}
.story-stats span { font-size: 0.78rem; color: var(--muted); }
.story-bu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.story-bu-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-top: 3px solid var(--bu-color, var(--accent));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.story-bu-card:hover { transform: translateY(-2px); }
.story-bu-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; color: var(--text); }
.story-bu-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.story-cards article {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.story-cards h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--text); }
.story-cards p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.story-media-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
.story-map-mini {
  min-height: 280px;
  height: min(320px, 48vh);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.story-cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.story-table { margin-top: 1rem; max-height: 320px; }
.story-split-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

@keyframes storyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.25); }
}

/* ---------- Responsive: desktop → tablet → phone ---------- */
@media (max-width: 1500px) {
  .kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .coverage-layout {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(240px, 300px);
  }
}

@media (max-width: 1200px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .intel-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr; }
  .toolbar { width: 100%; }
  .filters {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }
  .combo {
    flex: 1 1 160px;
    max-width: none;
    min-width: 140px;
  }
  .io-actions {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }
  .intel-shell {
    grid-template-columns: 1fr;
  }
  .intel-feed-rail {
    position: relative;
    top: auto;
    max-height: none;
    order: 2;
  }
  .intel-main { order: 1; }
  .live-feed-host--rail {
    max-height: 360px;
  }
  .overview-grid,
  .assets-grid,
  .feeders-grid { grid-template-columns: 1fr; }
  .split-charts { grid-template-columns: 1fr; }
  .coverage-layout { grid-template-columns: 1fr; }
  .cov-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cov-insights { grid-template-columns: 1fr; }
  .map-card,
  .cov-map-card { min-height: 420px; }
  .map,
  .cov-map-card .map { min-height: 340px; }
  .story-stats, .story-cards, .story-media-strip, .story-split-charts, .story-explore-grid { grid-template-columns: 1fr 1fr; }
  .brand h1 { font-size: clamp(1rem, 2.6vw, 1.25rem); }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filters, .io-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .chrome {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.75rem;
  }
  .chrome-left, .chrome-right, .chrome-tabs {
    width: 100%;
  }
  .chrome-tabs {
    justify-content: stretch;
    order: 2;
  }
  .chrome-right { order: 3; }
  .chrome .btn,
  .chrome .btn-ghost,
  .chrome .btn-accent,
  .chrome .btn-primary,
  .chrome .btn-secondary {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
  }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
  .kpi { padding: 0.7rem 0.75rem; }
  .kpi .value { font-size: 1.25rem; }
  .tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .tab {
    white-space: nowrap;
    min-height: 40px;
    flex: 1 1 auto;
    text-align: center;
  }
  .cov-kpis { grid-template-columns: 1fr 1fr; }
  .story-app { padding-left: 0.75rem; padding-right: 0.75rem; }
  .story-hero { padding: 2rem 0.5rem 1.5rem; }
  .footer { flex-direction: column; gap: 0.35rem; }
}

@media (max-width: 480px) {
  .app { padding: 0.85rem 0.65rem 1.5rem; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combo { flex: 1 1 100%; min-width: 0; }
  .cov-kpis { grid-template-columns: 1fr; }
  .map-card,
  .cov-map-card { min-height: 360px; }
  .map,
  .cov-map-card .map { min-height: 280px; }
  .story-stats, .story-cards, .story-media-strip, .story-split-charts, .story-explore-grid { grid-template-columns: 1fr; }
  .story-nav { top: auto; position: relative; border-radius: 12px; }
  .story-cta-row .btn { width: 100%; min-height: 44px; }
  .btn, .btn-primary, .btn-secondary, .combo-trigger {
    min-height: 44px;
  }
}

/* Live energized feeder network — SVG path dash animation (Leaflet className) */
.leaflet-feeder-pane,
.leaflet-pane.leaflet-feeder-pane {
  z-index: 455;
}
.leaflet-feeder-pane path.feeder-hit,
.leaflet-overlay-pane path.feeder-hit {
  pointer-events: stroke !important;
  cursor: pointer !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0 !important;
}
.leaflet-feeder-pane path.feeder-line,
.leaflet-feeder-pane path.feeder-visual,
.leaflet-overlay-pane path.feeder-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none !important;
}
.feeder-attr-popup .leaflet-popup-content {
  margin: 0.7rem 0.85rem;
}
.map-popup-hint {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: #6b7c90;
  line-height: 1.35;
}
.leaflet-overlay-pane path.feeder-11kv,
.leaflet-feeder-pane path.feeder-11kv {
  stroke-dasharray: 10 8;
  animation: feeder-flow-11 2.2s linear infinite;
  filter: drop-shadow(0 0 1.5px rgba(0, 229, 255, 0.85));
}
.leaflet-overlay-pane path.feeder-33kv,
.leaflet-feeder-pane path.feeder-33kv {
  stroke-dasharray: 16 10;
  animation: feeder-flow-33 1.7s linear infinite;
  filter: drop-shadow(0 0 2px rgba(255, 234, 0, 0.9));
}
.leaflet-overlay-pane path.feeder-focus,
.leaflet-feeder-pane path.feeder-focus {
  stroke-dasharray: 8 6;
  animation: feeder-flow-focus 1.1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 77, 77, 0.65));
}
@keyframes feeder-flow-11 {
  to { stroke-dashoffset: -36; }
}
@keyframes feeder-flow-33 {
  to { stroke-dashoffset: -52; }
}
@keyframes feeder-flow-focus {
  to { stroke-dashoffset: -28; }
}
.dt-marker {
  background: transparent !important;
  border: 0 !important;
}
.dt-marker svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Before ↔ After network swipe (ArcGIS-style) */
.era-swipe-map {
  position: relative;
}
/* Era panes use CSS clip:rect in layer pixels — keep absolute for clip to apply */
.leaflet-eraBefore-pane,
.leaflet-eraAfter-pane {
  position: absolute !important;
}
.era-swipe-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: #f0b429;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 12px rgba(240, 180, 41, 0.55);
  z-index: 650;
  cursor: ew-resize;
  touch-action: none;
  pointer-events: auto;
}
.era-swipe-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #0f1c2e;
  border: 2px solid #f0b429;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.era-swipe-handle::before,
.era-swipe-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-50%);
}
.era-swipe-handle::before {
  left: 5px;
  border-right: 6px solid #f0b429;
}
.era-swipe-handle::after {
  right: 5px;
  border-left: 6px solid #f0b429;
}
.era-swipe {
  margin: 0.55rem 0 0.15rem;
  padding: 0.45rem 0.65rem 0.5rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card, #121a24) 92%, #000);
  border: 1px solid color-mix(in srgb, var(--accent, #f0b429) 35%, transparent);
}
.era-swipe-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.era-swipe-chip {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent, #f0b429) 45%, transparent);
  background: transparent;
  color: var(--text, #e8eef7);
  font: 700 11px/1 Sora, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}
.era-swipe[data-era="before"] .era-swipe-chip[data-era-set="before"],
.era-swipe[data-era="after"] .era-swipe-chip[data-era-set="after"] {
  background: var(--accent, #f0b429);
  color: #0b1728;
  border-color: transparent;
}
.era-swipe-slider {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}
.era-swipe-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent, #f0b429);
  cursor: pointer;
}
.era-swipe-status {
  margin: 0.35rem 0 0;
  font: 600 12px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--muted, #8b9bb0);
}
.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;
}

@media (prefers-reduced-motion: reduce) {
  #starfield { display: none; }
  .eyebrow-track, .eyebrow-glow, .story-credit { animation: none !important; }
  .leaflet-overlay-pane path.feeder-line {
    animation: none !important;
    stroke-dasharray: none !important;
  }
}
