/* Umbrella Energía (S37) · charts: SVG marks drawn at the card's pixel width, band background,
   24 band cells, heat map. Series colours come from --chart-N; text uses the
   text inks. */
.en-svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.en-plot {
  position: relative;
}
.en-cross {
  position: absolute;
  width: 0;
  border-left: 1px dashed var(--hud-text);
  pointer-events: none;
}
.en-cross[hidden] {
  display: none;
}
line.en-gridline {
  stroke: var(--hud-border);
}
.en-tick,
.en-axis-name {
  fill: var(--hud-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.en-panel {
  fill: var(--hud-muted);
  font-size: 11px;
  font-weight: 700;
}
.en-mark {
  fill: var(--hud-text);
  font-size: 11px;
  font-weight: 700;
}
.en-bar {
  fill: var(--chart-1);
}
.en-bar.is-over {
  fill: var(--chart-4);
}
.en-bar.is-partial {
  opacity: 0.55;
}
.en-bar.is-hover {
  stroke: var(--hud-text);
  stroke-width: 1.5;
}
.en-hit {
  fill: transparent;
  cursor: crosshair;
}
.en-hit.is-hover {
  fill: rgb(20 22 28 / 0.06);
}
.en-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2;
  stroke-linejoin: round;
}
.en-line.is-dashed {
  stroke-dasharray: 5 4;
  stroke-width: 1.6;
}
.en-dot {
  fill: var(--chart-1);
  stroke: var(--surface);
  stroke-width: 2;
}
.en-target,
.en-diag {
  stroke: var(--hud-text);
  stroke-width: 1.4;
  stroke-dasharray: 6 4;
}
.en-band {
  fill: var(--c);
  opacity: 0.13;
}
.en-band-name {
  fill: var(--hud-muted);
  font-size: 11px;
  font-weight: 700;
}

/* Legends. */
.en-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--hud-muted);
}
.en-legend li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.en-legend li b {
  color: var(--hud-text);
}
.en-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}
.en-legend li.is-block i {
  height: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c) 45%, #fff);
}
.en-legend li.is-dashed i {
  background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px);
}

/* 24 band cells. */
.en-bands {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
}
.en-bands i {
  display: grid;
  place-items: end center;
  height: 44px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 42%, #fff);
  font-style: normal;
  font-size: 10px;
  color: var(--hud-text);
}
.en-bands i span {
  padding-bottom: 3px;
}
.en-bands i.is-now {
  outline: 2px solid var(--hud-text);
  outline-offset: 1px;
  font-weight: 800;
}
.en-bands i.is-hover {
  filter: brightness(0.92);
}
@media (max-width: 600px) {
  .en-bands i:nth-child(odd):not(.is-now) span {
    visibility: hidden;
  }
}

/* Heat map 7 × 24. */
.en-heat {
  display: grid;
  grid-template-columns: 52px repeat(24, minmax(0, 1fr));
  gap: 2px;
  font-size: 10px;
  color: var(--hud-muted);
}
.en-heat i {
  height: 22px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--chart-1) calc(var(--a) * 100%), #f4f5f7);
}
.en-heat i.is-empty {
  background: repeating-linear-gradient(45deg, var(--surface-sunk) 0 3px, transparent 3px 6px);
}
.en-heat i.is-hover {
  outline: 2px solid var(--hud-text);
}
.en-hm-d {
  align-self: center;
  font-weight: 600;
  white-space: nowrap;
}
.en-hm-h {
  text-align: center;
}
.en-scale {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--hud-muted);
}
.en-scale i {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--chart-1) 12%, #f4f5f7), var(--chart-1));
}
