* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
}

.page {
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  margin: 0 0 6px;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #c7f9df;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.metric-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.metric-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.metric-value {
  font-weight: 700;
}

.metric-value span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

.metric-help {
  margin-top: 8px;
  line-height: 1.35;
}

.clean-card {
  position: relative;
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.clean-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #bbf7d0;
}

.info-icon-button {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
}

.info-icon-glow {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35),
    0 0 18px rgba(56, 189, 248, 0.18);
  transition: all 0.2s ease;
}

.info-icon-symbol {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(15, 23, 42, 0.95);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.info-icon-button:hover .info-icon-glow,
.info-icon-button:focus-visible .info-icon-glow {
  background: rgba(56, 189, 248, 0.24);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45),
    0 0 22px rgba(56, 189, 248, 0.22);
}

.tooltip-panel {
  position: absolute;
  top: 28px;
  right: 0;
  width: 260px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 20;
  pointer-events: none;
}

.clean-card.tooltip-open .tooltip-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tooltip-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}

.tooltip-text {
  font-size: 12px;
  line-height: 1.45;
  color: #e5e7eb;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
}

.panel-subtitle {
  font-size: 13px;
}

.mix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mix-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 16px;
}

.mix-card-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.mix-card-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mix-card-value span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.mix-track {
  height: 12px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mix-fill {
  height: 100%;
  border-radius: 999px;
}

.mix-fill.gas {
  background: var(--gas);
}

.mix-fill.solar {
  background: var(--solar);
}

.mix-fill.wind {
  background: var(--wind);
}

.mix-fill.nuclear {
  background: var(--nuclear);
}

.mix-fill.imports {
  background: var(--imports);
}

.mix-fill.biomass {
  background: var(--biomass);
}

.mix-fill.hydro {
  background: var(--hydro);
}

.mix-fill.coal {
  background: var(--coal);
}

.mix-fill.other {
  background: var(--other);
}

.mix-percent {
  font-size: 14px;
  color: var(--muted);
}

.chart-panel canvas {
  width: 100% !important;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 0 4px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 7px 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1080px) {
.top-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mix-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tooltip-panel {
  right: auto;
  left: 0;
}

}

@media (max-width: 640px) {
body {
  padding: 14px;
}

.site-header {
  flex-direction: column;
}

.top-grid,
  .mix-grid {
  grid-template-columns: 1fr;
}

.metric-value {
  font-size: 28px;
}

.demand-ring {
  width: 220px;
  height: 220px;
}

.demand-value {
  font-size: 32px;
}

.tooltip-panel {
  width: 220px;
}

}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 16px;
  color: #fde68a;
}

.empty-state span {
  color: #fef3c7;
}

.insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.insight-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-panel h2 {
  margin: 0 0 8px;
  line-height: 1.16;
}

.insight-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.source-accent.wind {
  color: var(--wind);
}

.source-accent.solar {
  color: var(--solar);
}

.source-accent.gas {
  color: var(--gas);
}

.source-accent.nuclear {
  color: var(--nuclear);
}

.source-accent.imports {
  color: var(--imports);
}

.source-accent.hydro {
  color: var(--hydro);
}

.source-accent.biomass {
  color: var(--biomass);
}

.source-accent.coal {
  color: var(--coal);
}

.source-accent.other {
  color: var(--other);
}

.clean-vs-fossil {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
}

.clean-bar {
  height: 16px;
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.65),
    rgba(249, 115, 22, 0.65)
  );
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clean-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #22c55e, #a3e635);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.clean-vs-fossil small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric-card {
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.18);
  background: #151f33;
}

.rank-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.mix-card-title.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mix-card.top-source {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.16);
}

.noscript-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: 12px;
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

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

.flow-dot {
  display: none;
}

}

@media (max-width: 860px) {
.top-grid {
  grid-template-columns: 1fr;
}

.insight-panel {
  grid-template-columns: 1fr;
}

.insight-panel h2 {
  font-size: 22px;
}

}

@media (max-width: 640px) {
h1 {
  font-size: 30px;
}

.insight-panel {
  padding: 16px;
}

.bar-labels {
  font-size: 12px;
}

}

:root {
  --gas: #3b82f6;
  --solar: #f59e0b;
  --wind: #10b981;
  --nuclear: #cbd5e1;
  --imports: #a855f7;
  --biomass: #84cc16;
  --hydro: #06b6d4;
  --coal: #6b7280;
  --other: #f97316;
  --pumped: #06b6d4;
  --bg: #070d18;
  --panel: #111827;
  --panel-2: #0c1524;
  --text: #f3f7fb;
  --muted: #a8b3c5;
  --border: rgba(148, 163, 184, 0.14);
  --glow: rgba(45, 212, 191, 0.18);
}

html,
body {
  background: radial-gradient(
      circle at 20% -10%,
      rgba(34, 197, 94, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(59, 130, 246, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, #060b14 0%, #09101d 55%, #070d18 100%);
  font-family: Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

body {
  padding: 28px 18px;
}

.site-header {
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(9, 16, 29, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.tagline {
  font-size: 16px;
  max-width: 720px;
  line-height: 1.55;
}

.eyebrow {
  color: #86efac;
}

.status-pill {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 26px rgba(34, 197, 94, 0.08);
}

.dot {
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12),
    0 0 18px rgba(16, 185, 129, 0.75);
}

.insight-panel,
.metric-card,
.panel {
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.insight-panel {
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.16),
    rgba(59, 130, 246, 0.08) 52%,
    rgba(15, 23, 42, 0.72)
  );
  border-color: rgba(45, 212, 191, 0.18);
}

.insight-panel h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.03em;
}

.clean-vs-fossil {
  background: rgba(6, 13, 24, 0.72);
  border-color: rgba(148, 163, 184, 0.14);
}

.top-grid {
  gap: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.92),
    rgba(12, 21, 36, 0.92)
  );
  min-height: 148px;
}

.metric-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at 18% 12%,
    rgba(34, 197, 94, 0.18),
    transparent 35%
  );
  opacity: 0.85;
  pointer-events: none;
}

.metric-card > * {
  position: relative;
}

.metric-label {
  font-weight: 800;
  color: #98a6bb;
}

.metric-value {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.metric-card-clean .metric-value {
  color: #bbf7d0;
}

.metric-help {
  font-size: 14px;
}

.panel {
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.9),
    rgba(10, 18, 31, 0.94)
  );
  padding: 22px;
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: 22px;
}

.panel-subtitle {
  color: #9aa8ba;
}

.flow-box,
.mix-card,
.summary-card {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flow-box:hover,
.mix-card:hover {
  border-color: rgba(125, 211, 252, 0.2);
  transform: translateY(-1px);
}

.flow-box,
.mix-card {
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.demand-ring {
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.14);
}

.mix-grid {
  gap: 16px;
}

.mix-card {
  border-radius: 18px;
}

.mix-card.top-source {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.1),
    rgba(15, 23, 42, 0.76)
  );
  border-color: rgba(45, 212, 191, 0.16);
}

.rank-pill {
  background: rgba(45, 212, 191, 0.14);
  color: #d1fae5;
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.mix-track,
.clean-bar {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.chart-panel canvas {
  height: 340px !important;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  color: #9aa8ba;
}

.site-footer a {
  color: #a7f3d0;
}

@media (max-width: 1080px) {
.summary-grid {
  grid-template-columns: repeat(2, 1fr);
}

.site-footer {
  grid-template-columns: 1fr;
}

}

@media (max-width: 860px) {
body {
  padding: 14px;
}

.site-header {
  align-items: flex-start;
}

.status-pill {
  align-self: flex-start;
}

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

.metric-card {
  min-height: auto;
}

.flow-center {
  min-height: 500px;
}

}

.generation-split {
  background: rgba(6, 13, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
}

.split-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 9px;
}

.split-labels span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.split-labels strong {
  color: #e5e7eb;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.split-bar {
  display: flex;
  height: 16px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.split-bar-fill {
  height: 100%;
  min-width: 0;
  transition: width 0.5s ease;
}

.split-clean {
  background: linear-gradient(90deg, #10b981, #22c55e, #a3e635);
}

.split-fossil {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.split-other {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.split-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.split-totals span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.legend-dot.clean {
  background: #22c55e;
}

.legend-dot.fossil {
  background: #f97316;
}

.legend-dot.other {
  background: #6366f1;
}

.generation-split small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 640px) {
.split-labels,
  .split-totals {
  grid-template-columns: 1fr;
}

.split-labels span {
  flex-direction: row;
  justify-content: space-between;
}

.split-totals span {
  white-space: normal;
}

}

.top-sources-panel {
  margin: -2px 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.82),
    rgba(10, 18, 31, 0.9)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.top-sources-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.top-sources-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.top-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.top-source-card {
  position: relative;
  overflow: hidden;
  min-height: 102px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.top-source-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at 14% 8%,
    rgba(45, 212, 191, 0.16),
    transparent 38%
  );
  pointer-events: none;
}

.top-source-card:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(18, 28, 46, 0.82);
}

.top-source-card > * {
  position: relative;
}

.top-source-card.gas {
  border-color: rgba(59, 130, 246, 0.22);
}

.top-source-card.solar {
  border-color: rgba(245, 158, 11, 0.22);
}

.top-source-card.wind {
  border-color: rgba(16, 185, 129, 0.22);
}

.top-source-card.nuclear {
  border-color: rgba(203, 213, 225, 0.2);
}

.top-source-card.imports {
  border-color: rgba(168, 85, 247, 0.24);
}

.top-source-card.biomass {
  border-color: rgba(132, 204, 22, 0.22);
}

.top-source-card.hydro {
  border-color: rgba(6, 182, 212, 0.22);
}

.top-source-card.coal {
  border-color: rgba(107, 114, 128, 0.22);
}

.top-source-card.other {
  border-color: rgba(249, 115, 22, 0.22);
}

.top-source-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #d1fae5;
  border: 1px solid rgba(45, 212, 191, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.top-source-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}

.top-source-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.top-source-main p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

@media (max-width: 860px) {
.top-sources-grid {
  grid-template-columns: 1fr;
}

.top-sources-head {
  display: block;
}

.top-sources-head p {
  margin-top: 4px;
}

}

.flow-rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.24);
  color: #d1fae5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.flow-box.ranked-source {
  background: linear-gradient(
    180deg,
    rgba(20, 184, 166, 0.08),
    rgba(15, 23, 42, 0.72)
  );
  border-color: rgba(45, 212, 191, 0.18);
}

.insight-panel {
  position: relative;
  overflow: hidden;
}

.insight-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(8px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.85), transparent 64%);
}

.insight-panel > * {
  position: relative;
  z-index: 1;
}

.insight-panel.insight-clean {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(59, 130, 246, 0.08) 52%,
    rgba(15, 23, 42, 0.76)
  );
  border-color: rgba(34, 197, 94, 0.28);
}

.insight-panel.insight-fossil {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.16),
    rgba(59, 130, 246, 0.07) 52%,
    rgba(15, 23, 42, 0.78)
  );
  border-color: rgba(251, 146, 60, 0.28);
}

.insight-panel.insight-fossil::before {
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.78),
    transparent 64%
  );
}

.insight-panel.insight-other {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.16),
    rgba(59, 130, 246, 0.08) 52%,
    rgba(15, 23, 42, 0.78)
  );
  border-color: rgba(139, 92, 246, 0.3);
}

.insight-panel.insight-other::before {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.78),
    transparent 64%
  );
}

.insight-panel [data-live-headline] {
  max-width: 850px;
}

.insight-panel [data-live-headline-detail] {
  max-width: 820px;
  font-size: 15px;
}

.flow-name.with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.flow-title {
  font-size: 14px;
  font-weight: 700;
  color: #dbeafe;
}

.flow-num {
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.flow-num span {
  margin-left: 3px;
  letter-spacing: 0;
}

.flow-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #94a3b8;
  font-size: 13px;
}

.flow-pct {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.11);
  font-weight: 800;
}

.flow-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
  line-height: 1.2;
}

.flow-status span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.flow-status-high {
  color: #4ade80;
}

.flow-status-moderate {
  color: #facc15;
}

.flow-status-typical {
  color: #38bdf8;
}

.flow-status-low {
  color: #fb923c;
}

.flow-status-minimal {
  color: #f87171;
}

.flow-status-reliance {
  color: #c084fc;
}

.flow-status-good {
  color: #34d399;
}

.flow-status-night {
  color: #fde047;
}

.flow-box.imports .flow-pct {
  background: rgba(168, 85, 247, 0.16);
}

.flow-box.wind .flow-pct {
  background: rgba(16, 185, 129, 0.16);
}

.flow-box.solar .flow-pct {
  background: rgba(245, 158, 11, 0.16);
}

.flow-box.hydro .flow-pct {
  background: rgba(6, 182, 212, 0.16);
}

.flow-box.other .flow-pct {
  background: rgba(249, 115, 22, 0.16);
}

.flow-box.nuclear .flow-pct {
  background: rgba(203, 213, 225, 0.14);
}

.flow-box.gas .flow-pct {
  background: rgba(59, 130, 246, 0.16);
}

.flow-box.biomass .flow-pct {
  background: rgba(132, 204, 22, 0.16);
}

.flow-box.coal .flow-pct {
  background: rgba(107, 114, 128, 0.16);
}

@media (max-width: 640px) {
.flow-box {
  min-height: 104px;
}

.flow-num {
  font-size: 26px;
}

}

@media (min-width: 641px) and (max-width: 1080px) {
.flow-board {
  display: grid !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.flow-col {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.flow-center {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-top: 0 !important;
  min-height: 580px !important;
  overflow: visible !important;
}

.flow-svg {
  display: block !important;
  position: absolute !important;
  width: 100% !important;
  z-index: 1 !important;
  overflow: visible !important;
}

.summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  position: relative !important;
  z-index: 3 !important;
  margin-top: -6px !important;
  margin-bottom: 2px !important;
}

.summary-card {
  padding: 11px 8px !important;
  min-width: 0 !important;
}

.summary-card span {
  font-size: 11px !important;
}

.summary-card strong {
  font-size: 16px !important;
}

.demand-core {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  z-index: 3 !important;
  min-height: 360px !important;
  margin-top: -10px !important;
}

.demand-ring {
  width: 260px !important;
  height: 260px !important;
}

.demand-value {
  font-size: 34px !important;
}

.flow-box {
  width: auto !important;
  max-width: none !important;
  min-height: 96px !important;
}

}

@media (max-width: 640px) {
.flow-board {
  display: grid !important;
  gap: 16px !important;
}

.summary-grid {
  grid-template-columns: 1fr !important;
}

}

@media (min-width: 641px) and (max-width: 1080px) {
.flow-center .demand-core {
  min-height: 500px !important;
  margin-top: 0 !important;
}

.flow-svg {
  inset: 0 !important;
  height: 100% !important;
}

}

@media (max-width: 1080px) {
.top-grid-new-boxes > .metric-card:nth-child(5) {
  grid-column: 1 / -1 !important;
}

}

@media (max-width: 640px) {
.top-grid-new-boxes > .metric-card {
  min-height: auto;
}

}

.metric-card-export {
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.metric-card-export:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(56, 189, 248, 0.2),
    transparent 36%
  ) !important;
}

.metric-card-export .metric-label,
.metric-card-export .metric-value {
  color: #38bdf8 !important;
}

.metric-card-balance {
  border-color: rgba(251, 146, 60, 0.25) !important;
}

.metric-card-balance:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(251, 146, 60, 0.2),
    transparent 36%
  ) !important;
}

.metric-card-balance .metric-label,
.metric-card-balance .metric-value {
  color: #fb923c !important;
}

.metric-card-balance.exporting {
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.metric-card-balance.exporting:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(56, 189, 248, 0.2),
    transparent 36%
  ) !important;
}

.metric-card-balance.exporting .metric-label,
.metric-card-balance.exporting .metric-value {
  color: #38bdf8 !important;
}

.metric-card-balance.balanced .metric-label,
.metric-card-balance.balanced .metric-value {
  color: #86efac !important;
}

.balance-note {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: -2px 0 18px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  line-height: 1.35 !important;
}

.note-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(56, 189, 248, 0.36) !important;
  color: #7dd3fc !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  flex: 0 0 22px !important;
}

@media (min-width: 641px) and (max-width: 1080px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.top-grid-new-boxes > .metric-card:nth-child(1) {
  grid-column: 1 / span 2 !important;
}

.top-grid-new-boxes > .metric-card:nth-child(2) {
  grid-column: 3 / span 2 !important;
}

.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: 5 / span 2 !important;
}

.top-grid-new-boxes > .metric-card:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

.top-grid-new-boxes > .metric-card:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

}

@media (max-width: 640px) {
.balance-note {
  align-items: flex-start !important;
}

}

.flow-svg {
  overflow: visible !important;
  pointer-events: none;
}

.flow-line {
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 7px currentColor);
  transition: stroke-width 0.25s ease,
    opacity 0.25s ease,
    filter 0.25s ease;
}

.flow-line-highlight {
  stroke-width: 7px !important;
}

.flow-box.flow-card-hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.35) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demand-core {
  z-index: 4 !important;
}

.demand-ring {
  position: relative !important;
  z-index: 5 !important;
}

.metric-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-info-button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.36);
  background: rgba(15, 23, 42, 0.74);
  color: #7dd3fc;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.metric-card-info {
  overflow: visible;
}

.metric-tooltip {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% - 12px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0b1220;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  color: #dbeafe;
}

.metric-card-info.tooltip-open .metric-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
.metric-tooltip {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  margin-top: 12px;
}

}

@media (max-width: 640px) {
.metric-tooltip {
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.metric-card-info.tooltip-open .metric-tooltip {
  display: block !important;
}

}

.today-stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 18px;
}

.today-stat {
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.today-stat span {
  display: block;
  color: #98a6bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.today-stat strong {
  display: block;
  color: #f8fafc;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.today-stat small {
  display: block;
  margin-top: 8px;
  color: #a8b3c5;
  font-size: 13px;
  line-height: 1.35;
}

.today-stat small .peak-time-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 2px;
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(14, 165, 233, 0.12),
    rgba(59, 130, 246, 0.08)
  );
  color: #93c5fd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(2, 6, 23, 0.18);
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.today-stat small .peak-time-link:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.today-stat small .peak-time-link:hover,
.today-stat small .peak-time-link:focus-visible {
  transform: translateY(-1px);
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.42);
  background: linear-gradient(
    180deg,
    rgba(14, 165, 233, 0.2),
    rgba(59, 130, 246, 0.12)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 26px rgba(14, 165, 233, 0.12);
  outline: none;
}

.trend-up {
  color: #fb923c !important;
}

.trend-down {
  color: #34d399 !important;
}

@media (max-width: 860px) {
.today-stats-panel {
  grid-template-columns: 1fr;
}

}

.metric-tooltip {
  font-size: 11px;
  line-height: 1.42;
}

.demand-label-sub {
  margin-top: 6px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.seo-content-panel {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.82),
    rgba(10, 18, 31, 0.9)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: #dbeafe;
}

.seo-content-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.seo-content-panel p {
  margin: 0;
  color: #a8b3c5;
  line-height: 1.6;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.seo-content-grid article {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
}

.seo-content-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #f8fafc;
}

.seo-content-grid p {
  font-size: 14px;
}

@media (max-width: 860px) {
.seo-content-grid {
  grid-template-columns: 1fr;
}

}

.map-page {
  max-width: 1480px;
}

.map-header {
  align-items: center;
}

.map-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-back-link {
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
}

.map-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.map-side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-stat-card,
.map-mini-list,
.uk-map-panel,
.map-note-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.84),
    rgba(10, 18, 31, 0.92)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.map-stat-card {
  padding: 20px;
}

.map-stat-card span,
.map-mini-list h2 {
  display: block;
  margin: 0 0 8px;
  color: #98a6bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-stat-card strong {
  display: inline-block;
  color: #86efac;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.map-stat-card small {
  color: #a8b3c5;
  font-size: 15px;
  margin-left: 6px;
}

.map-mini-list {
  padding: 18px 20px;
}

.map-mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.map-mini-list span {
  color: #dbeafe;
}

.map-mini-list strong {
  color: #7dd3fc;
}

.map-mini-list p {
  margin: 12px 0 0;
  color: #a8b3c5;
  font-size: 13px;
  line-height: 1.45;
}

.uk-map-panel {
  padding: 18px;
  overflow: hidden;
}

.map-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.map-title-row h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.map-title-row p {
  margin: 0;
  color: #a8b3c5;
}

.map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #cbd5e1;
  font-size: 13px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-import {
  background: #86efac;
}

.legend-export {
  background: #a78bfa;
}

.legend-region {
  background: #38bdf8;
}

.map-stage {
  position: relative;
  min-height: 620px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(
      circle at 45% 40%,
      rgba(34, 197, 94, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(59, 130, 246, 0.1),
      transparent 24%
    ),
    linear-gradient(180deg, #07111f, #081120 70%, #06101d);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.grid-map-svg {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
}

.nearby-land,
.ireland-land {
  fill: rgba(15, 43, 71, 0.34);
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 1.2;
}

.map-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 18px currentColor);
  transition: stroke-width 0.3s ease,
    opacity 0.3s ease;
  stroke-dasharray: none;
  animation: none;
  opacity: 0.72;
}

.map-flow.import {
  stroke: #86efac;
  color: #86efac;
}

.map-flow.export {
  stroke: #a78bfa;
  color: #a78bfa;
}

.map-flow-pulse {
  pointer-events: none;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 18px currentColor);
  mix-blend-mode: screen;
}

.map-flow-pulse:nth-of-type(even) {
  opacity: 0.5;
}

.country-label rect {
  fill: rgba(15, 23, 42, 0.86);
  stroke: rgba(148, 163, 184, 0.22);
}

.country-label text {
  fill: #f8fafc;
  font-size: 14px;
  font-weight: 800;
}

.country-label text:nth-of-type(2) {
  fill: #86efac;
  font-size: 18px;
}

.country-label.netherlands text:nth-of-type(2),
.country-label.belgium text:nth-of-type(2) {
  fill: #c4b5fd;
}

.region-marker circle {
  fill: rgba(15, 23, 42, 0.72);
  stroke: rgba(56, 189, 248, 0.28);
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.16));
}

.region-marker text {
  text-anchor: middle;
  fill: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.region-marker text:nth-of-type(2) {
  fill: #86efac;
  font-size: 16px;
}

.map-note-panel {
  padding: 14px 18px;
  color: #cbd5e1;
  line-height: 1.5;
}

.map-note-panel strong {
  color: #f8fafc;
}

@media (max-width: 1080px) {
.map-layout {
  grid-template-columns: 1fr;
}

.map-side-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-mini-list {
  grid-column: 1/-1;
}

}

@media (max-width: 720px) {
.map-header {
  align-items: flex-start;
}

.map-header-actions {
  justify-content: flex-start;
}

.map-side-panel {
  grid-template-columns: 1fr;
}

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

.map-legend {
  justify-content: flex-start;
  margin-top: 12px;
}

.map-stage,
  .grid-map-svg {
  min-height: 520px;
}

}

.view-link.active {
  color: #06111f;
  background: linear-gradient(135deg, #86efac, #38bdf8);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.18);
}

.site-header > div:last-child,
.map-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.map-back-link {
  display: none;
}

@media (max-width: 720px) {
.site-header > div:last-child,
  .map-header-actions {
  justify-content: flex-start;
}

.view-switcher {
  order: -1;
}

.view-link {
  min-height: 32px;
  padding: 0 12px;
}

}

.grid-action-panel {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88),
    rgba(12, 21, 36, 0.92)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.grid-action-panel:before {
  content: "";
  position: absolute;
  inset: -80px auto auto -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(4px);
  pointer-events: none;
  background: #38bdf8;
}

.grid-action-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.grid-action-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: #7dd3fc;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.12);
}

.grid-action-kicker {
  margin: 0 0 5px;
  color: #98a6bb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.grid-action-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.grid-action-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.grid-action-reasons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.grid-action-reasons div {
  padding: 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  text-align: center;
}

.grid-action-reasons span {
  display: block;
  color: #98a6bb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.grid-action-reasons strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
}

.grid-action-why {
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #a8b3c5 !important;
  font-size: 13px;
}

.grid-action-clean {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.13),
    rgba(15, 23, 42, 0.9)
  );
}

.grid-action-clean:before {
  background: #22c55e;
}

.grid-action-clean .grid-action-badge {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.grid-action-good {
  border-color: rgba(56, 189, 248, 0.24);
}

.grid-action-good:before {
  background: #38bdf8;
}

.grid-action-normal {
  border-color: rgba(148, 163, 184, 0.16);
}

.grid-action-stressed {
  border-color: rgba(251, 146, 60, 0.3);
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.13),
    rgba(15, 23, 42, 0.9)
  );
}

.grid-action-stressed:before {
  background: #fb923c;
}

.grid-action-stressed .grid-action-badge {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.3);
  color: #fdba74;
}

@media (max-width: 860px) {
.grid-action-panel {
  grid-template-columns: 1fr;
  padding: 16px;
}

.grid-action-reasons {
  grid-template-columns: 1fr;
}

.grid-action-panel h2 {
  font-size: 21px;
}

}

.best-time-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.best-time-card strong {
  letter-spacing: -0.02em;
}

.best-time-normal {
  border-color: rgba(56, 189, 248, 0.2);
}

@media (min-width: 861px) {
.grid-action-why {
  grid-column: 1 / -1;
}

}

.legacy-insight-panel {
  display: none !important;
}

@media (min-width: 861px) {
.grid-action-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(230px, 0.45fr) minmax(
        320px,
        0.85fr
      );
}

}

.best-time-card {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.best-time-card span {
  display: block;
  color: #98a6bb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.best-time-card strong {
  display: block;
  color: #f8fafc;
  font-size: 18px;
}

.best-time-card small {
  display: block;
  margin-top: 5px;
  color: #a8b3c5;
  line-height: 1.35;
}

.best-time-good {
  border-color: rgba(34, 197, 94, 0.26);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.12),
    rgba(15, 23, 42, 0.68)
  );
}

.best-time-good strong {
  color: #86efac;
}

.best-time-normal strong {
  color: #7dd3fc;
}

.best-time-avoid {
  border-color: rgba(251, 146, 60, 0.28);
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.12),
    rgba(15, 23, 42, 0.68)
  );
}

.best-time-avoid strong {
  color: #fdba74;
}

.top-grid-new-boxes > .metric-card:nth-child(1),
.top-grid-new-boxes > .metric-card:nth-child(2),
.top-grid-new-boxes > .metric-card:nth-child(3),
.top-grid-new-boxes > .metric-card:nth-child(4),
.top-grid-new-boxes > .metric-card:nth-child(5),
.top-grid-new-boxes > .metric-card:nth-child(6) {
  grid-column: span 1 !important;
}

.metric-card-carbon-top {
  border-color: rgba(167, 139, 250, 0.22);
}

.metric-card-carbon-top:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(167, 139, 250, 0.2),
    transparent 36%
  );
}

.metric-card-carbon-top .metric-label,
.metric-card-carbon-top .metric-value {
  color: #c4b5fd;
}

.compact-mix-panel p {
  margin: 0;
  line-height: 1.45;
}

.compact-mix-row {
  font-size: 13px;
}

.compact-mix-row i:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
}

.mix-clean:before {
  background: #34d399;
}

.mix-fossil:before {
  background: #fb923c;
}

.mix-other:before {
  background: #8b5cf6;
}

@media (max-width: 1180px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

}

@media (max-width: 860px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

}

@media (max-width: 640px) {
.compact-mix-row {
  grid-template-columns: 64px 60px 1fr;
}

}

.insight-panel,
.compact-mix-panel {
  margin-top: 10px;
}

.best-time-good strong::before {
  content: "● ";
  color: #22c55e;
}

.best-time-normal strong::before {
  content: "● ";
  color: #38bdf8;
}

.best-time-avoid strong::before {
  content: "● ";
  color: #fb923c;
}

.demand-core {
  transform: translateY(6px);
}

@media (max-width: 640px) {
.demand-core {
  transform: none;
}

}

.uk-shape {
  fill: url(#ukFill);
  stroke: rgba(134, 239, 172, 0.56);
  stroke-width: 2;
  filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.18));
}

.uk-shape.scotland-shape {
  fill: rgba(18, 48, 38, 0.92);
}

.uk-shape.england-shape {
  fill: rgba(16, 36, 58, 0.92);
}

.uk-shape.wales-shape,
.uk-shape.southwest-shape,
.uk-shape.ni-shape {
  fill: rgba(18, 54, 53, 0.88);
}

.uk-shape-outline {
  fill: none;
  stroke: rgba(125, 211, 252, 0.18);
  stroke-width: 4;
  opacity: 0.48;
}

.uk-detail-map .uk-island {
  fill: rgba(18, 48, 38, 0.9);
  stroke: rgba(134, 239, 172, 0.5);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.14));
}

.uk-shape.mainland-shape {
  fill: url(#ukFill);
}

.flow-match-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  max-width: max-content;
}

.flow-match-indicator.good {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.flow-match-indicator.warn {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.1);
}

.flow-match-indicator.bad {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.1);
}

.flow-match-indicator.empty {
  color: #94a3b8;
}

.map-status-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.data-freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  max-width: max-content;
}

.data-freshness-badge::before {
  content: "●";
  font-size: 9px;
  line-height: 1;
}

.data-freshness-badge.fresh {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.data-freshness-badge.warn {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.1);
}

.data-freshness-badge.stale {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.1);
}

.data-freshness-badge.unknown {
  color: #94a3b8;
}

.map-page .grid-health-card [data-map="frequency_status"].good,
.map-page .frequency-status.good {
  color: #86efac;
}

.map-page .grid-health-card [data-map="frequency_status"].warn,
.map-page .frequency-status.warn {
  color: #fde68a;
}

.map-page .grid-health-card [data-map="frequency_status"].bad,
.map-page .frequency-status.bad {
  color: #fca5a5;
}

.map-page .grid-health-card [data-map="frequency_status"].unknown,
.map-page .frequency-status.unknown {
  color: #cbd5e1;
}

.map-page .map-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}

.map-page .map-detail-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.map-page .map-detail-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
}

.map-page .interconnector-detail-list,
.map-page .raw-fuel-detail,
.map-page .regional-carbon-detail {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #cbd5e1;
}

.map-page .link-flow-row,
.map-page .raw-fuel-row,
.map-page .regional-carbon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-page .link-flow-row small {
  grid-column: 1 / -1;
  color: #94a3b8;
  margin-top: -3px;
}

.map-page .link-flow-row.import strong {
  color: #86efac;
}

.map-page .link-flow-row.export strong {
  color: #a78bfa;
}

.map-page .regional-carbon-row.low strong {
  color: #86efac;
}

.map-page .regional-carbon-row.medium strong {
  color: #fde68a;
}

.map-page .regional-carbon-row.high strong {
  color: #fca5a5;
}

.map-page .source-timestamps-card strong {
  font-size: 12px;
}

@media (max-width: 980px) {
.map-page .map-insight-grid {
  grid-template-columns: 1fr;
}

}

.ph-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.95),
    rgba(9, 16, 29, 0.95)
  );
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ph-card strong {
  color: #e2e8f0;
}

.ph-card .status-generating {
  color: #86efac;
}

.ph-card .status-charging {
  color: #93c5fd;
}

.top-grid-new-boxes > .metric-card:nth-child(1) {
  grid-column: 1 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(2) {
  grid-column: 3 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: 5 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(4) {
  grid-column: 7 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(5) {
  grid-column: 2 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(6) {
  grid-column: 4 / span 2;
}

.top-grid-new-boxes > .metric-card:nth-child(7) {
  grid-column: 6 / span 2;
}

.metric-card-gb-demand .metric-label {
  color: #86efac;
}

@media (max-width: 1080px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
}

.top-grid-new-boxes > .metric-card:nth-child(7) {
  grid-column: 1 / -1 !important;
}

}

@media (max-width: 640px) {
.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
}

}

@media (max-width: 1100px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

}

@media (max-width: 600px) {
.top-grid-new-boxes {
  grid-template-columns: 1fr !important;
}

}

@media (max-width: 640px) {
.flow-center .demand-core {
  transform: none !important;
}

}

.flow-col.left,
.flow-col.right {
  align-content: stretch !important;
}

.flow-center {
  grid-template-rows: auto 1fr auto !important;
  align-items: center !important;
  padding: 0 10px !important;
}

.flow-center .flow-svg {
  grid-row: 1 / 4 !important;
  grid-column: 1 !important;
}

.flow-center .demand-core {
  grid-row: 2 !important;
  grid-column: 1 !important;
  align-self: center !important;
}

.flow-box-center {
  grid-column: 1 !important;
  width: min(260px, 42%) !important;
  min-height: 112px !important;
  justify-self: center !important;
  z-index: 6 !important;
  background: rgba(15, 23, 42, 0.88) !important;
}

.flow-box-topFlow {
  grid-row: 1 !important;
}

.flow-box-bottomFlow {
  grid-row: 3 !important;
}

.flow-box-bottomFlow .flow-num {
  color: #f8fafc;
}

@media (max-width: 1080px) and (min-width: 641px) {
.flow-board {
  grid-template-columns: 220px minmax(420px, 1fr) 220px !important;
}

.flow-box-center {
  width: min(240px, 54%) !important;
}

}

@media (max-width: 640px) {
.flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-center .flow-svg {
  position: absolute !important;
}

.flow-center .demand-core {
  min-height: 360px !important;
}

}

@media (max-width: 1180px) and (min-width: 641px) {
.flow-board {
  grid-template-columns: 220px 520px 220px !important;
  gap: 18px !important;
}

.flow-center {
  width: 520px !important;
  max-width: 520px !important;
}

.flow-center .flow-svg {
  width: 520px !important;
  max-width: 520px !important;
}

.flow-box-center {
  width: 210px !important;
  max-width: 210px !important;
}

}

@media (max-width: 640px) {
.flow-board {
  justify-content: stretch !important;
}

.flow-center,
  .flow-center .flow-svg {
  width: 100% !important;
  max-width: 100% !important;
}

.flow-box-center {
  width: 100% !important;
  max-width: none !important;
}

}

@media (max-width: 760px) {
.flow-center {
  min-height: 540px !important;
}

.flow-center .flow-box-center {
  width: 150px !important;
  max-width: 150px !important;
  min-height: 92px !important;
  padding: 12px !important;
}

.flow-center .flow-box-center .flow-num {
  font-size: 22px !important;
}

.flow-center .flow-box-center .flow-title,
  .flow-center .flow-box-center .flow-status {
  font-size: 11px !important;
}

.flow-center .demand-ring {
  width: 230px !important;
  height: 230px !important;
}

.flow-center .demand-value {
  font-size: 30px !important;
}

}

.flow-line.pumped-hydro {
  stroke: var(--hydro);
}

.flow-dot.pumped-hydro {
  fill: var(--hydro);
  color: var(--hydro);
}

.chart-panel canvas {
  min-height: 320px;
}

.shared-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header-copy {
  min-width: 0;
}

.shared-header-actions,
.map-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 999px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.view-link:hover {
  color: #ecfeff;
  background: rgba(20, 184, 166, 0.12);
}

.view-link.active,
.view-link[aria-current="page"] {
  color: #06202a;
  background: linear-gradient(135deg, #6ee7b7, #67e8f9);
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.22);
}

.shared-footer {
  margin-top: 34px;
}

.footer-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-view-links a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #86efac;
  text-decoration: none;
  font-weight: 800;
}

.footer-view-links a[aria-current="page"] {
  color: #06202a;
  background: linear-gradient(135deg, #6ee7b7, #67e8f9);
}

@media (max-width: 760px) {
.shared-header {
  align-items: flex-start;
  flex-direction: column;
}

.shared-header-actions,
  .map-header-actions {
  align-items: stretch;
  width: 100%;
}

.view-switcher {
  align-self: flex-start;
}

.shared-header .status-pill {
  width: 100%;
  justify-content: center;
}

}

.interconnector-panel {
  overflow: hidden;
}

.interconnector-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.interconnector-summary-card span,
.interconnector-breakdown-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #9fb3c8;
  margin: 0 0 8px;
}

.interconnector-summary-card strong {
  display: block;
  line-height: 1;
  color: #f8fafc;
}

.interconnector-summary-card small {
  display: block;
  margin-top: 8px;
}

.interconnector-summary-card.import strong,
.interconnector-row.import .interconnector-value span,
.interconnector-cable-row.import strong {
  color: #86efac;
}

.interconnector-summary-card.export strong,
.interconnector-row.export .interconnector-value span,
.interconnector-cable-row.export strong {
  color: #c4b5fd;
}

.interconnector-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.interconnector-breakdown-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px;
}

.interconnector-list {
  display: grid;
}

.interconnector-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.interconnector-row:last-child {
  border-bottom: 0;
}

.interconnector-row strong,
.interconnector-cable-row span {
  color: #e5eefb;
}

.interconnector-row small,
.interconnector-cable-row small {
  color: #94a3b8;
}

.interconnector-row > i {
  position: absolute;
  overflow: hidden;
}

.interconnector-row > i::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #86efac, #67e8f9);
}

.interconnector-value {
  text-align: right;
  min-width: 104px;
}

.interconnector-value span {
  display: block;
}

.interconnector-cable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.interconnector-cable-row:last-child {
  border-bottom: 0;
}

.interconnector-api-note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.interconnector-api-note code {
  color: #67e8f9;
}

@media (max-width: 820px) {
.interconnector-summary-grid,
  .interconnector-breakdown-grid {
  grid-template-columns: 1fr;
}

.interconnector-summary-card strong {
  font-size: 28px;
}

}

.interconnectors-page .view-switcher {
  flex-wrap: wrap;
}

.interconnector-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ic-hero-stat,
.ic-flow-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.ic-hero-stat span,
.ic-flow-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #9fb3c8;
  margin-bottom: 8px;
}

.ic-hero-stat strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  color: #f8fafc;
}

.ic-hero-stat small,
.ic-flow-card small,
.ic-table-row small {
  color: #94a3b8;
}

.ic-hero-stat.import strong,
.ic-flow-card.import strong,
.ic-table-row.import span {
  color: #86efac;
}

.ic-hero-stat.export strong,
.ic-flow-card.export strong,
.ic-table-row.export span {
  color: #c4b5fd;
}

.ic-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.ic-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ic-flow-card {
  position: relative;
  overflow: hidden;
}

.ic-flow-card h3 {
  margin: 0 0 12px;
  color: #f8fafc;
}

.ic-flow-card strong {
  display: block;
  font-size: 28px;
  color: #f8fafc;
}

.ic-flow-card > i {
  display: block;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.ic-flow-card > i:after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #86efac, #67e8f9);
}

.ic-flow-card.export > i:after {
  background: linear-gradient(90deg, #a78bfa, #f0abfc);
}

.ic-table {
  display: grid;
  gap: 8px;
}

.ic-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
}

.ic-table-row strong {
  display: block;
  color: #e5eefb;
}

.ic-table-row span {
  font-weight: 900;
  color: #f8fafc;
}

.ic-table-row em {
  font-style: normal;
  color: #94a3b8;
  font-size: 12px;
}

.ic-chart-panel canvas {
  max-height: 390px;
}

.ic-note-panel p {
  color: #a8b5c7;
  line-height: 1.65;
}

.ic-note-panel code {
  color: #67e8f9;
}

@media (max-width: 900px) {
.interconnector-hero,
  .ic-layout,
  .ic-card-grid {
  grid-template-columns: 1fr;
}

.ic-hero-stat strong {
  font-size: 30px;
}

.ic-table-row {
  grid-template-columns: 1fr auto;
}

.ic-table-row em {
  grid-column: 1/-1;
}

}

.connector-name-with-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.connector-icon-stack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.connector-icon-stack img,
.connector-inline-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  object-fit: contain;
  vertical-align: middle;
}

.connector-inline-icon {
  margin-right: 7px;
}

.connector-cable-name {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ic-flow-card .connector-icon-stack img {
  width: 26px;
  height: 26px;
}

@media (max-width: 640px) {
.connector-icon-stack img,
  .connector-inline-icon {
  width: 20px;
  height: 20px;
}

}

.launch-trust-note {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.import-manager-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.import-manager-hero > div {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.import-manager-hero span,
.import-form label span {
  display: block;
  color: #9fb3c8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.import-manager-hero strong {
  display: block;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1;
}

.import-manager-hero small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

.import-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.import-form input,
.import-form select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.82);
  color: #e5eefb;
}

.import-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-btn,
.import-presets button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-weight: 900;
  cursor: pointer;
}

.import-btn.primary {
  color: #06202a;
  background: linear-gradient(135deg, #6ee7b7, #67e8f9);
}

.import-btn.danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.import-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.import-progress-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.import-progress-track i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ee7b7, #67e8f9);
  transition: width 0.25s ease;
}

.import-log {
  margin: 18px 0 0;
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
  color: #bfdbfe;
  white-space: pre-wrap;
  font-size: 12px;
}

.import-help p {
  color: #a8b5c7;
  line-height: 1.65;
}

@media (max-width: 820px) {
.import-manager-hero,
  .import-form {
  grid-template-columns: 1fr;
}

}

.interconnector-row > i.source-wind::after,
.ic-flow-card > i.source-wind::after {
  background: linear-gradient(90deg, #10b981, #2dd4bf);
}

.interconnector-row > i.source-solar::after,
.ic-flow-card > i.source-solar::after {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.interconnector-row > i.source-nuclear::after,
.ic-flow-card > i.source-nuclear::after {
  background: linear-gradient(90deg, #94a3b8, #e5e7eb);
}

.interconnector-row > i.source-hydro::after,
.ic-flow-card > i.source-hydro::after {
  background: linear-gradient(90deg, #06b6d4, #67e8f9);
}

.interconnector-row > i.source-gas::after,
.ic-flow-card > i.source-gas::after {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.interconnector-row > i.source-biomass::after,
.ic-flow-card > i.source-biomass::after {
  background: linear-gradient(90deg, #84cc16, #a3e635);
}

.interconnector-row > i.source-france::after,
.ic-flow-card > i.source-france::after {
  background: linear-gradient(
    90deg,
    #94a3b8 0%,
    #e5e7eb 58%,
    #06b6d4 58%,
    #67e8f9 100%
  );
}

.interconnector-row > i.source-gas-wind::after,
.ic-flow-card > i.source-gas-wind::after {
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #60a5fa 55%,
    #10b981 55%,
    #2dd4bf 100%
  );
}

.interconnector-row > i.source-wind-gas::after,
.ic-flow-card > i.source-wind-gas::after {
  background: linear-gradient(
    90deg,
    #10b981 0%,
    #2dd4bf 55%,
    #2563eb 55%,
    #60a5fa 100%
  );
}

.interconnector-cable-row strong small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
}

.interconnector-row .interconnector-value small,
.ic-flow-card small,
.ic-table-row em {
  white-space: normal;
}

.ic-flow-card > i,
.interconnector-row > i {
  background: rgba(148, 163, 184, 0.16);
}

.ic-flow-card > i:before,
.interconnector-row > i:before {
  content: "";
  display: block;
  position: absolute;
}

.ic-table-row span {
  text-align: right;
}

.interconnector-stress {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.interconnector-stress strong {
  color: #f59e0b;
}

.homepage-interconnector-chart {
  margin-top: 18px;
}

.connector-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.connector-info-btn:hover,
.connector-info-btn:focus {
  border-color: rgba(103, 232, 249, 0.6);
  color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
  outline: none;
}

.connector-info-modal[hidden] {
  display: none;
}

.connector-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.connector-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.connector-info-panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.98),
    rgba(8, 13, 24, 0.98)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.connector-info-panel h2 {
  margin: 0 0 12px;
  color: #f8fafc;
}

.connector-info-panel p:last-child {
  margin-bottom: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.connector-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5eefb;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.demand-range-panel {
  overflow: hidden;
}

.demand-range-head {
  align-items: flex-start;
  gap: 18px;
}

.demand-range-current,
.demand-range-value {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: #e0f2fe;
  font-size: 15px;
  font-weight: 800;
}

.demand-range-current span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demand-range-current strong {
  color: #e0f2fe;
  font-size: 15px;
}

.demand-range-shell,
.demand-range-control {
  position: relative;
  margin: 20px 0 18px;
}

.demand-tab-shell {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.demand-tab-shell::-webkit-scrollbar {
  display: none;
}

.demand-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}

.demand-tab-indicator {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6ee7b7, #67e8f9);
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.22);
  transform: translateX(5px);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demand-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 64px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.demand-tab:hover {
  background: rgba(20, 184, 166, 0.12);
}

.demand-tab.active,
.demand-tab[aria-selected="true"] {
  color: #06202a;
}

.demand-tab:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.72);
  outline-offset: 3px;
}

.demand-chart-wrap {
  min-height: 340px;
}

.demand-chart-wrap canvas,
#demandRangeChart {
  min-height: 340px;
}

@media (max-width: 720px) {
.demand-range-head {
  flex-direction: column;
}

.demand-range-current,
  .demand-range-value {
  width: 100%;
  align-items: flex-start;
}

.demand-tab-shell {
  margin-left: -2px;
  margin-right: -2px;
  padding-bottom: 2px;
}

.demand-tab {
  min-width: 58px;
  padding-left: 14px;
  padding-right: 14px;
}

}

.interconnector-capacity-card {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.86),
    rgba(15, 23, 42, 0.48)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(2, 6, 23, 0.18);
}

.ic-capacity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ic-capacity-top span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: #9fb3c8;
  margin-bottom: 8px;
}

.ic-capacity-top strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #f8fafc;
}

.ic-capacity-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(2, 6, 23, 0.32);
  font-size: 12px;
  font-weight: 900;
  color: #e5eefb;
}

.ic-capacity-status i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.75);
}

.interconnector-capacity-card.busy .ic-capacity-status i {
  background: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75);
}

.interconnector-capacity-card.strain .ic-capacity-status i {
  background: #fb7185;
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.8);
}

.ic-capacity-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 12px;
}

.ic-capacity-meter b {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #67e8f9);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.32);
}

.interconnector-capacity-card.busy .ic-capacity-meter b {
  background: linear-gradient(90deg, #22c55e, #f59e0b);
}

.interconnector-capacity-card.strain .ic-capacity-meter b {
  background: linear-gradient(90deg, #f59e0b, #fb7185);
}

.ic-capacity-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ic-capacity-stats span {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.18);
  font-size: 11px;
  color: #94a3b8;
}

.ic-capacity-stats strong {
  display: block;
  color: #e5eefb;
  font-size: 15px;
  margin-bottom: 3px;
}

.interconnector-capacity-card p {
  margin: 0;
  color: #9fb3c8;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 620px) {
.ic-capacity-top {
  display: grid;
}

.ic-capacity-stats {
  grid-template-columns: 1fr;
}

.ic-capacity-top strong {
  font-size: 26px;
}

}

.interconnector-capacity-card.comfortable {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(8, 47, 73, 0.34)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 38px rgba(2, 6, 23, 0.22),
    0 0 34px rgba(34, 197, 94, 0.06);
}

.interconnector-capacity-card.busy {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(69, 26, 3, 0.3)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 38px rgba(2, 6, 23, 0.22),
    0 0 36px rgba(245, 158, 11, 0.1);
}

.interconnector-capacity-card.strain {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(76, 5, 25, 0.34)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 38px rgba(2, 6, 23, 0.25),
    0 0 40px rgba(251, 113, 133, 0.12);
}

.ic-capacity-gauge-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 4px 0 14px;
}

.ic-capacity-gauge {
  --pct: 0%;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(#22c55e var(--pct), rgba(148, 163, 184, 0.14) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(2, 6, 23, 0.2);
}

.interconnector-capacity-card.busy .ic-capacity-gauge {
  background: conic-gradient(#f59e0b var(--pct), rgba(148, 163, 184, 0.14) 0);
}

.interconnector-capacity-card.strain .ic-capacity-gauge {
  background: conic-gradient(#fb7185 var(--pct), rgba(148, 163, 184, 0.14) 0);
}

.ic-capacity-gauge:before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ic-capacity-gauge span,
.ic-capacity-gauge small {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.ic-capacity-gauge span {
  font-size: 18px;
  font-weight: 950;
  color: #f8fafc;
  align-self: end;
}

.ic-capacity-gauge small {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  align-self: start;
  margin-top: 2px;
}

.ic-capacity-gauge-copy strong {
  display: block;
  font-size: 15px;
  color: #e5eefb;
  margin-bottom: 4px;
}

.ic-capacity-gauge-copy span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #9fb3c8;
}

.ic-capacity-meter {
  position: relative;
  overflow: visible;
}

.ic-peak-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: clamp(0%, var(--x), 100%);
  width: 2px;
  transform: translateX(-1px);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.88),
    0 0 14px rgba(248, 250, 252, 0.62);
}

.ic-peak-marker:after {
  content: "Peak";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -5px);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

.ic-capacity-meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 12px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.ic-capacity-breakdown {
  margin: 0 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.18);
  overflow: hidden;
}

.ic-capacity-breakdown summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ic-capacity-breakdown summary::-webkit-details-marker {
  display: none;
}

.ic-capacity-breakdown summary:after {
  content: "+";
  font-size: 15px;
  color: #67e8f9;
}

.ic-capacity-breakdown[open] summary:after {
  content: "–";
}

.ic-capacity-breakdown div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 10px 10px;
}

.ic-capacity-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(15, 23, 42, 0.56);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.ic-capacity-breakdown b {
  color: #e5eefb;
  font-weight: 900;
}

@media (max-width: 620px) {
.ic-capacity-gauge-row {
  grid-template-columns: 1fr;
}

.ic-capacity-gauge {
  margin: auto;
}

.ic-capacity-breakdown div {
  grid-template-columns: 1fr;
}

.ic-peak-marker:after {
  display: none;
}

}

.health-alert {
  font-weight: 900;
  border-color: rgba(148, 163, 184, 0.18);
}

.health-alert.ok {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(20, 83, 45, 0.18);
}

.health-alert.danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.18);
}

.health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.health-note {
  margin: 16px 0 0;
  color: #a8b5c7;
  line-height: 1.65;
}

.health-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.38);
}

.health-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #dbeafe;
  font-size: 13px;
}

.health-table th,
.health-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  white-space: nowrap;
}

.health-table th {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.72);
}

.health-table tr:last-child td {
  border-bottom: 0;
}

.health-table code {
  color: #bfdbfe;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.health-badge.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.health-badge.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.data-monitor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(146, 179, 220, 0.18);
  background: rgba(17, 27, 46, 0.78);
  color: #dce8fb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  min-width: 168px;
}

.data-monitor-badge strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  color: #f4f8ff;
}

.data-monitor-badge small {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  color: #9fb0c9;
  margin-top: 3px;
}

.data-monitor-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
}

.data-monitor-ok {
  border-color: rgba(48, 229, 142, 0.35);
  background: linear-gradient(
    180deg,
    rgba(15, 90, 59, 0.34),
    rgba(17, 27, 46, 0.78)
  );
}

.data-monitor-ok .data-monitor-dot {
  background: #30e58e;
  box-shadow: 0 0 16px rgba(48, 229, 142, 0.75);
}

.data-monitor-warn {
  border-color: rgba(255, 191, 86, 0.42);
  background: linear-gradient(
    180deg,
    rgba(81, 55, 18, 0.38),
    rgba(17, 27, 46, 0.78)
  );
}

.data-monitor-warn .data-monitor-dot {
  background: #ffbf56;
  box-shadow: 0 0 16px rgba(255, 191, 86, 0.75);
}

.data-monitor-down {
  border-color: rgba(255, 95, 115, 0.52);
  background: linear-gradient(
    180deg,
    rgba(91, 28, 36, 0.45),
    rgba(17, 27, 46, 0.78)
  );
}

.data-monitor-down .data-monitor-dot {
  background: #ff5f73;
  box-shadow: 0 0 16px rgba(255, 95, 115, 0.75);
}

@media (max-width: 760px) {
.data-monitor-badge {
  width: 100%;
  justify-content: flex-start;
}

.shared-header-actions {
  align-items: stretch;
}

}

.data-monitor-badge {
  cursor: default;
}

.data-monitor-badge small span {
  font-weight: 800;
  color: #dce8fb;
}

.update-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(48, 229, 142, 0.34);
  background: rgba(12, 48, 45, 0.38);
  color: #cfeee7;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.update-pill strong {
  color: #ffffff;
  font-weight: 900;
}

.update-pill [data-next-update-countdown] {
  font-variant-numeric: tabular-nums;
}

.update-pill-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #30e58e;
  box-shadow: 0 0 0 5px rgba(48, 229, 142, 0.12),
    0 0 18px rgba(48, 229, 142, 0.7);
}

.update-pill-warn {
  border-color: rgba(255, 191, 86, 0.42);
  background: rgba(81, 55, 18, 0.34);
}

.update-pill-warn .update-pill-dot {
  background: #ffbf56;
  box-shadow: 0 0 0 5px rgba(255, 191, 86, 0.12),
    0 0 18px rgba(255, 191, 86, 0.7);
}

.update-pill-down {
  border-color: rgba(255, 95, 115, 0.48);
  background: rgba(91, 28, 36, 0.36);
}

.update-pill-down .update-pill-dot {
  background: #ff5f73;
  box-shadow: 0 0 0 5px rgba(255, 95, 115, 0.12),
    0 0 18px rgba(255, 95, 115, 0.7);
}

@media (max-width: 640px) {
.update-pill {
  width: 100%;
  justify-content: center;
  text-align: center;
}

}

.history-scrubber {
  margin: -4px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 24px;
}

.history-scrubber-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.history-scrubber-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 900;
  color: #6ee7b7;
  margin-bottom: 4px;
}

.history-scrubber-head strong {
  display: block;
  color: #e5eefb;
  font-size: 14px;
  line-height: 1.25;
}

.history-scrubber-actions {
  display: inline-flex;
  gap: 4px;
}

.history-mode-btn,
.history-step-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  min-height: 30px;
  padding: 7px 12px;
  transition: background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.history-mode-btn:hover,
.history-step-btn:hover {
  background: rgba(20, 184, 166, 0.12);
  color: #ecfeff;
}

.history-mode-btn.active {
  background: linear-gradient(135deg, #6ee7b7, #67e8f9);
  color: #06202a;
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.16);
}

.history-scrubber-controls {
  display: grid;
  grid-template-columns: auto minmax(140px, 180px) auto 1fr;
  gap: 10px;
  align-items: center;
}

.history-scrubber input[type="date"] {
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.74);
  color: #e5eefb;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  color-scheme: dark;
}

.history-range-wrap {
  min-width: 0;
}

.history-range-wrap input[type="range"] {
  width: 100%;
  accent-color: #67e8f9;
  cursor: pointer;
}

.history-range-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #67e8f9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.history-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  margin-top: -6px;
  background: #e0f2fe;
  border: 3px solid #0f172a;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.2),
    0 8px 18px rgba(2, 6, 23, 0.35);
}

.history-range-wrap input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #67e8f9);
}

.history-range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e0f2fe;
  border: 3px solid #0f172a;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.2);
}

.history-range-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
}

#lgSelectedTime {
  color: #e0f2fe;
  font-variant-numeric: tabular-nums;
}

.history-scrubber-status {
  margin-top: 10px;
  display: inline-flex;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: #9fb3c8;
  font-size: 11px;
  font-weight: 800;
}

.history-scrubber-status[data-state="ok"],
.history-scrubber-status[data-state="historical"] {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(20, 83, 45, 0.16);
}

.history-scrubber-status[data-state="error"] {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.16);
}

@media (max-width: 760px) {
.history-scrubber-head {
  align-items: flex-start;
  flex-direction: column;
}

.history-scrubber-actions {
  width: 100%;
  justify-content: center;
}

.history-scrubber-controls {
  grid-template-columns: 1fr 1fr;
}

.history-range-wrap {
  grid-column: 1/-1;
}

.history-step-btn {
  width: 100%;
}

}

.ic-low-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: clamp(0%, var(--x), 100%);
  width: 2px;
  transform: translateX(-1px);
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.88),
    0 0 14px rgba(103, 232, 249, 0.62);
}

.ic-low-marker:after {
  content: "Low";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 5px);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cffafe;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

.ic-capacity-meter-labels span:nth-child(2) {
  text-align: center;
}

@media (max-width: 620px) {
.ic-low-marker:after {
  display: none;
}

}

.history-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.54);
  color: #cbd5e1;
}

.history-verified-badge[data-state="verified"] {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    135deg,
    rgba(20, 83, 45, 0.34),
    rgba(6, 95, 70, 0.22)
  );
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08),
    0 8px 20px rgba(16, 185, 129, 0.1);
}

.history-verified-badge[data-state="check"] {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.22);
}

.history-verified-badge[hidden] {
  display: none !important;
}

.history-verified-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.history-balance-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.history-balance-info[hidden] {
  display: none !important;
}

.history-sql-timestamp {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(2, 6, 23, 0.28);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.history-sql-timestamp[hidden] {
  display: none !important;
}

.interconnector-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.interconnector-card-title-row h3 {
  margin: 0;
}

.ic-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(134, 158, 188, 0.24);
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.ic-view-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #b8c7dc;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.ic-view-toggle button:hover {
  color: #f8fbff;
}

.ic-view-toggle button.active {
  color: #03131b;
  background: linear-gradient(135deg, #6fffe1, #4cc9f0);
  box-shadow: 0 0 20px rgba(111, 255, 225, 0.22);
}

.ic-flow-panel-view[hidden] {
  display: none !important;
}

.ic-map-panel-view {
  min-height: 575px;
}

.ic-map-embed {
  display: block;
  width: 100%;
  height: 575px;
  border: 0;
  border-radius: 18px;
  background: radial-gradient(
    circle at center,
    rgba(25, 60, 92, 0.42),
    rgba(7, 13, 24, 0.96)
  );
  overflow: hidden;
}

body.map-embed {
  margin: 0;
  background: transparent !important;
  overflow: hidden;
}

body.map-embed .page.map-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.map-embed .map-header,
body.map-embed .map-side-panel,
body.map-embed .map-title-row,
body.map-embed .map-note-panel,
body.map-embed .shared-footer {
  display: none !important;
}

body.map-embed .map-layout {
  display: block;
  margin: 0;
  padding: 0;
}

body.map-embed .uk-map-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.map-embed .map-stage {
  height: 575px;
  min-height: 575px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(21, 58, 84, 0.34),
    rgba(7, 13, 24, 0.96)
  );
}

body.map-embed .grid-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 760px) {
.interconnector-card-title-row {
  align-items: flex-start;
  flex-direction: column;
}

.ic-view-toggle,
  .ic-view-toggle button {
  width: 100%;
}

.ic-view-toggle button {
  justify-content: center;
}

.ic-map-embed,
  body.map-embed .map-stage {
  height: 500px;
  min-height: 500px;
}

}

.livegrid-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(16, 185, 129, 0.1);
  color: #dcfce7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px rgba(34, 197, 94, 0.08);
}

.livegrid-mode-badge[data-mode="historical"] {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.13);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px rgba(59, 130, 246, 0.1);
}

.livegrid-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12),
    0 0 14px rgba(34, 197, 94, 0.45);
}

.livegrid-mode-badge[data-mode="historical"] .livegrid-mode-dot {
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13),
    0 0 14px rgba(96, 165, 250, 0.45);
}

@media (max-width: 720px) {
.livegrid-mode-badge {
  align-self: flex-start;
}

}

.top-grid-new-boxes {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
  min-width: 0;
}

.top-grid-new-boxes .metric-card {
  padding: 14px 14px !important;
}

.top-grid-new-boxes .metric-value {
  font-size: clamp(22px, 1.9vw, 32px) !important;
  white-space: nowrap;
}

.metric-card-import {
  border-color: rgba(96, 165, 250, 0.26);
}

.metric-card-import:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(96, 165, 250, 0.2),
    transparent 35%
  );
}

.metric-card-import .metric-label,
.metric-card-import .metric-value {
  color: #bfdbfe;
}

@media (max-width: 1250px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

}

@media (max-width: 760px) {
.top-grid-new-boxes {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

}

@media (max-width: 520px) {
.top-grid-new-boxes {
  grid-template-columns: 1fr !important;
}

}

.top-grid-focal {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.top-grid-focal > .metric-card {
  grid-column: auto !important;
  min-height: auto;
}

.top-grid-focal > .metric-card-focal {
  grid-column: span 2 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(20, 31, 52, 0.98),
    rgba(10, 18, 33, 0.98)
  );
  border-color: rgba(125, 211, 252, 0.22);
}

.top-grid-focal > .metric-card-supporting {
  grid-column: span 1 !important;
  min-height: 138px;
  padding: 18px;
}

.top-grid-focal .metric-card-focal .metric-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-grid-focal .metric-card-focal .metric-value {
  margin: 12px 0 8px;
}

.top-grid-focal .metric-card-focal .metric-value span {
  font-size: 0.42em;
}

.metric-card-detail-grid strong {
  color: #eff6ff;
  font-size: 15px;
  font-weight: 900;
}

.metric-card-detail-grid strong span {
  font-size: 0.78em;
  color: #aebbd0;
}

.top-grid-focal .trend-up {
  color: #86efac !important;
}

.top-grid-focal .trend-down {
  color: #7dd3fc !important;
}

.top-grid-focal .metric-card-grid-demand:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(96, 165, 250, 0.26),
    transparent 38%
  );
}

.top-grid-focal .metric-card-gb-demand:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(45, 212, 191, 0.24),
    transparent 38%
  );
}

.top-grid-focal .metric-card-uk-generation:before {
  background: radial-gradient(
    circle at 18% 12%,
    rgba(34, 197, 94, 0.22),
    transparent 38%
  );
}

@media (max-width: 1100px) {
.top-grid-focal {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.top-grid-focal > .metric-card-focal {
  grid-column: span 1 !important;
}

.top-grid-focal > .metric-card-supporting {
  grid-column: span 1 !important;
}

}

@media (max-width: 760px) {
.top-grid-focal {
  grid-template-columns: 1fr !important;
}

.top-grid-focal > .metric-card,
  .top-grid-focal > .metric-card-focal,
  .top-grid-focal > .metric-card-supporting {
  grid-column: 1 / -1 !important;
}

.metric-card-detail-grid {
  grid-template-columns: 1fr;
}

}

.metric-card-detail-grid .peak-value-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-card-detail-grid .peak-value-link strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metric-card-detail-grid .peak-value-link:hover strong,
.metric-card-detail-grid .peak-value-link:focus-visible strong {
  color: #7dd3fc;
}

.top-grid-focal {
  gap: 22px !important;
  margin-top: 6px !important;
  margin-bottom: 22px !important;
}

.top-grid-focal > .metric-card-focal {
  position: relative;
  isolation: isolate;
  min-height: 220px !important;
  padding: 26px 26px 22px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03) !important;
  overflow: hidden;
}

.top-grid-focal > .metric-card-focal::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  opacity: 1;
  pointer-events: none;
}

.top-grid-focal > .metric-card-focal::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 14px 34px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.top-grid-focal .metric-card-grid-demand {
  background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.3),
      rgba(15, 23, 42, 0.94) 48%,
      rgba(8, 13, 25, 0.98)
    ),
    linear-gradient(180deg, rgba(20, 31, 52, 0.98), rgba(10, 18, 33, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
}

.top-grid-focal .metric-card-grid-demand::before {
  background: radial-gradient(
      circle at 18% 8%,
      rgba(96, 165, 250, 0.46),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 100%,
      rgba(59, 130, 246, 0.2),
      transparent 36%
    ) !important;
}

.top-grid-focal .metric-card-grid-demand::after {
  content: "⚡";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
  font-size: 27px;
}

.top-grid-focal .metric-card-gb-demand {
  background: linear-gradient(
      135deg,
      rgba(20, 184, 166, 0.28),
      rgba(15, 23, 42, 0.94) 48%,
      rgba(8, 13, 25, 0.98)
    ),
    linear-gradient(180deg, rgba(20, 31, 52, 0.98), rgba(10, 18, 33, 0.98)) !important;
  border-color: rgba(45, 212, 191, 0.34) !important;
}

.top-grid-focal .metric-card-gb-demand::before {
  background: radial-gradient(
      circle at 18% 8%,
      rgba(45, 212, 191, 0.42),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 100%,
      rgba(20, 184, 166, 0.18),
      transparent 36%
    ) !important;
}

.top-grid-focal .metric-card-gb-demand::after {
  content: "⌂";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #99f6e4;
  font-size: 29px;
}

.top-grid-focal .metric-card-uk-generation {
  background: linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.24),
      rgba(15, 23, 42, 0.94) 48%,
      rgba(8, 13, 25, 0.98)
    ),
    linear-gradient(180deg, rgba(20, 31, 52, 0.98), rgba(10, 18, 33, 0.98)) !important;
  border-color: rgba(74, 222, 128, 0.34) !important;
}

.top-grid-focal .metric-card-uk-generation::before {
  background: radial-gradient(
      circle at 18% 8%,
      rgba(74, 222, 128, 0.38),
      transparent 34%
    ),
    radial-gradient(
      circle at 92% 100%,
      rgba(34, 197, 94, 0.18),
      transparent 36%
    ) !important;
}

.top-grid-focal .metric-card-uk-generation::after {
  content: "●";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbf7d0;
  font-size: 26px;
}

.top-grid-focal .metric-card-focal .metric-label {
  width: max-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.top-grid-focal .metric-card-focal .metric-value {
  font-size: clamp(44px, 5.8vw, 68px) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.06em !important;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  max-width: calc(100% - 56px);
}

.top-grid-focal .metric-card-grid-demand .metric-value {
  color: #dbeafe !important;
}

.top-grid-focal .metric-card-gb-demand .metric-value {
  color: #ccfbf1 !important;
}

.top-grid-focal .metric-card-uk-generation .metric-value {
  color: #dcfce7 !important;
}

.top-grid-focal .metric-card-focal .metric-value span {
  color: rgba(226, 232, 240, 0.78) !important;
  letter-spacing: -0.02em;
}

.top-grid-focal .metric-card-focal .metric-help {
  font-size: 14px !important;
  margin-top: 4px !important;
}

.top-grid-focal .metric-card-detail-grid {
  gap: 12px !important;
  margin-top: 20px !important;
}

.top-grid-focal .metric-card-detail-grid > div {
  background: rgba(2, 6, 23, 0.34) !important;
  border: 1px solid rgba(226, 232, 240, 0.12) !important;
  border-radius: 16px !important;
  padding: 12px 13px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.top-grid-focal .metric-card-detail-grid span {
  color: #aebbd0 !important;
  font-size: 10px !important;
}

.top-grid-focal .metric-card-detail-grid strong {
  font-size: 16px !important;
  color: #f8fafc !important;
}

.top-grid-focal > .metric-card-supporting {
  border-radius: 20px !important;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.92),
    rgba(10, 18, 33, 0.94)
  ) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.top-grid-focal > .metric-card-supporting .metric-value {
  font-size: clamp(27px, 3vw, 39px) !important;
  letter-spacing: -0.045em;
}

.top-grid-focal > .metric-card-focal:hover,
.top-grid-focal > .metric-card-supporting:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 1100px) {
.top-grid-focal > .metric-card-focal {
  min-height: 210px !important;
}

.top-grid-focal .metric-card-focal .metric-value {
  font-size: clamp(34px, 5vw, 54px) !important;
}

}

@media (max-width: 760px) {
.top-grid-focal {
  gap: 16px !important;
}

.top-grid-focal > .metric-card-focal {
  min-height: auto !important;
  padding: 22px !important;
}

.top-grid-focal .metric-card-focal .metric-value {
  max-width: 100%;
}

.top-grid-focal > .metric-card-focal::after {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
}

}

@keyframes liveValuePulse {
0% {
  text-shadow: 0 0 0 rgba(125, 211, 252, 0);
  transform: translateY(0);
}

35% {
  text-shadow: 0 0 22px rgba(125, 211, 252, 0.42);
  transform: translateY(-1px);
}

100% {
  text-shadow: 0 0 0 rgba(125, 211, 252, 0);
  transform: translateY(0);
}

}

@keyframes liveCardGlow {
0% {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

45% {
  box-shadow: 0 26px 82px rgba(56, 189, 248, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

100% {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

}

.live-value-updated {
  display: inline-block;
}

.top-grid-focal .metric-card-focal {
  isolation: isolate;
}

.top-grid-focal .metric-card-focal .metric-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9f7ff !important;
}

.top-grid-focal .metric-card-focal .metric-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.85);
}

.top-grid-focal .metric-card-grid-demand .metric-label::before {
  background: #60a5fa;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.85);
}

.top-grid-focal .metric-card-gb-demand .metric-label::before {
  background: #a78bfa;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.85);
}

.top-grid-focal .metric-card-uk-generation .metric-label::before {
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.85);
}

.top-grid-focal .metric-card-focal .metric-help {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: #dbeafe !important;
}

.top-grid-focal .metric-card-detail-grid > div {
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.top-grid-focal .metric-card-detail-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.42) !important;
}

.top-grid-focal .metric-card-detail-grid span {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900 !important;
}

.top-grid-focal .metric-card-detail-grid strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.top-grid-focal .metric-card-detail-grid strong.trend-up::before,
.top-grid-focal .metric-card-detail-grid strong.trend-down::before {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.top-grid-focal .metric-card-detail-grid strong.trend-up {
  color: #86efac !important;
}

.top-grid-focal .metric-card-detail-grid strong.trend-up::before {
  content: "↗";
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.top-grid-focal .metric-card-detail-grid strong.trend-down {
  color: #fca5a5 !important;
}

.top-grid-focal .metric-card-detail-grid strong.trend-down::before {
  content: "↘";
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.top-grid-focal > .metric-card-supporting {
  transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
}

.top-grid-focal > .metric-card-supporting::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0.75;
}

.metric-card-clean::after {
  box-shadow: inset 0 0 0 999px rgba(34, 197, 94, 0.08);
}

.metric-card-carbon-top::after {
  box-shadow: inset 0 0 0 999px rgba(56, 189, 248, 0.08);
}

.metric-card-import::after {
  box-shadow: inset 0 0 0 999px rgba(52, 211, 153, 0.08);
}

.metric-card-export::after {
  box-shadow: inset 0 0 0 999px rgba(167, 139, 250, 0.08);
}

.metric-card-balance::after {
  box-shadow: inset 0 0 0 999px rgba(251, 191, 36, 0.08);
}

.compact-mix-panel::before {
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
}

.compact-mix-panel p {
  max-width: 560px !important;
  color: #cbd5e1 !important;
}

.compact-mix-row i::before {
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.32);
}

.flow-box:hover {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
}

.flow-status {
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

.flow-rank-badge {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(94, 234, 212, 0.18);
}

@media (prefers-reduced-motion: reduce) {
.top-grid-focal .metric-card-detail-grid > div,
  .flow-box {
  transition: none !important;
}

}

.top-grid-focal.top-grid-new-boxes {
  display: grid !important;
  grid-template-columns: repeat(15, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  margin-bottom: 18px !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
  min-height: 154px;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(1) {
  grid-column: 1 / span 5 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(2) {
  grid-column: 6 / span 5 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: 11 / span 5 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(4) {
  grid-column: 1 / span 3 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(5) {
  grid-column: 4 / span 3 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(6) {
  grid-column: 7 / span 3 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(7) {
  grid-column: 10 / span 3 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(8) {
  grid-column: 13 / span 3 !important;
}

.metric-card-focal {
  border-radius: 24px !important;
  overflow: hidden !important;
  isolation: isolate;
  border-color: rgba(125, 211, 252, 0.22) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.metric-card-focal:before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0.95;
  z-index: 0;
  pointer-events: none;
}

.metric-card-focal:after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.metric-card-focal > * {
  position: relative;
  z-index: 1;
}

.metric-card-grid-demand {
  background: linear-gradient(
    145deg,
    rgba(34, 94, 170, 0.38),
    rgba(11, 18, 33, 0.96) 58%,
    rgba(13, 23, 42, 0.98)
  ) !important;
}

.metric-card-grid-demand:before {
  background: radial-gradient(circle at 8% 2%, rgba(96, 165, 250, 0.4), transparent 35%),
    radial-gradient(
      circle at 78% 18%,
      rgba(34, 211, 238, 0.12),
      transparent 30%
    ) !important;
}

.metric-card-grid-demand:after {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.28),
    rgba(14, 165, 233, 0.08)
  );
  border: 1px solid rgba(147, 197, 253, 0.22);
}

.metric-card-grid-demand .metric-label:after {
  content: " ⚡";
}

.metric-card-gb-demand {
  background: linear-gradient(
    145deg,
    rgba(20, 184, 166, 0.34),
    rgba(10, 22, 32, 0.96) 58%,
    rgba(13, 23, 42, 0.98)
  ) !important;
  border-color: rgba(45, 212, 191, 0.24) !important;
}

.metric-card-gb-demand:before {
  background: radial-gradient(circle at 8% 2%, rgba(45, 212, 191, 0.36), transparent 35%),
    radial-gradient(
      circle at 80% 20%,
      rgba(16, 185, 129, 0.12),
      transparent 30%
    ) !important;
}

.metric-card-gb-demand:after {
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.25),
    rgba(16, 185, 129, 0.08)
  );
  border: 1px solid rgba(94, 234, 212, 0.22);
}

.metric-card-gb-demand .metric-label:after {
  content: " ⌁";
}

.metric-card-uk-generation {
  background: linear-gradient(
    145deg,
    rgba(22, 163, 74, 0.34),
    rgba(10, 24, 31, 0.96) 58%,
    rgba(13, 23, 42, 0.98)
  ) !important;
  border-color: rgba(74, 222, 128, 0.24) !important;
}

.metric-card-uk-generation:before {
  background: radial-gradient(circle at 8% 2%, rgba(74, 222, 128, 0.34), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.12), transparent 30%) !important;
}

.metric-card-uk-generation:after {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.23),
    rgba(22, 163, 74, 0.08)
  );
  border: 1px solid rgba(134, 239, 172, 0.22);
}

.metric-card-uk-generation .metric-label:after {
  content: " ◉";
}

.metric-card-focal .metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(226, 232, 240, 0.1);
  color: #dbeafe !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
}

.metric-card-focal .metric-value {
  font-size: clamp(42px, 5.2vw, 64px) !important;
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: #eaf2ff !important;
  text-shadow: 0 0 28px rgba(125, 211, 252, 0.16);
}

.metric-card-focal .metric-value span {
  display: block;
  margin-top: 10px;
  font-size: clamp(18px, 2vw, 24px) !important;
  letter-spacing: -0.02em;
  color: #b9c7d9 !important;
}

.metric-card-focal .metric-help {
  color: #d7e4f5 !important;
}

.metric-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card-detail-grid span {
  display: block;
  color: #9fb0c5;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.metric-card-detail-grid strong,
.metric-card-detail-grid a {
  color: #ecfeff;
  font-weight: 900;
  text-decoration: none;
}

.metric-card-detail-grid a:hover {
  text-decoration: underline;
}

.metric-insight-line {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.35;
}

.metric-card-supporting {
  min-height: 140px !important;
  padding: 20px !important;
  border-radius: 20px !important;
}

.metric-card-supporting .metric-value {
  font-size: clamp(26px, 3vw, 34px) !important;
}

@media (max-width: 1080px) {
.top-grid-focal.top-grid-new-boxes {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(1),
  .top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(2),
  .top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: 1/-1 !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card:nth-child(n + 4) {
  grid-column: span 3 !important;
}

}

@media (max-width: 640px) {
.top-grid-focal.top-grid-new-boxes {
  grid-template-columns: 1fr !important;
}

.top-grid-focal.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
}

.metric-card-detail-grid {
  grid-template-columns: 1fr;
}

}

.interconnector-panel {
  position: relative;
  border-color: rgba(103, 232, 249, 0.18);
  background: radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.1), transparent 32%),
    radial-gradient(
      circle at 88% 14%,
      rgba(96, 165, 250, 0.09),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(8, 15, 29, 0.92));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.interconnector-panel .panel-head {
  align-items: flex-start;
}

.interconnector-panel .panel-subtitle {
  border: 1px solid rgba(103, 232, 249, 0.15);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(2, 6, 23, 0.28);
  color: #b7c7da;
  font-weight: 750;
}

.interconnector-summary-grid {
  gap: 16px;
  margin: 18px 0 20px;
}

.interconnector-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(30, 41, 59, 0.48)
  );
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.interconnector-summary-card:before {
  content: "";
  position: absolute;
  inset: -45% -20% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  opacity: 0.55;
  filter: blur(4px);
  background: radial-gradient(
    circle,
    rgba(103, 232, 249, 0.18),
    transparent 62%
  );
}

.interconnector-summary-card:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(
    90deg,
    rgba(103, 232, 249, 0.85),
    rgba(34, 197, 94, 0.7)
  );
  opacity: 0.78;
}

.interconnector-summary-card.export:after {
  background: linear-gradient(
    90deg,
    rgba(167, 139, 250, 0.9),
    rgba(244, 114, 182, 0.75)
  );
}

.interconnector-summary-card.net:after {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.85),
    rgba(103, 232, 249, 0.82),
    rgba(167, 139, 250, 0.76)
  );
}

.interconnector-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.3);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.28),
    0 0 34px rgba(103, 232, 249, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.interconnector-summary-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.32);
  color: #c7d6e8;
}

.interconnector-summary-card span:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.75);
}

.interconnector-summary-card.import span:before {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
}

.interconnector-summary-card.export span:before {
  background: #a78bfa;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.75);
}

.interconnector-summary-card strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  letter-spacing: -0.045em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
}

.interconnector-summary-card small {
  position: relative;
  z-index: 1;
  color: #aab9ca;
  font-weight: 650;
}

.interconnector-breakdown-card {
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.8),
    rgba(8, 13, 26, 0.72)
  );
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 46px rgba(2, 6, 23, 0.18);
}

.interconnector-card-title-row {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.interconnector-list {
  gap: 12px;
  margin-top: 4px;
}

.interconnector-row {
  min-height: 62px;
  padding: 13px 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7),
    rgba(2, 6, 23, 0.22)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.interconnector-row:hover {
  transform: translateX(2px);
  border-color: rgba(103, 232, 249, 0.22);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.86),
    rgba(14, 165, 233, 0.08)
  );
}

.interconnector-row.import {
  border-left: 3px solid rgba(34, 197, 94, 0.72);
}

.interconnector-row.export {
  border-left: 3px solid rgba(167, 139, 250, 0.78);
}

.interconnector-row.idle {
  border-left: 3px solid rgba(148, 163, 184, 0.38);
}

.interconnector-row strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.interconnector-row small {
  font-size: 11px;
  line-height: 1.35;
}

.connector-icon-stack img {
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.2));
}

.interconnector-value span {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.interconnector-value small {
  display: inline-flex;
  justify-content: flex-end;
  max-width: 150px;
  margin-top: 4px;
  color: #a8b7ca;
  font-size: 10px;
  font-weight: 750;
}

.interconnector-row > i {
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.interconnector-row > i::after {
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.2);
}

.interconnector-row.import > i::after {
  background: linear-gradient(90deg, #22c55e, #67e8f9);
}

.interconnector-row.export > i::after {
  background: linear-gradient(90deg, #a78bfa, #f472b6);
}

.interconnector-cable-row {
  margin-bottom: 8px;
  padding: 12px 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.22);
}

.interconnector-cable-row:last-child {
  margin-bottom: 0;
}

.interconnector-capacity-card {
  border-color: rgba(244, 114, 182, 0.2);
}

@media (max-width: 820px) {
.interconnector-summary-card {
  min-height: auto;
}

.interconnector-value small {
  max-width: none;
}

.interconnector-row {
  grid-template-columns: 1fr;
  gap: 8px;
}

.interconnector-value {
  text-align: left;
  min-width: 0;
}

}

.compact-mix-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr) !important;
  gap: 14px !important;
  align-items: center !important;
  margin: 0 0 18px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(45, 212, 191, 0.18) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.compact-mix-panel::before {
  inset: 0 auto 0 0;
}

.compact-mix-panel::after {
  content: "Top mix";
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compact-mix-panel .eyebrow {
  margin-bottom: 5px !important;
  color: #86efac !important;
}

.compact-mix-panel h2 {
  margin: 0 0 5px !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  color: #f8fafc !important;
}

.compact-mix-panel p,
.compact-mix-panel .panel-subtitle {
  margin: 0 !important;
  max-width: 620px !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.compact-mix-bars {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
}

.compact-mix-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 62px 54px minmax(110px, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  color: #cbd5e1 !important;
  background: rgba(15, 23, 42, 0.58) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  transition: transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease !important;
}

.compact-mix-row:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(125, 211, 252, 0.2) !important;
  background: rgba(18, 28, 46, 0.72) !important;
}

.compact-mix-row::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  border-radius: 999px !important;
  opacity: 0.9 !important;
}

.compact-mix-row:has(.mix-clean)::before {
  background: #34d399 !important;
}

.compact-mix-row:has(.mix-fossil)::before {
  background: #fb923c !important;
}

.compact-mix-row:has(.mix-other)::before {
  background: #a78bfa !important;
}

.compact-mix-row span {
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #e2e8f0 !important;
}

.compact-mix-row strong {
  justify-self: end !important;
  min-width: 46px !important;
  padding: 3px 6px !important;
  border-radius: 999px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.compact-mix-row i {
  position: relative !important;
  display: block !important;
  height: 7px !important;
  min-height: 7px !important;
  max-height: 7px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.86) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.32) !important;
}

.compact-mix-row i::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: var(--w) !important;
  border-radius: inherit !important;
  transition: width 0.55s ease !important;
}

.compact-mix-row i.mix-clean::before {
  background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7) !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3) !important;
}

.compact-mix-row i.mix-fossil::before {
  background: linear-gradient(90deg, #f97316, #fb923c, #fdba74) !important;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.25) !important;
}

.compact-mix-row i.mix-other::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6, #22d3ee) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25) !important;
}

.mix-track,
.clean-bar,
.split-bar {
  height: 8px !important;
  min-height: 8px !important;
  max-height: 8px !important;
}

.generation-split,
.clean-vs-fossil {
  padding: 11px 12px !important;
}

.split-labels,
.bar-labels {
  margin-bottom: 6px !important;
}

.split-totals {
  margin-top: 6px !important;
}

.generation-split small,
.clean-vs-fossil small {
  margin-top: 6px !important;
  line-height: 1.3 !important;
}

@media (max-width: 860px) {
.compact-mix-panel {
  grid-template-columns: 1fr !important;
  padding: 16px !important;
}

.compact-mix-panel::after {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  justify-self: start !important;
  order: 3 !important;
  margin-top: 4px !important;
}

}

@media (max-width: 560px) {
.compact-mix-row {
  grid-template-columns: 1fr auto !important;
}

.compact-mix-row i {
  grid-column: 1 / -1 !important;
}

}

@media (prefers-reduced-motion: reduce) {
.compact-mix-row,
  .compact-mix-row i::before {
  transition: none !important;
}

}

.flow-board .flow-box {
  border-color: rgba(148, 163, 184, 0.16) !important;
}

.flow-board .flow-box.flow-card-hover,
.flow-board .flow-box:hover {
  border-color: rgba(125, 211, 252, 0.28) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(56, 189, 248, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.flow-board .flow-title {
  color: #e5f0ff !important;
}

.flow-board .flow-num {
  color: #f8fafc !important;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.08);
}

.flow-board .flow-num span,
.flow-board .flow-meta {
  color: #a8b5c7 !important;
}

.flow-board .flow-pct {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.flow-board .flow-status {
  border-top-color: rgba(148, 163, 184, 0.12) !important;
}

.flow-board .flow-status span {
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flow-board .flow-box.imports {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(168, 85, 247, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.wind {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(16, 185, 129, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.solar {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(245, 158, 11, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.hydro,
.flow-board .flow-box.pumped-hydro {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(6, 182, 212, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.other {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(249, 115, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.nuclear {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(203, 213, 225, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.gas {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(59, 130, 246, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.biomass {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(132, 204, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-box.coal {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 3px 0 0 rgba(107, 114, 128, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .demand-ring {
  background: conic-gradient(
    from 180deg,
    #22c55e,
    #84cc16,
    #f59e0b,
    #ef4444,
    #22c55e
  ) !important;
  box-shadow: 0 0 34px rgba(34, 197, 94, 0.13),
    0 0 42px rgba(245, 158, 11, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.flow-board .demand-inner {
  background: radial-gradient(
    circle at 50% 28%,
    rgba(30, 41, 59, 0.92),
    #0d1625 70%
  ) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -24px 46px rgba(0, 0, 0, 0.22) !important;
}

.flow-board .demand-label-sub {
  color: #86efac !important;
}

.flow-board .flow-line {
  filter: drop-shadow(0 0 7px currentColor) !important;
}

.flow-board .flow-line-highlight {
  filter: drop-shadow(0 0 13px currentColor) drop-shadow(0 0 22px currentColor) !important;
}

.flow-board .flow-dot {
  filter: drop-shadow(0 0 8px currentColor) !important;
}

.top-grid-new-boxes > .metric-card:nth-child(1) {
  border-color: rgba(56, 189, 248, 0.28) !important;
  background: radial-gradient(
      circle at 14% 8%,
      rgba(56, 189, 248, 0.16),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(10, 18, 31, 0.94)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.top-grid-new-boxes > .metric-card:nth-child(2) {
  border-color: rgba(45, 212, 191, 0.3) !important;
  background: radial-gradient(
      circle at 14% 8%,
      rgba(45, 212, 191, 0.18),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(13, 31, 32, 0.88), rgba(8, 21, 29, 0.94)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(45, 212, 191, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.top-grid-new-boxes > .metric-card:nth-child(3) {
  border-color: rgba(34, 197, 94, 0.26) !important;
  background: radial-gradient(circle at 14% 8%, rgba(34, 197, 94, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 25, 0.88), rgba(8, 22, 22, 0.94)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.top-grid-new-boxes > .metric-card:nth-child(n + 4) {
  background: radial-gradient(
      circle at 16% 8%,
      rgba(125, 211, 252, 0.055),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 15, 28, 0.86)) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.top-grid-new-boxes .metric-label {
  color: #b8c6d8 !important;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.05);
}

.top-grid-new-boxes .metric-value {
  color: #f8fafc !important;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.08);
}

.top-grid-new-boxes .metric-value span {
  color: #a8b5c7 !important;
}

.top-grid-new-boxes .metric-help {
  color: #c6d3e3 !important;
}

.top-grid-new-boxes .metric-card-clean .metric-value,
.top-grid-new-boxes .metric-card-clean .metric-label {
  color: #86efac !important;
}

.top-grid-new-boxes .metric-card-carbon-top .metric-value,
.top-grid-new-boxes .metric-card-carbon-top .metric-label {
  color: #c4b5fd !important;
}

.top-grid-new-boxes .metric-card-export .metric-value,
.top-grid-new-boxes .metric-card-export .metric-label {
  color: #38bdf8 !important;
}

.top-grid-new-boxes .metric-card-balance.balanced .metric-value,
.top-grid-new-boxes .metric-card-balance.balanced .metric-label {
  color: #86efac !important;
}

.top-grid-new-boxes .metric-card-balance.exporting .metric-value,
.top-grid-new-boxes .metric-card-balance.exporting .metric-label {
  color: #38bdf8 !important;
}

.top-grid-new-boxes > .metric-card:hover {
  filter: brightness(1.035);
}

.top-grid-new-boxes .metric-info-button {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(125, 211, 252, 0.34) !important;
  color: #7dd3fc !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.08);
}

.top-grid-new-boxes .peak-time-link {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 22px rgba(14, 165, 233, 0.1) !important;
}

.grid-action-main-compact {
  gap: 0 !important;
}

.grid-action-main-compact .grid-action-kicker {
  opacity: 0.78;
}

.grid-action-main-compact h2 {
  margin-top: 2px;
}

.grid-action-main-compact .grid-action-badge,
.grid-action-panel .grid-action-badge:empty {
  display: none !important;
}

.grid-action-panel {
  row-gap: 12px;
}

.grid-action-panel .grid-action-main-compact p {
  max-width: 680px;
}

.grid-action-reasons div {
  min-width: 0;
}

.grid-action-main-merged {
  align-self: center;
}

.grid-action-best-time-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin: 9px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.grid-action-best-time-inline span {
  color: #93a4ba;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.grid-action-best-time-inline strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.grid-action-best-time-inline small {
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.35;
}

.grid-action-best-time-inline.best-time-good strong {
  color: #86efac;
}

.grid-action-best-time-inline.best-time-avoid strong {
  color: #fdba74;
}

.grid-action-best-time-inline.best-time-normal strong {
  color: #bfdbfe;
}

.grid-action-panel > .best-time-card {
  display: none !important;
}

.grid-action-panel {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
}

.grid-action-reasons {
  justify-self: end;
}

.grid-action-why {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
.grid-action-panel {
  grid-template-columns: 1fr !important;
}

.grid-action-reasons {
  justify-self: stretch;
}

}

.grid-action-panel {
  transition: border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.grid-action-panel.grid-action-normal {
  border-color: rgba(125, 211, 252, 0.18) !important;
  background: radial-gradient(circle at 8% 8%, rgba(56, 189, 248, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(8, 15, 28, 0.96)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.grid-action-panel.grid-action-normal .grid-action-kicker,
.grid-action-panel.grid-action-normal .grid-action-best-time-inline strong {
  color: #bfdbfe !important;
}

.grid-action-panel.grid-action-good,
.grid-action-panel.grid-action-clean {
  border-color: rgba(52, 211, 153, 0.28) !important;
  background: radial-gradient(
      circle at 9% 10%,
      rgba(52, 211, 153, 0.16),
      transparent 36%
    ),
    radial-gradient(
      circle at 64% 0%,
      rgba(45, 212, 191, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(13, 31, 28, 0.92), rgba(8, 18, 28, 0.96)) !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.grid-action-panel.grid-action-good .grid-action-kicker,
.grid-action-panel.grid-action-clean .grid-action-kicker,
.grid-action-panel.grid-action-good .grid-action-best-time-inline strong,
.grid-action-panel.grid-action-clean .grid-action-best-time-inline strong {
  color: #86efac !important;
}

.grid-action-panel.grid-action-stressed {
  border-color: rgba(251, 146, 60, 0.34) !important;
  background: radial-gradient(
      circle at 9% 10%,
      rgba(251, 146, 60, 0.18),
      transparent 36%
    ),
    radial-gradient(circle at 70% 0%, rgba(239, 68, 68, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(37, 28, 22, 0.92), rgba(18, 17, 28, 0.96)) !important;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.25),
    0 0 36px rgba(251, 146, 60, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.grid-action-panel.grid-action-stressed .grid-action-kicker,
.grid-action-panel.grid-action-stressed .grid-action-best-time-inline strong {
  color: #fdba74 !important;
}

.grid-action-panel.grid-action-good h2,
.grid-action-panel.grid-action-clean h2 {
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.1);
}

.grid-action-panel.grid-action-normal h2 {
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.08);
}

.grid-action-panel.grid-action-stressed h2 {
  text-shadow: 0 0 20px rgba(251, 146, 60, 0.11);
}

.grid-action-panel.grid-action-good .grid-action-reasons div,
.grid-action-panel.grid-action-clean .grid-action-reasons div {
  border-color: rgba(52, 211, 153, 0.16) !important;
  background: rgba(16, 185, 129, 0.045) !important;
}

.grid-action-panel.grid-action-normal .grid-action-reasons div {
  border-color: rgba(125, 211, 252, 0.14) !important;
  background: rgba(59, 130, 246, 0.035) !important;
}

.grid-action-panel.grid-action-stressed .grid-action-reasons div {
  border-color: rgba(251, 146, 60, 0.18) !important;
  background: rgba(251, 146, 60, 0.045) !important;
}

.grid-action-panel.grid-action-good .grid-action-reasons strong,
.grid-action-panel.grid-action-clean .grid-action-reasons strong {
  color: #d1fae5 !important;
}

.grid-action-panel.grid-action-normal .grid-action-reasons strong {
  color: #e0f2fe !important;
}

.grid-action-panel.grid-action-stressed .grid-action-reasons strong {
  color: #ffedd5 !important;
}

@keyframes lg-soft-pulse {
0%,
  100% {
  box-shadow: 0 0 0 rgba(45, 212, 191, 0);
}

50% {
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.13);
}

}

@keyframes lg-live-dot {
0%,
  100% {
  opacity: 0.75;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.35));
}

50% {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.75));
}

}

@keyframes lg-flow-glow {
0%,
  100% {
  filter: drop-shadow(0 0 7px currentColor);
  opacity: 0.88;
}

50% {
  filter: drop-shadow(0 0 12px currentColor);
  opacity: 1;
}

}

@keyframes lg-panel-breathe {
0%,
  100% {
  filter: brightness(1);
}

50% {
  filter: brightness(1.035);
}

}

.live-pill,
[data-live-indicator],
.site-header .live-pill {
  animation: lg-live-dot 2.8s ease-in-out infinite;
}

.grid-action-panel {
  animation: lg-panel-breathe 8s ease-in-out infinite;
}

.metric-card,
.today-stat,
.interconnector-summary-card,
.flow-box {
  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.metric-card:hover,
.today-stat:hover,
.interconnector-summary-card:hover {
  filter: brightness(1.04);
}

.flow-board .flow-line {
  animation: lg-flow-glow 4.5s ease-in-out infinite;
}

.flow-board .flow-line.wind {
  animation-delay: 0.2s;
}

.flow-board .flow-line.solar {
  animation-delay: 0.55s;
}

.flow-board .flow-line.imports {
  animation-delay: 0.8s;
}

.flow-board .flow-line.gas {
  animation-delay: 1.05s;
}

.flow-board .flow-line.nuclear {
  animation-delay: 1.3s;
}

.flow-board .flow-line.biomass {
  animation-delay: 1.55s;
}

.flow-board .demand-ring {
  animation: lg-soft-pulse 5.5s ease-in-out infinite;
}

.compact-mix-row i::before,
.interconnector-row > i::after,
.capacity-fill,
.progress-fill {
  transition: width 0.55s ease,
    background 0.25s ease,
    filter 0.25s ease;
}

button,
.btn,
.nav-pills a,
.history-mode-pill,
.period-btn {
  transition: background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

button:hover,
.btn:hover,
.nav-pills a:hover,
.history-mode-pill:hover,
.period-btn:hover {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
.live-pill,
  [data-live-indicator],
  .site-header .live-pill,
  .grid-action-panel,
  .flow-board .flow-line,
  .flow-board .demand-ring {
  animation: none !important;
}

.metric-card,
  .today-stat,
  .interconnector-summary-card,
  .flow-box,
  button,
  .btn,
  .nav-pills a,
  .history-mode-pill,
  .period-btn {
  transition: none !important;
}

}

.site-header.shared-header {
  position: relative;
  overflow: hidden;
}

.site-header.shared-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.55),
    rgba(125, 211, 252, 0.35),
    transparent
  );
  opacity: 0.75;
}

.shared-header-actions .view-switcher {
  background: rgba(15, 23, 42, 0.62) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-header-actions .status-pill,
.livegrid-mode-badge {
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.history-scrubber {
  position: relative;
  overflow: hidden;
  border-color: rgba(56, 189, 248, 0.18) !important;
  background: radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.12), transparent 34%),
    radial-gradient(
      circle at 88% 8%,
      rgba(56, 189, 248, 0.09),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(10, 24, 38, 0.9), rgba(8, 15, 28, 0.95)) !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.history-scrubber::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.45),
    rgba(125, 211, 252, 0.32),
    transparent
  );
  opacity: 0.8;
}

.history-scrubber > * {
  position: relative;
  z-index: 1;
}

.history-scrubber-kicker,
.history-control-label {
  color: #5eead4 !important;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-scrubber-head {
  align-items: flex-start;
}

.history-scrubber-actions {
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
}

.history-mode-btn {
  border-radius: 999px !important;
}

.history-scrubber-controls-upgraded {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.24fr) minmax(360px, 0.46fr) minmax(
      320px,
      1fr
    );
  gap: 14px;
  align-items: stretch;
}

.history-date-card,
.history-jump-panel,
.history-range-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.history-date-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.history-date-card input[type="date"] {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.44);
  color: #f8fafc;
  padding: 10px 11px;
  font-weight: 900;
  color-scheme: dark;
}

.history-jump-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.history-jump-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.history-jump-btn {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    rgba(8, 15, 28, 0.7);
  color: #dbeafe;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.history-jump-btn:hover {
  border-color: rgba(45, 212, 191, 0.35);
  color: #99f6e4;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.history-range-card {
  padding: 14px 14px 10px;
}

.history-range-card input[type="range"] {
  width: 100%;
}

.history-range-meta {
  color: #aebbd0;
}

.history-scrubber-status {
  border-color: rgba(125, 211, 252, 0.14) !important;
  background: rgba(15, 23, 42, 0.42) !important;
}

@media (max-width: 1100px) {
.history-scrubber-controls-upgraded {
  grid-template-columns: 1fr;
}

.history-jump-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

}

@media (max-width: 640px) {
.site-header.shared-header {
  gap: 18px;
}

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

}

.shared-header-actions-simple {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}

.shared-header-actions-simple .update-pill {
  margin-top: 0;
}

.site-header .view-switcher,
.site-header .livegrid-mode-badge {
  display: none !important;
}

.site-header.shared-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 760px) {
.site-header.shared-header {
  grid-template-columns: 1fr;
}

.shared-header-actions-simple {
  justify-content: flex-start;
}

}

.site-header.shared-header {
  min-height: auto !important;
  padding: 28px 32px !important;
  align-items: center !important;
  gap: 24px !important;
  border-color: rgba(45, 212, 191, 0.22) !important;
  background: radial-gradient(
      circle at 7% 12%,
      rgba(45, 212, 191, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 84% 12%,
      rgba(56, 189, 248, 0.08),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(8, 18, 31, 0.96), rgba(7, 13, 24, 0.98)) !important;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.site-header.shared-header::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(45, 212, 191, 0.55),
    rgba(125, 211, 252, 0.28),
    transparent
  );
  opacity: 0.75;
  pointer-events: none;
}

.site-header-copy {
  position: relative;
}

.site-header-copy::after {
  content: "";
  display: block;
  width: min(520px, 100%);
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #67e8f9, rgba(103, 232, 249, 0));
  opacity: 0.72;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.14);
}

.site-header-copy .eyebrow {
  margin-bottom: 8px !important;
  color: #86efac !important;
  letter-spacing: 0.14em !important;
}

.site-header-copy h1 {
  margin: 0 !important;
  font-size: clamp(42px, 5.2vw, 68px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.07em !important;
  text-shadow: 0 0 28px rgba(125, 211, 252, 0.1),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.site-header-copy .tagline {
  margin-top: 12px !important;
  max-width: 760px !important;
  font-size: clamp(15px, 1.35vw, 19px) !important;
  line-height: 1.5 !important;
  color: #b8c7d9 !important;
}

.shared-header-actions-simple {
  align-self: center !important;
}

.shared-header-actions-simple .update-pill {
  white-space: nowrap;
  border-color: rgba(45, 212, 191, 0.28) !important;
  background: radial-gradient(
      circle at 12% 20%,
      rgba(45, 212, 191, 0.16),
      transparent 50%
    ),
    rgba(6, 78, 59, 0.16) !important;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.shared-header-actions-simple .update-pill span:last-child {
  color: #d8f3ec;
  font-weight: 750;
}

.shared-header-actions-simple .update-pill strong {
  color: #f8fafc;
}

.shared-header-actions-simple .update-pill-dot {
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
}

@media (max-width: 980px) {
.site-header.shared-header {
  padding: 24px !important;
  grid-template-columns: 1fr !important;
}

.shared-header-actions-simple {
  justify-content: flex-start !important;
}

.site-header-copy h1 {
  font-size: clamp(38px, 9vw, 58px) !important;
}

}

@media (max-width: 560px) {
.site-header.shared-header {
  padding: 20px !important;
}

.site-header-copy::after {
  margin-top: 12px;
}

.shared-header-actions-simple .update-pill {
  white-space: normal;
}

}

.history-toggle-bar {
  margin-top: 10px;
  margin-bottom: 6px;
}

.history-toggle-bar {
  position: relative;
  z-index: 5;
  transition: margin 0.22s ease,
    transform 0.22s ease;
}

.history-toggle-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
      circle at 14% 12%,
      rgba(45, 212, 191, 0.12),
      transparent 48%
    ),
    rgba(15, 23, 42, 0.62);
  color: #dff7ff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.history-toggle-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
}

.history-toggle-btn strong {
  color: #7dd3fc;
  font-weight: 950;
}

.history-toggle-btn:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.history-toggle-bar.history-toggle-collapsed {
  display: flex;
  justify-content: flex-end;
  margin-top: -82px;
  margin-bottom: 38px;
  padding-right: 34px;
  pointer-events: none;
}

.history-toggle-bar.history-toggle-collapsed .history-toggle-btn {
  pointer-events: auto;
}

.history-toggle-bar.history-toggle-open {
  margin-top: 10px;
  margin-bottom: 8px;
  padding-right: 0;
}

.history-scrubber.history-hidden {
  display: none !important;
}

@media (max-width: 980px) {
.history-toggle-bar.history-toggle-collapsed {
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 8px;
  padding-right: 0;
}

}

.flow-board .flow-box {
  cursor: default;
}

.flow-board.flow-board-hovering .flow-line,
.flow-board.flow-board-hovering .flow-dot {
  filter: drop-shadow(0 0 2px currentColor) !important;
}

.flow-board.flow-board-hovering .flow-box {
  border-color: rgba(148, 163, 184, 0.1) !important;
}

.flow-board.flow-board-hovering .demand-ring {
  filter: brightness(1.06);
}

.flow-board .flow-box:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
.flow-board .flow-line.is-flow-active,
  .flow-board .flow-dot.is-flow-active {
  filter: none !important;
}

}

.flow-box {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.flow-name {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.flow-num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.flow-num span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.flow-pct {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 14px;
}

.flow-box.gas {
  border-color: rgba(59, 130, 246, 0.35);
}

.flow-box.solar {
  border-color: rgba(245, 158, 11, 0.35);
}

.flow-box.wind {
  border-color: rgba(16, 185, 129, 0.35);
}

.flow-box.nuclear {
  border-color: rgba(203, 213, 225, 0.28);
}

.flow-box.imports {
  border-color: rgba(168, 85, 247, 0.35);
}

.flow-box.biomass {
  border-color: rgba(132, 204, 22, 0.35);
}

.flow-box.hydro {
  border-color: rgba(6, 182, 212, 0.35);
}

.flow-box.coal {
  border-color: rgba(107, 114, 128, 0.35);
}

.flow-box.other {
  border-color: rgba(249, 115, 22, 0.35);
}

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke-width: 2.5;
  opacity: 0.7;
}

.flow-line.imports {
  stroke: var(--imports);
}

.flow-line.wind {
  stroke: var(--wind);
}

.flow-line.solar {
  stroke: var(--solar);
}

.flow-line.hydro {
  stroke: var(--hydro);
}

.flow-line.other {
  stroke: var(--other);
}

.flow-line.nuclear {
  stroke: var(--nuclear);
}

.flow-line.gas {
  stroke: var(--gas);
}

.flow-line.biomass {
  stroke: var(--biomass);
}

.flow-line.coal {
  stroke: var(--coal);
}

.flow-dot {
  filter: drop-shadow(0 0 6px currentColor);
}

.flow-dot.imports {
  fill: var(--imports);
  color: var(--imports);
}

.flow-dot.wind {
  fill: var(--wind);
  color: var(--wind);
}

.flow-dot.solar {
  fill: var(--solar);
  color: var(--solar);
}

.flow-dot.hydro {
  fill: var(--hydro);
  color: var(--hydro);
}

.flow-dot.other {
  fill: var(--other);
  color: var(--other);
}

.flow-dot.nuclear {
  fill: var(--nuclear);
  color: var(--nuclear);
}

.flow-dot.gas {
  fill: var(--gas);
  color: var(--gas);
}

.flow-dot.biomass {
  fill: var(--biomass);
  color: var(--biomass);
}

.flow-dot.coal {
  fill: var(--coal);
  color: var(--coal);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 3;
  margin-top: -6px;
  margin-bottom: 2px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.summary-card strong {
  font-size: 22px;
}

.demand-core {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  min-height: 360px;
  margin-top: -10px;
}

.demand-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.demand-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.2);
}

.demand-title {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
}

.demand-value {
  font-size: 38px;
  font-weight: 700;
}

.flow-center .flow-svg {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 1 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.flow-center .demand-core {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 3 !important;
  min-height: 360px !important;
  margin-top: -10px !important;
  padding: 0 !important;
}

.flow-board.flow-board-hovering .flow-box {
  filter: brightness(0.86) saturate(0.88);
}

.flow-board .flow-box.is-flow-active {
  filter: brightness(1.12) saturate(1.12) !important;
  border-color: rgba(125, 211, 252, 0.46) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(125, 211, 252, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.flow-center {
  padding-top: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.flow-center .flow-svg,
.flow-svg {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 1 !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform: none !important;
}

.flow-center .demand-core,
.demand-core {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 3 !important;
  min-height: 360px !important;
  margin-top: -10px !important;
  padding: 0 !important;
}

.flow-center .flow-box-center {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 96px !important;
  justify-self: auto !important;
  z-index: 4 !important;
}

.flow-center .demand-ring {
  width: 280px !important;
  height: 280px !important;
}

.flow-board.flow-board-hovering .flow-line,
.flow-board.flow-board-hovering .flow-dot {
  opacity: 0.22 !important;
}

.flow-board .flow-line.is-flow-active {
  opacity: 1 !important;
  stroke-width: 6 !important;
  filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor) !important;
}

.flow-board .flow-dot.is-flow-active {
  opacity: 1 !important;
  filter: drop-shadow(0 0 9px currentColor) drop-shadow(0 0 18px currentColor) !important;
}

@media (max-width: 1080px) {
.flow-board {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
}

.flow-center {
  min-height: 540px !important;
}

}

@media (max-width: 640px) {
.flow-center .demand-ring {
  width: 220px !important;
  height: 220px !important;
}

}

.page {
  max-width: 1290px;
}

.panel,
.grid-action-panel,
.top-grid-new-boxes,
.today-stats-panel,
.compact-mix-panel,
.interconnector-dashboard,
.seo-content-panel {
  scroll-margin-top: 24px;
}

.grid-action-panel {
  margin-top: 18px !important;
  margin-bottom: 16px !important;
}

.top-grid-new-boxes {
  margin-bottom: 14px !important;
}

.balance-note {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.today-stats-panel {
  margin-top: 4px !important;
  margin-bottom: 18px !important;
}

.compact-mix-panel {
  margin-bottom: 18px !important;
}

.top-grid-new-boxes > .metric-card {
  min-height: 154px;
  border-radius: 24px !important;
  background: radial-gradient(
      circle at 16% 0%,
      rgba(125, 211, 252, 0.08),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(10, 18, 31, 0.95)) !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.top-grid-new-boxes > .metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.24) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(45, 212, 191, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.metric-label,
.stat-label,
.today-stat span {
  letter-spacing: 0.085em !important;
}

.metric-value {
  line-height: 0.96 !important;
}

.metric-help {
  color: #c4cedc !important;
}

.top-grid-new-boxes + .metric-strip,
.metric-strip {
  gap: 12px !important;
}

.metric-card-small,
.top-grid-new-boxes ~ .metric-card {
  border-radius: 18px;
}

.balance-note {
  border-color: rgba(125, 211, 252, 0.16) !important;
  background: linear-gradient(
    90deg,
    rgba(14, 165, 233, 0.08),
    rgba(15, 23, 42, 0.7)
  ) !important;
  color: #c8d7ea !important;
}

.balance-note .note-icon {
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.today-stat {
  border-radius: 18px !important;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(45, 212, 191, 0.08),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 15, 28, 0.92)) !important;
  border-color: rgba(148, 163, 184, 0.13) !important;
}

.today-stat strong {
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

.compact-mix-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(45, 212, 191, 0.19) !important;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(45, 212, 191, 0.12),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(13, 31, 42, 0.88), rgba(8, 15, 28, 0.96)) !important;
}

.compact-mix-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #34d399, #38bdf8);
  opacity: 0.86;
}

.compact-mix-panel > * {
  position: relative;
  z-index: 1;
}

.compact-mix-panel h2 {
  letter-spacing: -0.03em;
}

.panel,
.chart-panel,
.interconnector-dashboard,
.seo-content-panel {
  border-color: rgba(148, 163, 184, 0.13) !important;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.88),
    rgba(8, 15, 28, 0.94)
  ) !important;
}

.interconnector-summary-card,
.interconnector-country-row,
.cable-row {
  transition: border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.interconnector-summary-card:hover,
.interconnector-country-row:hover,
.cable-row:hover {
  border-color: rgba(125, 211, 252, 0.22) !important;
  filter: brightness(1.035);
}

.seo-content-panel {
  margin-top: 20px !important;
}

.seo-content-grid article {
  background: rgba(15, 23, 42, 0.52) !important;
}

.flow-box {
  transition: border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

.flow-box:hover {
  transform: none !important;
  filter: brightness(1.04);
}

@media (max-width: 860px) {
.top-grid-new-boxes > .metric-card {
  min-height: auto;
}

.grid-action-panel,
  .compact-mix-panel,
  .panel,
  .interconnector-dashboard,
  .seo-content-panel {
  border-radius: 20px !important;
}

}

@media (max-width: 640px) {
.site-header.shared-header {
  margin-bottom: 14px !important;
}

.history-toggle-bar {
  margin-bottom: 12px !important;
}

}

.ic-chart-panel,
.demand-range-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
  border-color: rgba(125, 211, 252, 0.15) !important;
  background: radial-gradient(
      circle at 12% 0%,
      rgba(56, 189, 248, 0.075),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(45, 212, 191, 0.055),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 28, 0.96)) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.ic-chart-panel::before,
.demand-range-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.45),
    rgba(125, 211, 252, 0.32),
    transparent
  );
  opacity: 0.72;
}

.ic-chart-panel .panel-head,
.demand-range-panel .panel-head {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
}

.ic-chart-panel .panel-head h2,
.demand-range-panel .panel-head h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.ic-chart-panel .panel-subtitle,
.demand-range-panel .panel-subtitle {
  color: #a9b8cb !important;
  max-width: 760px;
  line-height: 1.45;
}

.homepage-interconnector-chart canvas,
.demand-range-panel canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.16),
    rgba(2, 6, 23, 0.06)
  );
}

.demand-range-shell {
  position: relative;
  z-index: 2;
  margin: 0 0 14px !important;
}

.demand-tabs {
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  background: rgba(15, 23, 42, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.demand-tab {
  color: #b9c7d9 !important;
  font-weight: 850 !important;
}

.demand-tab.active {
  color: #04111f !important;
}

.demand-range-value {
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.56);
  color: #dff7ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ic-chart-panel:hover,
.demand-range-panel:hover {
  border-color: rgba(125, 211, 252, 0.22) !important;
}

@media (max-width: 760px) {
.ic-chart-panel .panel-head,
  .demand-range-panel .panel-head {
  display: block;
}

.demand-range-value {
  display: inline-flex;
  margin-top: 10px;
}

}

.ic-chart-panel,
.demand-range-panel {
  isolation: isolate;
}

.ic-chart-panel::after,
.demand-range-panel::after {
  content: "";
  position: absolute;
  inset: 64px 20px 20px;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(
      circle at 50% 0%,
      rgba(56, 189, 248, 0.065),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), transparent 60%);
  opacity: 0.85;
  z-index: 0;
}

.homepage-interconnector-chart canvas,
.demand-range-panel canvas {
  image-rendering: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 0 28px rgba(56, 189, 248, 0.035);
}

.ic-chart-panel:hover canvas,
.demand-range-panel:hover canvas {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 34px rgba(56, 189, 248, 0.06);
}

.ic-chart-panel .panel-head h2,
.demand-range-panel .panel-head h2 {
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.08);
}

.ic-chart-panel .panel-subtitle,
.demand-range-panel .panel-subtitle {
  font-size: 13px;
}

.demand-tab {
  transition: color 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease,
    transform 0.18s ease;
}

.demand-tab:hover {
  color: #e0f2fe !important;
  filter: brightness(1.08);
}

.demand-tab.active:hover {
  color: #04111f !important;
}

.ic-chart-panel .panel-head::after,
.demand-range-panel .panel-head::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.38),
    rgba(45, 212, 191, 0.18),
    transparent
  );
  opacity: 0.65;
}

.homepage-interconnector-chart {
  padding-bottom: 22px !important;
}

.homepage-interconnector-chart canvas {
  display: block !important;
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  max-height: 260px !important;
}

.ic-chart-panel .panel-head {
  margin-bottom: 12px !important;
}

.ic-chart-panel::after {
  inset: 70px 20px 22px !important;
}

.demand-range-panel canvas {
  height: 340px !important;
  min-height: 340px !important;
  max-height: 340px !important;
}

@media (max-width: 760px) {
.homepage-interconnector-chart canvas {
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
}

.demand-range-panel canvas {
  height: 290px !important;
  min-height: 290px !important;
  max-height: 290px !important;
}

}

@keyframes live-value-pop {
0% {
  transform: scale(1);
  filter: brightness(1);
}

35% {
  transform: scale(1.025);
  filter: brightness(1.16);
}

100% {
  transform: scale(1);
  filter: brightness(1);
}

}

@keyframes live-card-wash {
0% {
  box-shadow: 0 0 0 rgba(45, 212, 191, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

35% {
  box-shadow: 0 0 34px rgba(45, 212, 191, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

100% {
  box-shadow: 0 0 0 rgba(45, 212, 191, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

}

@keyframes refresh-pill-shimmer {
0% {
  background-position: 200% 0;
}

100% {
  background-position: -200% 0;
}

}

@keyframes live-refreshed-ring {
0% {
  opacity: 0;
  transform: scale(0.98);
}

40% {
  opacity: 0.32;
  transform: scale(1.01);
}

100% {
  opacity: 0;
  transform: scale(1.04);
}

}

.live-value-updated {
  animation: live-value-pop 0.68s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, filter;
}

.live-card-updated {
  animation: live-card-wash 0.9s ease-out;
}

html.live-refreshing .update-pill {
  background: linear-gradient(
    90deg,
    rgba(6, 78, 59, 0.18),
    rgba(45, 212, 191, 0.18),
    rgba(6, 78, 59, 0.18)
  ) !important;
  background-size: 220% 100% !important;
  animation: refresh-pill-shimmer 1.15s linear infinite;
  border-color: rgba(45, 212, 191, 0.42) !important;
}

html.live-refreshed .update-pill {
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html.live-refreshed .top-grid-new-boxes .metric-card-focal {
  position: relative;
}

html.live-refreshed .top-grid-new-boxes .metric-card-focal::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(45, 212, 191, 0.42);
  pointer-events: none;
  animation: live-refreshed-ring 0.9s ease-out forwards;
}

.metric-value,
.today-stat strong,
.flow-box strong,
.interconnector-summary-card strong,
[data-metric] {
  transform-origin: left center;
  backface-visibility: hidden;
}

html.live-refreshed .chart-panel canvas,
html.live-refreshed .ic-chart-panel canvas {
  filter: brightness(1.05);
  transition: filter 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
.live-value-updated,
  .live-card-updated,
  html.live-refreshing .update-pill,
  html.live-refreshed .top-grid-new-boxes .metric-card-focal::after {
  animation: none !important;
}

html.live-refreshed .chart-panel canvas,
  html.live-refreshed .ic-chart-panel canvas {
  filter: none !important;
}

}

.metric-card,
.today-stat,
.interconnector-summary-card,
.flow-box,
.grid-action-panel,
.compact-mix-panel,
.panel {
  position: relative;
  isolation: isolate;
}

.metric-card::before,
.today-stat::before,
.interconnector-summary-card::before,
.flow-box::before,
.grid-action-panel::before,
.compact-mix-panel::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(125, 211, 252, 0.115),
    rgba(45, 212, 191, 0.045) 24%,
    transparent 48%
  );
  opacity: 0;
  transition: opacity 0.22s var(--micro-ease);
}

.metric-card > *,
.today-stat > *,
.interconnector-summary-card > *,
.flow-box > *,
.grid-action-panel > *,
.compact-mix-panel > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.metric-card:hover::before,
.today-stat:hover::before,
.interconnector-summary-card:hover::before,
.flow-box:hover::before,
.grid-action-panel:hover::before,
.compact-mix-panel:hover::before,
.panel:hover::before {
  opacity: 1;
}

.metric-card,
.today-stat,
.interconnector-summary-card,
.flow-box,
.cable-row,
.interconnector-country-row {
  transition: transform 0.18s var(--micro-ease),
    border-color 0.18s var(--micro-ease),
    box-shadow 0.18s var(--micro-ease),
    filter 0.18s var(--micro-ease),
    background 0.18s var(--micro-ease) !important;
}

.metric-card:hover,
.today-stat:hover,
.interconnector-summary-card:hover {
  transform: translateY(-1px);
}

.cable-row:hover,
.interconnector-country-row:hover {
  transform: translateX(1px);
}

button,
.btn,
.demand-tab,
.history-toggle-btn,
.history-jump-btn,
.view-link,
.footer-view-links a {
  transition: transform 0.14s var(--micro-ease),
    filter 0.14s var(--micro-ease),
    border-color 0.14s var(--micro-ease),
    box-shadow 0.14s var(--micro-ease),
    background 0.14s var(--micro-ease) !important;
}

button:active,
.btn:active,
.demand-tab:active,
.history-toggle-btn:active,
.history-jump-btn:active,
.view-link:active,
.footer-view-links a:active {
  transform: translateY(1px) scale(0.992);
}

.live-value-updated {
  animation-delay: var(--live-delay, 0ms) !important;
}

.live-card-updated {
  animation-delay: var(--live-delay, 0ms) !important;
}

@keyframes live-value-premium {
0% {
  transform: translateY(0) scale(1);
  text-shadow: 0 0 0 rgba(125, 211, 252, 0);
}

38% {
  transform: translateY(-1px) scale(1.022);
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}

100% {
  transform: translateY(0) scale(1);
  text-shadow: 0 0 0 rgba(125, 211, 252, 0);
}

}

.live-value-updated {
  animation-name: live-value-premium !important;
}

.ic-chart-panel:hover,
.demand-range-panel:hover,
.flow-board:hover {
  filter: brightness(1.018);
}

.metric-label::before,
.livegrid-mode-dot,
.update-pill-dot,
.history-toggle-btn::before {
  transition: box-shadow 0.22s ease,
    filter 0.22s ease,
    opacity 0.22s ease;
}

.update-pill:hover .update-pill-dot,
.history-toggle-btn:hover::before {
  filter: brightness(1.2);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
}

@media (prefers-reduced-motion: reduce) {
.metric-card,
  .today-stat,
  .interconnector-summary-card,
  .flow-box,
  .cable-row,
  .interconnector-country-row,
  button,
  .btn,
  .demand-tab,
  .history-toggle-btn,
  .history-jump-btn,
  .view-link,
  .footer-view-links a {
  transition: none !important;
  transform: none !important;
}

.metric-card::before,
  .today-stat::before,
  .interconnector-summary-card::before,
  .flow-box::before,
  .grid-action-panel::before,
  .compact-mix-panel::before,
  .panel::before {
  display: none !important;
}

.live-value-updated,
  .live-card-updated {
  animation: none !important;
}

}

.metric-card-detail-grid {
  gap: 12px !important;
  margin-top: 16px !important;
}

.metric-card-detail-grid > div {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
  padding: 13px 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  background: radial-gradient(
      circle at 12% 0%,
      rgba(125, 211, 252, 0.1),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.36)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 26px rgba(0, 0, 0, 0.14);
  transition: border-color 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.metric-card-detail-grid > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(
      circle at 86% 14%,
      rgba(45, 212, 191, 0.08),
      transparent 34%
    );
  opacity: 0.65;
}

.metric-card-detail-grid > div::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(125, 211, 252, 0.32),
    rgba(45, 212, 191, 0.18),
    transparent
  );
  opacity: 0.72;
}

.metric-card-detail-grid > div:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  border-color: rgba(125, 211, 252, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(125, 211, 252, 0.07);
}

.metric-card-detail-grid > div > span,
.metric-card-detail-grid > div > strong,
.metric-card-detail-grid > div > a {
  position: relative;
  z-index: 1;
}

.metric-card-detail-grid > div > span {
  display: block;
  margin-bottom: 6px;
  color: #aebbd0 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.metric-card-detail-grid > div > strong,
.metric-card-detail-grid > div > a strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc !important;
  font-size: 18px !important;
  line-height: 1.05;
  font-weight: 950 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(125, 211, 252, 0.1);
}

.metric-card-detail-grid .trend-up,
.metric-card-detail-grid .trend-down {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 16px !important;
}

.metric-card-detail-grid .trend-up {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.08);
}

.metric-card-detail-grid .trend-down {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5 !important;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.08);
}

.metric-card-detail-grid .peak-value-link {
  color: #f8fafc !important;
  text-decoration: none !important;
}

.metric-card-detail-grid .peak-value-link strong {
  border-bottom: 1px solid rgba(125, 211, 252, 0.38);
}

.metric-card-detail-grid .peak-value-link:hover strong {
  color: #7dd3fc !important;
  border-bottom-color: rgba(125, 211, 252, 0.72);
}

.metric-card-grid-demand .metric-card-detail-grid > div:first-child {
  border-color: rgba(96, 165, 250, 0.18) !important;
}

.metric-card-grid-demand .metric-card-detail-grid > div:last-child {
  border-color: rgba(45, 212, 191, 0.18) !important;
}

.metric-card-gb-demand .metric-card-detail-grid > div {
  border-color: rgba(45, 212, 191, 0.18) !important;
}

.metric-card-generation .metric-card-detail-grid > div {
  border-color: rgba(74, 222, 128, 0.18) !important;
}

@media (max-width: 760px) {
.metric-card-detail-grid {
  gap: 10px !important;
}

.metric-card-detail-grid > div {
  padding: 12px !important;
}

}

.flow-board {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 220px minmax(520px, 1fr) 220px !important;
  gap: 18px !important;
  align-items: stretch !important;
  min-height: 580px !important;
  overflow: hidden !important;
  isolation: isolate;
}

.flow-col,
.flow-center {
  position: relative !important;
}

.flow-col {
  display: grid !important;
  gap: 12px !important;
}

.flow-center {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 580px !important;
  overflow: visible !important;
}

@media (min-width: 641px) {
.flow-svg-rebuilt,
  .flow-center .flow-svg-rebuilt {
  position: absolute !important;
  inset: 0 auto 0 calc(-220px - 18px) !important;
  width: calc(100% + 476px) !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: visible !important;
  transform: none !important;
}

}

@media (max-width: 640px) {
.flow-svg-rebuilt,
  .flow-center .flow-svg-rebuilt {
  left: 0 !important;
  width: 100% !important;
}

}

.flow-box,
.demand-core,
.flow-box-center {
  position: relative !important;
}

.flow-board .flow-box {
  backdrop-filter: none !important;
}

.flow-board .flow-box.imports,
.flow-board .flow-box.wind,
.flow-board .flow-box.solar,
.flow-board .flow-box.hydro,
.flow-board .flow-box.other,
.flow-board .flow-box.nuclear,
.flow-board .flow-box.gas,
.flow-board .flow-box.biomass,
.flow-board .flow-box.coal {
  overflow: hidden;
}

.flow-svg-rebuilt .flow-line {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-svg-rebuilt .flow-dot {
  pointer-events: none;
}

.flow-card-hover {
  border-color: rgba(125, 211, 252, 0.42) !important;
  filter: brightness(1.08) saturate(1.06);
}

.flow-line-highlight {
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 24px currentColor) !important;
}

.flow-board .flow-rank-badge {
  width: auto !important;
  min-width: 34px !important;
  max-width: max-content !important;
  height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  line-height: 22px !important;
}

@media (min-width: 641px) and (max-width: 1080px) {
.flow-board {
  grid-template-columns: 220px minmax(420px, 1fr) 220px !important;
  min-height: 580px !important;
}

}

@media (max-width: 640px) {
.flow-board {
  grid-template-columns: 1fr !important;
  min-height: auto !important;
  overflow: hidden !important;
}

.flow-center {
  min-height: 480px !important;
}

}

.flow-svg-rebuilt .flow-line.flow-line-highlight {
  opacity: 1 !important;
}

.flow-board .flow-box {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.flow-board .flow-rank-badge {
  top: 14px !important;
  right: 14px !important;
  transform: none !important;
}

.flow-svg-rebuilt .flow-line {
  opacity: 0.84 !important;
}

.flow-svg-rebuilt .flow-dot {
  opacity: 0.9 !important;
}

.flow-svg-rebuilt #path-pumped-hydro,
.flow-svg-rebuilt .flow-dot.pumped-hydro {
  display: block !important;
  opacity: 0.9 !important;
}

.flow-svg-rebuilt #path-pumped-hydro {
  stroke-width: 3.2px !important;
  filter: drop-shadow(0 0 6px currentColor)
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.14)) !important;
}

.flow-board .flow-box {
  background: radial-gradient(
      circle at var(--mx, 50%) var(--my, 0%),
      rgba(125, 211, 252, 0.075),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(7, 13, 24, 0.965)) !important;
}

.flow-svg-rebuilt,
.flow-center .flow-svg-rebuilt {
  z-index: 1 !important;
}

.flow-col,
.flow-center {
  z-index: 3 !important;
}

.flow-box,
.demand-core,
.flow-box-center {
  z-index: 5 !important;
}

.demand-ring {
  --demand-pulse-speed: 4.8s;
  position: relative;
}

.demand-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 140deg,
    rgba(74, 222, 128, 0.2),
    rgba(45, 212, 191, 0.12),
    rgba(56, 189, 248, 0.08),
    rgba(249, 115, 22, 0.18),
    rgba(74, 222, 128, 0.2)
  );
  filter: blur(14px);
  opacity: 0.48;
  animation: demand-ring-intel-pulse var(--demand-pulse-speed) ease-in-out
    infinite;
  z-index: -1;
}

@keyframes demand-ring-intel-pulse {
0%,
  100% {
  opacity: 0.32;
  transform: scale(0.985);
}

50% {
  opacity: 0.62;
  transform: scale(1.025);
}

}

.demand-ring-clean::before {
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.3),
    rgba(45, 212, 191, 0.13) 45%,
    transparent 72%
  );
}

.demand-ring-carbon::before {
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.3),
    rgba(251, 191, 36, 0.12) 45%,
    transparent 72%
  );
}

.demand-ring-busy::before {
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.24),
    rgba(168, 85, 247, 0.12) 45%,
    transparent 72%
  );
}

.demand-ring-balanced::before {
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.2),
    rgba(45, 212, 191, 0.1) 45%,
    transparent 72%
  );
}

.demand-ring-intel {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: #a7f3d0;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
}

.panel,
.grid-action-panel,
.interconnector-panel,
.ic-chart-panel,
.demand-range-panel,
.seo-content-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel-head {
  gap: 16px;
}

.panel-head h2 {
  letter-spacing: -0.035em;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 50% 18%,
      rgba(45, 212, 191, 0.045),
      transparent 30%
    ),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.16) 100%);
  z-index: -1;
}

.metric-card,
.flow-box,
.today-stat,
.interconnector-summary-card,
.panel {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.78);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.12);
}

@media (max-width: 760px) {
.page {
  gap: 14px;
}

.panel,
  .grid-action-panel,
  .interconnector-panel,
  .ic-chart-panel,
  .demand-range-panel,
  .seo-content-panel {
  border-radius: 20px !important;
}

.demand-ring-intel {
  font-size: 9px;
}

}

@media (prefers-reduced-motion: reduce) {
.demand-ring::before {
  animation: none !important;
}

}

.launch-insight-strip,
.change-tracking-strip {
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 15, 28, 0.94));
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.launch-insight-strip {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  margin: 0 0 14px;
  position: relative;
  overflow: hidden;
}

.launch-insight-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.1), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
}

.launch-insight-main,
.launch-insight-meta {
  position: relative;
  z-index: 1;
}

.launch-insight-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.launch-insight-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.75);
  flex: 0 0 auto;
}

.launch-insight-main .eyebrow {
  margin: 0 0 4px;
  color: #7dd3fc;
}

.launch-insight-main h2 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.035em;
}

.launch-insight-main p {
  margin: 0;
  color: #b9c7d9;
  line-height: 1.45;
}

.launch-insight-meta {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(2, 6, 23, 0.3);
  text-align: right;
}

.launch-insight-meta strong {
  display: block;
  color: #e0f2fe;
  font-size: 20px;
  line-height: 1.1;
}

.launch-insight-meta span {
  display: block;
  margin-top: 5px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 850;
}

.launch-insight-clean .launch-insight-dot {
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.75);
}

.launch-insight-imports .launch-insight-dot {
  background: #a78bfa;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.75);
}

.launch-insight-carbon .launch-insight-dot {
  background: #fb923c;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.75);
}

.launch-insight-demand .launch-insight-dot {
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
}

.change-tracking-strip {
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.change-strip-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #dbeafe;
}

.change-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}

.change-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.change-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.24);
}

.change-item span {
  color: #9fb0c5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.change-item strong {
  color: #e5edf8;
  font-size: 13px;
  font-weight: 950;
}

.change-up strong {
  color: #86efac;
}

.change-down strong {
  color: #fca5a5;
}

.change-steady strong {
  color: #cbd5e1;
}

.site-footer,
.footer-view-links {
  border-color: rgba(148, 163, 184, 0.1);
}

.footer-view-links a {
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
.launch-insight-strip {
  align-items: flex-start;
}

.launch-insight-meta {
  min-width: 160px;
}

.change-tracking-strip {
  align-items: flex-start;
  flex-direction: column;
}

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

}

@media (max-width: 640px) {
body {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.page {
  width: 100%;
  max-width: 100%;
}

.shared-header {
  padding: 24px 20px !important;
}

.shared-header h1 {
  font-size: clamp(38px, 12vw, 58px) !important;
  line-height: 0.95;
}

.header-meta {
  align-items: flex-start !important;
}

.launch-insight-strip {
  display: block;
  padding: 16px;
}

.launch-insight-main {
  align-items: flex-start;
}

.launch-insight-meta {
  margin-top: 14px;
  text-align: left;
  min-width: 0;
}

.change-items {
  grid-template-columns: 1fr;
}

.top-grid-new-boxes {
  grid-template-columns: 1fr !important;
}

.metric-strip {
  grid-template-columns: 1fr 1fr !important;
}

.today-stats-panel {
  grid-template-columns: 1fr !important;
}

.compact-mix-panel {
  display: block !important;
}

.compact-mix-bars {
  margin-top: 16px;
}

.interconnector-summary-grid,
  .interconnector-breakdown-grid {
  grid-template-columns: 1fr !important;
}

.interconnector-panel .panel-head,
  .ic-chart-panel .panel-head,
  .demand-range-panel .panel-head {
  display: block;
}

.homepage-interconnector-chart,
  .demand-range-panel {
  overflow: hidden;
}

.footer-view-links {
  justify-content: flex-start;
  flex-wrap: wrap;
}

}

@media (max-width: 420px) {
.metric-strip {
  grid-template-columns: 1fr !important;
}

.demand-tabs {
  width: 100%;
  justify-content: space-between;
}

.demand-tab {
  flex: 1;
}

}

.change-tracking-strip {
  display: none !important;
}

.metric-card-focal {
  position: relative;
}

.top-card-delta {
  position: absolute;
  top: 24px;
  right: 78px;
  min-width: 112px;
  padding: 9px 11px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: radial-gradient(
      circle at 10% 0%,
      rgba(125, 211, 252, 0.1),
      transparent 46%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.16);
  text-align: right;
  z-index: 3;
  overflow: hidden;
}

.top-card-delta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.06),
    transparent 38%
  );
  opacity: 0.55;
  pointer-events: none;
}

.top-card-delta span,
.top-card-delta strong {
  position: relative;
  z-index: 1;
  display: block;
}

.top-card-delta span {
  margin-bottom: 4px;
  color: #9fb0c5;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-card-delta strong {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.metric-card-focal:hover .top-card-delta {
  border-color: rgba(125, 211, 252, 0.28);
  filter: brightness(1.04);
}

@media (max-width: 980px) {
.top-card-delta {
  position: relative;
  top: auto;
  right: auto;
  display: inline-block;
  margin: 10px 0 0;
  text-align: left;
}

}

@media (max-width: 640px) {
.top-card-delta {
  min-width: 0;
  width: 100%;
}

}

.launch-insight-strip {
  display: none !important;
}

.metric-card-gb-demand .gb-demand-insight-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: radial-gradient(
      circle at 12% 0%,
      rgba(125, 211, 252, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.12);
}

.metric-card-gb-demand .gb-demand-insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  color: #06131f;
  background: #67e8f9;
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.28);
}

.metric-card-gb-demand .gb-demand-insight-card strong {
  display: block;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.metric-card-gb-demand
  .gb-demand-insight-card
  span:not(.gb-demand-insight-icon) {
  display: block;
  color: #b9c7d9;
}

.metric-card-gb-demand .gb-demand-insight-card.insight-imports {
  border-color: rgba(167, 139, 250, 0.24);
  background: radial-gradient(
      circle at 12% 0%,
      rgba(167, 139, 250, 0.16),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.18));
}

.metric-card-gb-demand
  .gb-demand-insight-card.insight-imports
  .gb-demand-insight-icon {
  background: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.34);
}

.metric-card-gb-demand .gb-demand-insight-card.insight-clean {
  border-color: rgba(134, 239, 172, 0.22);
}

.metric-card-gb-demand
  .gb-demand-insight-card.insight-clean
  .gb-demand-insight-icon {
  background: #86efac;
  box-shadow: 0 0 16px rgba(134, 239, 172, 0.34);
}

.metric-card-gb-demand .gb-demand-insight-card.insight-carbon,
.metric-card-gb-demand .gb-demand-insight-card.insight-demand {
  border-color: rgba(251, 146, 60, 0.26);
}

.metric-card-gb-demand
  .gb-demand-insight-card.insight-carbon
  .gb-demand-insight-icon,
.metric-card-gb-demand
  .gb-demand-insight-card.insight-demand
  .gb-demand-insight-icon {
  background: #fb923c;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.34);
}

.metric-card-gb-demand .metric-card-detail-grid {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
.metric-card-gb-demand .gb-demand-insight-card {
  margin-top: 10px;
}

}

.top-grid-new-boxes.top-grid-focal {
  gap: 18px !important;
  align-items: stretch !important;
}

.metric-card-focal {
  display: flex !important;
  flex-direction: column !important;
  min-height: 360px !important;
  padding: 28px 28px 26px !important;
  overflow: hidden;
}

.metric-card-focal .metric-label {
  max-width: calc(100% - 180px);
  white-space: nowrap;
}

.metric-card-focal .metric-value {
  margin-top: 26px !important;
  margin-bottom: 8px !important;
}

.metric-card-focal .metric-help {
  max-width: 82% !important;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.metric-card-focal > .metric-insight-line {
  display: none !important;
}

.metric-card-focal .metric-card-detail-grid {
  padding-top: 20px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  gap: 12px !important;
}

.metric-card-focal .metric-card-detail-grid > div {
  min-height: 68px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card-gb-demand .gb-demand-insight-card {
  margin: 10px 0 12px !important;
  padding: 9px 11px !important;
  min-height: 62px !important;
}

.metric-card-gb-demand .gb-demand-insight-card strong {
  font-size: 12.5px !important;
}

.metric-card-gb-demand
  .gb-demand-insight-card
  span:not(.gb-demand-insight-icon) {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

.metric-card-focal .top-card-delta {
  top: 24px !important;
  right: 76px !important;
  min-width: 104px !important;
  padding: 8px 10px !important;
}

.metric-card-focal .top-card-delta span {
  font-size: 9px !important;
}

.metric-card-focal .top-card-delta strong {
  font-size: 16px !important;
}

.metric-card-focal .metric-card-detail-grid span {
  color: #aebbd0 !important;
  font-size: 10px !important;
  letter-spacing: 0.13em !important;
}

.metric-card-focal .metric-card-detail-grid strong {
  font-size: 16px !important;
}

.metric-card-focal {
  transition: transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.metric-card-focal:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

@media (max-width: 980px) {
.metric-card-focal {
  min-height: auto !important;
}

.metric-card-focal .metric-label {
  max-width: 100%;
}

.metric-card-focal .top-card-delta {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  align-self: flex-start;
  margin: 10px 0 0 !important;
}

.metric-card-focal .metric-value {
  margin-top: 18px !important;
}

.metric-card-focal .metric-help {
  max-width: 100% !important;
}

}

@media (max-width: 640px) {
.metric-card-focal {
  padding: 24px 22px !important;
}

.metric-card-focal .metric-card-detail-grid {
  grid-template-columns: 1fr !important;
}

}

@media (prefers-reduced-motion: reduce) {
.metric-card-focal:hover {
  transform: none;
}

}

.top-grid-focal .metric-card-focal .metric-value,
.top-grid-new-boxes .metric-card-focal .metric-value {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  line-height: 0.92 !important;
  white-space: nowrap !important;
}

.top-grid-focal .metric-card-focal .metric-value > span,
.top-grid-new-boxes .metric-card-focal .metric-value > span {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(22px, 2.3vw, 33px) !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: rgba(226, 232, 240, 0.82) !important;
  letter-spacing: -0.04em !important;
  vertical-align: baseline !important;
}

@media (max-width: 640px) {
.top-grid-focal .metric-card-focal .metric-value,
  .top-grid-new-boxes .metric-card-focal .metric-value {
  gap: 8px !important;
}

.top-grid-focal .metric-card-focal .metric-value > span,
  .top-grid-new-boxes .metric-card-focal .metric-value > span {
  font-size: 22px !important;
}

}

.metric-card[data-state-card] {
  transition: border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    background 0.22s ease;
}

.metric-card[data-state-card]::before {
  transition: opacity 0.22s ease,
    background 0.22s ease;
}

.metric-card[data-state-card].state-normal {
  --state-accent: rgba(125, 211, 252, 0.2);
}

.metric-card[data-state-card].state-good {
  --state-accent: rgba(74, 222, 128, 0.28);
  border-color: rgba(74, 222, 128, 0.26) !important;
}

.metric-card[data-state-card].state-good::before {
  opacity: 0.95 !important;
  background: radial-gradient(circle at 18% 0%, rgba(74, 222, 128, 0.2), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.1), transparent 34%) !important;
}

.metric-card[data-state-card].state-high {
  --state-accent: rgba(251, 146, 60, 0.3);
  border-color: rgba(251, 146, 60, 0.26) !important;
}

.metric-card[data-state-card].state-high::before {
  opacity: 0.95 !important;
  background: radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.2), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(248, 113, 113, 0.1), transparent 34%) !important;
}

.metric-card[data-state-card].state-low {
  --state-accent: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.2) !important;
}

.metric-card[data-state-card].state-low::before {
  opacity: 0.78 !important;
  background: radial-gradient(
      circle at 18% 0%,
      rgba(56, 189, 248, 0.14),
      transparent 42%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(125, 211, 252, 0.08),
      transparent 34%
    ) !important;
}

.metric-card[data-state-card].state-good .metric-label {
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.1);
}

.metric-card[data-state-card].state-high .metric-label {
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.12);
}

.metric-card[data-state-card].state-low .metric-label {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
}

.metric-card-supporting.state-good .metric-value,
.metric-card-supporting.state-good .metric-value span {
  color: #86efac !important;
}

.metric-card-supporting.state-high .metric-value,
.metric-card-supporting.state-high .metric-value span {
  color: #fdba74 !important;
}

.metric-card-supporting.state-low .metric-value,
.metric-card-supporting.state-low .metric-value span {
  color: #7dd3fc !important;
}

.metric-card-carbon-top.state-good .metric-value,
.metric-card-carbon-top.state-good .metric-value span {
  color: #c4b5fd !important;
}

.metric-card-carbon-top.state-high .metric-value,
.metric-card-carbon-top.state-high .metric-value span {
  color: #fb923c !important;
}

.metric-card-focal.state-high {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(251, 146, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.metric-card-focal.state-good {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(74, 222, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.metric-card[data-state-card] .metric-help,
.metric-card[data-state-card] .metric-card-detail-grid > div,
.metric-card[data-state-card] .gb-demand-insight-card {
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
.metric-card[data-state-card],
  .metric-card[data-state-card]::before {
  transition: none !important;
}

}

.top-card-delta.delta-down {
  border-color: rgba(74, 222, 128, 0.26) !important;
  background: radial-gradient(
      circle at 86% 0%,
      rgba(74, 222, 128, 0.16),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.46)) !important;
}

.top-card-delta.delta-down strong {
  color: #86efac !important;
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.18) !important;
}

.top-card-delta.delta-up {
  border-color: rgba(248, 113, 113, 0.26) !important;
  background: radial-gradient(
      circle at 86% 0%,
      rgba(248, 113, 113, 0.16),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.46)) !important;
}

.top-card-delta.delta-up strong {
  color: #fca5a5 !important;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.18) !important;
}

.top-card-delta.delta-steady {
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.top-card-delta.delta-steady strong {
  color: #cbd5e1 !important;
}

.metric-card-grid-demand .top-card-micro-insight,
.metric-card-uk-generation .top-card-micro-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 13px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: radial-gradient(
      circle at 12% 0%,
      rgba(125, 211, 252, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.12);
}

.metric-card-grid-demand .micro-insight-icon,
.metric-card-uk-generation .micro-insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  color: #06131f;
  background: #67e8f9;
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.28);
}

.top-card-micro-insight strong {
  display: block;
  color: #f8fafc;
  font-size: 12.5px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.top-card-micro-insight span:not(.micro-insight-icon) {
  display: block;
  color: #b9c7d9;
  font-size: 11.5px;
  line-height: 1.3;
}

.top-card-micro-insight.micro-good {
  border-color: rgba(74, 222, 128, 0.23);
  background: radial-gradient(
      circle at 12% 0%,
      rgba(74, 222, 128, 0.14),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.18));
}

.top-card-micro-insight.micro-good .micro-insight-icon {
  background: #86efac;
  box-shadow: 0 0 16px rgba(134, 239, 172, 0.34);
}

.top-card-micro-insight.micro-pressure {
  border-color: rgba(251, 146, 60, 0.25);
  background: radial-gradient(
      circle at 12% 0%,
      rgba(251, 146, 60, 0.14),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.18));
}

.top-card-micro-insight.micro-pressure .micro-insight-icon {
  background: #fb923c;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.34);
}

.top-card-micro-insight.micro-normal .micro-insight-icon {
  background: #67e8f9;
}

.metric-card-gb-demand .gb-demand-insight-card,
.metric-card-grid-demand .top-card-micro-insight,
.metric-card-uk-generation .top-card-micro-insight {
  min-height: 62px !important;
}

.metric-card-focal .metric-card-detail-grid {
  margin-top: auto !important;
}

@media (max-width: 640px) {
.metric-card-grid-demand .top-card-micro-insight,
  .metric-card-uk-generation .top-card-micro-insight {
  margin-top: 10px;
}

}

.micro-insight-icon,
.gb-demand-insight-icon {
  position: relative;
  cursor: help;
}

.micro-insight-icon::after,
.gb-demand-insight-icon::after {
  content: attr(data-explain);
  position: absolute;
  left: 50%;
  bottom: 135%;
  transform: translate(-50%, 4px);
  width: min(260px, 72vw);
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(2, 6, 23, 0.96);
  color: #dbeafe;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.micro-insight-icon:hover::after,
.micro-insight-icon:focus-visible::after,
.gb-demand-insight-icon:hover::after,
.gb-demand-insight-icon:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -2px);
}

.micro-signal {
  display: inline-flex !important;
  width: max-content;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(15, 23, 42, 0.48);
  color: #a7f3d0 !important;
  font-style: normal;
  font-size: 10px !important;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-card-micro-insight.micro-pressure .micro-signal,
.gb-demand-insight-card.insight-carbon .micro-signal,
.gb-demand-insight-card.insight-demand .micro-signal {
  color: #fdba74 !important;
  border-color: rgba(251, 146, 60, 0.2);
}

.top-card-micro-insight.micro-good .micro-signal,
.gb-demand-insight-card.insight-clean .micro-signal {
  color: #86efac !important;
  border-color: rgba(74, 222, 128, 0.2);
}

@media (max-width: 640px) {
.micro-insight-icon::after,
  .gb-demand-insight-icon::after {
  left: 0;
  transform: translate(0, 4px);
}

.micro-insight-icon:hover::after,
  .micro-insight-icon:focus-visible::after,
  .gb-demand-insight-icon:hover::after,
  .gb-demand-insight-icon:focus-visible::after {
  transform: translate(0, -2px);
}

}

.micro-insight-icon.insight-explain-active::after,
.gb-demand-insight-icon.insight-explain-active::after {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -2px) !important;
}

.micro-signal {
  position: relative;
  overflow: hidden;
}

.micro-signal[data-metric],
.micro-signal {
  background: rgba(125, 211, 252, 0.1) !important;
  border-color: rgba(125, 211, 252, 0.24) !important;
  color: #7dd3fc !important;
}

.gb-demand-insight-card.insight-imports .micro-signal,
.gb-demand-insight-card.insight-clean .micro-signal,
.top-card-micro-insight.micro-good .micro-signal {
  background: rgba(74, 222, 128, 0.15) !important;
  border-color: rgba(74, 222, 128, 0.34) !important;
  color: #86efac !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.16);
}

.gb-demand-insight-card.insight-carbon .micro-signal,
.gb-demand-insight-card.insight-demand .micro-signal,
.top-card-micro-insight.micro-pressure .micro-signal {
  background: rgba(251, 146, 60, 0.14) !important;
  border-color: rgba(251, 146, 60, 0.32) !important;
  color: #fdba74 !important;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.14);
}

.micro-matter {
  display: block;
  margin-top: 7px;
  color: #cfe0ef;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.86;
}

.gb-demand-insight-card,
.top-card-micro-insight {
  padding-bottom: 9px !important;
}

.gb-demand-insight-card strong,
.top-card-micro-insight strong {
  letter-spacing: -0.02em;
}

.micro-insight-icon,
.gb-demand-insight-icon {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
.micro-insight-icon.insight-explain-active::after,
  .gb-demand-insight-icon.insight-explain-active::after {
  transform: translate(0, -2px) !important;
}

}

.view-mode-toggle {
  display: none;
}

html[data-small-device] .view-mode-toggle {
  display: flex !important;
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2147483647 !important;
  margin: 0 !important;
  pointer-events: none;
}

html[data-small-device] .view-mode-toggle[hidden] {
  display: none !important;
}

html[data-small-device] .view-mode-toggle button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: radial-gradient(
      circle at 14% 0%,
      rgba(45, 212, 191, 0.16),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.48));
  color: #dbeafe;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26),
    0 0 14px rgba(45, 212, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: inherit;
  cursor: pointer;
  opacity: 0.92;
  transform: translateZ(0);
  transition: opacity 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease,
    filter 0.16s ease;
}

html[data-small-device] .view-mode-toggle button:hover,
html[data-small-device] .view-mode-toggle button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  filter: brightness(1.06);
}

.view-mode-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.56);
  flex: 0 0 auto;
}

.view-mode-toggle button.is-mobile .view-mode-toggle-dot {
  background: #7dd3fc;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.56);
}

.view-mode-toggle-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.view-mode-toggle-copy strong {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.03em;
  color: #eaf6ff;
  white-space: nowrap;
}

.view-mode-toggle-copy em {
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
  color: #8ea0b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-view-mode="website"] body {
  min-width: 1180px;
}

@media print {
.view-mode-toggle {
  display: none !important;
}

}

.metric-card-detail-grid.metric-card-detail-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card-detail-grid .detail-net-balance {
  position: relative;
  overflow: hidden;
}

.metric-card-detail-grid .detail-net-balance::after {
  content: "";
  position: absolute;
  inset: auto 10px 0 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0),
    rgba(52, 211, 153, 0.72),
    rgba(56, 189, 248, 0)
  );
  opacity: 0.55;
}

.metric-card-detail-grid .detail-net-balance small {
  display: block;
  margin-top: 3px;
  color: #9fb0c5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.metric-card-detail-grid .detail-net-balance.balance-positive strong,
.metric-card-detail-grid .detail-net-balance.balance-importing strong {
  color: #86efac;
}

.metric-card-detail-grid .detail-net-balance.balance-negative strong,
.metric-card-detail-grid .detail-net-balance.balance-exporting strong {
  color: #7dd3fc;
}

.metric-card-detail-grid .detail-net-balance.balance-balanced strong,
.metric-card-detail-grid .detail-net-balance.balanced strong {
  color: #86efac;
}

@media (max-width: 900px) {
.metric-card-detail-grid.metric-card-detail-grid-three {
  grid-template-columns: 1fr;
}

}

.top-grid.top-grid-focal {
  margin-bottom: 18px;
}

.compact-mix-panel {
  margin-top: 0;
}

.update-pill.confidence-live .update-pill-dot,
.update-pill.confidence-live .dot {
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.68);
}

.update-pill.confidence-live {
  border-color: rgba(52, 211, 153, 0.3);
}

.update-pill.confidence-delayed .update-pill-dot,
.update-pill.confidence-delayed .dot {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.68);
}

.update-pill.confidence-delayed {
  border-color: rgba(245, 158, 11, 0.34);
}

.update-pill.confidence-delayed strong[data-confidence-label] {
  color: #fbbf24;
}

.update-pill.confidence-stale .update-pill-dot,
.update-pill.confidence-stale .dot {
  background: #fb7185;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.72);
}

.update-pill.confidence-stale {
  border-color: rgba(251, 113, 133, 0.38);
}

.update-pill.confidence-stale strong[data-confidence-label] {
  color: #fda4af;
}

.smart-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: radial-gradient(
      circle at 10% 0%,
      rgba(125, 211, 252, 0.14),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.54));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
  position: relative;
}

.smart-alert-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
}

.smart-alert-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.smart-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 16px;
  background: rgba(125, 211, 252, 0.14);
  color: #dff7ff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.14);
}

.smart-alert-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.smart-alert-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.smart-alert-copy p {
  margin: 5px 0 0;
  color: #b9c7d9;
  font-size: 13px;
  line-height: 1.35;
}

.smart-alert-detail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  flex: 0 0 auto;
}

.smart-alert-detail strong {
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.smart-alert-chips {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}

.smart-alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(15, 23, 42, 0.52);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.smart-alert-clean {
  border-color: rgba(74, 222, 128, 0.24);
}

.smart-alert-clean::before {
  background: radial-gradient(
    circle at 14% 0%,
    rgba(74, 222, 128, 0.18),
    transparent 42%
  );
}

.smart-alert-clean .smart-alert-icon {
  background: rgba(74, 222, 128, 0.16);
  color: #bbf7d0;
}

.smart-alert-carbon,
.smart-alert-demand,
.smart-alert-stale {
  border-color: rgba(251, 146, 60, 0.26);
}

.smart-alert-carbon::before,
.smart-alert-demand::before,
.smart-alert-stale::before {
  background: radial-gradient(
    circle at 14% 0%,
    rgba(251, 146, 60, 0.18),
    transparent 42%
  );
}

.smart-alert-carbon .smart-alert-icon,
.smart-alert-demand .smart-alert-icon,
.smart-alert-stale .smart-alert-icon {
  background: rgba(251, 146, 60, 0.16);
  color: #fed7aa;
}

.smart-alert-imports,
.smart-alert-wind,
.smart-alert-low {
  border-color: rgba(56, 189, 248, 0.24);
}

.smart-alert-imports::before,
.smart-alert-wind::before,
.smart-alert-low::before {
  background: radial-gradient(
    circle at 14% 0%,
    rgba(56, 189, 248, 0.16),
    transparent 42%
  );
}

.smart-alert-exports {
  border-color: rgba(168, 85, 247, 0.24);
}

.smart-alert-exports::before {
  background: radial-gradient(
    circle at 14% 0%,
    rgba(168, 85, 247, 0.16),
    transparent 42%
  );
}

@media (max-width: 760px) {
.smart-alert-strip {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
}

.smart-alert-detail {
  align-items: flex-start;
  text-align: left;
}

.smart-alert-copy h2 {
  font-size: 18px;
}

.smart-alert-copy p {
  font-size: 12px;
}

.smart-alert-chips {
  justify-content: flex-start;
}

}

.smart-alert-kicker {
  color: #a7f3d0;
}

.smart-alert-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.grid-context-panel {
  transform: scale(0.995);
  transform-origin: top center;
}

.grid-context-panel h2 {
  letter-spacing: -0.02em;
}

.grid-context-panel .grid-action-context-note {
  margin-top: 10px;
  color: #8fa3b8;
  font-size: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 10px;
}

.grid-context-panel .grid-action-reasons > div {
  background: radial-gradient(
      circle at 10% 0%,
      rgba(148, 163, 184, 0.08),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.54), rgba(2, 6, 23, 0.32));
}

@media (max-width: 760px) {
.grid-context-panel {
  transform: none;
}

.grid-context-panel h2 {
  font-size: 18px;
}

}

.smart-alert-strip {
  margin-bottom: 14px;
}

.smart-alert-strip .smart-alert-copy h2 {
  font-size: 19px;
}

.smart-alert-strip .smart-alert-copy p {
  margin-top: 4px;
  font-weight: 850;
}

.smart-alert-detail-compact {
  gap: 5px;
}

.smart-alert-detail-compact > span {
  color: #8fa3b8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smart-alert-link {
  margin-left: 8px;
  color: #7dd3fc;
  font-weight: 950;
  text-decoration: none;
}

.smart-alert-link:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.grid-context-panel {
  opacity: 0.84;
  margin-bottom: 22px;
}

.grid-context-panel .grid-action-main {
  align-items: center;
}

.grid-context-panel .grid-action-kicker {
  color: #a7f3d0;
}

.grid-context-panel h2 {
  line-height: 1.15;
  color: #dbeafe;
}

.grid-context-panel p {
  max-width: 720px;
  color: #9fb0c5;
  font-size: 13px;
}

.grid-context-panel .grid-action-metrics {
  align-self: center;
}

.grid-context-reasons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}

.grid-context-reason {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.grid-context-reason span {
  color: #93a4b8;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-context-reason strong {
  color: #e5f2ff;
  font-weight: 950;
  white-space: nowrap;
}

.grid-context-reason.reason-good {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(22, 101, 52, 0.14);
}

.grid-context-reason.reason-good strong {
  color: #bbf7d0;
}

.grid-context-reason.reason-warn {
  border-color: rgba(251, 146, 60, 0.26);
  background: rgba(124, 45, 18, 0.16);
}

.grid-context-reason.reason-warn strong {
  color: #fed7aa;
}

.grid-context-reason.reason-info {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(12, 74, 110, 0.16);
}

.grid-context-reason.reason-info strong {
  color: #bae6fd;
}

@media (max-width: 900px) {
.grid-context-panel .grid-action-main {
  flex-direction: column;
  align-items: flex-start;
}

.grid-context-panel .grid-action-metrics {
  width: 100%;
}

}

@media (max-width: 760px) {
.smart-alert-strip {
  margin-bottom: 10px;
}

.smart-alert-strip .smart-alert-copy h2 {
  font-size: 18px;
}

.grid-context-panel {
  opacity: 0.9;
  margin-bottom: 16px;
}

}

.grid-context-panel {
  padding: 22px 24px;
}

.grid-context-panel .grid-action-main {
  display: block;
}

.grid-context-panel .grid-action-copy {
  max-width: 980px;
}

.grid-context-panel h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.grid-context-panel p[data-grid-action-message] {
  max-width: 780px;
  margin-bottom: 12px;
  color: #aebed0;
}

.grid-context-reasons {
  gap: 10px;
}

.grid-context-reason {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  gap: 9px;
}

.grid-context-reason span {
  opacity: 0.78;
  font-size: 10px;
}

.grid-context-reason strong {
  font-size: 13px;
}

.grid-context-reason.reason-good::before {
  content: "✓";
  color: #86efac;
  font-weight: 950;
}

.grid-context-reason.reason-info::before {
  content: "↑";
  color: #7dd3fc;
  font-weight: 950;
}

.grid-context-reason.reason-warn::before {
  content: "!";
  color: #fed7aa;
  font-weight: 950;
}

.grid-context-reason.reason-neutral::before {
  content: "•";
  color: #94a3b8;
  font-weight: 950;
}

@media (max-width: 760px) {
.grid-context-panel {
  padding: 17px 15px;
}

.grid-context-reasons {
  gap: 7px;
}

.grid-context-reason {
  min-height: 32px;
  padding: 7px 9px;
}

.grid-context-reason strong {
  font-size: 12px;
}

}

.gb-flow-basis-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 8px 0 12px !important;
  position: relative !important;
  z-index: 6 !important;
}

.gb-flow-basis-row .gb-flow-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  padding: 5px !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  border-radius: 999px !important;
  background: radial-gradient(
      circle at 12% 0%,
      rgba(45, 212, 191, 0.14),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.62)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(10px) !important;
}

.gb-flow-basis-row .gb-flow-toggle-label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 5px 0 7px !important;
  color: #8ea0b8 !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.gb-flow-basis-row .gb-flow-toggle button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 27px !important;
  padding: 6px 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  appearance: none !important;
  background: transparent !important;
  color: rgba(226, 240, 255, 0.68) !important;
  font: inherit !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.gb-flow-basis-row .gb-flow-toggle button:hover {
  color: #f8fafc !important;
  background: rgba(125, 211, 252, 0.08) !important;
}

.gb-flow-basis-row .gb-flow-toggle button.active,
.gb-flow-basis-row .gb-flow-toggle button[aria-pressed="true"] {
  color: #052e2b !important;
  background: linear-gradient(135deg, #5eead4, #38bdf8) !important;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.flow-board[data-active-basis="gb"] .flow-meta span:last-child,
.flow-board[data-active-basis="generation"] .flow-meta span:last-child {
  font-size: 0 !important;
}

.flow-board[data-active-basis="gb"] .flow-meta span:last-child::after {
  content: "of GB demand" !important;
  font-size: 13px !important;
}

.flow-board[data-active-basis="generation"] .flow-meta span:last-child::after {
  content: "of generation" !important;
  font-size: 13px !important;
}

.flow-board .flow-card.is-muted-for-uk,
.flow-board .flow-box.is-muted-for-uk {
  opacity: 0.28 !important;
  filter: grayscale(0.75) saturate(0.45) !important;
}

@media (max-width: 760px) {
.gb-flow-basis-row .gb-flow-toggle {
  width: 100% !important;
  justify-content: space-between !important;
}

.gb-flow-basis-row .gb-flow-toggle button {
  flex: 1 1 auto !important;
  padding-inline: 9px !important;
}

}

.flow-center {
  transition: grid-template-columns 0.22s ease;
}

.flow-box-exportFlow {
  display: none !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  width: min(260px, 42%) !important;
  min-height: 112px !important;
  z-index: 7 !important;
}

.flow-box-exportFlow.is-visible {
  display: flex !important;
}

.flow-box-exportFlow .export-flow-num strong,
.flow-box-exportFlow .export-flow-pct,
.flow-box-exportFlow .flow-status-export {
  color: #f9a8d4 !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-svg,
.flow-board.is-gb-basis .flow-center .flow-svg,
.flow-board[data-active-basis="gb"] .flow-center .demand-core,
.flow-board.is-gb-basis .flow-center .demand-core,
.flow-board[data-active-basis="gb"] .flow-center .flow-box-topFlow,
.flow-board.is-gb-basis .flow-center .flow-box-topFlow {
  grid-column: 1 / -1 !important;
}

.flow-board[data-active-basis="gb"] .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  transform: none !important;
}

.flow-board:not([data-active-basis="gb"]) .flow-box-bottomFlow {
  grid-column: 1 !important;
  justify-self: center !important;
  transform: none !important;
}

@media (max-width: 1080px) and (min-width: 641px) {
.flow-board[data-active-basis="gb"] .flow-box-center,
  .flow-board.is-gb-basis .flow-box-center {
  width: min(230px, 90%) !important;
}

}

@media (max-width: 640px) {
.flow-board[data-active-basis="gb"] .flow-center,
  .flow-board.is-gb-basis .flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-box-exportFlow {
  width: 100% !important;
  max-width: none !important;
  order: 31 !important;
}

}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-center .flow-box-bottomFlow {
  margin-right: 10px !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  margin-left: 10px !important;
}

.flow-board[data-active-basis="gb"] .flow-center,
.flow-board.is-gb-basis .flow-center {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(320px, 1fr) auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-svg,
.flow-board.is-gb-basis .flow-center .flow-svg,
.flow-board[data-active-basis="gb"] .flow-center .flow-box-topFlow,
.flow-board.is-gb-basis .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="gb"] .flow-center .demand-core,
.flow-board.is-gb-basis .flow-center .demand-core {
  grid-column: 1 / -1 !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-center .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
}

.flow-board:not([data-active-basis="gb"]) .flow-center .flow-box-exportFlow {
  display: none !important;
}

.flow-board:not([data-active-basis="gb"]) .flow-center .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: center !important;
  width: min(260px, 42%) !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
}

@media (max-width: 900px) {
.flow-board[data-active-basis="gb"] .flow-center,
  .flow-board.is-gb-basis .flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
  .flow-board.is-gb-basis .flow-center .flow-box-bottomFlow,
  .flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
  .flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-topFlow,
.flow-board.is-gb-basis .flow-center .flow-box-topFlow {
  grid-row: 1 !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
.flow-board[data-active-basis="gb"] .flow-center .flow-box-topFlow,
  .flow-board.is-gb-basis .flow-center .flow-box-topFlow {
  width: 100% !important;
  max-width: none !important;
}

}

.flow-center {
  position: relative !important;
}

.gb-mode-pair-lines {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.22s ease !important;
}

.flow-board[data-active-basis="gb"] .gb-mode-pair-lines,
.flow-board.is-gb-basis .gb-mode-pair-lines {
  opacity: 1 !important;
}

.gb-pair-line {
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 8px currentColor) !important;
}

.gb-pair-dot {
  opacity: 0.95 !important;
  filter: drop-shadow(0 0 8px currentColor) !important;
}

.gb-pair-dot-pumped {
  fill: #06b6d4 !important;
  color: #06b6d4 !important;
}

.flow-center .flow-box-center,
.flow-center .demand-core {
  position: relative !important;
  z-index: 6 !important;
}

@media (max-width: 900px) {
.gb-mode-pair-lines {
  display: none !important;
}

}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-center .flow-box-bottomFlow,
.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  width: 220px !important;
  max-width: 220px !important;
  min-height: 142px !important;
  padding: 16px !important;
  align-self: start !important;
}

.flow-box-exportFlow {
  border-color: rgba(34, 211, 238, 0.34) !important;
  background: radial-gradient(
      circle at 18% 0%,
      rgba(34, 211, 238, 0.11),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.68)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.16) !important;
}

.flow-box-exportFlow .flow-name,
.flow-box-exportFlow .flow-title,
.flow-box-exportFlow .flow-num,
.flow-box-exportFlow .flow-meta {
  color: inherit !important;
}

.flow-box-exportFlow .flow-num strong,
.flow-box-exportFlow .export-flow-num strong {
  color: #f8fafc !important;
}

.flow-box-exportFlow .export-flow-pct {
  color: #fbcfe8 !important;
  background: rgba(244, 114, 182, 0.18) !important;
}

.flow-box-exportFlow .icon-badge.exports {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f9a8d4 !important;
  background: rgba(244, 114, 182, 0.12) !important;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.16) !important;
}

.flow-box-exportFlow .flow-status-export {
  color: #f9a8d4 !important;
}

.gb-mode-pair-lines {
  z-index: 3 !important;
}

.gb-pair-line {
  stroke-width: 3.2 !important;
  opacity: 0.74 !important;
}

.gb-pair-line-pumped {
  stroke: #06b6d4 !important;
  color: #06b6d4 !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-center .flow-box-bottomFlow,
.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  position: relative !important;
  z-index: 8 !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-bottomFlow,
.flow-board.is-gb-basis .flow-center .flow-box-bottomFlow {
  margin-top: -6px !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  margin-top: -6px !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
.flow-board.is-uk-basis .flow-center .flow-box-exportFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 142px !important;
  padding: 16px !important;
  margin: 0 !important;
  transform: none !important;
  position: relative !important;
  z-index: 8 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.flow-board[data-active-basis="generation"] .flow-center,
.flow-board.is-uk-basis .flow-center {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(320px, 1fr) auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
  position: relative !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-svg,
.flow-board.is-uk-basis .flow-center .flow-svg,
.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
.flow-board.is-uk-basis .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="generation"] .flow-center .demand-core,
.flow-board.is-uk-basis .flow-center .demand-core {
  grid-column: 1 / -1 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,
.flow-board.is-uk-basis .flow-center .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
}

.flow-board[data-active-basis="generation"] .gb-pair-flow-lines,
.flow-board.is-uk-basis .gb-pair-flow-lines {
  display: none !important;
}

@media (max-width: 900px) {
.flow-board[data-active-basis="generation"] .flow-center,
  .flow-board.is-uk-basis .flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-exportFlow {
  width: 100% !important;
  max-width: none !important;
}

}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
.flow-board.is-uk-basis .flow-center .flow-box-topFlow {
  grid-row: 1 !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.flow-board[data-active-basis="generation"] .gb-pair-flow-lines,
.flow-board.is-uk-basis .gb-pair-flow-lines,
.flow-board[data-active-basis="gb"] .gb-pair-flow-lines,
.flow-board.is-gb-basis .gb-pair-flow-lines {
  display: block !important;
  opacity: 1 !important;
}

.gb-pair-line-pumped,
.gb-pair-dot-pumped {
  display: none !important;
}

.gb-pair-flow-lines {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3 !important;
  pointer-events: none !important;
}

.gb-pair-line-export {
  fill: none !important;
  stroke: #f472b6 !important;
  color: #f472b6 !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-dasharray: 7 10 !important;
  opacity: 0.78 !important;
  filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.52))
    drop-shadow(0 0 12px rgba(244, 114, 182, 0.22)) !important;
  animation: gbExportDash 1.7s linear infinite !important;
}

.gb-pair-dot-export {
  fill: #f472b6 !important;
  color: #f472b6 !important;
  opacity: 0.9 !important;
  filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.5))
    drop-shadow(0 0 12px rgba(244, 114, 182, 0.22)) !important;
}

@keyframes gbExportDash {
to {
  stroke-dashoffset: -34;
}

}

.flow-board[data-active-basis="generation"] .flow-center .demand-core,
.flow-board.is-uk-basis .flow-center .demand-core,
.flow-board[data-active-basis="generation"] .flow-center .flow-box-center,
.flow-board.is-uk-basis .flow-center .flow-box-center,
.flow-board[data-active-basis="gb"] .flow-center .demand-core,
.flow-board.is-gb-basis .flow-center .demand-core,
.flow-board[data-active-basis="gb"] .flow-center .flow-box-center,
.flow-board.is-gb-basis .flow-center .flow-box-center {
  position: relative !important;
  z-index: 8 !important;
}

@media (max-width: 900px) {
.gb-pair-flow-lines {
  display: none !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-topFlow {
  width: 100% !important;
  max-width: none !important;
}

}

.gb-pair-flow-lines,
.gb-mode-pair-lines,
.export-outflow-lines,
.gb-pair-line,
.gb-pair-dot,
.gb-pair-line-export,
.gb-pair-dot-export,
.gb-pair-line-pumped,
.gb-pair-dot-pumped {
  display: none !important;
}

.export-flow-svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  overflow: visible !important;
  mix-blend-mode: screen !important;
  transition: opacity .2s ease !important;
}

.export-flow-svg.is-visible,
.flow-board[data-active-basis="gb"] .export-flow-svg,
.flow-board.is-gb-basis .export-flow-svg {
  display: block !important;
  opacity: 1 !important;
}

.flow-board[data-active-basis="generation"] .export-flow-svg,
.flow-board.is-uk-basis .export-flow-svg {
  opacity: 0 !important;
  display: none !important;
}

.export-flow-line {
  stroke: #f472b6 !important;
  color: #f472b6 !important;
  stroke-width: 3px !important;
  opacity: .72 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  mix-blend-mode: screen !important;
  filter: drop-shadow(0 0 7px currentColor) !important;
  transition: stroke-width .25s ease, opacity .25s ease, filter .25s ease !important;
}

.export-flow-dot {
  fill: #f472b6 !important;
  color: #f472b6 !important;
  opacity: .9 !important;
  mix-blend-mode: screen !important;
  filter: drop-shadow(0 0 6px currentColor) !important;
}

.flow-board:has(.flow-box-exportFlow:hover) .export-flow-line {
  opacity: 1 !important;
  stroke-width: 7px !important;
  filter: drop-shadow(0 0 14px currentColor) drop-shadow(0 0 24px currentColor) !important;
}

.flow-board:has(.flow-box-exportFlow:hover) .export-flow-dot {
  opacity: 1 !important;
}

.flow-center .demand-core,
.flow-center .flow-box-center {
  position: relative !important;
  z-index: 8 !important;
}

@media (max-width:900px) {
.export-flow-svg {
  display: none !important;
}

}

.flow-board[data-active-basis="generation"] [data-flow-source="imports_gw"],
.flow-board[data-active-basis="generation"] [data-flow-source="exports"],
.flow-box.flow-source-zeroed-for-generation {
  opacity: .42;
}

.flow-board[data-active-basis="generation"] .gb-flow-module-line[data-flow-module-key="imports_gw"],
.flow-board[data-active-basis="generation"] .gb-flow-module-dot[data-flow-module-key="imports_gw"],
.flow-board[data-active-basis="generation"] .gb-flow-module-line[data-flow-module-key="exports"],
.flow-board[data-active-basis="generation"] .gb-flow-module-dot[data-flow-module-key="exports"] {
  opacity: 0 !important;
}

.flow-board.is-uk-basis .flow-center .flow-box-exportFlow,
.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
.flow-board.is-uk-basis [data-flow-role="exports-deducted"],
.flow-board[data-active-basis="generation"] [data-flow-role="exports-deducted"],
.flow-board .flow-box-exportFlow.is-muted-for-uk {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis .export-outflow-lines,
.flow-board[data-active-basis="generation"] .export-outflow-lines,
.flow-board.is-uk-basis .export-out-line,
.flow-board[data-active-basis="generation"] .export-out-line,
.flow-board.is-uk-basis .export-out-dot,
.flow-board[data-active-basis="generation"] .export-out-dot,
.flow-board.is-uk-basis .export-out-arrow,
.flow-board[data-active-basis="generation"] .export-out-arrow,
.flow-board.is-uk-basis .export-flow-line,
.flow-board[data-active-basis="generation"] .export-flow-line,
.flow-board.is-uk-basis .export-flow-dot,
.flow-board[data-active-basis="generation"] .export-flow-dot {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis:has(.flow-box-exportFlow:hover) .export-flow-line,
.flow-board[data-active-basis="generation"]:has(.flow-box-exportFlow:hover) .export-flow-line,
.flow-board.is-uk-basis:has(.flow-box-exportFlow:hover) .export-flow-dot,
.flow-board[data-active-basis="generation"]:has(.flow-box-exportFlow:hover) .export-flow-dot,
.flow-board.is-uk-basis:has(.flow-box-exportFlow:hover) .export-out-line,
.flow-board[data-active-basis="generation"]:has(.flow-box-exportFlow:hover) .export-out-line,
.flow-board.is-uk-basis:has(.flow-box-exportFlow:hover) .export-out-dot,
.flow-board[data-active-basis="generation"]:has(.flow-box-exportFlow:hover) .export-out-dot {
  opacity: 0 !important;
  visibility: hidden !important;
}

.flow-board[data-active-basis="generation"] .flow-center,
.flow-board.is-uk-basis .flow-center,
.flow-board[data-active-basis="grid"] .flow-center,
.flow-board.is-grid-basis .flow-center {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-rows: auto minmax(320px,1fr) auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
  position: relative !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-svg,.flow-board.is-uk-basis .flow-center .flow-svg,.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,.flow-board.is-uk-basis .flow-center .flow-box-topFlow,.flow-board[data-active-basis="generation"] .flow-center .demand-core,.flow-board.is-uk-basis .flow-center .demand-core,.flow-board[data-active-basis="grid"] .flow-center .flow-svg,.flow-board.is-grid-basis .flow-center .flow-svg,.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,.flow-board.is-grid-basis .flow-center .flow-box-topFlow,.flow-board[data-active-basis="grid"] .flow-center .demand-core,.flow-board.is-grid-basis .flow-center .demand-core {
  grid-column: 1/-1 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,.flow-board.is-uk-basis .flow-center .flow-box-topFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,.flow-board.is-grid-basis .flow-center .flow-box-topFlow {
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,.flow-board.is-uk-basis .flow-center .flow-box-bottomFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-bottomFlow,.flow-board.is-grid-basis .flow-center .flow-box-bottomFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 8 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,.flow-board.is-uk-basis .flow-center .flow-box-exportFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,.flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  padding: 16px !important;
  transform: none !important;
  position: relative !important;
  z-index: 7 !important;
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

@media (max-width:900px) {
.flow-board[data-active-basis="generation"] .flow-center,.flow-board.is-uk-basis .flow-center,.flow-board[data-active-basis="grid"] .flow-center,.flow-board.is-grid-basis .flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,.flow-board.is-uk-basis .flow-center .flow-box-topFlow,.flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,.flow-board.is-uk-basis .flow-center .flow-box-bottomFlow,.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,.flow-board.is-uk-basis .flow-center .flow-box-exportFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,.flow-board.is-grid-basis .flow-center .flow-box-topFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-bottomFlow,.flow-board.is-grid-basis .flow-center .flow-box-bottomFlow,.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,.flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important;
}

}

.source-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
}

.icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: -4px;
}

.icon-badge .source-icon {
  width: 12px;
  height: 12px;
}

.icon-badge.imports {
  background: rgba(168,85,247,.14);
  box-shadow: 0 0 8px rgba(168,85,247,.28);
  color: #c084fc;
}

.icon-badge.wind {
  background: rgba(16,185,129,.14);
  box-shadow: 0 0 8px rgba(16,185,129,.24);
  color: #34d399;
}

.icon-badge.solar {
  background: rgba(245,158,11,.14);
  box-shadow: 0 0 8px rgba(245,158,11,.24);
  color: #fbbf24;
}

.icon-badge.hydro {
  background: rgba(6,182,212,.14);
  box-shadow: 0 0 8px rgba(6,182,212,.24);
  color: #22d3ee;
}

.icon-badge.other {
  background: rgba(249,115,22,.14);
  box-shadow: 0 0 8px rgba(249,115,22,.24);
  color: #fb923c;
}

.icon-badge.nuclear {
  background: rgba(203,213,225,.12);
  box-shadow: 0 0 8px rgba(203,213,225,.18);
  color: #e2e8f0;
}

.icon-badge.gas {
  background: rgba(59,130,246,.14);
  box-shadow: 0 0 8px rgba(59,130,246,.24);
  color: #60a5fa;
}

.icon-badge.biomass {
  background: rgba(132,204,22,.14);
  box-shadow: 0 0 8px rgba(132,204,22,.24);
  color: #a3e635;
}

.icon-badge.coal {
  background: rgba(107,114,128,.18);
  box-shadow: 0 0 8px rgba(107,114,128,.18);
  color: #cbd5e1;
}

.flow-name.with-icon,.mix-card-title.with-icon {
  display: flex;
  align-items: center;
}

.mix-card-title.with-icon {
  gap: 8px;
}

.mix-card-title.with-icon .icon-badge {
  margin-right: 0;
}

.flow-board {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
}

.flow-board > .flow-center > .flow-svg {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.gb-flow-module-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.flow-col,
.flow-center {
  position: relative !important;
  z-index: 4 !important;
}

.flow-box,
.demand-core,
.flow-box-center {
  position: relative !important;
  z-index: 5 !important;
}

.flow-board .flow-box {
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%),rgba(125,211,252,.075),transparent 36%),
    linear-gradient(180deg,rgba(15,23,42,.975),rgba(7,13,24,.965)) !important;
}

.gb-flow-module-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .88;
  transition: opacity .18s ease,
    stroke-width .18s ease,
    filter .18s ease;
}

.gb-flow-module-dot {
  opacity: .95;
  filter: drop-shadow(0 0 8px currentColor);
}

.gb-flow-module-line.is-muted,
.gb-flow-module-dot.is-muted {
  opacity: .18;
}

.gb-flow-module-line.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 10px currentColor)
    drop-shadow(0 0 22px currentColor);
}

.gb-flow-module-dot.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 9px currentColor)
    drop-shadow(0 0 18px currentColor);
}

.gb-flow-module-line.imports,
.gb-flow-module-dot.imports {
  color: #a855f7;
  stroke: #a855f7;
  fill: #a855f7;
}

.gb-flow-module-line.wind,
.gb-flow-module-dot.wind {
  color: #10b981;
  stroke: #10b981;
  fill: #10b981;
}

.gb-flow-module-line.solar,
.gb-flow-module-dot.solar {
  color: #f59e0b;
  stroke: #f59e0b;
  fill: #f59e0b;
}

.gb-flow-module-line.hydro,
.gb-flow-module-dot.hydro {
  color: #06b6d4;
  stroke: #06b6d4;
  fill: #06b6d4;
}

.gb-flow-module-line.other,
.gb-flow-module-dot.other {
  color: #f97316;
  stroke: #f97316;
  fill: #f97316;
}

.gb-flow-module-line.nuclear,
.gb-flow-module-dot.nuclear {
  color: #cbd5e1;
  stroke: #cbd5e1;
  fill: #cbd5e1;
}

.gb-flow-module-line.gas,
.gb-flow-module-dot.gas {
  color: #3b82f6;
  stroke: #3b82f6;
  fill: #3b82f6;
}

.gb-flow-module-line.biomass,
.gb-flow-module-dot.biomass {
  color: #84cc16;
  stroke: #84cc16;
  fill: #84cc16;
}

.gb-flow-module-line.coal,
.gb-flow-module-dot.coal {
  color: #64748b;
  stroke: #64748b;
  fill: #64748b;
}

.gb-flow-module-line.pumped-hydro,
.gb-flow-module-dot.pumped-hydro {
  color: #22d3ee;
  stroke: #22d3ee;
  fill: #22d3ee;
}

@media (max-width:640px) {
.gb-flow-module-svg {
  display: none !important;
}

.flow-board > .flow-center > .flow-svg {
  opacity: .35 !important;
  visibility: visible !important;
}

}

@media (prefers-reduced-motion: reduce) {
.gb-flow-module-dot {
  display: none;
}

}

.gb-flow-module-line {
  fill: none !important;
  stroke-width: 3.2px;
  opacity: .86;
  filter: drop-shadow(0 0 7px currentColor)
    drop-shadow(0 0 16px rgba(125,211,252,.08));
}

.gb-flow-module-line.imports,
.gb-flow-module-line.wind,
.gb-flow-module-line.solar,
.gb-flow-module-line.hydro,
.gb-flow-module-line.other,
.gb-flow-module-line.nuclear,
.gb-flow-module-line.gas,
.gb-flow-module-line.biomass,
.gb-flow-module-line.coal,
.gb-flow-module-line.pumped-hydro {
  fill: none !important;
}

.gb-flow-module-dot.imports {
  fill: #a855f7;
}

.gb-flow-module-dot.wind {
  fill: #10b981;
}

.gb-flow-module-dot.solar {
  fill: #f59e0b;
}

.gb-flow-module-dot.hydro {
  fill: #06b6d4;
}

.gb-flow-module-dot.other {
  fill: #f97316;
}

.gb-flow-module-dot.nuclear {
  fill: #cbd5e1;
}

.gb-flow-module-dot.gas {
  fill: #3b82f6;
}

.gb-flow-module-dot.biomass {
  fill: #84cc16;
}

.gb-flow-module-dot.coal {
  fill: #64748b;
}

.gb-flow-module-dot.pumped-hydro {
  fill: #22d3ee;
}

.gb-flow-module-line.is-active {
  stroke-width: 5px !important;
}

.gb-flow-module-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.gb-flow-module-dot animateMotion {
  pointer-events: none;
}

.gb-flow-module-dot {
  filter: drop-shadow(0 0 7px currentColor)
    drop-shadow(0 0 14px currentColor);
}

.gb-flow-module-line {
  transition: opacity .18s ease,
    stroke-width .18s ease,
    filter .18s ease;
}

.gb-flow-module-line.flow-intensity-high {
  filter: drop-shadow(0 0 10px currentColor)
    drop-shadow(0 0 22px currentColor);
}

.gb-flow-module-line.flow-intensity-medium {
  filter: drop-shadow(0 0 7px currentColor)
    drop-shadow(0 0 15px rgba(125,211,252,.08));
}

.gb-flow-module-line.flow-intensity-low {
  filter: none !important;
}

.gb-flow-module-dot.flow-intensity-high {
  filter: drop-shadow(0 0 9px currentColor)
    drop-shadow(0 0 20px currentColor);
}

.flow-board.gb-flow-module-hovering .flow-box:not(.gb-flow-module-card-active) {
  filter: brightness(.72) saturate(.72);
  opacity: .68;
}

.flow-board.gb-flow-module-hovering .gb-flow-module-line.is-muted,
.flow-board.gb-flow-module-hovering .gb-flow-module-dot.is-muted {
  opacity: .08 !important;
  filter: none !important;
}

.flow-board.gb-flow-module-hovering .gb-flow-module-line.is-active {
  opacity: 1 !important;
  stroke-width: 5.6px !important;
  filter: drop-shadow(0 0 13px currentColor)
    drop-shadow(0 0 28px currentColor)
    drop-shadow(0 0 42px currentColor) !important;
}

.flow-board.gb-flow-module-hovering .gb-flow-module-dot.is-active {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px currentColor)
    drop-shadow(0 0 22px currentColor) !important;
}

.flow-board .flow-box.gb-flow-module-card-active {
  opacity: 1 !important;
  filter: brightness(1.14) saturate(1.08) !important;
  border-color: rgba(125,211,252,.52) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.26),
    0 0 30px rgba(125,211,252,.14),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.flow-board.gb-flow-module-hovering .demand-ring {
  box-shadow: 0 0 0 1px rgba(125,211,252,.10),
    0 0 34px rgba(45,212,191,.11),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

@keyframes gb-flow-soft-breathe {
0%,100% {
  opacity: .82;
}

50% {
  opacity: 1;
}

}

.gb-flow-module-line.flow-intensity-high:not(.is-muted) {
  animation: gb-flow-soft-breathe 3.8s ease-in-out infinite;
}

.gb-flow-module-line.imports,
.gb-flow-module-line.gas,
.gb-flow-module-line.wind,
.gb-flow-module-line.hydro {
  stroke-dasharray: 0;
}

.gb-flow-module-line.flow-intensity-low,
.gb-flow-module-dot.flow-intensity-low {
  opacity: .16 !important;
}

@media (prefers-reduced-motion: reduce) {
.gb-flow-module-line.flow-intensity-high:not(.is-muted) {
  animation: none !important;
}

.flow-board.gb-flow-module-hovering .flow-box:not(.gb-flow-module-card-active) {
  opacity: 1;
  filter: none;
}

}

.flow-board.gb-flow-module-hovering .demand-ring::before {
  opacity: .72;
}

.flow-board.is-uk-basis [data-flow-source="imports_gw"],
.flow-board[data-active-basis="generation"] [data-flow-source="imports_gw"] {
  pointer-events: none !important;
}

.flow-board.is-uk-basis .gb-flow-module-line.imports,
.flow-board.is-uk-basis .gb-flow-module-dot.imports,
.flow-board[data-active-basis="generation"] .gb-flow-module-line.imports,
.flow-board[data-active-basis="generation"] .gb-flow-module-dot.imports {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis .flow-box-exportFlow,
.flow-board[data-active-basis="generation"] .flow-box-exportFlow,
.flow-board.is-uk-basis [data-flow-role="exports-deducted"],
.flow-board[data-active-basis="generation"] [data-flow-role="exports-deducted"] {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis .export-outflow-lines,
.flow-board[data-active-basis="generation"] .export-outflow-lines,
.flow-board.is-uk-basis .export-out-line,
.flow-board[data-active-basis="generation"] .export-out-line,
.flow-board.is-uk-basis .export-out-dot,
.flow-board[data-active-basis="generation"] .export-out-dot,
.flow-board.is-uk-basis .export-out-arrow,
.flow-board[data-active-basis="generation"] .export-out-arrow {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis .flow-box-exportFlow:hover,
.flow-board[data-active-basis="generation"] .flow-box-exportFlow:hover {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
}

.flow-board.is-uk-basis .export-flow-line,
.flow-board[data-active-basis="generation"] .export-flow-line,
.flow-board.is-uk-basis .export-flow-dot,
.flow-board[data-active-basis="generation"] .export-flow-dot,
.flow-board.is-uk-basis .export-out-line,
.flow-board[data-active-basis="generation"] .export-out-line,
.flow-board.is-uk-basis .export-out-dot,
.flow-board[data-active-basis="generation"] .export-out-dot {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board[data-active-basis="grid"] .flow-box-exportFlow,
.flow-board[data-active-basis="grid"] [data-flow-role="exports-deducted"] {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board[data-active-basis="grid"] .export-flow-svg,
.flow-board[data-active-basis="grid"] .export-flow-line,
.flow-board[data-active-basis="grid"] .export-flow-dot,
.flow-board[data-active-basis="grid"] .export-out-line,
.flow-board[data-active-basis="grid"] .export-out-dot {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis [data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk,
.flow-board[data-active-basis="generation"] [data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board.is-uk-basis:has([data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk) .gb-flow-module-line.pumped-hydro,
.flow-board.is-uk-basis:has([data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk) .gb-flow-module-dot.pumped-hydro,
.flow-board[data-active-basis="generation"]:has([data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk) .gb-flow-module-line.pumped-hydro,
.flow-board[data-active-basis="generation"]:has([data-flow-source="pumped_hydro_net_gw"].is-pumped-muted-for-uk) .gb-flow-module-dot.pumped-hydro {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.flow-board[data-active-basis="grid"] .flow-center {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(320px, 1fr) auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
}

.flow-board[data-active-basis="grid"] .flow-center .flow-svg,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="grid"] .flow-center .demand-core {
  grid-column: 1 / -1 !important;
}

.flow-board[data-active-basis="grid"] .flow-center .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
}

.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
}

.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
.flow-board.is-grid-basis .flow-center .flow-box-topFlow {
  grid-row: 1 !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,
.flow-board.is-uk-basis .flow-center .flow-box-bottomFlow {
  grid-row: 3 !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  max-width: 220px !important;
  min-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,
.flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  width: 220px !important;
  max-width: 220px !important;
  min-width: 220px !important;
  min-height: 112px !important;
}

@media (max-width:900px) {
.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
  .flow-board.is-grid-basis .flow-center .flow-box-topFlow,
  .flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-bottomFlow,
  .flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,
  .flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

}

.flow-board[data-active-basis="generation"] .flow-center,
.flow-board.is-uk-basis .flow-center,
.flow-board[data-active-basis="grid"] .flow-center,
.flow-board.is-grid-basis .flow-center {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(320px, 1fr) auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  align-items: center !important;
  position: relative !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-svg,
.flow-board.is-uk-basis .flow-center .flow-svg,
.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
.flow-board.is-uk-basis .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="generation"] .flow-center .demand-core,
.flow-board.is-uk-basis .flow-center .demand-core,
.flow-board[data-active-basis="grid"] .flow-center .flow-svg,
.flow-board.is-grid-basis .flow-center .flow-svg,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
.flow-board.is-grid-basis .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="grid"] .flow-center .demand-core,
.flow-board.is-grid-basis .flow-center .demand-core {
  grid-column: 1 / -1 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
.flow-board.is-uk-basis .flow-center .flow-box-topFlow,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
.flow-board.is-grid-basis .flow-center .flow-box-topFlow {
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 auto !important;
  transform: none !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,
.flow-board.is-uk-basis .flow-center .flow-box-bottomFlow,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-bottomFlow,
.flow-board.is-grid-basis .flow-center .flow-box-bottomFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 8 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
.flow-board.is-uk-basis .flow-center .flow-box-exportFlow,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,
.flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  display: flex !important;
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 112px !important;
  margin: 0 !important;
  padding: 16px !important;
  transform: none !important;
  position: relative !important;
  z-index: 7 !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
.flow-board.is-uk-basis .flow-center .flow-box-exportFlow,
.flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,
.flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  opacity: .28 !important;
  filter: grayscale(.75) saturate(.45) !important;
  pointer-events: none !important;
}

.flow-board[data-active-basis="gb"] .flow-center .flow-box-exportFlow,
.flow-board.is-gb-basis .flow-center .flow-box-exportFlow {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

@media (max-width:900px) {
.flow-board[data-active-basis="generation"] .flow-center,
  .flow-board.is-uk-basis .flow-center,
  .flow-board[data-active-basis="grid"] .flow-center,
  .flow-board.is-grid-basis .flow-center {
  display: flex !important;
  flex-direction: column !important;
}

.flow-board[data-active-basis="generation"] .flow-center .flow-box-topFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-topFlow,
  .flow-board[data-active-basis="generation"] .flow-center .flow-box-bottomFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-bottomFlow,
  .flow-board[data-active-basis="generation"] .flow-center .flow-box-exportFlow,
  .flow-board.is-uk-basis .flow-center .flow-box-exportFlow,
  .flow-board[data-active-basis="grid"] .flow-center .flow-box-topFlow,
  .flow-board.is-grid-basis .flow-center .flow-box-topFlow,
  .flow-board[data-active-basis="grid"] .flow-center .flow-box-bottomFlow,
  .flow-board.is-grid-basis .flow-center .flow-box-bottomFlow,
  .flow-board[data-active-basis="grid"] .flow-center .flow-box-exportFlow,
  .flow-board.is-grid-basis .flow-center .flow-box-exportFlow {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important;
}

}

section.top-grid.top-grid-new-boxes {
  display: grid !important;
  grid-template-columns: repeat(12,minmax(0,1fr)) !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
  align-items: stretch !important;
}

section.top-grid.top-grid-new-boxes > .metric-card {
  grid-column: auto !important;
  width: auto !important;
  max-width: none !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(1),
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(2),
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: span 4 !important;
  min-height: 150px !important;
  padding: 22px !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(4) {
  grid-column: span 2 !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(5),
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(6),
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(7),
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(8) {
  grid-column: span 2 !important;
}

@media (min-width:1181px) {
section.top-grid.top-grid-new-boxes > .metric-card:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(n/**/+4) {
  min-height: 112px !important;
  padding: 18px !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(-n/**/+3) .metric-value {
  font-size: clamp(38px,4vw,52px) !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(n/**/+4) .metric-value {
  font-size: clamp(22px,2.1vw,32px) !important;
  line-height: 1.05 !important;
}

section.top-grid.top-grid-new-boxes > .metric-card.metric-card-info {
  overflow: visible !important;
}

@media (max-width:1180px) {
section.top-grid.top-grid-new-boxes {
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(1),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(2),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: span 2 !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(n/**/+4) {
  grid-column: span 2 !important;
}

}

@media (max-width:860px) {
section.top-grid.top-grid-new-boxes {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}

section.top-grid.top-grid-new-boxes > .metric-card {
  grid-column: span 1 !important;
  min-height: auto !important;
}

section.top-grid.top-grid-new-boxes > .metric-card:nth-child(1),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(2),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: span 2 !important;
}

}

@media (max-width:640px) {
section.top-grid.top-grid-new-boxes {
  grid-template-columns: 1fr !important;
}

section.top-grid.top-grid-new-boxes > .metric-card,
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(1),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(2),
  section.top-grid.top-grid-new-boxes > .metric-card:nth-child(3) {
  grid-column: 1 / -1 !important;
}

}
