:where(:root){--hl-bg: #ffffff;--hl-fg: #171717;--hl-muted: #666666;--hl-subtle: #8f8f8f;--hl-border: #ebebeb;--hl-border-strong: #d4d4d4;--hl-focus: #0070f3;--hl-grey: #b26a00;--hl-clean: #16893f;--hl-mains: #0068d6;--hl-waste: #8a5a3c;--hl-air: #8f8f8f;--hl-uv: #7c3aed;--hl-pipe-idle: #e6e6e6;--hl-pipe-open: #a8a8a8}@media(prefers-color-scheme:dark){:where(:root:not([data-theme=light])){--hl-bg: #0a0a0a;--hl-fg: #ededed;--hl-muted: #a1a1a1;--hl-subtle: #707070;--hl-border: #262626;--hl-border-strong: #3d3d3d;--hl-focus: #52a8ff;--hl-grey: #f0a43a;--hl-clean: #4cc274;--hl-mains: #52a8ff;--hl-waste: #93603b;--hl-air: #8f8f8f;--hl-uv: #a78bfa;--hl-pipe-idle: #262626;--hl-pipe-open: #5c5c5c}}:where(:root[data-theme=dark]){--hl-bg: #0a0a0a;--hl-fg: #ededed;--hl-muted: #a1a1a1;--hl-subtle: #707070;--hl-border: #262626;--hl-border-strong: #3d3d3d;--hl-focus: #52a8ff;--hl-grey: #f0a43a;--hl-clean: #4cc274;--hl-mains: #52a8ff;--hl-waste: #93603b;--hl-air: #8f8f8f;--hl-uv: #a78bfa;--hl-pipe-idle: #262626;--hl-pipe-open: #5c5c5c}.hl-kind-grey{--hl-k: var(--hl-grey)}.hl-kind-clean{--hl-k: var(--hl-clean)}.hl-kind-mains{--hl-k: var(--hl-mains)}.hl-kind-waste{--hl-k: var(--hl-waste)}.hl-kind-air{--hl-k: var(--hl-air)}.hl-kind-uv{--hl-k: var(--hl-uv)}.hl-flow-summary{font-size:14px;margin:8px 0 0;font-variant-numeric:tabular-nums}.hl-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;margin:0;padding:0;font-size:13px;color:var(--hl-muted)}.hl-legend li{display:inline-flex;align-items:center;gap:8px}.hl-legend-swatch{display:inline-block;width:20px;height:6px;border-radius:3px;background:var(--hl-k)}.hl-legend-swatch.is-idle{background:var(--hl-pipe-idle)}.hl-legend-swatch.is-open{background:var(--hl-pipe-open)}.hl-flow-summary-label{color:var(--hl-muted)}.hl-flow-diagram{display:block;width:100%;height:auto;font-family:var(--hl-font-family, inherit)}.hl-flow-diagram [tabindex]:focus-visible{outline:none}.hl-flow-diagram [tabindex]:focus-visible>:is(circle,polygon,rect:not(.hl-hit)),.hl-flow-diagram [tabindex]:focus-visible>.hl-valve-body>polygon{stroke:var(--hl-focus);stroke-width:2.5}.hl-pipe-base{fill:none;stroke:var(--hl-pipe-idle);stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.hl-pipe.is-square :is(.hl-pipe-base,.hl-pipe-water,.hl-pipe-flow){stroke-linecap:butt}.hl-pipe.hl-kind-air .hl-pipe-base{stroke-width:5}.hl-pipe.is-open .hl-pipe-base{stroke:var(--hl-pipe-open)}.hl-pipe.is-filled .hl-pipe-base{stroke:var(--hl-border-strong)}.hl-pipe-water{fill:none;stroke:color-mix(in srgb,var(--hl-k) 16%,var(--hl-bg));stroke-width:4;stroke-linecap:round}.hl-pipe.is-active .hl-pipe-base{stroke:var(--hl-k)}.hl-pipe.is-unknown .hl-pipe-base{stroke:var(--hl-border-strong);stroke-width:3;stroke-dasharray:.5 7}.hl-pipe-flow{fill:none;stroke:var(--hl-bg);stroke-opacity:.75;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:3 11;animation:hl-flow .9s linear infinite}.hl-pipe.is-filled .hl-pipe-flow{stroke:var(--hl-k);stroke-opacity:.45}.hl-pipe.hl-kind-air .hl-pipe-flow{stroke-width:2;stroke-dasharray:7 7;animation-name:hl-flow-air}.hl-pipe.is-still .hl-pipe-flow,.hl-pressure.is-held .hl-pressure-ring{animation:none}.hl-pressure.is-held .hl-pressure-ring{stroke-opacity:.3}.hl-pressure.is-venting .hl-pressure-ring{animation-direction:reverse}.hl-water-rings .hl-pressure-ring{stroke:var(--hl-k)}.hl-water-rings.is-out .hl-pressure-ring{animation-direction:reverse}.hl-pipe-gap{stroke:var(--hl-bg);stroke-width:13}.hl-pipe-arrow{fill:var(--hl-pipe-idle)}.hl-pipe.is-open .hl-pipe-arrow{fill:var(--hl-pipe-open)}.hl-pipe.is-active .hl-pipe-arrow{fill:var(--hl-k)}.hl-pipe.is-unknown .hl-pipe-arrow{fill:var(--hl-border-strong)}@keyframes hl-flow{to{stroke-dashoffset:-14}}@keyframes hl-flow-air{0%{stroke-dashoffset:-5}to{stroke-dashoffset:-19}}.hl-hit{fill:transparent}.hl-valve polygon{fill:var(--hl-bg);stroke:var(--hl-muted);stroke-width:1.5;stroke-linejoin:round}.hl-valve-body{transition:transform .3s ease}.hl-valve.is-open polygon{fill:var(--hl-pipe-open);stroke:var(--hl-bg);stroke-width:1}.hl-valve.is-flowing polygon{fill:var(--hl-k);stroke:var(--hl-k);stroke-width:1.5}.hl-valve.is-unknown polygon{stroke:var(--hl-subtle);stroke-dasharray:2 2}.hl-distributor polygon{fill:var(--hl-bg);stroke:var(--hl-border-strong);stroke-width:1.5;stroke-linejoin:round}.hl-distributor polygon.is-closed{stroke:var(--hl-pipe-idle);stroke-width:3}.hl-distributor polygon.is-open{fill:var(--hl-pipe-open);stroke:none}.hl-distributor polygon.is-flowing{fill:var(--hl-k);stroke:none}.hl-distributor polygon.is-unknown{stroke:var(--hl-subtle);stroke-dasharray:2 2}.hl-pump-casing{fill:var(--hl-bg);stroke:var(--hl-muted);stroke-width:1.5}.hl-impeller{transform-box:fill-box;transform-origin:center}.hl-impeller-box{fill:none}.hl-impeller-blades{fill:none;stroke:var(--hl-muted);stroke-width:1.75;stroke-linecap:round}.hl-impeller-hub{fill:var(--hl-muted)}.hl-pump.is-on .hl-pump-casing{fill:var(--hl-k);stroke:var(--hl-k)}.hl-pump.is-on .hl-impeller{animation:hl-spin 1.2s linear infinite}.hl-pump.is-on .hl-impeller-blades{stroke:var(--hl-bg)}.hl-pump.is-on .hl-impeller-hub{fill:var(--hl-bg)}.hl-pump.is-unknown .hl-pump-casing{stroke:var(--hl-subtle);stroke-dasharray:2 2}.hl-pump.is-unknown .hl-impeller-blades{stroke:var(--hl-subtle)}.hl-pump.is-unknown .hl-impeller-hub{fill:var(--hl-subtle)}@keyframes hl-spin{to{transform:rotate(360deg)}}.hl-tank-shell{fill:var(--hl-bg);stroke:var(--hl-border-strong);stroke-width:1.5}.hl-tank-shell.is-unknown{fill:url(#hl-hatch)}.hl-hatch-line{stroke:var(--hl-border);stroke-width:2}.hl-tank-fill{fill:var(--hl-k);fill-opacity:.16}.hl-tank-surface{stroke:var(--hl-k);stroke-width:2}.hl-tank-surface.is-dashed{stroke-dasharray:4 3}.hl-sensor circle{fill:var(--hl-bg);stroke:var(--hl-muted);stroke-width:1.5}.hl-sensor.is-on circle{fill:var(--hl-k);stroke:var(--hl-k)}.hl-sensor.is-unknown circle{stroke:var(--hl-subtle);stroke-dasharray:2 2}.hl-tank-tick{stroke:var(--hl-border-strong)}.hl-tank-label{font-size:16px;font-weight:600;fill:var(--hl-fg)}.hl-tank-sub{font-size:13px;font-weight:400;fill:var(--hl-muted)}.hl-tank-value{font-size:22px;font-weight:600;fill:var(--hl-fg);font-variant-numeric:tabular-nums;letter-spacing:-.01em}.hl-tank-trend{font-weight:400;fill:var(--hl-muted)}.hl-tank-meta{font-size:12.5px;fill:var(--hl-muted);font-variant-numeric:tabular-nums}.hl-bubbles circle{fill:var(--hl-air);animation:hl-rise 1.6s ease-in infinite;opacity:0}@keyframes hl-rise{0%{transform:translateY(0);opacity:0}20%{opacity:.8}to{transform:translateY(var(--hl-rise));opacity:0}}.hl-drips circle{fill:var(--hl-k);opacity:0;animation:hl-drip .9s ease-in infinite}@keyframes hl-drip{0%{transform:translateY(0);opacity:0}15%,90%{opacity:.8}to{transform:translateY(var(--hl-fall));opacity:0}}.hl-pressure-fill{fill:var(--hl-bg)}.hl-pressure-ring{fill:none;stroke:var(--hl-air);stroke-opacity:.5;stroke-width:1.5;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:hl-ripple linear infinite}@keyframes hl-ripple{0%{transform:scale(0)}to{transform:scale(1)}}.hl-vent-ring{fill:none;stroke:var(--hl-air);stroke-width:1.5;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:hl-vent .9s linear infinite}@keyframes hl-vent{0%{transform:scale(0);opacity:1}92.857%{opacity:0}to{transform:scale(1);opacity:0}}.hl-diagram-label{font-size:13px;fill:var(--hl-muted)}.hl-diagram-label.is-strong{fill:var(--hl-fg);font-weight:500}.hl-diagram-label.is-bold{fill:var(--hl-fg);font-weight:700}.hl-diagram-label.is-muted{fill:var(--hl-subtle)}.hl-train-label{font-size:15px;font-weight:600;fill:var(--hl-fg)}.hl-uv rect{fill:var(--hl-bg);stroke:var(--hl-border-strong);stroke-width:1.5}.hl-uv text{font-size:13px;font-weight:500;fill:var(--hl-muted)}.hl-uv.is-on rect{fill:var(--hl-uv);stroke:var(--hl-uv)}.hl-uv.is-on text{fill:#fff}.hl-uv.is-unknown rect{stroke-dasharray:2 2}.hl-outlet.is-disconnected{opacity:.4}.hl-outlet.is-disconnected text{text-decoration:line-through}@media(prefers-reduced-motion:reduce){.hl-pipe-flow,.hl-pipe.hl-kind-air .hl-pipe-flow,.hl-pressure-ring,.hl-pump.is-on .hl-impeller{animation:none}.hl-valve-body{transition:none}.hl-bubbles,.hl-drips,.hl-vent-ring{display:none}}:root{color-scheme:light dark;--pg-bg-100: light-dark(oklch(1 0 0), oklch(0 0 0));--pg-bg-200: light-dark(oklch(.984 0 0), oklch(.027 0 0));--pg-gray-100: light-dark(oklch(.961 0 0), oklch(.218 0 0));--pg-gray-700: oklch(.65 0 0);--pg-gray-900: light-dark(oklch(.42 0 0), oklch(.706 0 0));--pg-gray-1000: light-dark(oklch(.205 0 0), oklch(.946 0 0));--pg-alpha-200: light-dark(oklch(0 0 0 / .081), oklch(1 0 0 / .09));--pg-alpha-300: light-dark(oklch(0 0 0 / .1), oklch(1 0 0 / .13));--pg-alpha-400: light-dark(oklch(0 0 0 / .08), oklch(1 0 0 / .14));--pg-alpha-700: light-dark(oklch(0 0 0 / .44), oklch(1 0 0 / .54));--pg-focus: light-dark( oklch(57.61% .2508 258.23), oklch(71.7% .1648 250.794) );--pg-text: var(--pg-gray-1000);--pg-text-secondary: var(--pg-gray-900);--pg-border-subtle: var(--pg-alpha-300);--pg-border: var(--pg-alpha-400);--pg-border-strong: var(--pg-alpha-700);--pg-control: 36px;--pg-radius: 6px;--pg-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace}:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--hl-bg);color:var(--pg-text);font-family:Geist,system-ui,sans-serif;font-size:.875rem;line-height:20px;font-feature-settings:"rlig" 1,"calt" 0,"ss11" 1;-webkit-font-smoothing:antialiased}h1{margin:0;font-size:1.25rem;line-height:26px;font-weight:600;letter-spacing:-.02em;text-wrap:balance}h2{margin:0 0 8px;font-size:.875rem;line-height:20px;font-weight:600;letter-spacing:-.01em}p{text-wrap:pretty}code{font-family:var(--pg-mono);font-size:.8125rem;padding:0 4px;border:1px solid var(--pg-border-subtle);border-radius:4px;background:var(--pg-gray-100)}.meta{margin:2px 0 0;font-family:var(--pg-mono);font-size:.8125rem;color:var(--pg-text-secondary)}.hint{margin:0 0 8px;font-size:.8125rem;line-height:18px;color:var(--pg-text-secondary)}button,select,input{font:inherit;color:inherit}button{min-height:var(--pg-control);padding:7px 12px;border:1px solid var(--pg-border);border-radius:var(--pg-radius);background:var(--pg-bg-100);font-weight:500;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}button:hover{background:var(--pg-alpha-200)}button:active{background:var(--pg-alpha-300)}button[aria-pressed=true]{background:var(--pg-gray-1000);border-color:var(--pg-gray-1000);color:var(--pg-bg-100)}select,input:not([type]),input[type=number]{min-height:var(--pg-control);width:100%;min-width:0;padding:7px 10px;border:1px solid var(--pg-border);border-radius:var(--pg-radius);background:var(--pg-bg-100);transition:border-color .15s ease}select:hover,input:not([type]):hover,input[type=number]:hover{border-color:var(--pg-border-strong)}input:not([type]){font-family:var(--pg-mono);font-size:.8125rem}input[type=number]{text-align:right;font-variant-numeric:tabular-nums}input:disabled,select:disabled{background:var(--pg-gray-100);color:var(--pg-gray-700)}input[type=range],input[type=checkbox]{accent-color:var(--pg-gray-1000)}input[type=checkbox]{width:16px;height:16px;margin:0}:is(a,button,input,select,summary):focus-visible{outline:2px solid var(--pg-focus);outline-offset:3px}.segmented{display:inline-flex}.segmented button{min-height:32px;padding:5px 10px;border-radius:0}.segmented button+button{margin-left:-1px}.segmented button:first-child{border-radius:var(--pg-radius) 0 0 var(--pg-radius)}.segmented button:last-child{border-radius:0 var(--pg-radius) var(--pg-radius) 0}.segmented button[aria-pressed=true]{position:relative}.check{display:flex;align-items:center;gap:8px;min-height:var(--pg-control);cursor:pointer}.layout{display:grid;grid-template-columns:440px minmax(0,1fr);min-height:100vh}.controls{position:sticky;top:0;max-height:100vh;overflow-y:auto;padding:24px;background:var(--pg-bg-200);border-right:1px solid var(--pg-border-subtle)}.controls header{margin-bottom:24px}.controls header .hint{margin-top:12px}.controls section+section{margin-top:24px}.presets{display:flex;flex-wrap:wrap;gap:8px}.row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px}.row .name{display:grid;min-width:0}.io-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--pg-mono);font-size:.75rem;line-height:16px;color:var(--pg-text-secondary)}.row.routine{grid-template-columns:56px minmax(0,1fr) minmax(0,1.4fr)}.row.tank{grid-template-columns:40px minmax(0,1fr) 44px 72px auto}.value{text-align:right;font-variant-numeric:tabular-nums}.preview{position:sticky;top:0;align-self:start;display:grid;gap:24px;padding:24px 32px 48px}.toolbar{display:flex;justify-content:flex-end;gap:12px}.preview figure{margin:0}.preview figcaption{display:grid;gap:12px;margin-top:12px}details summary{cursor:pointer;font-weight:500;width:fit-content}pre{margin:12px 0 0;max-height:480px;overflow:auto;padding:16px;border:1px solid var(--pg-border-subtle);border-radius:8px;background:var(--pg-bg-200);font-family:var(--pg-mono);font-size:.8125rem;line-height:1.55}@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr)}.controls{order:2;position:static;max-height:none;border-right:none;border-top:1px solid var(--pg-border-subtle)}.preview{position:static;padding:16px}}@media(max-width:800px){:root{--pg-control: 44px}.segmented button{min-height:44px}select,input{font-size:16px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
