.energy-ecosystem {
  --eco-bg: #07110d;
  --eco-panel: rgba(13, 30, 23, 0.88);
  --eco-panel-strong: #0d1e17;
  --eco-line: rgba(145, 224, 174, 0.16);
  --eco-line-strong: rgba(133, 255, 176, 0.42);
  --eco-text: #f2f7f3;
  --eco-muted: #91a99a;
  --eco-green: #63ff91;
  --eco-green-soft: rgba(99, 255, 145, 0.14);
  --eco-data: #35ead3;
  --eco-heat: #ffbd59;
  --eco-cold: #49ddff;
  position: relative;
  color: var(--eco-text);
  font-family: var(--font-manrope), var(--font-inter), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.energy-ecosystem *,
.energy-ecosystem *::before,
.energy-ecosystem *::after {
  box-sizing: border-box;
}

.energy-ecosystem button {
  color: inherit;
  font: inherit;
}

.energy-ecosystem button:focus-visible {
  outline: 2px solid var(--eco-green);
  outline-offset: 3px;
}

.energy-ecosystem__charts {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(690px, 72%);
  margin: 0;
  transform: translateX(-50%);
}

.ecosystem-chart {
  min-width: 0;
  padding: 11px 13px 8px;
  border: 1px solid var(--eco-line);
  border-radius: 15px;
  background: rgba(9, 27, 18, 0.78);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.ecosystem-chart__header,
.ecosystem-chart__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ecosystem-chart__header strong,
.ecosystem-chart__header span {
  display: block;
}

.ecosystem-chart__header strong {
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ecosystem-chart__header div > span,
.ecosystem-chart__footer {
  color: var(--eco-muted);
  font-size: 7px;
}

.ecosystem-chart__tag {
  color: var(--eco-muted);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-chart svg {
  display: block;
  width: 100%;
  height: 45px;
  margin: 5px 0 0;
  overflow: visible;
}

.ecosystem-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin: 6px 0 11px;
  border-bottom: 1px solid rgba(99, 255, 145, 0.13);
}

.ecosystem-chart__bar-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 1 1 0;
  height: 100%;
}

.ecosystem-chart__bar-item i {
  display: block;
  width: 100%;
  height: var(--bar-height, 8%);
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, var(--eco-green), rgba(99, 255, 145, 0.32));
  box-shadow: 0 0 8px rgba(99, 255, 145, 0.14);
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms ease;
}

.ecosystem-chart__bar-item small {
  position: absolute;
  right: -2px;
  bottom: -10px;
  left: -2px;
  overflow: hidden;
  color: #a9beb0;
  font-size: 5px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecosystem-chart__bar-item[data-type="price-high"] i,
.ecosystem-chart__bar-item[data-type="heat"] i {
  background: linear-gradient(180deg, var(--eco-heat), rgba(255, 189, 89, 0.32));
  box-shadow: 0 0 8px rgba(255, 189, 89, 0.18);
}

.ecosystem-chart__bar-item[data-type="price-low"] i,
.ecosystem-chart__bar-item[data-type="compute"] i {
  background: linear-gradient(180deg, #b0ff72, rgba(176, 255, 114, 0.34));
  box-shadow: 0 0 10px rgba(176, 255, 114, 0.22);
}

.ecosystem-chart__bar-item[data-type="demand"] i {
  background: linear-gradient(180deg, var(--eco-data), rgba(53, 234, 211, 0.3));
}

.ecosystem-chart__bar-item[data-type="battery"] i {
  background: linear-gradient(180deg, var(--eco-cold), rgba(73, 221, 255, 0.3));
}

.ecosystem-chart__bar-item[data-type="ev"] i {
  background: linear-gradient(180deg, #a98bff, rgba(169, 139, 255, 0.3));
}

.ecosystem-chart__zero {
  fill: none;
  stroke: rgba(145, 224, 174, 0.09);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ecosystem-chart__area {
  fill: rgba(125, 240, 166, 0.08);
  stroke: none;
}

.ecosystem-chart__line {
  fill: none;
  stroke: var(--eco-green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ecosystem-chart__line--secondary {
  stroke: var(--eco-data);
  opacity: 0.66;
}

.ecosystem-chart__footer {
  display: flex;
  align-items: center;
  min-height: 8px;
  gap: 7px;
}

.ecosystem-chart__footer span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecosystem-chart__footer span:last-child {
  flex: 0 0 auto;
  color: var(--eco-text);
}

.ecosystem-chart__footer span:last-child {
  color: #bdd0c4;
}

.energy-ecosystem__toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 6px 10px;
  border: 0;
  background: transparent;
}

.energy-ecosystem__status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: min(100%, 540px);
  min-width: 340px;
  padding: 11px 15px;
  border: 1px solid rgba(99, 255, 145, 0.25);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(99, 255, 145, 0.11), rgba(9, 28, 18, 0.48));
}

.energy-ecosystem__status-copy,
.energy-ecosystem__status strong,
.energy-ecosystem__status small {
  display: block;
}

.energy-ecosystem__status-number {
  color: var(--eco-green);
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.energy-ecosystem__status-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--eco-green);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.energy-ecosystem__status strong {
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.energy-ecosystem__status small {
  margin-top: 2px;
  color: var(--eco-muted);
  font-size: 9px;
}

.energy-ecosystem__status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--eco-green);
  box-shadow: 0 0 0 4px rgba(99, 255, 145, 0.1);
  animation: ecosystem-status-pulse 2.4s ease-in-out infinite;
}

.energy-ecosystem__controls,
.energy-ecosystem__modes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.energy-ecosystem__modes,
.energy-ecosystem__pause {
  padding: 3px;
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.energy-ecosystem__modes button,
.energy-ecosystem__pause {
  min-height: 31px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--eco-muted);
  cursor: pointer;
  font-size: 9px;
}

.energy-ecosystem__modes button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
}

.energy-ecosystem__modes button[aria-pressed="true"] {
  background: var(--eco-green-soft);
  color: var(--eco-text);
}

.energy-ecosystem__modes i {
  position: relative;
  width: 18px;
  height: 7px;
  flex: 0 0 auto;
  background: transparent;
}

.energy-ecosystem__modes i::before,
.energy-ecosystem__modes i::after {
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  content: "";
  transform: translateY(-50%);
}

.energy-ecosystem__modes button[data-mode="energy"] i::before {
  height: 1px;
  border-radius: 999px;
  background: rgba(99, 255, 145, 0.45);
}

.energy-ecosystem__modes button[data-mode="energy"] i::after {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--eco-green) 0 7px, transparent 7px 13px);
}

.energy-ecosystem__modes button[data-mode="data"] i::before {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--eco-data) 0 2px, transparent 2px 6px);
}

.energy-ecosystem__modes button[data-mode="heat"] i::before {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 189, 89, 0.2);
}

.energy-ecosystem__modes button[data-mode="heat"] i::after {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--eco-heat) 0 9px, transparent 9px 14px);
}

.energy-ecosystem__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
}

.energy-ecosystem__pause:hover,
.energy-ecosystem__modes button:hover {
  color: var(--eco-text);
}

.energy-ecosystem__pause:disabled {
  color: var(--eco-muted);
  cursor: default;
  opacity: 0.72;
}

.energy-ecosystem__pause .neotree-icon {
  width: 13px;
  height: 13px;
}

.energy-ecosystem__network {
  position: relative;
  min-height: 680px;
  margin-top: 2px;
  border: 1px solid var(--eco-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 56%, rgba(61, 186, 102, 0.16), transparent 27%),
    radial-gradient(ellipse at 50% 20%, rgba(55, 153, 91, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(11, 28, 20, 0.96), rgba(5, 15, 10, 0.98));
  overflow: hidden;
}

.energy-ecosystem__network::before,
.energy-ecosystem__network::after {
  position: absolute;
  z-index: 0;
  width: 265px;
  height: 265px;
  border: 1px solid rgba(125, 240, 166, 0.06);
  border-radius: 50%;
  content: "";
}

.energy-ecosystem__network::before { left: calc(50% - 132px); top: calc(56% - 132px); }
.energy-ecosystem__network::after { left: calc(50% - 190px); top: calc(56% - 190px); width: 380px; height: 380px; border-style: dashed; }

.energy-ecosystem__connections {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ecosystem-connection {
  opacity: 0.48;
  transition: opacity 360ms ease;
}

.ecosystem-connection.is-live {
  opacity: 0.82;
}

.ecosystem-connection__base,
.ecosystem-connection__flow {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.ecosystem-connection__base {
  stroke: rgba(145, 224, 174, 0.17);
  stroke-width: 1;
  stroke-linecap: round;
}

.ecosystem-connection__flow {
  stroke-width: 2.15;
  stroke-linecap: round;
  opacity: 0;
}

.ecosystem-connection--energy .ecosystem-connection__flow {
  stroke: var(--eco-green);
  stroke-dasharray: 6 10;
  stroke-width: 2.3;
}

.ecosystem-connection--energy .ecosystem-connection__base {
  stroke: rgba(99, 255, 145, 0.27);
  stroke-width: 1.25;
}

.ecosystem-connection--data .ecosystem-connection__base {
  stroke: rgba(53, 234, 211, 0.24);
  stroke-dasharray: 1 7;
  stroke-width: 1.15;
}

.ecosystem-connection--data .ecosystem-connection__flow {
  stroke: var(--eco-data);
  stroke-dasharray: 1 7;
  stroke-width: 1.45;
  stroke-linecap: round;
}

.ecosystem-connection--heat .ecosystem-connection__base {
  stroke: rgba(255, 189, 89, 0.2);
  stroke-width: 3.5;
}

.ecosystem-connection--cold .ecosystem-connection__base {
  stroke: rgba(73, 221, 255, 0.18);
  stroke-width: 3.5;
}

.ecosystem-connection--heat .ecosystem-connection__flow {
  stroke: var(--eco-heat);
  stroke-dasharray: 10 3 1 2;
  stroke-width: 1.55;
  stroke-linecap: butt;
}

.ecosystem-connection--cold .ecosystem-connection__flow {
  stroke: var(--eco-cold);
  stroke-dasharray: 10 3 1 2;
  stroke-width: 1.55;
  stroke-linecap: butt;
}

.ecosystem-connection.is-live .ecosystem-connection__flow {
  opacity: 1;
}

.ecosystem-connection.is-live .ecosystem-connection__flow--forward {
  animation: ecosystem-flow-forward 2.8s linear infinite;
}

.ecosystem-connection--data.is-live .ecosystem-connection__flow--forward {
  animation-duration: 1.45s;
}

.ecosystem-connection--energy.is-live .ecosystem-connection__flow--forward {
  animation-duration: 2.6s;
}

.ecosystem-connection--heat.is-live .ecosystem-connection__flow--forward,
.ecosystem-connection--cold.is-live .ecosystem-connection__flow--forward {
  animation-duration: 4s;
}

.ecosystem-connection.is-live .ecosystem-connection__flow--reverse {
  opacity: 0.46;
  animation: ecosystem-flow-reverse 2.2s linear infinite;
}

.energy-ecosystem[data-flow-mode="energy"] .ecosystem-connection:not([data-type="energy"]),
.energy-ecosystem[data-flow-mode="data"] .ecosystem-connection:not([data-type="data"]),
.energy-ecosystem[data-flow-mode="heat"] .ecosystem-connection:not([data-type="heat"]):not([data-type="cold"]) {
  opacity: 0.045;
}

.energy-ecosystem__nodes {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.ecosystem-node,
.ecosystem-core {
  cursor: pointer;
  transition: border-color 260ms ease, background-color 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.ecosystem-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 150px;
  min-height: 102px;
  padding: 5px;
  border: 0;
  background: transparent;
  text-align: center;
  transform: translate(-50%, -50%);
}

.ecosystem-node--secondary {
  width: 138px;
  min-height: 91px;
  padding: 5px;
}

.ecosystem-node:hover,
.ecosystem-node:focus-visible,
.ecosystem-node.is-selected,
.ecosystem-node.is-scene-active {
  border-color: transparent;
}

.ecosystem-node:hover,
.ecosystem-node:focus-visible,
.ecosystem-node.is-selected {
  background: transparent;
  transform: translate(-50%, -50%) translateY(-4px) scale(1.04);
}

.ecosystem-node.is-scene-active {
  box-shadow: none;
}

.ecosystem-node__icon,
.ecosystem-core__icon {
  display: grid;
  place-items: center;
  color: var(--eco-green);
}

.ecosystem-node__icon {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 240, 166, 0.16), rgba(125, 240, 166, 0.035) 70%, transparent 72%);
  transition: transform 260ms ease, filter 260ms ease;
}

.ecosystem-node--secondary .ecosystem-node__icon { width: 52px; height: 52px; }
.ecosystem-node.is-scene-active .ecosystem-node__icon { filter: drop-shadow(0 0 12px rgba(125, 240, 166, 0.22)); transform: scale(1.08); }

.neotree-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.ecosystem-node--secondary .neotree-icon { width: 25px; height: 25px; }

.ecosystem-node__copy,
.ecosystem-node__copy strong,
.ecosystem-node__meta {
  display: block;
  min-width: 0;
}

.ecosystem-node__copy strong {
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.ecosystem-node__meta {
  margin-top: 3px;
  color: var(--eco-muted);
  font-size: 7px;
  line-height: 1.35;
}

.ecosystem-node__meta span:not(:last-child)::after {
  margin: 0 4px;
  color: rgba(125, 240, 166, 0.4);
  content: "·";
}

.ecosystem-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 178px;
  padding: 23px;
  border: 1px solid rgba(125, 240, 166, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #153a26, #0a2016 68%, #07150e);
  text-align: center;
  transform: translate(-50%, -50%);
}

.ecosystem-core > * { transform: none; }

.ecosystem-core:hover,
.ecosystem-core:focus-visible,
.ecosystem-core.is-selected {
  border-color: var(--eco-green);
  background: #102a1d;
}

.ecosystem-core__halo {
  position: absolute;
  z-index: -1;
  inset: -14px;
  border: 1px solid rgba(125, 240, 166, 0.13);
  border-radius: 50%;
  animation: ecosystem-core-pulse 3.6s ease-in-out infinite;
}

.ecosystem-core__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  border-radius: 13px;
  background: var(--eco-green-soft);
}

.ecosystem-core__icon .neotree-icon { width: 22px; height: 22px; }

.ecosystem-core strong {
  max-width: 140px;
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.ecosystem-core > span:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 8px;
  margin-top: 8px;
}

.ecosystem-core small {
  color: var(--eco-muted);
  font-size: 7px;
}

.energy-ecosystem.has-node-highlight .ecosystem-node:not(.is-selected),
.energy-ecosystem.has-node-highlight .ecosystem-core:not(.is-selected) {
  opacity: 0.38;
}

.energy-ecosystem.has-node-highlight .ecosystem-connection:not(.is-related) {
  opacity: 0.035;
}

.energy-ecosystem.has-node-highlight .ecosystem-connection.is-related {
  opacity: 1;
}

.energy-ecosystem.has-node-highlight .ecosystem-connection.is-related .ecosystem-connection__flow {
  opacity: 1;
}

.energy-ecosystem__detail {
  display: grid;
  grid-template-columns: auto minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 13px 20px;
  min-height: 72px;
  margin-top: 12px;
  padding: 13px 17px;
  border: 1px solid var(--eco-line);
  border-radius: 18px;
  background: rgba(10, 27, 19, 0.68);
}

.energy-ecosystem__detail span {
  color: var(--eco-green);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.energy-ecosystem__detail strong {
  font-family: var(--font-space-grotesk), var(--font-manrope), sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.energy-ecosystem__detail p {
  margin: 0;
  color: var(--eco-muted);
  font-size: 10px;
}

.energy-ecosystem__steps {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}

.energy-ecosystem__steps button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #597063;
  cursor: pointer;
  font-size: 8px;
}

.energy-ecosystem__steps button[aria-pressed="true"] {
  border-color: var(--eco-line);
  background: var(--eco-green-soft);
  color: var(--eco-green);
}

.energy-ecosystem.is-paused .ecosystem-connection__flow,
.energy-ecosystem.is-paused .ecosystem-core__halo,
.energy-ecosystem.is-paused .energy-ecosystem__status-dot {
  animation-play-state: paused;
}

@keyframes ecosystem-flow-forward { to { stroke-dashoffset: -64; } }
@keyframes ecosystem-flow-reverse { to { stroke-dashoffset: 64; } }
@keyframes ecosystem-status-pulse { 50% { opacity: 0.52; } }
@keyframes ecosystem-core-pulse { 50% { opacity: 0.36; transform: scale(1.055); } }

@media (max-width: 980px) {
  .ecosystem-node { width: 142px; }
  .ecosystem-node--secondary { width: 128px; }
  .ecosystem-core { width: 170px; height: 170px; }
  .energy-ecosystem__network { min-height: 570px; }
  .energy-ecosystem__detail { grid-template-columns: auto minmax(140px, 190px) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .energy-ecosystem__charts {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 26px;
    padding: 0;
    overflow: visible;
    transform: none;
  }

  .ecosystem-chart {
    width: 100%;
    padding: 13px 14px 10px;
  }

  .ecosystem-chart__header strong { font-size: 12px; }
  .ecosystem-chart__header div > span,
  .ecosystem-chart__footer { font-size: 10px; }
  .ecosystem-chart__tag { font-size: 8px; }
  .ecosystem-chart__bars { height: 58px; margin-bottom: 15px; }
  .ecosystem-chart__bar-item small { bottom: -13px; font-size: 8px; }

  .energy-ecosystem__toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 5px 0 14px;
  }

  .energy-ecosystem__status {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
  }

  .energy-ecosystem__status-kicker { font-size: 9px; }
  .energy-ecosystem__status strong { font-size: 15px; line-height: 1.35; }
  .energy-ecosystem__status small { margin-top: 4px; font-size: 11px; line-height: 1.45; }

  .energy-ecosystem__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .energy-ecosystem__modes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .energy-ecosystem__modes button,
  .energy-ecosystem__pause {
    min-height: 44px;
    font-size: 10px;
  }

  .energy-ecosystem__modes button {
    justify-content: center;
    padding: 7px 6px;
  }

  .energy-ecosystem__pause {
    width: auto;
    min-width: 112px;
    padding: 0 12px;
  }

  .energy-ecosystem__network {
    min-height: 0;
    padding: 18px 14px 22px;
    border-radius: 24px;
    overflow: hidden;
  }

  .energy-ecosystem__network::before,
  .energy-ecosystem__network::after { display: none; }

  .energy-ecosystem__connections { display: block; }

  .ecosystem-connection { opacity: 0.06; }
  .ecosystem-connection.is-live { opacity: 0.3; }
  .ecosystem-connection--data.is-live { opacity: 0.2; }
  .ecosystem-connection--energy.is-live,
  .ecosystem-connection--heat.is-live,
  .ecosystem-connection--cold.is-live { opacity: 0.72; }

  .energy-ecosystem[data-flow-mode="data"] .ecosystem-connection--data,
  .energy-ecosystem[data-flow-mode="energy"] .ecosystem-connection--energy,
  .energy-ecosystem[data-flow-mode="heat"] .ecosystem-connection--heat,
  .energy-ecosystem[data-flow-mode="heat"] .ecosystem-connection--cold { opacity: 0.9; }

  .ecosystem-core {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 250px);
    height: auto;
    min-height: 166px;
    margin: 0 auto 28px;
    border-radius: 30px;
    transform: none;
  }

  .ecosystem-core > * { transform: none; }
  .ecosystem-core strong { font-size: 15px; }
  .ecosystem-core small { font-size: 9px; }

  .energy-ecosystem__nodes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ecosystem-node,
  .ecosystem-node--secondary {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 118px;
    padding: 13px;
    border: 1px solid rgba(125, 240, 166, 0.13);
    border-radius: 18px;
    background: rgba(7, 20, 13, 0.9);
    overflow: hidden;
    transform: none;
  }

  .ecosystem-node__icon,
  .ecosystem-node--secondary .ecosystem-node__icon {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
  }

  .ecosystem-node .neotree-icon,
  .ecosystem-node--secondary .neotree-icon { width: 27px; height: 27px; }
  .ecosystem-node__copy strong { font-size: 13px; }
  .ecosystem-node__meta { font-size: 10px; line-height: 1.45; }

  .ecosystem-node.is-selected {
    border-color: rgba(99, 255, 145, 0.58);
    background: rgba(13, 39, 24, 0.96);
    box-shadow: inset 0 0 0 1px rgba(99, 255, 145, 0.1), 0 0 22px rgba(99, 255, 145, 0.08);
  }

  .ecosystem-node::after {
    position: absolute;
    left: -35%;
    bottom: 0;
    width: 30%;
    height: 2px;
    background: var(--eco-green);
    opacity: 0;
    content: "";
  }

  .ecosystem-node.is-scene-active::after {
    opacity: 0.8;
    animation: ecosystem-mobile-flow 3s linear infinite;
  }

  .ecosystem-node:hover,
  .ecosystem-node:focus-visible,
  .ecosystem-node.is-selected { transform: translateY(-2px); }

  .energy-ecosystem.has-node-highlight .ecosystem-node:not(.is-selected),
  .energy-ecosystem.has-node-highlight .ecosystem-core:not(.is-selected) { opacity: 0.62; }

  .energy-ecosystem__detail {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 15px 16px;
  }

  .energy-ecosystem__detail span { font-size: 9px; }
  .energy-ecosystem__detail strong { font-size: 13px; }
  .energy-ecosystem__detail p { font-size: 11px; line-height: 1.5; }

  .energy-ecosystem__steps {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .energy-ecosystem__steps button {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 10px;
  }

  @keyframes ecosystem-mobile-flow { to { left: 110%; } }
}

@media (min-width: 641px) and (max-width: 900px) {
  .energy-ecosystem__charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ecosystem-chart { padding: 10px 11px 8px; }
  .ecosystem-chart__header strong { font-size: 10px; }
  .ecosystem-chart__header div > span,
  .ecosystem-chart__footer { font-size: 8px; }
  .ecosystem-chart__tag { font-size: 7px; }
  .ecosystem-chart__bar-item small { font-size: 6px; }
}

@media (max-width: 520px) {
  .energy-ecosystem__status { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .energy-ecosystem__status-number { font-size: 26px; }

  .energy-ecosystem__modes button {
    flex-direction: column;
    gap: 2px;
    padding-inline: 3px;
    font-size: 9px;
  }

  .energy-ecosystem__controls { grid-template-columns: minmax(0, 1fr) 44px; }
  .energy-ecosystem__pause { width: 44px; min-width: 44px; padding: 0; }

  .energy-ecosystem__network { padding: 14px 10px 18px; }
  .energy-ecosystem__nodes { grid-template-columns: 1fr; gap: 8px; }

  .ecosystem-node,
  .ecosystem-node--secondary {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 11px 13px;
    text-align: left;
  }

  .ecosystem-node__copy { flex: 1 1 auto; }
  .ecosystem-node__meta { margin-top: 4px; }

  .energy-ecosystem__pause [data-pause-label] { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; }
  .ecosystem-node__copy strong { white-space: normal; }
}

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

  .ecosystem-connection.is-live .ecosystem-connection__flow { opacity: 0.72; }
}
