@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{--ink:#102936;--muted:#647881;--bg:#f0f3f2;--line:#dce5e5;--navy:#103e4b;--accent:#0c887d;--red:#bd3e43}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button,select{cursor:pointer}button{color:var(--ink);border:1px solid #cfdddd;border-radius:7px;background:#fff;padding:10px 13px;font-weight:600;min-height:40px}button:hover{border-color:#368a8c;background:#f0faf8}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #e4aa25;outline-offset:3px}button.active{background:var(--navy);color:white;border-color:var(--navy)}header{height:64px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fafcfb}.back{color:#194855;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;min-height:44px}.back:focus-visible{outline:3px solid #167969;outline-offset:4px;border-radius:3px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#71848a}header>.eyebrow{margin-left:auto;margin-right:35px}.quiet{background:transparent;font-size:12px;border:0;padding:7px}main{max-width:1720px;margin:auto;padding:28px 3% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}h1{font-family:Manrope,system-ui;font-size:clamp(25px,2.4vw,38px);letter-spacing:-1.5px;line-height:1.2;margin:0;font-weight:800}h1 span{color:#18a291}.phone{display:none}.intro p{color:#70838a;margin:10px 0 0;font-size:14px}.architecture{font-size:10px;letter-spacing:1.8px;line-height:1.8;color:#5f7982}.dashboard{display:grid;grid-template-columns:repeat(5,1fr);background:#102d39;border-radius:12px;margin-bottom:22px;color:#eafff9;padding:20px 10px;box-shadow:0 10px 30px #1539450a}.dashboard>div{padding:0 20px;border-right:1px solid #33505b;display:flex;flex-direction:column;gap:6px}.dashboard>div:last-child{border:0}.dashboard span{font-size:9px;letter-spacing:1.8px;color:#98b9bf;font-weight:700}.dashboard strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.8px}.dashboard small{font-size:11px;color:#9fbdc2;letter-spacing:0;font-weight:500}.dashboard em{font-style:normal;font-size:10px;color:#b2d5cc;white-space:nowrap}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:20px;align-items:start}.diagramCard{border:1px solid #dae4e4;border-radius:12px;background:#fff;overflow:hidden;position:sticky;top:10px}.diagramToolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e6eded}.diagramToolbar b{display:block;font-size:13px}.diagramToolbar span{font-size:10px;color:#71888f}.zoom{display:flex;gap:5px}.zoom button{min-height:30px;font-size:12px;padding:5px 10px}#diagramViewport{height:min(77vh,1050px);overflow:auto;overscroll-behavior:contain;background:radial-gradient(#e2e9e9 .7px,transparent .7px) 0 0/14px 14px}#systemMap{display:block;width:100%;min-width:600px;height:auto;font-family:'DM Sans',system-ui;touch-action:pan-x pan-y}.legend{padding:12px 15px;display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #e7eded;font-size:9px;color:#66808a}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:18px;height:3px;background:#aaa}.legend .fuel{height:5px;background:#82c6ed;border:1px solid #467b9e}.legend .shaft{background:#77939c}.legend .electric{background:#db8b23}.legend .vac{background:#3599b6}.legend .spark{background:#9872b6}.redkey{color:#b55258}aside{display:flex;flex-direction:column;gap:15px}.panel{border:1px solid #dbe5e5;border-radius:12px;background:#fff;padding:18px}.panelTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.panelTitle h2{font-size:14px;margin:0}.panelTitle #clock{font:11px monospace;color:#667c84}.resetRow,.runRow{display:flex;gap:7px;margin-bottom:10px}.resetRow button{flex:1;font-size:11px;padding:9px}.runRow{align-items:center;justify-content:space-between;margin-bottom:17px}.runRow>button{font-size:11px;min-height:34px}.runRow label{font-size:10px;color:#6b828a}.runRow select{border:1px solid #cfdddd;border-radius:5px;margin-left:5px;padding:7px;background:#f5f8f7;font-size:11px}.hint{font-size:11px;line-height:1.5;color:#7a8c92;padding-top:12px;border-top:1px solid #e7eeee}.control{margin:13px 0}.control>label,.control>.controlLabel{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;color:#54707b;margin-bottom:8px}.control input[type=range]{width:100%;accent-color:#128a81;cursor:pointer}.segmented{display:flex;gap:4px}.segmented button{font-size:10px;padding:8px 4px;min-height:38px;flex:1}.switches{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.switches button{font-size:10px;min-height:49px;display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center}.switches button span{font-size:9px;font-weight:500}.start{background:#fff4d8!important;border-color:#e5c270!important;color:#7b5d1d!important}.start.active{background:#e9b950!important}.inspector{border-top:3px solid #288d8a}.inspector h2{font-family:Manrope;font-size:21px;letter-spacing:-.5px;margin:7px 0}.inspector .statusLine{color:#557b71;font-size:12px;line-height:1.5;min-height:36px}.inspector .systemTag{font-size:9px;text-transform:uppercase;letter-spacing:2px;color:#7b969d}.faultBox{margin-top:18px;border-top:1px solid #e6eded;padding-top:15px}.faultBox label{display:block;font-size:10px;font-weight:800;letter-spacing:1px;margin-bottom:8px;color:#976068}.faultBox select{display:block;width:100%;padding:10px 6px;background:#fff;border:1px solid #ded3d6;border-radius:6px;font-size:11px}.faultBox button{margin-top:9px;width:100%;background:#fff0f0;border-color:#d69397;color:#a33a42;font-size:12px}.faultBox button.repair{background:#eef9f6;border-color:#94c6ba;color:#267363}.componentNote{font-size:11px;color:#71858a;line-height:1.65;margin-bottom:0}.liveValues{padding:10px 12px;border-radius:6px;background:#f2f7f6;font:12px monospace;line-height:1.7;margin:12px 0}.panelTitle #closeInspector{padding:0;width:28px;min-height:28px;border:0;font-size:22px;color:#769099}.eventPanel ol{list-style:none;margin:0;padding:0;max-height:185px;overflow:auto}.eventPanel li{font-size:11px;color:#72868d;line-height:1.5;padding:7px 0;border-top:1px solid #edf1f1}.eventPanel time{font:10px monospace;color:#92a6ab;margin-right:8px}.lesson{display:grid;grid-template-columns:1.2fr 1fr;gap:65px;padding:45px 15px;margin-top:10px}.lesson h2{font-size:24px;font-family:Manrope;letter-spacing:-.6px}.lesson p{font-size:13px;color:#758a92;line-height:1.85;max-width:650px}.scenarios{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scenarios button{text-align:left;background:#f9fcfb;font-size:12px;line-height:1.6;padding:14px}.scenarios span{display:block;font-size:10px;color:#83959a;font-weight:400}footer{font-size:10px;line-height:1.7;color:#8b9ea4;border-top:1px solid #dce6e6;padding:20px 0 26px;text-align:center}dialog{border:1px solid #d2e3e2;box-shadow:0 20px 90px #122a3f40;border-radius:14px;width:min(700px,94vw);padding:35px;color:var(--ink);max-height:85vh}dialog::backdrop{background:#14344170;backdrop-filter:blur(4px)}dialog h2{font-family:Manrope;font-size:25px}dialog p,dialog li{font-size:12px;line-height:1.8;color:#637b85}dialog li{margin-bottom:9px}dialog a{color:#237f80}.dialogClose{position:absolute;right:15px;top:10px;border:0;font-size:22px}svg .component{cursor:pointer;outline:none}svg .component:focus .hit,svg .component.selected .hit{stroke:#148980;stroke-width:3;fill:#d5f2ec33}svg .hit{fill:transparent;stroke:transparent;stroke-width:2}svg .name{font-size:14px;font-weight:700;fill:#27434e}svg .micro{font-size:10px;fill:#7a9198}svg .value{font-size:11px;fill:#3c847d;font-weight:600}svg .sectionLabel{font-size:10px;font-weight:800;letter-spacing:2px;fill:#b2bdc0}svg .faultTint{fill:#e43f4b;opacity:0;pointer-events:none}svg .component.failed .faultTint{opacity:.24}svg .component.downstream .faultTint{opacity:.11;fill:url(#lostHatch)}svg .component.failed .name{fill:#a43740}svg .statusBadge{font-size:8px;fill:#b3464b;font-weight:800;letter-spacing:.7px}svg .path{fill:none;stroke-linejoin:round;stroke-linecap:round}svg .flow{stroke-dasharray:6 11;animation:flow 1.4s linear infinite;pointer-events:none}svg .inactive{opacity:.23}svg .wireLabel{font-size:9px;fill:#a47d3e}svg .breaker{cursor:pointer}svg .breaker:focus{outline:none}svg .breaker text{font-size:9px;fill:#7a8584}svg .breaker.open .breakerSymbol{stroke:#c75660;fill:#fff1f2}svg .breakerSymbol{fill:#fff;stroke:#768c90;stroke-width:2}svg .component.downstream .hardware{opacity:.65}@keyframes flow{to{stroke-dashoffset:-34}}@media(prefers-reduced-motion:reduce){svg .flow{animation:none}}@media(max-width:1050px){.workbench{grid-template-columns:minmax(0,1fr) 290px;gap:13px}.panel{padding:14px}.architecture{display:none}.dashboard>div{padding:0 13px}.dashboard strong{font-size:23px}.dashboard em{font-size:9px}.legend{gap:9px}main{padding:22px 2% 0}.lesson{gap:20px}}@media(max-width:760px){header{height:52px;padding:0 5%}header>.eyebrow{display:none}.intro{margin-bottom:17px}.intro p{font-size:12px;line-height:1.6;margin-top:9px}.phone{display:block}main{padding:20px 4% 0}h1{font-size:29px}.dashboard{padding:12px 4px;margin-bottom:14px;grid-template-columns:repeat(3,1fr);gap:13px 0}.dashboard>div{padding:0 10px}.dashboard>div:nth-child(3){border:0}.dashboard>div:nth-child(n+4){display:none}.dashboard strong{font-size:22px}.dashboard em{font-size:8px}.dashboard span{font-size:8px;letter-spacing:1.2px}.workbench{display:flex;flex-direction:column;gap:14px}.diagramCard{width:100%;position:sticky;top:0;z-index:5;box-shadow:0 5px 15px #102e3620;border-radius:9px}#diagramViewport{height:43vh;min-height:285px;max-height:520px}.diagramToolbar{padding:9px 11px}.diagramToolbar b{font-size:12px}.diagramToolbar span{font-size:9px}.legend{padding:8px 9px;font-size:8px;gap:7px}.legend i{width:12px}.legend .redkey{display:none}#systemMap{min-width:690px}aside{width:100%}.simulation{padding:17px}.panel{border-radius:9px}.resetRow button{font-size:12px}.inspector{scroll-margin-top:calc(43vh + 108px)}.inspector .segmented button{font-size:11px;min-height:44px}.faultBox select{font-size:13px;padding:13px}.faultBox button{min-height:46px}.componentNote{font-size:12px}.lesson{display:block;padding:25px 0}.lesson h2{font-size:22px}.scenarios{margin-top:20px}.scenarios button{font-size:11px}.runRow label{font-size:11px}.switches button{min-height:52px;font-size:11px}.segmented button{font-size:11px}.eventPanel{display:none}dialog{padding:26px 20px}dialog li,dialog p{font-size:12px}}

svg .inactive .flow{display:none}svg .component:hover .hit{stroke:#82b7b1;stroke-width:2}
.inspector{order:-1;max-height:82vh;overflow:auto}.inspector[hidden]{display:none}@media(max-width:760px){.inspector{max-height:none;overflow:visible}}
@media(max-width:760px){.inspector{position:fixed;bottom:8px;left:4%;right:4%;width:auto;max-height:calc(57vh - 95px);min-height:170px;overflow:auto;z-index:9;box-shadow:0 -8px 40px #0c33422b;background:#fff}.inspector .panelTitle{margin-bottom:6px}.inspector h2{font-size:19px}.inspector .liveValues{padding:7px 9px;margin:7px 0}.inspector .statusLine{min-height:0}.inspector .componentNote{font-size:11px}}
.inspector>.panelTitle{position:sticky;top:-18px;background:#fff;z-index:3;padding:8px 0}@media(max-width:760px){.inspector>.panelTitle{top:-14px}}

/* Prevent iOS text selection/callout only on the momentary START control. */
button[data-start],button[data-start] *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;touch-action:none}button[data-start]{-webkit-tap-highlight-color:transparent;cursor:pointer}button[data-start][aria-pressed="true"]{background:#e9b950!important;box-shadow:inset 0 2px 6px #906a2d33}
/* Knock out a small white halo so labels remain legible where a vertical feed passes behind. */
svg .name,svg .value{paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}

@media(max-width:760px){.component-open #diagramViewport{height:43vh;min-height:120px}.component-open .diagramCard .legend{display:none}.component-open .inspector{min-height:120px}}

/* Physical P-leads stay readable in BOTH. Grounding state is not electrical-bus flow. */
svg .p-lead-wire{opacity:1}svg .p-lead-cable{opacity:1;stroke:#6e4b91;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
svg .p-lead-wire.grounded .p-lead-cable{stroke:#38214f;stroke-width:5}
svg .p-lead-wire.broken .p-lead-cable{stroke:#b62f43;stroke-dasharray:7 6}
svg .p-lead-wire.shorted .p-lead-cable{stroke:#b62f43;stroke-width:5}
svg .p-lead-status{fill:#6e4b91;font-size:10px;font-weight:800}
svg .p-lead-status.grounded{fill:#38214f}svg .p-lead-status.broken,svg .p-lead-status.shorted{fill:#b62f43}
svg .component.failed .p-lead-terminal{stroke:#b62f43}

/* 100LL-inspired light-blue fuel, with a darker edge for diagram contrast. */
svg .fuel-path>.path:not(.flow){stroke:#467b9e;opacity:.8}svg .fuel-path>.flow{stroke:#82c6ed}
