*{box-sizing:border-box}html,body{margin:0;background:#eef1f4;color:#1b2430;font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
button{font:inherit;cursor:pointer;touch-action:manipulation}
.top{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:#1d2733;color:#fff}
.top h1{font-size:1rem;margin:0;text-align:center;overflow:hidden;text-overflow:ellipsis}
.back,.icon{min-width:44px;min-height:44px;border:0;border-radius:10px;background:#2f3d4d;color:#fff;padding:0 10px}
.list{max-width:720px;margin:0 auto;padding:16px}
.sub{color:#56616e}.call{background:#fff;border-left:4px solid #2b6cb0;padding:10px 12px;border-radius:6px}
.card{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:64px;margin:10px 0;padding:14px 16px;border:1px solid #cdd5de;border-radius:12px;background:#fff;text-align:left}
.card small{color:#56616e;margin-top:2px}.card:disabled{opacity:.55}
.primary{display:block;width:100%;min-height:52px;margin:14px 0;border:0;border-radius:12px;background:#2b6cb0;color:#fff;font-weight:600}
.gate li{margin:8px 0}.rev{display:flex;gap:8px;align-items:center;margin-top:24px;color:#56616e;font-size:.9rem}.rev input{width:22px;height:22px}
.play{display:grid;grid-template-columns:1fr;gap:12px;padding:10px;max-width:1300px;margin:0 auto}
@media(min-width:900px){.play{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);align-items:start}.panel{position:sticky;top:70px;max-height:calc(100vh - 80px);overflow:auto}}
.stage{background:#1f252c;border-radius:12px;padding:6px;border:1px solid #11161b;box-shadow:0 6px 20px rgba(10,15,22,.25)}
.scene{width:100%;height:auto;display:block}
.status{min-height:2.8em;margin:8px 8px 6px;font-weight:600;color:#cfe3f6}.hint{margin:0 8px 6px;color:#9aa8b6;font-size:.85rem}
.panel{background:#fff;border-radius:12px;padding:14px;border:1px solid #cdd5de}
.panel h2{margin:.2em 0 .4em;font-size:1.2rem}.stepno{color:#56616e;font-size:.85rem}.strikes{font-size:.8rem;color:#8a5a00}
.why{background:#f4f6f9;border-radius:8px;padding:8px 10px;font-size:.95rem}.why p{margin:.25em 0}.q{font-weight:600;margin:.8em 0 .4em}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{min-height:52px;padding:12px 14px;border:1px solid #b9c4cf;border-radius:10px;background:#f9fbfd;text-align:left}
.opt:active{background:#e3edf8}.opt.used{text-decoration:line-through;opacity:.5}.opt:disabled{cursor:default}
.fb{margin:10px 0;padding:10px 12px;border-radius:8px}.fb.ok{background:#e6f5ea;border:1px solid #9bd3a9}.fb.retry{background:#fff7e0;border:1px solid #f0d58a}.fb.bad{background:#fde8e8;border:1px solid #ef9a9a}
.wait{color:#2b4a6b;font-weight:600}
.wait{margin:10px 0;padding:10px 12px;border-radius:10px;background:#eef4fa;border:1px solid #cfe0ef}.wait p{margin:0}.wait .wtime{font-weight:500;color:#5a7690;font-variant-numeric:tabular-nums}
.wbar{position:relative;height:6px;margin:8px 0 6px;border-radius:3px;background:#d6e4f1;overflow:hidden}.wbar i{position:absolute;top:0;bottom:0;width:35%;border-radius:3px;background:#2b6cb0;animation:wbar 1.6s ease-in-out infinite}
@keyframes wbar{0%{left:-35%}100%{left:100%}}@media(prefers-reduced-motion:reduce){.wbar i{animation:none;left:0;width:100%;opacity:.5}}
.wait .wstat{font-weight:500;color:#1d3550;min-height:2.6em}.wait .wnote{font-weight:400;font-size:.82em;color:#5a7690;margin-top:4px}.mini{display:flex;gap:16px;margin-top:12px;border-top:1px solid #e1e6eb;padding-top:8px}
.link{border:0;background:none;color:#2b6cb0;min-height:44px;padding:0;text-decoration:underline}
.sense{border:1px solid #e1e6eb;border-radius:8px;margin:6px 0;padding:4px 10px}.sense summary{min-height:40px;display:flex;align-items:center;font-weight:600}
.tag{display:inline-block;font-size:.7rem;padding:1px 6px;border-radius:10px;background:#efe3ff;color:#5b2a9a;margin-left:4px;vertical-align:middle}.tag.t-build{background:#e7edf3;color:#3c4a59}
.end{text-align:center}.end.win h2{font-size:2rem;color:#1e7a3a}.end.win.redtag h2{font-size:1.5rem;color:#9a3412}.end.redtag h2::before{content:"";display:block;width:46px;height:62px;margin:0 auto 12px;border-radius:6px 6px 4px 4px;background:radial-gradient(circle at 50% 14px,#fff 5px,transparent 6px),#c62828;box-shadow:0 3px 8px rgba(0,0,0,.25)}.end.fail h2{color:#b42318}
.modal{position:fixed;inset:0;z-index:20;background:rgba(10,15,22,.55);display:flex;align-items:flex-end;justify-content:center}
.modal[hidden]{display:none}
.sheet{background:#fff;width:100%;max-width:560px;max-height:92vh;overflow:auto;border-radius:16px 16px 0 0;padding:14px 16px 24px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
@media(min-width:700px){.modal{align-items:center}.sheet{border-radius:16px}}
.sh{display:flex;justify-content:space-between;align-items:center}.sh h3{margin:0}.sh .icon{background:#e7edf3;color:#1b2430}
.bigdisp{margin:12px 0;padding:20px 18px;border-radius:10px;border:10px solid #1b1f24;box-shadow:0 0 0 1px #000,0 6px 16px rgba(0,0,0,.25),inset 0 0 18px rgba(255,255,255,.35);background:linear-gradient(#c9f1ff,#8ccfef);color:#08263a;font:700 1.4rem/1.3 ui-monospace,Menlo,Consolas,monospace;text-align:center}
.bigdisp.red{background:linear-gradient(#ffc2b8,#f08a7c);color:#5a0a06}.bigdisp.off{background:linear-gradient(#2a3036,#1a1e22);color:#6c757e;font-size:1rem;box-shadow:0 0 0 1px #000}
.hist{padding-left:20px}.hist li{margin:6px 0}.hist span{display:block;color:#56616e;font-size:.9rem}.hist .live b{color:#b42318}
.sgc{display:block;margin:10px auto;width:min(300px,80vw);height:auto}
.dial{position:relative;width:170px;height:170px;margin:12px auto;border-radius:50%;border:10px solid #b9c0c8;background:radial-gradient(circle at 40% 35%,#fff,#eef0f2 80%,#c3c8ce);box-shadow:inset 0 0 0 2px #7d868f,0 0 0 2px #59616a,0 6px 14px rgba(0,0,0,.3);display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:34px}
.dial::before{content:"";position:absolute;inset:8px;border-radius:50%;background:repeating-conic-gradient(from -135deg,#2a3038 0 1.2deg,transparent 1.2deg 33.75deg);-webkit-mask:radial-gradient(circle,transparent 62%,#000 63%,#000 70%,transparent 71%);mask:radial-gradient(circle,transparent 62%,#000 63%,#000 70%,transparent 71%)}
.dial::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:58px;margin-left:-2px;background:#d22a1c;border-radius:2px;transform-origin:50% 100%;transform:translateY(-100%) rotate(-42deg);box-shadow:0 0 0 1px rgba(0,0,0,.15)}
.dial span{position:relative;z-index:1;font-size:2rem;font-weight:700;color:#1b2430}.dial small{position:relative;z-index:1;max-width:84px;font-size:.6rem;line-height:1.15;color:#56616e;text-align:center}
.level{position:relative;height:64px;margin:16px 0 30px;border-radius:10px;background:linear-gradient(#ffe36a,#e6b91c 55%,#b88d0a);border:2px solid #7d6008;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 6px 12px rgba(0,0,0,.2)}.level::before{content:"";position:absolute;left:50%;top:10px;width:70px;height:40px;margin-left:-35px;border:2px solid #333;border-radius:20px;background:linear-gradient(#e7ffb8,#b9e27a);box-shadow:inset 0 2px 6px rgba(0,0,0,.25)}
.bubble{position:absolute;top:18px;width:30px;height:24px;margin-left:-15px;border-radius:12px;background:#fff;box-shadow:inset 0 0 4px #888}
.lend{position:absolute;bottom:-22px;font-size:.75rem;color:#56616e}.lend.l{left:4px}.lend.r{right:4px}
.cl li{margin:6px 0}
/* scene: static room layer + stateful layer stacked with the same viewBox, so hit rects line up */
.scene-wrap{position:relative;border-radius:9px;overflow:hidden;background:#3a352e}
.scene-fgwrap{position:absolute;inset:0}.scene-fgwrap .scene{width:100%;height:100%}
.scenery{pointer-events:none}.part{cursor:pointer;outline:none}.part>:not(.hit){pointer-events:none}.part .hit{fill:transparent}
.part:focus .hit,.part:active .hit{fill:rgba(120,190,255,.16);stroke:#7cc4ff;stroke-width:2.5}
@media(hover:hover){.part:hover .hit{fill:rgba(255,255,255,.07);stroke:rgba(255,255,255,.55);stroke-width:1.5}}
.lbl{font:600 10px system-ui,sans-serif;fill:#fff;stroke:rgba(18,22,28,.78);stroke-width:3px;paint-order:stroke;stroke-linejoin:round}
.shade{fill:#000;opacity:.22}
.wall{fill:url(#sxConc)}.walledge{fill:#000;opacity:.25}
/* copper */
.cush{fill:none;stroke:#000;stroke-opacity:.18;stroke-width:10;stroke-linejoin:round}
.cu0{fill:none;stroke:#6a3114;stroke-width:10;stroke-linejoin:round}.cu1{fill:none;stroke:#c06a34;stroke-width:7.5;stroke-linejoin:round}
.cu2{fill:none;stroke:#ffc89d;stroke-opacity:.75;stroke-width:2;stroke-linejoin:round}
.cuhot{fill:none;stroke:#ff5a2a;stroke-opacity:.32;stroke-width:17;stroke-linejoin:round;animation:heat 2.4s ease-in-out infinite alternate}
@keyframes heat{to{stroke-opacity:.18}}
.cufit,.tee{fill:url(#sxCopFit);stroke:#5a2810;stroke-width:.8}.collar{fill:#8f8a80}
/* brass, valves */
.brass{fill:url(#sxBrass);stroke:#5e420b;stroke-width:.8}.brassnut{fill:#b48a26;stroke:#5e420b;stroke-width:.6}
.lever{stroke:rgba(0,0,0,.35);stroke-width:.6}.lever.red{fill:#d23a26}.lever.blue{fill:#2f6fd0}
.act{fill:#f1eee6;stroke:#9c978c}.actsh{fill:#000;opacity:.2}.actlid{fill:#fff;opacity:.7}.actlever{fill:#5b5f66}
.zv{fill:#4a4f57;stroke:#2a2e33;stroke-width:.6}.zv.open{fill:#3fd16a;stroke:#1d7a37}
.ztag{fill:#f8f3e3;stroke:#b9ad8b;stroke-width:.8}.ztxt{font:700 9.5px system-ui,sans-serif;fill:#3a3326}.ztxt.sm{font-weight:600;font-size:9px;fill:#fff;stroke:rgba(18,22,28,.7);stroke-width:2.5px;paint-order:stroke}
/* circulators */
.flange{fill:#3b444d;stroke:#1d2228;stroke-width:.6}.volute{fill:url(#sxVolute);stroke:#1d2228}.motor{fill:url(#sxMotor);stroke:#3b444d}
.hub{fill:#2b3138}.tbox{fill:#4b5560;stroke:#2b3138;stroke-width:.6}.imp{stroke:#3b444d;stroke-width:2;stroke-linecap:round}
.rotor{transform-box:fill-box;transform-origin:center}.rotor.run{animation:spin .35s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.led{fill:#3a3f45}.led.on{fill:#45e07a}
/* PVC flue, intake, drain; black iron gas */
.pvsh{fill:none;stroke:#000;stroke-opacity:.16;stroke-width:16}
.pv0{fill:none;stroke:#8f949a;stroke-width:16}.pv1{fill:none;stroke:#f3f3ef;stroke-width:13}.pv2{fill:none;stroke:#fff;stroke-width:3;stroke-opacity:.9}
.pv1.intake{stroke:#ecece6}
.pvsh.thin,.thin~.pvsh{stroke-width:7}
g[data-part="drain"] .pvsh{stroke-width:7}g[data-part="drain"] .pv0{stroke-width:8}g[data-part="drain"] .pv1{stroke-width:6}g[data-part="drain"] .pv2{stroke-width:1.5}
.pvcoup{fill:#e6e6e0;stroke:#8f949a}.escut{fill:#d8d4cc;stroke:#8a867f}
.hanger{stroke:#6b7077;stroke-width:2.5}.hanger.broken{stroke:#e5483a}.strapband{fill:none;stroke:#6b7077;stroke-width:2.5}
.pool{fill:none;stroke:#7fb6e0;stroke-width:4}.drip{fill:#8cc4ec;animation:drip 1.4s linear infinite}.d2{animation-delay:.7s}@keyframes drip{to{transform:translateY(80px);opacity:0}}.wet{fill:rgba(40,60,80,.45)}
.bi0{fill:none;stroke:#0d0e10;stroke-width:8}.bi1{fill:none;stroke:#34383e;stroke-width:6}.bi2{fill:none;stroke:#7c838c;stroke-width:1.4}
.bitee,.bicap{fill:#2a2e33;stroke:#0d0e10;stroke-width:.8}
.gsv{fill:url(#sxBrass);stroke:#5e420b}.handle{stroke:#f2c518;stroke-width:6;stroke-linecap:round}
/* boiler front */
.bezel{fill:#1b1f24;stroke:#0d1013}
.lcd{fill:url(#sxLcdOn)}.lcd.red{fill:url(#sxLcdRed)}.lcd.off{fill:url(#sxLcdOff)}
.lcdtxt{fill:#08263a;font:700 14px ui-monospace,Menlo,Consolas,monospace}.lcd.red~.lcdtxt{fill:#5a0a06}.lcdtxt.sm{font-size:11px}
.lcdglare{fill:#fff;opacity:.18;pointer-events:none}
.btn{fill:url(#sxBtn);stroke:#7d868f}.btntxt{font:700 9.5px system-ui,sans-serif;fill:#2a3038;letter-spacing:.5px}
.pled{fill:#3a3f45}.pled.on{fill:#45e07a}
.sg-ring{fill:url(#sxBrass);stroke:#5e420b}.sg-bolt{fill:#5a5f66}
.sg{fill:#0b0c10;stroke:#000}.sg-dull{fill:#3b352b}.sg-spark{fill:#1a1a2e;animation:spk .3s steps(2) infinite}.sg-good{fill:#3d5bd9;animation:glow 1.2s ease-in-out infinite alternate}
@keyframes spk{50%{fill:#8fa4ff}}@keyframes glow{to{fill:#6a86ff}}
.glare{fill:none;stroke:#fff;stroke-opacity:.55;stroke-width:2;stroke-linecap:round}
.plate{fill:url(#sxSteel);stroke:#6b737c;stroke-width:.8}.ign{fill:url(#sxCeramic);stroke:#8a826c}.ign.new{fill:#fffdf3;stroke:#b8ae8e}.igncap{fill:#2a2e33}
.port{fill:#0b0c0e;stroke:#3a3f45}.fs{fill:url(#sxSteel);stroke:#6b737c}.wire{fill:none;stroke:#1d2228;stroke-width:1.6}
.gbezel{fill:url(#sxSteel);stroke:#59616a}.gface{fill:url(#sxGauge);stroke:#8a929b;stroke-width:.6}.tick{stroke:#2a3038;stroke-width:1}.needle{stroke:#d22a1c;stroke-width:1.8;stroke-linecap:round}
.gv{fill:url(#sxSteel);stroke:#59616a}.gvcoil{fill:#2a2e33}.gvknob{fill:#d22a1c}.gvplug{fill:#1d2228}
.trap{fill:url(#sxTrap);stroke:#7c93a8;stroke-width:1.5}.trapfluid{fill:#bcd7ea;opacity:.75}.sludge{fill:#5a4630}.trapcap{fill:#e7ebee;stroke:#7c93a8}
.bds{fill:#2a2e33;stroke:#0d1013}
.hose{fill:none;stroke:#c8d6e0;stroke-opacity:.9;stroke-width:6;stroke-linecap:round}.hose.off{stroke:#b9c9d4}
.bucket{fill:#f08a24;stroke:#a85710}.bucketrim{stroke:#c8701a;stroke-width:3}.bucketsh{stroke:#000;stroke-opacity:.25;stroke-width:6}
.fdrain{fill:#3f3c38;stroke:#7d7a74}.grate{stroke:#9a958c;stroke-width:1.1}
.rvlever{fill:#5b5f66}.string{stroke:#777;stroke-width:.8}rect.tag{fill:#fff3c4;stroke:#a88b2a}
.sw{fill:url(#sxSteel);stroke:#59616a}.swsh{fill:#000;opacity:.22}.swplate{fill:#dfe3e7;stroke:#8a929b;stroke-width:.6}.toggle{fill:#5b5f66}.toggle.on{fill:#2e9d4a}
.lock{fill:#d33b2b;stroke:#7a1f16}
.co{fill:#fbfbf8;stroke:#a7a59e}.coring{fill:none;stroke:#cfccc4;stroke-width:1.5;stroke-dasharray:2 2}.coled{fill:#3fd16a}
.tools{fill:url(#sxBag);stroke:#5a160e}.bagband{fill:#1d2228;opacity:.7}.baghandle{fill:none;stroke:#1d2228;stroke-width:4;stroke-linecap:round}.glasses{fill:rgba(200,230,255,.35);stroke:#f2c518;stroke-width:1.4}
.lroom{fill:#efe7d8;stroke:#a89b80}.lroomtrim{fill:#d9cdb5}
.tst{fill:#fdfdfb;stroke:#a7a59e}.tstscr{fill:#1d2228}.tstscr.calling{fill:#2b1a0c}.tsttxt{font:700 7px system-ui,sans-serif;fill:#8fd0f5}.tst.calling~.tsttxt{fill:#ffb35c}.tstbtn{fill:#e2e0d9;stroke:#a7a59e}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 6px 8px}.chip{min-height:44px;padding:0 12px;border:1px solid #3a4652;border-radius:22px;background:#2b343e;color:#e8eef4;font-size:.9rem}
@media(max-width:600px){.top h1{font-size:.8rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}
.tstat{width:190px;height:190px;margin:14px auto;display:flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;font:600 1.15rem system-ui;background:radial-gradient(circle at 50% 50%,#1d2228 58%,#c9ced4 60%,#f4f6f8 68%,#a9b1ba 100%);color:#8fd0f5;box-shadow:0 8px 18px rgba(0,0,0,.25);padding:30px}.tstat.calling{color:#ffb35c}
.fb .note{margin:.5em 0 0;font-size:.92rem;color:#3c4a59}

/* ---------- v3 photo scene ---------- */
.pz-view{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:9px;background:#0b0c0e;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.pz-view.dragging{cursor:grabbing}
/* bar under the scene: boiler display, thermostat card and view buttons (kept off the scene) */
.pz-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
@media(max-width:700px){.pz-view{aspect-ratio:auto;height:min(52vh,440px)}}
.pz-stage{position:absolute;left:0;top:0;width:1280px;height:720px;transform-origin:0 0;will-change:transform}
.pz-stage.anim{transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.pz-stage svg.photo{display:block;width:1280px;height:720px}
svg.photo.cv-closed .cv-open,svg.photo.cv-open .cv-closed{display:none}
.ph-open{transition:opacity .6s ease}
.ph-cover{pointer-events:none;transform-box:fill-box;opacity:0}
.ph-cover.lift{animation:covLift .75s ease-in}
.ph-cover.drop{animation:covDrop .6s ease-out}
@keyframes covLift{0%{opacity:1;transform:translate(0,0)}35%{opacity:1;transform:translate(0,-6px)}100%{opacity:0;transform:translate(-30px,-14px) scale(1.04)}}
@keyframes covDrop{0%{opacity:0;transform:translate(-30px,-14px) scale(1.04)}100%{opacity:1;transform:none}}
svg.photo .part .hit{fill:transparent;stroke:transparent;stroke-width:1.6;transition:fill .2s,stroke .2s}
svg.photo .part:focus .hit{fill:rgba(255,214,140,.10);stroke:rgba(255,214,140,.9)}
@media(hover:hover){svg.photo .part:hover .hit{fill:rgba(255,220,150,.10);stroke:rgba(255,224,160,.95);filter:drop-shadow(0 0 4px rgba(255,200,110,.9))}.cover-hot:hover{fill:rgba(255,255,255,.06);stroke:rgba(255,224,160,.7)}.info:hover .infohit{stroke:rgba(200,220,255,.6);stroke-dasharray:3 3}}
svg.photo .part.tap .hit{animation:tapGlow .8s ease-out}
@keyframes tapGlow{0%{fill:rgba(255,230,170,.35);stroke:#ffe2a0;stroke-width:3}100%{fill:transparent;stroke:transparent}}
.cover-hot{fill:transparent;stroke:transparent;cursor:pointer}.infohit{fill:transparent;stroke:transparent;stroke-width:1}
.pz-view.hinting svg.photo .part .hit{animation:hint 1.6s ease-in-out 2}
@keyframes hint{50%{stroke:rgba(255,224,160,.55);fill:rgba(255,224,160,.06)}}
.phlcd{fill:#06263a;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700}.phlcd.red{fill:#4a0805}
.hotpipe path{fill:none;stroke:#ff8a3a;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:url(#phBlur);mix-blend-mode:screen;animation:heat 3s ease-in-out infinite}
@keyframes heat{50%{stroke:#ffb060}}
.vib{animation:vib .09s steps(2) infinite}.vib.v2{animation-duration:.11s}.vib.v3{animation-duration:.07s}
@keyframes vib{0%{transform:translate(.35px,0)}50%{transform:translate(-.35px,.25px)}}
.flick{animation:flick .18s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
@keyframes flick{from{opacity:.75;transform:scale(.94)}to{opacity:1;transform:scale(1.04)}}
.spark{animation:spk .16s steps(2) infinite}@keyframes spk{50%{opacity:0}}
.drop{animation:drop 1.1s ease-in infinite}.drop.d2{animation-delay:.5s}.drop.d3{animation:dropLong 1.6s ease-in infinite}.drop.d4{animation:dropS .5s ease-in infinite}.drop.d5{animation:dropS 1.4s ease-in infinite}
@keyframes drop{0%{transform:translateY(0);opacity:0}10%{opacity:1}100%{transform:translateY(60px);opacity:0}}
@keyframes dropLong{0%{transform:translateY(0);opacity:0}10%{opacity:1}100%{transform:translateY(215px);opacity:0}}
@keyframes dropS{0%{transform:translateY(0);opacity:0}15%{opacity:1}100%{transform:translateY(14px);opacity:0}}
.stream{stroke-dasharray:3 2;animation:flow .25s linear infinite}@keyframes flow{to{stroke-dashoffset:-5}}
.splash{animation:spl .3s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}@keyframes spl{to{transform:scaleX(1.3);opacity:.25}}
.pulse{animation:pls 1s ease-in-out infinite alternate}@keyframes pls{to{opacity:.05}}
.coled{animation:spk 2.4s steps(2) infinite}
.hud-lcd{position:relative;flex:1 1 180px;min-width:0;max-width:none;padding:4px 9px 5px;border-radius:8px;background:linear-gradient(#bfeaff,#79c6ee);color:#06263a;font:700 .8rem/1.2 ui-monospace,Menlo,Consolas,monospace;box-shadow:0 0 0 2px #15191d,0 4px 14px rgba(0,0,0,.5),0 0 18px rgba(94,200,255,.35);pointer-events:none}
.hud-lcd small{display:block;font:600 .62rem system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;opacity:.7}
.hud-lcd.red{background:linear-gradient(#ffb8ac,#e46c5b);color:#4a0805;box-shadow:0 0 0 2px #15191d,0 4px 14px rgba(0,0,0,.5),0 0 18px rgba(255,90,64,.45)}
.hud-lcd.long{flex-basis:340px;font-size:.74rem}
.hud-lcd.off{background:#1a1e22;color:#7b858f}
.hud-tstat{position:relative;flex:0 0 auto;width:92px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.55))}
.hud-tstat svg{display:block;width:100%;height:auto}.hud-tstat .tsl{font:600 9px system-ui,sans-serif;fill:#4a4030}.hud-tstat .tst{font:700 10px ui-monospace,monospace;fill:#1b1b1b}
.hud-tstat .part .hit{fill:transparent;stroke:transparent;stroke-width:3}@media(hover:hover){.hud-tstat .part:hover .hit{stroke:#ffe2a0}}
@media(max-width:600px){.hud-tstat{width:78px}.hud-lcd{font-size:.78rem}}
.pz-ctl{position:relative;flex:1 1 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.pzb{min-width:44px;min-height:44px;border-radius:22px;border:1px solid rgba(255,255,255,.25);background:rgba(18,22,27,.72);color:#f2f5f8;font-size:1.2rem;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.pzb.wide{font-size:.8rem;padding:0 12px;font-weight:600;background:rgba(43,108,176,.85)}
.pz-intro{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;justify-content:center;padding-bottom:16%;background:radial-gradient(ellipse at 50% 30%,rgba(0,0,0,0),rgba(0,0,0,.6))}
.pz-introtxt{color:#f3e7cf;font:600 1.05rem system-ui,sans-serif;letter-spacing:.04em;text-shadow:0 2px 10px #000;opacity:0;animation:introTxt 2.8s ease forwards}
@keyframes introTxt{15%{opacity:0}40%{opacity:1}85%{opacity:1}100%{opacity:0}}
.pz-view.dark .pz-stage{filter:brightness(.07) saturate(.5)}
.pz-view.flicker .pz-stage{animation:lightOn .6s steps(1) forwards}
@keyframes lightOn{0%{filter:brightness(1.15)}12%{filter:brightness(.15)}24%{filter:brightness(1)}36%{filter:brightness(.3)}48%,100%{filter:brightness(1)}}
.pz-view.intro+.pz-bar>*{opacity:0;transition:opacity .4s}
.pz-bar>*{transition:opacity .6s}
.pz-fx{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
.pz-fx .burst{opacity:0;width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,rgba(61,220,106,.95),rgba(30,140,70,.85));color:#fff;font:800 2.6rem system-ui;box-shadow:0 0 0 6px rgba(61,220,106,.3),0 0 40px rgba(61,220,106,.7)}
.pz-fx.go .burst{animation:burst .95s cubic-bezier(.2,.9,.3,1.3) forwards}
@keyframes burst{0%{opacity:0;transform:scale(.3)}25%{opacity:1;transform:scale(1.08)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
.panel.okflash{animation:okf 1s ease-out}@keyframes okf{0%{box-shadow:0 0 0 0 rgba(61,220,106,.0)}20%{box-shadow:0 0 0 5px rgba(61,220,106,.55)}100%{box-shadow:0 0 0 0 rgba(61,220,106,0)}}
.prog{height:6px;border-radius:3px;background:#e3e8ee;overflow:hidden;margin:0 0 8px}.prog i{display:block;height:100%;background:linear-gradient(90deg,#2b6cb0,#3ddc6a);transition:width .6s ease}
:root{--cuh:34vh}@media(max-height:560px){:root{--cuh:26vh}}
.cu{margin:8px auto 10px;border-radius:12px;overflow:hidden;background:#0b0c0e;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3),0 6px 16px rgba(0,0,0,.25);}
.cu svg{display:block;width:100%;height:100%}
.sgwrap{position:relative;width:min(320px,82vw);aspect-ratio:1;margin:10px auto;border-radius:50%;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.sgwrap img,.sgwrap canvas{position:absolute;inset:0;width:100%;height:100%;margin:0}
@media(prefers-reduced-motion:reduce){.ph-cover,.pz-fx .burst,.ph-open{animation:none!important;transition:none!important}.vib,.flick,.drop,.stream,.spark,.hotpipe path{animation:none}.pz-stage.anim{transition:none}}
/* v4: loop tracing + labels */
.loops{pointer-events:none}
.loops>g{opacity:0;transition:opacity .25s}
.loops .tr{fill:none;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:9 7;animation:flowdash 1.1s linear infinite;filter:drop-shadow(0 0 2px rgba(0,0,0,.9))}
.loops .tr.dash{stroke-width:1.6;stroke-dasharray:3 4;opacity:.8;animation:none}
.loops circle.tr{stroke-dasharray:none;animation:none;stroke-width:2.6}
@keyframes flowdash{to{stroke-dashoffset:-16}}
.loops.all>g,svg.photo.show-all .loops>g,
svg.photo[data-show~=boiler] .loops>g[data-l=boiler],svg.photo[data-show~=system] .loops>g[data-l=system],svg.photo[data-show~=tees] .loops>g[data-l=tees],
svg.photo[data-show~=scoop] .loops>g[data-l=scoop],svg.photo[data-show~=tank] .loops>g[data-l=tank],svg.photo[data-show~=fill] .loops>g[data-l=fill],svg.photo[data-show~=circ] .loops>g[data-l=circ],
svg.photo[data-show~=zones] .loops>g[data-l=zones],svg.photo[data-show~=bv] .loops>g[data-l=bv],svg.photo[data-show~=purge] .loops>g[data-l=purge],
svg.photo[data-show~=cond] .loops>g[data-l=cond]{opacity:1}
.loops .tr.ring{stroke-dasharray:4 3;animation:none;stroke-width:1.8}
.pz-tip{position:absolute;z-index:6;max-width:224px;padding:6px 9px;border-radius:9px;background:rgba(12,14,18,.9);color:#fff;font:600 .78rem/1.3 system-ui,sans-serif;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.4)}
@media (prefers-reduced-motion:reduce){.loops .tr{animation:none}}
.loops .tr{stroke-width:2.6;opacity:.9}
@media (max-width:600px){.pz-ctl{gap:4px;right:6px;bottom:6px}.pzb{min-width:36px;min-height:36px;font-size:1rem}.pzb.wide{font-size:.7rem;padding:0 9px}}

/* Fault #2 gas close-ups */
.gasfig { margin: 6px 0 4px; }
.gasfig svg { width: 100%; max-width: min(420px, calc(var(--cuh) * 1.78)); display: block; margin: 0 auto; border-radius: 10px; }
.gascap { font-size: .9rem; margin: 6px 0 0; }
.res { margin: 6px 0 0; }
svg.photo:not(.has-gsw) .gsw { display: none; }
svg.photo:not(.has-f3) .f3 { display: none; }
svg.photo.has-f3 .nf3 { display: none; }
svg.photo:not(.has-f4) .f4 { display: none; }
svg.photo.has-f4 .nf4 { display: none; }
svg.photo:not(.has-shelf) .shelf { display: none; }
svg.photo:not(.has-f5) .f5 { display: none; }
svg.photo:not(.has-f6) .f6 { display: none; }
.vib.hum{animation-duration:.05s}.vib.hum{animation-name:vibHum}@keyframes vibHum{0%{transform:translate(.15px,0)}50%{transform:translate(-.15px,.1px)}}
.cu svg.boards{width:100%;height:100%;display:block}
/* pop-up footer: the step's Continue/Finish stays in view without closing the pop-up (phone and desktop) */
.mfoot{position:sticky;bottom:-24px;margin:10px -16px -24px;padding:10px 16px max(14px,env(safe-area-inset-bottom));background:linear-gradient(rgba(255,255,255,.85),#fff 30%)}
.mfoot:empty{display:none}.mfoot .primary{width:100%;margin:0}
/* while a pop-up is open its footer carries the step's button, so the panel's copy is hidden (one button on screen) */
.modal-open #panel #next,.modal-open #panel #finishCycle{visibility:hidden}
/* status line keeps its height while a sequence rewrites it, so the chips below never jump under a finger (F2 R2 Step 7 tablet two-tap) */
@media(max-width:600px){.status{min-height:4.2em}}
/* short screens (phone in landscape, zoomed desktop): the pop-up text must be readable without scrolling inside the pop-up,
   so the second, larger gauge dial is dropped when the photo close-up already shows the gauge (reviewer, Nov 18, 11:38 PM) */
@media(max-height:740px){.cu~.dial{display:none}}
@media(max-height:340px){:root{--cuh:18vh}}
/* wide but short (landscape phone, zoomed desktop): the close-up sits beside the text */
@media(min-width:560px) and (max-height:560px){:root{--cuh:46vh}.mbody>.cu,.mbody>.gasfig{float:left;margin:4px 14px 8px 0}.mbody>.cu+.dial{display:none}.mbody ul{overflow:hidden}.mfoot{clear:both}}
/* the sight-glass view follows the same height budget as the close-ups */
.sgwrap{width:min(320px,82vw,var(--cuh))}.sgc{width:min(300px,80vw,var(--cuh))}
@media(min-width:560px) and (max-height:560px){.sheet{max-width:min(780px,96vw)}:root{--cuh:42vh}.mbody>.sgwrap,.mbody>.sgc{float:left;margin:4px 14px 8px 0}}
