:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#11243d;background:#f9fcff;color-scheme:light}*{box-sizing:border-box}body{margin:0}main{max-width:1200px;margin:auto;padding:32px 34px 25px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#2563eb}header h1{font-size:30px;letter-spacing:-.04em;margin:14px 0 10px}p{line-height:1.65}.intro,footer{color:#62758c;font-size:13px}nav{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0 15px}button{font:inherit;font-size:12px;min-height:44px;padding:11px 16px;border:1px solid #cbddee;border-radius:8px;background:white;color:#416283;cursor:pointer}button:hover{border-color:#2563eb}button[aria-pressed=true]{background:#2563eb;border-color:#2563eb;color:white}button:focus-visible{outline:3px solid #8ab5ff;outline-offset:3px}.diagram{background:linear-gradient(135deg,#f1f7ff,#fff);border:1px solid #d6e4f3;border-radius:15px;overflow:hidden}svg{display:block;width:100%;height:auto}.node rect{fill:white;stroke:#c3d7ed;stroke-width:1.3}.inverter>rect{fill:#eaf2ff;stroke:#6b9eea}.symbol{fill:none;stroke:#2460a9;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.symbol rect{fill:none;stroke:#2460a9;stroke-width:2}.node-label{font-size:16px;font-weight:700;fill:#122a47}.node-value{font-size:17px;fill:#2563eb;font-weight:700}.rating{font-size:11px;fill:#62758c}.wires path{fill:none;stroke:#d3dfeb;stroke-width:3;stroke-linejoin:round}.wires path.active{stroke:#2563eb;stroke-dasharray:9 6;marker-end:url(#arrow);animation:flow 1.1s linear infinite}.wires path.reverse{marker-end:none;marker-start:url(#arrow);animation-direction:reverse}.wires path.outage{stroke:#c67b63;stroke-dasharray:3 7}.wire-label{font-size:12px;fill:#57738e}.summary{display:grid;grid-template-columns:1fr 200px;gap:25px;padding:24px 0 8px}.summary h2{font-size:21px;margin:9px 0}.summary p{font-size:13px;color:#516983;margin:0}.storage{padding:15px 18px;border-left:1px solid #cedfee;display:flex;flex-direction:column;gap:8px;font-size:11px;color:#62758c}.storage strong{font-size:19px;color:#2563eb}footer{font-size:10px;line-height:1.7;border-top:1px solid #dce7f3;padding-top:17px;margin-top:15px}@keyframes flow{to{stroke-dashoffset:-30}}@media(max-width:600px){main{padding:22px 15px}header h1{font-size:25px}nav{gap:7px}button{flex:1 1 44%;font-size:11px;padding:10px 8px}.diagram svg{width:690px;max-width:none}.diagram{overflow-x:auto}.summary{grid-template-columns:1fr;gap:16px}.storage{border-left:0;border-top:1px solid #cedfee;padding:15px 0}.intro{font-size:12px}}@media(prefers-reduced-motion:reduce){.wires path.active{animation:none}}html[data-visible=false] .wires path.active{animation-play-state:paused}

/* Public diagram readability. */
.intro,.summary p{font-size:16px;line-height:1.75}nav button{font-size:14px;line-height:1.5}.eyebrow,.storage span,footer{font-size:13px}.node-label{font-size:20px}.node-value{font-size:22px}.rating{font-size:15px}.wire-label{font-size:16px}@media(max-width:600px){.intro,.summary p{font-size:15px}nav button{font-size:13px}}

/* The compact layout keeps all five devices and their labels in view on phones. */
@media (max-width: 600px) {
  .diagram[data-layout="compact"] { overflow: hidden; }
  .diagram[data-layout="compact"] svg { width: 100%; max-width: 100%; }
  .diagram[data-layout="compact"] .node-label { font-size: 22px; }
  .diagram[data-layout="compact"] .node-value { font-size: 24px; }
  .diagram[data-layout="compact"] .rating { font-size: 16px; }
  .diagram[data-layout="compact"] .wire-label { font-size: 17px; }
}
