﻿[x-cloak] { display: none !important; }

:root {
  --chart-grid: rgba(15, 23, 42, 0.08);
  --chart-text: #0f172a;
  --chip-bg: rgba(15, 23, 42, 0.08);
  --chip-text: #0f172a;
  --chip-border: rgba(15, 23, 42, 0.12);
}

.dark {
  --chart-grid: rgba(226, 232, 240, 0.18);
  --chart-text: #e2e8f0;
  --chip-bg: rgba(148, 163, 184, 0.16);
  --chip-text: #e2e8f0;
  --chip-border: rgba(148, 163, 184, 0.3);
}

.chip {
  background-color: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
}

@keyframes rowEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.row-enter {
  animation: rowEnter 0.35s ease;
}

@keyframes rowFlash {
  0% { background-color: rgba(16, 185, 129, 0.25); }
  100% { background-color: transparent; }
}

.row-flash {
  animation: rowFlash 2s ease;
}

.bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0);
  background-size: 24px 24px;
}

.dark .bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(226, 232, 240, 0.06) 1px, transparent 0);
}

.glass {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dark .glass {
  background-color: rgba(2, 6, 23, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

@keyframes chipPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.chip-pop {
  animation: chipPop 0.3s ease;
}

.view-toggle-btn {
  color: rgb(71 85 105);
  transition: all 0.18s ease;
}

.dark .view-toggle-btn {
  color: rgb(148 163 184);
}

.view-toggle-btn:hover {
  color: rgb(16 185 129);
}

.view-toggle-btn.is-active {
  background: rgba(16, 185, 129, 0.18);
  color: rgb(6 95 70);
}

.dark .view-toggle-btn.is-active {
  background: rgba(16, 185, 129, 0.26);
  color: rgb(167 243 208);
}

.metric-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-main {
  --confidence-opacity: 1;
  --confidence-sat: 1;
  --metric-accent: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.metric-main[data-state="confirmed"] {
  --metric-accent: #4caf50;
}

.metric-main[data-state="stale"] {
  --metric-accent: #f59e0b;
}

.metric-main[data-state="modeled"] {
  --metric-accent: #3b82f6;
}

.metric-main[data-state="unknown"] {
  --metric-accent: #94a3b8;
}

.metric-value {
  color: var(--metric-accent);
  opacity: var(--confidence-opacity);
  filter: saturate(var(--confidence-sat));
  transition: opacity 0.35s ease, filter 0.35s ease, color 0.25s ease;
}

.metric-sub {
  font-size: 11px;
  color: rgb(100 116 139);
}

.dark .metric-sub {
  color: rgb(148 163 184);
}

.table-shell {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.dark .table-shell {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(2, 6, 23, 0.78) 100%);
}

.site-table thead {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-table tbody tr {
  transition: background-color 0.22s ease;
}

.site-table tbody tr:hover {
  background-color: rgba(148, 163, 184, 0.08);
}

.site-row-dim {
  opacity: 0.72;
}

.site-row-early:hover {
  opacity: 0.92;
}

.lifecycle-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.14rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.lifecycle-operating {
  background: rgba(34, 197, 94, 0.16);
  color: rgb(22 101 52);
  border-color: rgba(22, 163, 74, 0.3);
}

.lifecycle-under_construction {
  background: rgba(59, 130, 246, 0.16);
  color: rgb(30 64 175);
  border-color: rgba(37, 99, 235, 0.32);
}

.lifecycle-planned,
.lifecycle-pre_fid,
.lifecycle-mou,
.lifecycle-demo {
  background: rgba(245, 158, 11, 0.16);
  color: rgb(146 64 14);
  border-color: rgba(217, 119, 6, 0.28);
}

.lifecycle-fid {
  background: rgba(16, 185, 129, 0.18);
  color: rgb(6 95 70);
  border-color: rgba(5, 150, 105, 0.26);
}

.lifecycle-unknown {
  background: rgba(148, 163, 184, 0.16);
  color: rgb(71 85 105);
  border-color: rgba(100, 116, 139, 0.28);
}

.dark .lifecycle-operating {
  color: rgb(187 247 208);
}

.dark .lifecycle-under_construction {
  color: rgb(191 219 254);
}

.dark .lifecycle-planned,
.dark .lifecycle-pre_fid,
.dark .lifecycle-mou,
.dark .lifecycle-demo {
  color: rgb(253 230 138);
}

.dark .lifecycle-fid {
  color: rgb(167 243 208);
}

.dark .lifecycle-unknown {
  color: rgb(203 213 225);
}

.capacity-value {
  font-weight: 600;
  color: rgb(30 41 59);
}

.capacity-unit {
  font-size: 11px;
  font-weight: 500;
  color: rgb(100 116 139);
}

.dark .capacity-value {
  color: rgb(226 232 240);
}

.dark .capacity-unit {
  color: rgb(148 163 184);
}

.production-wrap {
  --confidence-opacity: 1;
  --confidence-sat: 1;
  opacity: var(--confidence-opacity);
  filter: saturate(var(--confidence-sat));
}

.production-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 12rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.22rem 0.48rem;
  overflow: hidden;
}

.production-wave {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0.2) 50%, rgba(148, 163, 184, 0.12) 100%);
  transform: translateX(-24%);
  animation: productionWave 6.2s ease-in-out infinite;
}

@keyframes productionWave {
  0% { transform: translateX(-26%); }
  50% { transform: translateX(12%); }
  100% { transform: translateX(-26%); }
}

.production-value {
  position: relative;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.production-track .pressure-arrow {
  position: relative;
  z-index: 1;
}

.production-high {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.08) 0%, rgba(187, 247, 208, 0.5) 100%);
}

.production-medium {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0%, rgba(191, 219, 254, 0.45) 100%);
}

.production-low {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.07) 0%, rgba(254, 240, 138, 0.45) 100%);
}

.production-up {
  border-color: rgba(34, 197, 94, 0.35);
}

.production-down {
  border-color: rgba(59, 130, 246, 0.32);
}

.production-neutral {
  border-color: rgba(148, 163, 184, 0.28);
}

.production-factors {
  margin-top: 0.28rem;
  display: inline-flex;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.metric-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.1rem 0.46rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: help;
}

.metric-status-confirmed {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(5, 150, 105, 0.25);
  color: rgb(6 95 70);
}

.metric-status-stale {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(217, 119, 6, 0.25);
  color: rgb(146 64 14);
}

.metric-status-modeled {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(37, 99, 235, 0.3);
  color: rgb(30 64 175);
}

.metric-status-unknown {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(100, 116, 139, 0.28);
  color: rgb(71 85 105);
}

.dark .metric-status-confirmed {
  background: rgba(16, 185, 129, 0.24);
  color: rgb(167 243 208);
}

.dark .metric-status-stale {
  background: rgba(245, 158, 11, 0.24);
  color: rgb(253 230 138);
}

.dark .metric-status-modeled {
  background: rgba(59, 130, 246, 0.24);
  color: rgb(191 219 254);
}

.dark .metric-status-unknown {
  background: rgba(148, 163, 184, 0.22);
  color: rgb(203 213 225);
}

.modeled-range {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px dashed rgba(37, 99, 235, 0.45);
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.08);
  color: rgb(30 64 175);
  font-size: 11px;
  font-weight: 600;
  padding: 0.16rem 0.46rem;
}

.forecast-band {
  opacity: 0.72;
  animation: forecastPulse 5s ease-in-out infinite;
}

@keyframes forecastPulse {
  0% { opacity: 0.65; }
  50% { opacity: 0.8; }
  100% { opacity: 0.65; }
}

.pressure-arrow {
  display: inline-flex;
  width: 0.95rem;
  justify-content: center;
  align-items: center;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.8;
  transform: translateY(-0.03rem);
  transition: transform 220ms ease, opacity 220ms ease;
}

.pressure-up {
  color: #16a34a;
}

.pressure-down {
  color: #dc2626;
}

.pressure-neutral {
  color: #64748b;
}

@keyframes pressureNudge {
  0% { opacity: 0.58; transform: translateY(0.08rem) scale(0.96); }
  50% { opacity: 0.95; transform: translateY(-0.03rem) scale(1.02); }
  100% { opacity: 0.8; transform: translateY(-0.03rem) scale(1); }
}

.row-flash .pressure-arrow {
  animation: pressureNudge 1.7s ease;
}

.forecast-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  color: rgb(100 116 139);
}

.dark .forecast-legend {
  color: rgb(148 163 184);
}

.forecast-legend-band {
  width: 2.2rem;
  height: 0.62rem;
  border-radius: 9999px;
  border: 1px dashed rgba(37, 99, 235, 0.45);
  background: rgba(59, 130, 246, 0.12);
  animation: forecastPulse 5s ease-in-out infinite;
}

.dark .modeled-range {
  background: rgba(59, 130, 246, 0.14);
  color: rgb(191 219 254);
}

.factor-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.42rem;
  border: 1px solid transparent;
}

.factor-chip-pos {
  background: rgba(16, 185, 129, 0.16);
  color: rgb(6 95 70);
  border-color: rgba(5, 150, 105, 0.22);
}

.factor-chip-neg {
  background: rgba(239, 68, 68, 0.15);
  color: rgb(153 27 27);
  border-color: rgba(220, 38, 38, 0.2);
}

.factor-chip-neu {
  background: rgba(148, 163, 184, 0.14);
  color: rgb(71 85 105);
  border-color: rgba(100, 116, 139, 0.2);
}

.dark .factor-chip-pos {
  color: rgb(167 243 208);
}

.dark .factor-chip-neg {
  color: rgb(252 165 165);
}

.dark .factor-chip-neu {
  color: rgb(203 213 225);
}

.factor-chip-inline {
  font-size: 9px;
  padding: 0.08rem 0.3rem;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  border-radius: 0.42rem;
  border: 1px solid transparent;
  padding: 0.26rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.confidence-high {
  background: rgba(74, 175, 80, 0.18);
  border-color: rgba(74, 175, 80, 0.35);
  color: #22543d;
}

.confidence-medium {
  background: rgba(251, 191, 36, 0.24);
  border-color: rgba(245, 158, 11, 0.32);
  color: #92400e;
}

.confidence-low {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(249, 115, 22, 0.3);
  color: #9a3412;
}

.dark .confidence-high {
  color: #bbf7d0;
}

.dark .confidence-medium {
  color: #fde68a;
}

.dark .confidence-low {
  color: #fdba74;
}

.forecast-range-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 0.4rem;
}

.forecast-marker {
  position: absolute;
  right: 0.18rem;
  top: -0.28rem;
  bottom: -0.28rem;
  width: 1px;
  border-right: 1px dashed rgba(59, 130, 246, 0.55);
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.11);
  color: rgb(6 95 70);
  font-size: 11px;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
}

.dark .pulse-badge {
  color: rgb(167 243 208);
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.35);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #10b981;
  animation: pulseBreathing 2.4s ease-in-out infinite;
}

@keyframes pulseBreathing {
  0% { opacity: 0.45; transform: scale(0.86); }
  50% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0.45; transform: scale(0.86); }
}

.pulse-chart-shell {
  position: relative;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(241, 245, 249, 0.8) 100%);
  padding: 0.6rem 0.65rem 0.4rem;
}

.dark .pulse-chart-shell {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.54) 100%);
  border-color: rgba(148, 163, 184, 0.22);
}

.pulse-chart {
  width: 100%;
  height: auto;
  display: block;
}

.pulse-chart-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: rgb(100 116 139);
  padding: 0.75rem;
}

.dark .pulse-chart-fallback {
  color: rgb(148 163 184);
}

.pulse-grid-line {
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 1;
}

.dark .pulse-grid-line {
  stroke: rgba(148, 163, 184, 0.2);
}

.pulse-axis-text {
  fill: rgb(100 116 139);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.dark .pulse-axis-text {
  fill: rgb(148 163 184);
}

.pulse-band-path {
  fill: rgba(16, 185, 129, 0.2);
  stroke: rgba(16, 185, 129, 0.24);
  stroke-width: 1;
}

.pulse-capacity-path {
  fill: none;
  stroke: rgba(56, 189, 248, 0.6);
  stroke-dasharray: 7 6;
  stroke-width: 1.8;
}

.pulse-production-path {
  fill: none;
  stroke: rgba(5, 150, 105, 0.95);
  stroke-width: 2.2;
  filter: drop-shadow(0 1px 1px rgba(5, 150, 105, 0.2));
}

.dark .pulse-production-path {
  stroke: rgba(52, 211, 153, 0.9);
}

.pulse-moving-dot {
  fill: rgba(5, 150, 105, 0.95);
  opacity: 0.9;
}

.dark .pulse-moving-dot {
  fill: rgba(52, 211, 153, 0.95);
}

.pulse-moving-dot-alt {
  opacity: 0.62;
}

.pulse-axis-layer.pulse-axis-enter .pulse-grid-line,
.pulse-axis-layer.pulse-axis-enter .pulse-axis-text {
  animation: pulseAxisFade 220ms ease both;
}

@keyframes pulseAxisFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pulse-factor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

#operational-pulse-card {
  position: relative;
  z-index: 12;
}

#operational-pulse-card .pulse-factor-row {
  position: relative;
  z-index: 13;
}

.pulse-chip-wrap {
  position: relative;
  display: inline-flex;
}

#operational-pulse-card .pulse-chip-wrap:hover,
#operational-pulse-card .pulse-chip-wrap:focus-within {
  z-index: 14;
}

.pulse-factor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.8);
  color: rgb(30 41 59);
  font-size: 13px;
  font-weight: 500;
  padding: 0.28rem 0.62rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dark .pulse-factor-chip {
  background: rgba(15, 23, 42, 0.72);
  color: rgb(226 232 240);
}

.pulse-factor-chip.is-positive {
  border-color: rgba(16, 185, 129, 0.35);
}

.pulse-factor-chip.is-negative {
  border-color: rgba(245, 158, 11, 0.34);
}

.pulse-factor-chip.is-neutral {
  border-color: rgba(148, 163, 184, 0.34);
}

.pulse-factor-chip.is-default {
  opacity: 0.78;
}

.pulse-chip-icon {
  font-size: 12px;
}

.pulse-chip-label {
  white-space: nowrap;
}

.pulse-chip-delta {
  font-weight: 700;
}

.pulse-chip-tooltip {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.42rem);
  left: 0;
  min-width: 15rem;
  max-width: 20rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  color: rgb(30 41 59);
  font-size: 12px;
  line-height: 1.45;
  padding: 0.62rem 0.72rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dark .pulse-chip-tooltip {
  background: rgba(15, 23, 42, 0.98);
  color: rgb(226 232 240);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.pulse-chip-wrap:hover .pulse-chip-tooltip,
.pulse-chip-wrap:focus-within .pulse-chip-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pulse-chip-tooltip strong {
  display: block;
  margin-bottom: 0.22rem;
}

.pulse-tip-updated {
  display: block;
  margin-top: 0.28rem;
  color: rgb(100 116 139);
}

.dark .pulse-tip-updated {
  color: rgb(148 163 184);
}

.pulse-tip-sources {
  margin-top: 0.35rem;
  padding-left: 1rem;
}

.pulse-tip-sources li {
  margin-top: 0.18rem;
}

.pulse-tip-sources a {
  color: rgb(5 150 105);
  text-decoration: underline;
}

.dark .pulse-tip-sources a {
  color: rgb(110 231 183);
}

.pulse-tip-empty {
  margin-top: 0.35rem;
  color: rgb(100 116 139);
}

.dark .pulse-tip-empty {
  color: rgb(148 163 184);
}

.pulse-tip-model {
  display: block;
  margin-top: 0.28rem;
  color: rgb(51 65 85);
  font-weight: 500;
}

.dark .pulse-tip-model {
  color: rgb(203 213 225);
}

.pulse-tip-disclaimer {
  display: block;
  margin-top: 0.4rem;
  color: rgb(100 116 139);
  font-style: italic;
}

.dark .pulse-tip-disclaimer {
  color: rgb(148 163 184);
}

.pulse-signal-note {
  width: 100%;
  margin-bottom: 0.1rem;
  font-size: 12px;
  color: rgb(100 116 139);
}

.dark .pulse-signal-note {
  color: rgb(148 163 184);
}

.pulse-signal-note.is-active {
  color: rgb(5 150 105);
}

.dark .pulse-signal-note.is-active {
  color: rgb(110 231 183);
}

.pulse-signal-link {
  color: rgb(5 150 105);
  text-decoration: underline;
  font-weight: 600;
}

.dark .pulse-signal-link {
  color: rgb(110 231 183);
}

@media (prefers-reduced-motion: reduce) {
  .row-enter,
  .row-flash,
  .chip-pop,
  .production-wave,
  .forecast-band,
  .forecast-legend-band,
  .row-flash .pressure-arrow,
  .pulse-dot {
    animation: none !important;
  }

  .metric-value,
  .pressure-arrow,
  .view-toggle-btn,
  .pulse-chip-tooltip {
    transition: none !important;
  }
}
