[data-series-preview] {
  margin: 1.2rem 0 1.6rem;
}

.sp-card {
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sp-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.sp-card .muted {
  margin: 0 0 0.9rem;
  opacity: 0.75;
}

.sp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.sp-card-head h3 {
  margin: 0;
}

.sp-card .embed {
  position: relative;
}

.sp-card[data-sp-embed] .embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.06);
}

.sp-card[data-sp-embed] .embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sp-card .caption {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
}

.sp-card .caption a {
  text-decoration: none;
}

.sp-fullscreen-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
}

.sp-fullscreen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sp-fullscreen.is-open {
  display: flex;
}

.sp-fullscreen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
}

.sp-fullscreen-dialog {
  position: relative;
  width: min(1400px, 96vw);
  height: min(860px, 94vh);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
}

.sp-fullscreen-close {
  align-self: flex-end;
  border: 0;
  background: rgba(20, 20, 20, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.sp-fullscreen-body {
  flex: 1;
  min-height: 0;
}

.sp-fullscreen-body iframe,
.sp-fullscreen-body .embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.sp-fullscreen-body .embed {
  border-radius: 12px;
  overflow: hidden;
}

.sp-fullscreen-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .sp-card {
    padding: 0.95rem 1rem 0.9rem;
  }
}

.energy-forecast{
  width:100%;
  min-height:360px;
  position: relative;
}
.energy-forecast svg{
  width:100%;
  height:auto;
  display:block;
}
.energy-forecast .grid{ stroke: currentColor; stroke-opacity: 0.12; }
.energy-forecast .axis{ stroke: currentColor; stroke-opacity: 0.4; }
.energy-forecast .label{ fill: currentColor; opacity: 0.7; font-size: 12px; }
.energy-forecast .line{ fill: none; stroke-width: 3; }
.energy-forecast .line.ai{ stroke-dasharray: 6 4; }
.energy-forecast .dot{ fill: currentColor; }
.energy-forecast .legend text{ fill: currentColor; opacity: 0.8; font-size: 12px; }
.energy-forecast .dot{ opacity: 0.85; }
.energy-forecast .dot.hit{ fill: transparent; stroke: transparent; pointer-events: all; }
.energy-forecast .dot.actual{ stroke: rgba(0, 0, 0, 0.35); stroke-width: 2; opacity: 1; }
.energy-forecast .bar{ opacity: 0.92; }
.energy-forecast .bar.hit{ fill: transparent; stroke: transparent; pointer-events: all; }
.energy-forecast .label.bar-label{ font-size: 11px; }
.energy-forecast .label.value{ font-weight: 700; }
.energy-forecast-tooltip{
  position: absolute;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.12s ease;
  white-space: nowrap;
}
[data-md-color-scheme="default"] .energy-forecast-tooltip{
  background: rgba(0, 0, 0, 0.72);
}
.energy-forecast-tooltip.is-visible{ opacity: 1; }
.energy-forecast .line.animate{
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: energyDraw 1.4s ease forwards;
}
@keyframes energyDraw{
  to{ stroke-dashoffset: 0; }
}
.energy-forecast .bar.animate{
  transform-origin: center bottom;
  animation: energyBarGrow 0.9s ease forwards;
}
@keyframes energyBarGrow{
  from{ transform: scaleY(0.2); opacity: 0.65; }
  to{ transform: scaleY(1); opacity: 0.92; }
}

:root[data-md-color-scheme="slate"] .sp-card,
body[data-md-color-scheme="slate"] .sp-card,
[data-md-color-scheme="slate"] .sp-card{
  background: rgba(15, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
:root[data-md-color-scheme="slate"] .sp-card .muted,
body[data-md-color-scheme="slate"] .sp-card .muted,
[data-md-color-scheme="slate"] .sp-card .muted{
  opacity: 0.78;
}
:root[data-md-color-scheme="slate"] .sp-card[data-sp-embed] .embed,
body[data-md-color-scheme="slate"] .sp-card[data-sp-embed] .embed,
[data-md-color-scheme="slate"] .sp-card[data-sp-embed] .embed{
  background: rgba(255, 255, 255, 0.06);
}
:root[data-md-color-scheme="slate"] .sp-fullscreen-dialog,
body[data-md-color-scheme="slate"] .sp-fullscreen-dialog,
[data-md-color-scheme="slate"] .sp-fullscreen-dialog{
  background: #0f1115;
  color: rgba(255, 255, 255, 0.92);
}
:root[data-md-color-scheme="slate"] .sp-fullscreen-close,
body[data-md-color-scheme="slate"] .sp-fullscreen-close,
[data-md-color-scheme="slate"] .sp-fullscreen-close{
  background: rgba(255, 255, 255, 0.12);
}
:root[data-md-color-scheme="slate"] .energy-forecast,
body[data-md-color-scheme="slate"] .energy-forecast,
[data-md-color-scheme="slate"] .energy-forecast{
  color: rgba(255, 255, 255, 0.9);
}
:root[data-md-color-scheme="slate"] .energy-forecast .dot.actual,
body[data-md-color-scheme="slate"] .energy-forecast .dot.actual,
[data-md-color-scheme="slate"] .energy-forecast .dot.actual{
  stroke: rgba(255, 255, 255, 0.9);
}
:root[data-md-color-scheme="slate"] .energy-forecast-tooltip,
body[data-md-color-scheme="slate"] .energy-forecast-tooltip,
[data-md-color-scheme="slate"] .energy-forecast-tooltip{
  background: rgba(0, 0, 0, 0.9);
}
