#energy-stage {
  --ems-surface:#f9fbfc;
  --ems-line:#d5e0e7;
  --ems-power:#196b9e;
  --ems-store:#357d6c;
  --ems-ink:#182f40;
  color:var(--ems-ink);
}
.energy-mode #flow-strip,
.energy-mode #scene-focus,
.energy-mode .station-summary > :not(.station-switch),
.energy-mode:not(.energy-settings) #scenario-panel {display:none}
.energy-mode .station-summary {
  width:auto; max-width:calc(100% - 36px); padding:0; background:transparent; box-shadow:none;
}
.energy-mode .station-switch {margin:0; flex-direction:row; border-radius:8px}
.energy-mode .station-switch button {padding:7px 10px; border:none}
.energy-mode .station-switch b {display:none}
.ems-story,.ems-technical {
  background:var(--ems-surface); border:1px solid var(--ems-line);
  box-shadow:0 8px 24px #071f3829; border-radius:12px;
}
.ems-story {
  position:absolute; bottom:62px; left:28px; width:min(500px,calc(100% - 56px));
  padding:16px 18px;
}
.ems-top,.ems-tech-title {display:flex;align-items:center;justify-content:space-between;gap:12px}
.ems-top h2 {font-size:22px; line-height:1.12}
.ems-tag {display:block; color:#48677a; font-size:11px; margin-bottom:4px}
.ems-clock {font:500 22px ui-monospace,Consolas,monospace; color:var(--ems-power)}
.ems-metrics {
  display:grid; grid-template-columns:1.25fr 1.15fr .75fr; gap:10px;
  margin-top:13px; padding:10px 0; border-block:1px solid var(--ems-line);
}
.ems-metrics span {display:block; font-size:11px; color:#496476}
.ems-metrics strong {font-size:22px; letter-spacing:-.04em}
.ems-metrics small {margin-left:4px; color:#496476; font-size:10px; white-space:nowrap}
#ems-explanation {font-size:12px;line-height:1.5;margin:10px 0 12px}
.ems-actions {display:flex;flex-wrap:wrap;gap:6px}
.ems-actions button {padding:8px 10px}
.ems-actions [aria-expanded="true"] {background:#dfeef6; border-color:#82adca}
.ems-trend {height:34px; width:100%; display:block; overflow:visible}
.ems-trend path {stroke:var(--ems-store);stroke-width:2; fill:none}
.ems-trend circle {fill:var(--ems-store);stroke:#fff;stroke-width:1}
.ems-trend line {stroke:#ac782c;stroke-width:1;stroke-dasharray:4 4}
#ems-island-line {stroke:#8497a3}
#ems-seek {width:100%;accent-color:var(--ems-power);margin:4px 0 0}
.ems-ticks {display:flex;justify-content:space-between;font:10px ui-monospace,Consolas,monospace;color:#48677a;margin:0 0 10px}
.ems-technical {
  position:absolute; right:25px; top:78px; bottom:auto; width:380px;
  max-height:calc(100% - 133px); overflow:auto; padding:13px 15px; z-index:3;
}
.ems-tech-title {position:relative;padding-right:24px}
.ems-tech-title h2 {font-size:17px}
.ems-tech-title .close-button {right:0;top:0}
.ems-status {font-size:11px; color:#48677a;margin:6px 0 8px}
#ems-singleline {display:block;width:100%;height:auto; background:#f0f5f8; border-radius:8px}
#ems-singleline .ems-unit rect {fill:#fff;stroke:var(--ems-line)}
#ems-singleline text {fill:var(--ems-ink);stroke:none;font-size:11px;text-anchor:middle}
#ems-singleline .meter {font:600 11px ui-monospace,Consolas,monospace}
#ems-singleline [data-line] {stroke:#a9b9c4;stroke-width:1.5}
#ems-singleline [data-line].live {stroke:var(--ems-power);stroke-width:2.4}
#ems-singleline [data-line="battery"].live,#ems-singleline [data-line="pv"].live {stroke:var(--ems-store)}
#ems-singleline .ems-bus {stroke:var(--ems-ink);stroke-width:3}
#ems-singleline #ems-grid-open {stroke:#9f6b27;stroke-width:1.5}
.ems-details {font-size:11px;margin:8px 0 10px}
.ems-details div {display:flex;justify-content:space-between;gap:8px;padding:3px 0}
.ems-details dd {margin:0;font-variant-numeric:tabular-nums}
@media(max-width:1100px) and (min-width:901px) {
  .energy-mode .scene-toolbar {top:63px}
  .energy-mode .station-summary {top:14px}
  .ems-technical {top:113px; width:340px}
  .ems-story {width:min(460px,53vw)}
}
@media(max-width:900px) {
  .energy-mode {overflow:auto}
  .energy-mode #experience {height:auto;padding-top:55vh;padding-bottom:54px;min-height:0}
  .energy-mode #viewport {height:55vh;min-height:0;bottom:auto}
  .energy-mode .scene-toolbar {top:calc(55vh - 46px);left:14px;right:14px;transform:none;overflow:auto;justify-content:flex-start}
  .energy-mode .scene-toolbar button {flex:none}
  .energy-mode .station-summary {left:14px;top:14px}
  .energy-mode #scenario-panel,.energy-mode .ems-story,.energy-mode .ems-technical {
    position:relative;left:auto;right:auto;top:auto;bottom:auto;margin:10px auto;
    width:calc(100% - 28px);max-height:none;
  }
  .energy-mode.energy-settings #scenario-panel {display:block}
  .energy-mode .ems-technical {max-width:540px}
}

