.hero{background-color:#0b1d31;background-image:linear-gradient(rgba(120,190,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(120,190,255,.07) 1px,transparent 1px),linear-gradient(rgba(120,190,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(120,190,255,.035) 1px,transparent 1px),radial-gradient(ellipse at 75% 40%,#123a5e 0,#0b1d31 70%);background-size:64px 64px,64px 64px,16px 16px,16px 16px,100% 100%;padding:32px 0 104px}
.hero-g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:32px;align-items:start}
.hero-art{position:relative;width:100%;max-width:560px;justify-self:end}
.house{display:block;width:100%;height:auto;aspect-ratio:360/280;overflow:visible}
.soil{fill:#3a2c22}.grass{fill:#3f9a4a}.pebble{stroke:#5a4636;stroke-width:1.4;stroke-linecap:round}
.chim{fill:#7a3f2e;stroke:#a65a40;stroke-width:.6}.chimc{fill:#5c2f22}
.sil{fill:#e9eef3;stroke:#c7d3de;stroke-width:1}.roofl{fill:none;stroke:#3a4a66;stroke-width:5;stroke-linejoin:round;stroke-linecap:round}
.shing{fill:none;stroke:#c7d3de;stroke-width:.6;stroke-dasharray:4 3}
.int{fill:#1d3d5c}.base{fill:#2c3b48}.hall{fill:#21456a}
.rm{fill:#1f4466;transition:fill .5s}.rm.on{fill:#2c5478}
.slab{fill:#9fb3c4}.wl{fill:#c9d6e2}
.win{fill:url(#gsky);stroke:#cfe7ff;stroke-width:.8}.winx{stroke:#cfe7ff;stroke-width:.5}
.door{fill:#8a5a3c;stroke:#c99b72;stroke-width:.6}.knob{fill:#ffd27a}.stair{fill:none;stroke:#9fd3ff;stroke-width:.9}
.fur{fill:none;stroke:#9fd3ff;stroke-width:.9;stroke-linejoin:round;stroke-linecap:round;opacity:.55}
.fl{fill:#9fd3ff;font:600 7.2px/1 ui-monospace,monospace}
.lb,.rt{font:600 7.2px/1 ui-monospace,monospace;fill:#e6f1fa}.rt{fill:#d2c6ff}
.ret{fill:none;stroke:#7e6bc4;stroke-width:5;stroke-linejoin:round}.rgr{fill:#2b2350;stroke:#d2c6ff;stroke-width:.8}
.flue{fill:none;stroke:#8c99a6;stroke-width:2.2;stroke-linejoin:round}
.furn{fill:#3f6f99;stroke:#cfe7ff;stroke-width:1}.coil{fill:#5a89b1;stroke:#cfe7ff;stroke-width:.8}.plen{fill:url(#gm);stroke:#e6f1fa;stroke-width:.6}.vent{stroke:#cfe7ff;stroke-width:.8}.flame{fill:#5fb4ff}
.ts{fill:url(#gm);stroke:#5e7488;stroke-width:.5}.tl{font:700 6.2px/1 ui-monospace,monospace;fill:#ffd9a0;text-anchor:middle}
.br,.rg,.bl{display:none}.br.on,.rg.on,.bl.on{display:inline}
.br{fill:none;stroke:#c3d3e0;stroke-linejoin:round}.fp{fill:none;stroke:none}
.rg{fill:#ffb347;stroke:#ffd9a0;stroke-width:.6}.bl{font:600 7.2px/1 system-ui,sans-serif;fill:#fff3e0;text-anchor:middle}
.pad{fill:#8d9aa6}.odu{fill:#dfe7ee;stroke:#8d9aa6;stroke-width:1}.fanx{stroke:#7b8a98;stroke-width:.8}
.ls{fill:none;stroke:#5fd0c4;stroke-width:1.2}.ls2{stroke:#3a9e94;stroke-width:1.8}
#parts .s{fill:#ffb347}#parts .r{fill:#d2c6ff}
.db{fill:url(#gb);stroke:#1c5a22;stroke-width:.7;filter:drop-shadow(0 0 2px #7be35a)}.dseam{stroke:#2a7a32;stroke-width:.5}
.dcap{fill:#1e6b2a;stroke:#0f3d17;stroke-width:.5}.dbrim{stroke:#0f3d17;stroke-width:1.4;stroke-linecap:round}
.de{fill:#13241a}.dk{fill:#ff8fa3;opacity:.75}.dsm{fill:none;stroke:#13241a;stroke-width:.7;stroke-linecap:round}
.dl{stroke:#2a7a32;stroke-width:1.6;stroke-linecap:round;fill:none}.wr{stroke:#c7d3de;stroke-width:1.4;stroke-linecap:round;fill:none}
.hero-art .legend{position:static;width:100%;display:flex;justify-content:flex-start;gap:16px;margin:8px 0 0;height:24px;align-items:center;font:600 .8rem/1 ui-monospace,monospace;color:#cfe7ff}
.lk{margin-left:auto;white-space:nowrap}.lk i{display:inline-block;width:10px;height:10px;border-radius:50%;margin:0 4px 0 12px;vertical-align:-1px}.lk .ks{background:#ffb347}.lk .kr{background:#d2c6ff}
.hero-art .toast{bottom:40px}
.hit{fill:transparent;cursor:pointer}#filt,#tech{cursor:pointer;outline:none}#filt:focus-visible .flt,#tech:focus-visible 
.flt{fill:#d9e3ea;stroke:#7cc4ff;stroke-width:.6}.dust{fill:#8a7a62;opacity:.85;transition:opacity 1.2s}#filt.clean .dust{opacity:0}

#tarm{transform-box:fill-box;transform-origin:0 100%}
@keyframes wave{to{transform:rotate(-70deg)}}
.bub{opacity:0;transition:opacity .3s;pointer-events:none}.bub rect{fill:#fff}.bub text{fill:#0b1d31;font:600 8px/1 system-ui,sans-serif}#tech.talk .bub{opacity:1}
.toast{position:absolute;left:0;bottom:-8px;background:#fff;color:#0b1d31;font-size:.8rem;font-weight:600;border-radius:8px;padding:4px 8px;opacity:0;transition:opacity .3s;pointer-events:none}.toast.on{opacity:1}

/* results */
.viz{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0 16px}
.seg{display:block;width:100%;height:auto;aspect-ratio:280/104}
.seg .bd{fill:url(#mt)}.seg .end{fill:#cfe2f1;stroke:#0e5a8a;stroke-width:1}.seg .inn{fill:#0b1d31}.seg .lb{font:700 15px/1 ui-monospace,monospace;fill:#0a3f61}.seg .sm{font:600 9px/1 ui-monospace,monospace;fill:#46525f}
.seg #segg{transition:transform .6s ease;transform-box:fill-box;transform-origin:center}
.gauges{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gauge{display:block;width:100%;height:auto;aspect-ratio:120/80}
.gauge .ar{fill:none;stroke-width:8}.gauge .z1{stroke:#22a35a}.gauge .z2{stroke:#e8a317}.gauge .z3{stroke:#d64545}
.gauge .nd{stroke:#0f1b2a;stroke-width:2.4;stroke-linecap:round;transition:transform .8s cubic-bezier(.3,1.4,.5,1);transform-origin:60px 64px}
.gauge .hub{fill:#0f1b2a}.gauge .gv{font:700 9.5px/1 ui-monospace,monospace;fill:#0f1b2a;text-anchor:middle}.gauge .gl{font:600 7.5px/1 system-ui,sans-serif;fill:#46525f;text-anchor:middle;letter-spacing:.04em}
.gauge.peg .nd{animation:jit .5s ease-in-out infinite alternate}.gauge.peg .gl{fill:#b91c1c}
@keyframes jit{from{transform:rotate(88deg)}to{transform:rotate(84deg)}}
.calc-split{align-items:start}
@media (max-width:56rem){.hero{padding:16px 0 96px}.hero-g{grid-template-columns:1fr;gap:8px}.hero-art{display:none}#tech{display:none}.hero-art .legend{display:none}}
@media (prefers-reduced-motion:reduce){.hero *,.viz *{transition:none!important;animation:none!important}}
@media print{.hero-art,.viz{display:none}}
.skip{position:absolute;left:8px;top:-64px;z-index:20;background:#ffc454;color:#0b1d31;font-weight:700;padding:12px 16px;border-radius:8px;min-height:44px}.skip:focus{top:8px}
.zl{font:600 6px/1 ui-monospace,monospace;fill:#46525f;text-anchor:middle}
.calc-split{grid-template-columns:minmax(0,1fr) minmax(22rem,24rem)}
.total .btns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.total .btn{white-space:nowrap;font-size:.875rem;padding:8px;min-height:44px}
.lgb{font-size:.875rem;line-height:24px;height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);margin:0 0 8px}
.hero .lede{max-width:46ch}.hero .trust{font-size:.8rem}
@media (min-width:56.01rem){#rooms{table-layout:fixed;width:100%}#rooms th:nth-child(1){width:19%}#rooms th:nth-child(2){width:5.5rem}#rooms th:nth-child(3){width:6rem}#rooms th:nth-child(5){width:3rem}#rooms output{font-size:.875rem;line-height:1.45}}
.mcard{display:none}.rlist{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}.rlist li{display:grid;gap:4px;font-size:.9rem}.rlist .rn{font-weight:700}.rlist .rt2{color:var(--muted);font-size:.85rem}.rlist i{display:block;background:linear-gradient(90deg,#0e5a8a,#5fb4ff);border-radius:4px;min-width:8px}
.chart td:not(:first-child),.chart th:not(:first-child){text-align:right}.chart small{color:#5b6776}code{overflow-wrap:anywhere}
@media (max-width:56rem){.calc-split{grid-template-columns:minmax(0,1fr)}.mcard,.total{min-width:0}.fx .mcard{display:block}.mviz .viz{margin:0}.mviz .gauges{grid-template-columns:1fr 1fr}.total{position:static;border-radius:14px}.total .lgb{display:none}}
@media (max-width:56rem){html:not(.fx) .total{display:none}}
@media (max-width:56rem){.calc-split{min-height:100vh;align-content:start}}
@media (max-width:56rem){.fx .total{display:block;padding:16px}.total .btns{margin-top:8px}.total .btn{min-width:0}}
.mcard{padding:16px}.more{color:#ffd9a0;font-weight:600;white-space:nowrap}.more:empty{display:none}.rlist li{min-width:0}.rlist .rn,.rlist .rt2,#rooms output{overflow-wrap:anywhere}#filt:focus-visible .flt{stroke:#ffc454;stroke-width:2}#tech:focus-visible .db{stroke:#ffc454;stroke-width:1.6}
#tech.wave #tarm{animation:wave .3s ease-in-out 8 alternate}#tarm{transform-box:fill-box;transform-origin:0 100%}

/* duct-fix2 2026-10-11: balance hero 56–72rem */
@media (min-width:56.01rem) and (max-width:72rem){.hero-g{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center}.hero h1{font-size:clamp(1.9rem,1.1rem + 1.5vw,2.4rem)}}
.legend{flex-wrap:wrap;row-gap:4px}
.hero-art .legend{height:auto;min-height:24px}.legend .lk{margin-left:auto}
