*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#dce5f2;background:#101722}body{display:flex;flex-direction:column}button,input,summary{font:inherit}button{cursor:pointer}header{height:86px;flex-shrink:0;display:flex;align-items:center;gap:36px;padding:0 32px;border-bottom:1px solid #293242;background:#141d2a}.brand{display:flex;align-items:center;gap:16px}.brand>b{font-size:29px;letter-spacing:-2px;color:#eef3fa}.brand>b span{color:#d8614d;font-weight:400}.brand div{display:grid;gap:5px}.brand strong{font-size:10px;letter-spacing:2px}.brand small,.doc span{font-size:10px;color:#8191a8}.doc{display:grid;gap:6px;padding-left:30px;border-left:1px solid #344051}.doc strong{font-size:12px;font-weight:550}.source-button{margin-left:auto;padding:11px 15px;border-radius:6px;border:1px solid #435268;background:#1b283a;color:#dee7f4;font-size:11px}.source-button span{margin-left:20px;color:#9ab5dc}main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 318px}.viewport{min-width:0;display:flex;flex-direction:column;position:relative}.stage-top{position:absolute;z-index:2;top:25px;left:30px;right:24px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:650;color:#8da3c1}h1{font-size:24px;letter-spacing:-.7px;margin:9px 0 0;font-weight:550}.views{display:flex;padding:4px;border:1px solid #354357;border-radius:7px;background:#141e2ae8;pointer-events:auto}.views button{padding:9px 12px;font-size:10px;border:0;color:#8597b0;background:transparent;border-radius:4px}.views button.active{background:#304057;color:#f2f6fc}#stage{position:relative;flex:1;min-height:430px;overflow:hidden;background:radial-gradient(ellipse at 45% 40%,#27374a,#152130 70%,#111c29)}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#152130;font-size:13px;color:#90a3bf}#loading[hidden]{display:none}#labels{position:absolute;inset:0;pointer-events:none}.label{position:absolute;padding:6px 9px;border:1px solid #67788c55;border-left:2px solid var(--color);border-radius:3px;background:#142131df;color:#d5dfec;font-size:9px;font-weight:500;white-space:nowrap;box-shadow:0 4px 12px #0002;transform:translate(-50%,-50%)}.label:before{content:"";width:4px;height:4px;display:inline-block;background:var(--color);border-radius:50%;margin-right:6px}.stage-bottom{height:44px;display:flex;align-items:center;gap:24px;padding:0 25px;border-top:1px solid #2c394a;color:#8295ae;font-size:9px;background:#131f2d}.stage-bottom i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#5bb1a0;margin-right:5px}.stage-bottom>span:nth-child(2){margin:auto}.stage-bottom button{border:0;background:none;color:#bbcee7;font-size:10px;white-space:nowrap}aside{overflow:auto;border-left:1px solid #2d394b;background:#172230;padding:28px 23px 20px}.panel-intro h2{font-size:25px;font-weight:500;line-height:1.2;letter-spacing:-.6px;margin:12px 0}.panel-intro p,.selection p,.criteria p{font-size:11px;line-height:1.7;color:#93a5bc;margin:0}.legend{margin:25px 0 22px;display:grid;gap:5px}.legend button{display:flex;align-items:center;gap:9px;text-align:left;padding:12px 9px;background:none;color:#94a7c0;border:1px solid transparent;border-radius:5px;font-size:10px}.legend button i{width:7px;height:7px;border-radius:2px;background:var(--c);flex-shrink:0}.legend button span{margin-left:auto;color:#68819e}.legend button.active{border-color:#465b76;background:#24354b;color:#e1eafa}.legend button:hover{background:#253449}.selection{border-top:1px solid #324054;padding:18px 0;min-height:136px}.selection h3{font-size:14px;font-weight:550;margin:10px 0}.selection .node-id{font-size:9px;letter-spacing:1px;color:#6f8bab;margin-top:10px}.toggles{border-top:1px solid #324054;padding-top:16px;display:grid;gap:13px;font-size:10px;color:#a6b7cb}.toggles label{display:flex;align-items:center;gap:8px;cursor:pointer}.toggles input{accent-color:#6f9eaf;width:13px;height:13px;margin:0}.criteria{margin-top:22px;border-top:1px solid #324054;padding-top:17px}.criteria summary{font-size:11px;cursor:pointer;color:#b8c6d8}.criteria p{margin-top:13px;font-size:10px}.criteria #audit-result{margin-top:13px;font-size:10px;color:#7dbda8;line-height:1.6}footer{height:34px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-top:1px solid #2d394b;background:#101a26;color:#617995;font-size:8px;letter-spacing:.3px}footer strong{font-weight:500;color:#92a5be}dialog{width:92vw;max-width:1600px;height:86vh;padding:0;border:1px solid #5c6d82;background:#e7ebef;border-radius:10px;color:#1d2b3d}dialog::backdrop{background:#040b16cc;backdrop-filter:blur(5px)}.dialog-bar{height:70px;background:#182536;color:#e1e9f2;display:flex;align-items:center;padding:0 24px;justify-content:space-between}.dialog-bar>div{display:grid;gap:6px}.dialog-bar strong{font-size:15px;font-weight:550}.dialog-bar small{font-size:10px;color:#95aac3}.dialog-bar button{border:1px solid #4b5e75;border-radius:50%;width:32px;height:32px;background:transparent;color:#fff;font-size:22px}.source-canvas{height:calc(100% - 70px);overflow:auto;background:white;padding:16px}.source-canvas img{display:block;width:100%;height:auto}#tip{position:absolute;z-index:4;padding:7px 10px;pointer-events:none;background:#eef4fc;color:#15263b;border-radius:4px;font-size:10px;box-shadow:0 3px 20px #0003;max-width:220px}
@media(min-width:1600px){main{grid-template-columns:minmax(0,1fr) 350px}aside{padding:30px}.panel-intro h2{font-size:29px}.legend button{font-size:11px;padding:13px 10px}.selection p,.panel-intro p{font-size:12px}h1{font-size:29px}}
@media(max-width:900px){header{padding:0 18px;height:72px;gap:20px}.doc{display:none}main{grid-template-columns:minmax(0,1fr) 270px}aside{padding:24px 17px}.brand small{font-size:9px}.stage-top{left:19px;top:20px;flex-direction:column}h1{font-size:21px}.views{margin-top:6px}.stage-bottom{padding:0 13px;gap:8px}.stage-bottom>span:nth-child(2){display:none}footer>span:last-child{display:none}}
@media(max-width:650px){body{height:auto;min-height:100%}main{display:flex;flex-direction:column}.viewport{height:67vh;min-height:500px}aside{border-left:0;border-top:1px solid #354357;overflow:visible;display:block}.panel-intro h2{font-size:23px}.panel-intro h2 br{display:none}.legend{grid-template-columns:1fr 1fr;margin:18px 0}.selection{min-height:110px}.stage-top{right:15px}.views button{padding:7px 10px}.source-button{font-size:9px;padding:9px 10px}.source-button span{margin-left:8px}.brand strong{font-size:8px;letter-spacing:1px}.brand>b{font-size:25px}.brand{gap:10px}footer{height:auto;padding:13px 16px;gap:10px;flex-wrap:wrap;font-size:8px}#stage{min-height:360px}}
.stage-top h1{color:#233747;text-shadow:0 1px 6px #fff9}.stage-top .eyebrow{color:#526f7d}.operation{display:grid;gap:9px;margin:23px 0 18px}.operation button{width:100%;display:flex;align-items:center;gap:12px;border-radius:6px;text-align:left;padding:14px 13px;font-size:12px}.operation button b{font-weight:550}.power-button{background:#e8f2ee;border:1px solid #e8f2ee;color:#203c36}.power-button>span{font-size:20px;line-height:16px}.power-button[aria-pressed=true]{background:#244b40;border-color:#5c9b84;color:#ccebdd}.mode-button{background:#243448;border:1px solid #41546d;color:#dbe6f3}.mode-button>span{margin-left:auto}.mode-button:disabled{opacity:.36;cursor:default}.mode-button[aria-pressed=true]{border-color:#e5966c;background:#473a34;color:#ffe1c9}#dhw-button[aria-pressed=true]{border-color:#6bbac9;background:#213e4c;color:#d0eff3}.mode-dot{height:8px;width:8px;border-radius:50%}.mode-dot.heat{background:#f17a4d}.mode-dot.water{background:#6fbecb}.run-status{border:1px solid #3c5067;border-radius:6px;background:#1c2c3d;padding:14px 12px;margin-bottom:19px}.status-heading{display:flex;align-items:center;gap:8px;font-size:12px}.status-heading i{width:6px;height:6px;border-radius:50%;background:#7c8c9c}.status-heading i.running{background:#6fca99;box-shadow:0 0 9px #5cce9677}.run-status>p{color:#9fb1c6;font-size:10px;line-height:1.7;margin:10px 0 13px}.pump-status{border-top:1px solid #354b61;padding-top:10px;display:grid;gap:9px}.pump-status div{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#90a5bd}.pump-status b{font-weight:500;color:#c4d3e5}.pump-status b.running{color:#79d8a6}.flow-sequence{font-size:9px;line-height:1.8;color:#c6d8e9;border-top:1px solid #354b61;margin-top:12px;padding-top:10px}.flow-sequence[hidden]{display:none}.selection{min-height:112px}.selection p{font-size:10px}.panel-intro h2{font-size:25px}.room-note{position:absolute;bottom:18px;left:23px;color:#455f71;font-size:9px}
.pressure-panel{margin:0 0 17px;border:1px solid #405168;border-radius:6px;padding:13px;background:#1c2b3b}.pressure-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.pressure-heading>span{font-size:8px;letter-spacing:1.2px;color:#a8bad0}.pressure-heading small{font-size:8px;color:#b88780}.pressure-display{display:flex;align-items:center;gap:8px;margin:4px 0 10px}.pressure-display svg{width:104px;height:80px;flex-shrink:0}.pressure-display svg text{font:9px Segoe UI,Arial;fill:#9eb1c7}.pressure-display strong{font-size:30px;font-weight:450;color:#e4ecf7;white-space:nowrap}.pressure-display strong small{font-size:12px;margin-left:7px;color:#99adc3}.pressure-display p{font-size:9px;margin:3px 0;color:#91a9c2}.pressure-panel>button{width:100%;border:1px solid #6d9db7;border-radius:4px;padding:10px 12px;display:flex;justify-content:space-between;background:#25445a;color:#d7ecf8;font-size:11px}.pressure-panel>button[aria-pressed=true]{background:#246882;border-color:#76c3da}.pressure-panel>button span{font-size:16px;line-height:12px}#pressure-alert{margin-top:12px;padding:12px 10px;background:#66322f;border:1px solid #bc675c;border-radius:4px;color:#ffe0d7}#pressure-alert[hidden]{display:none}#pressure-alert strong{font-size:12px}#pressure-alert p{font-size:10px;line-height:1.5;margin:7px 0}#pressure-alert button{border:0;border-bottom:1px solid #cb8b7d;padding:4px 0;background:none;color:#ffe3d6;font-size:10px}#pressure-alert button:disabled{opacity:.4;cursor:default}.pressure-panel.alarm #pressure-value{color:#ff9c83}.pressure-panel.alarm #pressure-needle line{stroke:#ff9c83}
/* SCA 3D library: white surfaces, navy text, restrained blue accents. */
html,body{color:#1d3042;background:#fff;color-scheme:light}header{background:#fff;border-color:#e1e8ef}.brand>b{color:#304479}.brand>b span{color:#e33a4d}.brand small,.doc span{color:#718295}.doc{border-color:#e1e8ef}.source-button{background:#f5f8fc;border-color:#d5e0ec;color:#2e467c}.source-button span{color:#4276af}.eyebrow{color:#68809a}.views{background:#ffffffed;border-color:#d6e1ed;box-shadow:0 3px 14px #17365808}.views button{color:#63788e}.views button.active{background:#e8effb;color:#2c4782}#stage{background:#f4f7f9}#loading{background:#f5f8fb;color:#4b6380}.label{background:#fffffff0;color:#28445d;border-color:#d2dce7;box-shadow:0 3px 12px #2e466412}.stage-bottom{background:#fff;border-color:#e1e8ef;color:#6c8093}.stage-bottom button{color:#355388}aside{background:#fff;border-color:#e1e8ef}.panel-intro p,.selection p,.criteria p{color:#61788d}.selection,.toggles,.criteria{border-color:#e1e8ef}.selection .node-id{color:#7288a1}.toggles{color:#4e6680}.toggles input{accent-color:#344d8c}.criteria summary{color:#405c7c}.criteria #audit-result{color:#277465}footer{background:#f8fafc;border-color:#e1e8ef;color:#76879b}footer strong{color:#526b86}.dialog-bar{background:#fff;color:#233c5a;border-bottom:1px solid #dbe4ee}.dialog-bar small{color:#71849b}.dialog-bar button{color:#334e70;border-color:#d4dfeb}.operation button{border-radius:8px}.power-button{background:#344780;border-color:#344780;color:#fff}.power-button[aria-pressed=true]{background:#edf6f0;border-color:#b4d9c2;color:#216542}.mode-button{background:#f7f9fc;border-color:#d9e3ee;color:#344b68}.mode-button:disabled{opacity:.46}.mode-button[aria-pressed=true]{background:#fff1e9;border-color:#efa77f;color:#a54624}#dhw-button[aria-pressed=true]{background:#eaf5ff;border-color:#8ec2e5;color:#1d6498}.run-status{background:#f7f9fc;border-color:#dde6ee}.run-status>p{color:#637a91}.pump-status,.flow-sequence{border-color:#dce5ef}.pump-status div{color:#6e8297}.pump-status b{color:#3d5773}.pump-status b.running{color:#23845a}.flow-sequence{color:#3e607f}.pressure-panel{background:#f8fafd;border-color:#dbe4ee}.pressure-heading>span{color:#5a7391}.pressure-heading small{color:#9c5145}.pressure-display svg text{fill:#6b809a}.pressure-display strong{color:#263e60}.pressure-display strong small,.pressure-display p{color:#687f98}#pressure-needle line{stroke:#344b78}.pressure-display svg>path:first-child{stroke:#dce5ef}.pressure-panel>button{background:#e9f2ff;border-color:#b9cee9;color:#2b5588}.pressure-panel>button[aria-pressed=true]{background:#336d9b;border-color:#336d9b;color:#fff}#pressure-alert{background:#fff0eb;border-color:#e9ab9b;color:#a04431}#pressure-alert button{color:#9c4535;border-color:#d59b8c}.pressure-panel.alarm #pressure-value{color:#cd4734}.pressure-panel.alarm #pressure-needle line{stroke:#cd4734}button:focus-visible{outline:3px solid #82a8df;outline-offset:3px}

.label-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.6}.label{box-shadow:none;font-size:9px;background:#fffffff2;padding:5px 8px}

/* Quiet labels without cards or leader lines. */
.label{border:0;border-radius:0;background:transparent!important;box-shadow:none;color:#526476;font-size:9px;font-weight:500;opacity:.64;padding:2px 3px;text-shadow:0 1px 3px #fff,0 -1px 3px #fff;white-space:nowrap}.label:before{display:none}.label-leaders{display:none}

.separator-panel{border:1px solid #dde6ee;border-radius:7px;padding:13px;margin:0 0 18px;background:#f9fbfd}.separator-panel label{display:flex;align-items:center;gap:7px;font-size:11px;color:#3b5875}.separator-panel input{accent-color:#344780}.separator-panel select{width:100%;margin-top:12px;border:1px solid #d2deea;border-radius:5px;padding:9px 6px;background:#fff;color:#3d5772;font-size:10px}.separator-panel p{font-size:10px;color:#536f89;line-height:1.65;margin:11px 0}.separator-panel small{font-size:9px;color:#7b8c9d;line-height:1.6;display:block}

#separator-ratio{font-size:10px;color:#354c73;margin-top:11px;font-weight:600}

html,body{height:100%;min-height:0;background:#fff}body{display:block}#model{height:100%;grid-template-columns:minmax(0,1fr) 290px}#stage{min-height:0;background:#fff}.stage-top{top:15px;left:18px;right:16px;align-items:center;flex-direction:row}.stage-top .eyebrow{font-size:8px;color:#8291a0}#fullscreen{pointer-events:auto;border:1px solid #d5dfeb;border-radius:7px;padding:10px 13px;min-height:42px;background:#fffffff2;color:#31477b;font-size:11px}aside{padding:22px 18px}.panel-intro h2{font-size:26px}.operation{margin-top:15px}.operation button{min-height:46px}.separator-panel select{min-height:44px}#loading{background:#fff}.selection p{font-size:11px}@media(max-width:650px){html,body{height:100%}#model{display:flex;flex-direction:column;height:100%}.viewport{height:420px;min-height:350px;flex:0 0 47%}#stage{min-height:0;height:100%}aside{flex:1;overflow:auto;min-height:0;padding:18px}.panel-intro h2{font-size:21px;margin:8px 0}.panel-intro h2 br{display:none}.panel-intro p{font-size:12px}.operation{grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.operation button{font-size:11px;padding:11px 9px;gap:6px}.run-status{padding:12px}.run-status>p{font-size:11px}.pump-status div{font-size:10px}.separator-panel{margin-bottom:12px}.selection{min-height:90px}.label{font-size:8px}#fullscreen{font-size:10px}.stage-top{left:12px;right:12px;top:12px}}:fullscreen #model,.expanded #model{height:100dvh}:fullscreen body{height:100dvh}.expanded{position:fixed;inset:0;z-index:2147483647;height:100dvh!important}.expanded #model{height:100dvh}@media(max-width:650px){:fullscreen .viewport,.expanded .viewport{flex-basis:65%;height:auto;min-height:0}:fullscreen aside,.expanded aside{flex:1}}
