:root{--wfh-green:#173d30;--wfh-green2:#2e6b54;--wfh-soft:#eef5f1;--wfh-line:#dce6df;--wfh-text:#1f352b;--wfh-muted:#687a71;--wfh-orange:#e86d35;--wfh-blue:#356fc1;--wfh-warn:#c87817;--wfh-danger:#bb4b3d;--wfh-ok:#2f7a58}
.wfh-body{background:#f7faf8;color:var(--wfh-text)}
.wfh-page{overflow:hidden}.wfh-page *{box-sizing:border-box}.wfh-page input,.wfh-page select,.wfh-page button{font:inherit}.wfh-noscript{padding:16px;background:#fff2d7;color:#6b4d16;text-align:center;font-weight:700}
.wfh-intro{padding-top:28px;padding-bottom:24px}.wfh-intro .breadcrumbs{margin-bottom:26px}.wfh-intro-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px;align-items:end}.wfh-kicker{font-size:12px;letter-spacing:.08em;font-weight:900;color:#577568;margin-bottom:10px}.wfh-intro h1{font-size:clamp(34px,4vw,58px);line-height:1.02;margin:0 0 16px;max-width:900px;color:#17382d}.wfh-lead{font-size:18px;line-height:1.6;max-width:920px;margin:0;color:#53675e}.wfh-intro-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.wfh-intro-tags span{border:1px solid #cfe0d7;background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800;color:#345d4c}.wfh-prelim{display:flex;gap:13px;background:#fff;border:1px solid #dfe8e3;border-radius:20px;padding:18px;box-shadow:0 14px 32px rgba(33,72,55,.06)}.wfh-prelim b{display:block;margin-bottom:6px}.wfh-prelim p{margin:0;color:#6d7d75;font-size:13px;line-height:1.45}.wfh-shield{width:34px;height:34px;border-radius:10px;background:#dff0e6;color:#2c7957;display:grid;place-items:center;font-weight:900;flex:none}
.wfh-calculator{background:#fff;border:1px solid #dfe8e3;border-radius:30px;padding:18px;margin-bottom:48px;box-shadow:0 24px 55px rgba(28,58,44,.07)}.wfh-stepper{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #e2e9e5;border-radius:20px;overflow:hidden;background:#fbfcfb}.wfh-step-tab{appearance:none;border:0;border-right:1px solid #e2e9e5;background:transparent;display:flex;gap:12px;align-items:center;padding:15px;text-align:left;color:#51665c;cursor:pointer;min-width:0}.wfh-step-tab:last-child{border-right:0}.wfh-step-tab i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eef3f0;font-style:normal;font-weight:900;flex:none}.wfh-step-tab b{display:block;color:#273d33;font-size:14px}.wfh-step-tab small{display:block;font-size:11px;margin-top:2px}.wfh-step-tab.is-active{background:#f3f9f5;box-shadow:inset 0 -3px #2e7556}.wfh-step-tab.is-active i{background:#1f5c43;color:#fff}.wfh-step-tab.is-done i{background:#dceee4;color:#236749}.wfh-progress{height:5px;background:#edf2ef;border-radius:99px;margin:12px 4px 0;overflow:hidden}.wfh-progress span{display:block;height:100%;width:20%;background:linear-gradient(90deg,#2d7555,#8bbda4);transition:width .25s ease}
.wfh-stage{display:none;padding:28px 8px 8px}.wfh-stage.is-active{display:block}.wfh-stage-heading{margin-bottom:22px}.wfh-stage-heading>span,.wfh-section-title>span{display:block;color:#4d7c68;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.wfh-stage-heading h2,.wfh-section-title h2{font-size:clamp(25px,3vw,36px);line-height:1.12;margin:0 0 9px;color:#17382d}.wfh-stage-heading p{margin:0;max-width:920px;color:#687a72;line-height:1.55}.wfh-stage-heading-inline{display:flex;justify-content:space-between;gap:18px;align-items:center}.wfh-stage-status{display:flex;align-items:center;gap:8px;color:#577468;font-size:13px}.wfh-stage-status i{width:9px;height:9px;border-radius:50%;background:#3f9b6d;box-shadow:0 0 0 5px #e6f3eb}
.wfh-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wfh-card{background:#fbfcfb;border:1px solid #dfe8e3;border-radius:22px;padding:22px}.wfh-card h3{margin:0 0 18px;font-size:20px;color:#1d3a2f}.wfh-card h4{margin:20px 0 10px}.wfh-fields{display:grid;gap:14px}.wfh-fields-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wfh-fields-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wfh-fields label,.wfh-big-field,.wfh-edge-controls label{display:block}.wfh-fields label>span,.wfh-big-field>span,.wfh-edge-controls label>span{display:block;font-size:13px;font-weight:800;color:#344b40;margin-bottom:7px}.wfh-fields label>small,.wfh-big-field>small{display:block;font-size:11px;line-height:1.4;color:#7c8c84;margin-top:5px}.wfh-fields select,.wfh-fields input,.wfh-big-field input,.wfh-edge-controls input{width:100%;height:46px;border:1px solid #cddbd3;border-radius:13px;background:#fff;padding:0 12px;color:#20372d;font-weight:700;outline:none}.wfh-fields select:focus,.wfh-fields input:focus,.wfh-big-field input:focus,.wfh-edge-controls input:focus{border-color:#5f9a7d;box-shadow:0 0 0 3px rgba(65,131,99,.12)}.wfh-unit{display:flex;border:1px solid #cddbd3;border-radius:13px;background:#fff;overflow:hidden;align-items:center}.wfh-unit input{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;min-width:0}.wfh-unit b{padding:0 11px;color:#667970;font-size:12px;border-left:1px solid #edf1ef;white-space:nowrap}.wfh-unit.readonly{background:#f0f5f2}.wfh-unit.readonly input{color:#214c39}.wfh-mini-results,.wfh-temp-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.wfh-mini-results>div,.wfh-temp-summary>div{background:#fff;border:1px solid #e0e9e4;border-radius:14px;padding:13px}.wfh-mini-results small,.wfh-temp-summary small{display:block;color:#77887f;font-size:11px;margin-bottom:5px}.wfh-mini-results strong,.wfh-temp-summary strong{font-size:17px;color:#214536}.wfh-segment{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d7e3dc;border-radius:13px;padding:4px;background:#f1f5f3;margin-bottom:16px}.wfh-segment button{border:0;border-radius:10px;background:transparent;padding:10px;font-size:12px;font-weight:800;color:#61756a;cursor:pointer}.wfh-segment button.is-active{background:#fff;color:#235440;box-shadow:0 3px 12px rgba(31,65,49,.08)}.wfh-loss-box{display:none}.wfh-loss-box.is-active{display:block}.wfh-big-field{margin-top:3px}.wfh-highlight{border-radius:17px;background:linear-gradient(135deg,#e8f4ed,#f7faf8);border:1px solid #cfe3d7;padding:17px;margin-top:18px}.wfh-highlight small{display:block;color:#648072}.wfh-highlight strong{display:block;font-size:30px;line-height:1.1;margin:4px 0;color:#194733}.wfh-highlight span{font-size:12px;color:#64776e}.wfh-note,.wfh-note-line{font-size:12px;line-height:1.5;color:#6e7f77}.wfh-note{margin:14px 0 0}.wfh-note-line{margin-top:16px;padding:12px 14px;background:#f2f6f4;border-radius:13px}.wfh-actions{display:flex;justify-content:space-between;gap:14px;margin-top:22px}.wfh-actions .btn,.wfh-final-actions .btn{min-height:46px;border-radius:13px}
.wfh-excluded-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #e3ebe7}.wfh-excluded-head b{display:block}.wfh-excluded-head small{display:block;color:#798981;font-size:11px;margin-top:3px}.wfh-excluded-head button{border:1px solid #c8dbd1;color:#2c664d;background:#fff;padding:9px 12px;border-radius:11px;font-weight:800;font-size:12px;cursor:pointer}.wfh-zone-empty{margin-top:12px;padding:12px 14px;border:1px dashed #cbdad2;border-radius:13px;background:#f8fbf9;color:#6c7f75;font-size:12px;line-height:1.45}.wfh-zone-empty[hidden]{display:none}.wfh-zone-list{display:grid;gap:10px;margin-top:12px}.wfh-zone-row{display:grid;grid-template-columns:1.2fr .65fr .65fr 1.15fr 34px;gap:8px;align-items:end;background:#f2f6f4;border-radius:14px;padding:10px}.wfh-zone-custom{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:2px}.wfh-zone-custom[hidden]{display:none}.wfh-zone-custom .wfh-unit{height:36px}.wfh-zone-custom .wfh-unit input{height:34px;border:0;border-radius:0;background:transparent;padding:0 8px;font-size:12px}.wfh-zone-custom .wfh-unit b{font-size:11px}.wfh-zone-row label>span{display:block;font-size:10px;color:#788980;margin-bottom:4px}.wfh-zone-row input,.wfh-zone-row select{width:100%;height:36px;border:1px solid #d0ddd6;border-radius:9px;padding:0 8px;background:#fff;font-size:12px}.wfh-zone-remove{height:36px;border:0;border-radius:9px;background:#fff0ed;color:#b44e3f;font-size:20px;cursor:pointer}.wfh-edge-box{margin-top:18px;border:1px solid #dbe7e0;border-radius:16px;padding:15px;background:#f8fbf9}.wfh-toggle{display:flex;align-items:center;gap:10px;cursor:pointer}.wfh-toggle input{display:none}.wfh-toggle span{width:42px;height:24px;background:#cbd8d1;border-radius:99px;position:relative;transition:.2s}.wfh-toggle span:after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 2px 6px rgba(0,0,0,.16);transition:.2s}.wfh-toggle input:checked+span{background:#3d8765}.wfh-toggle input:checked+span:after{left:21px}.wfh-edge-controls{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:12px;align-items:end;margin-top:13px}.wfh-wall-pick{display:flex;flex-wrap:wrap;gap:7px}.wfh-wall-pick>span{width:100%;font-size:11px;color:#6f8177}.wfh-wall-pick label{background:#fff;border:1px solid #d4e0da;border-radius:9px;padding:7px 8px;font-size:11px}.wfh-wall-pick input{width:auto;height:auto;margin-right:4px}.wfh-limit-badge{background:#eef7f1;border-radius:12px;padding:10px 12px}.wfh-limit-badge small,.wfh-limit-badge span{display:block;color:#708379;font-size:10px}.wfh-limit-badge b{display:block;color:#2d684f;font-size:19px}.wfh-norm-banner{margin-top:15px;padding:14px 15px;border-left:4px solid #4b8769;background:#eef6f1;border-radius:0 13px 13px 0}.wfh-norm-banner b{font-size:13px}.wfh-norm-banner p{font-size:12px;color:#60766a;line-height:1.5;margin:5px 0 0}
.wfh-dashboard{display:grid;grid-template-columns:250px minmax(0,1fr) 310px;grid-template-areas:"params plan results" "params checks results";gap:14px}.wfh-dash-panel,.wfh-plan-panel,.wfh-checks{border:1px solid #dfe8e3;background:#fbfcfb;border-radius:18px}.wfh-params-panel{grid-area:params;padding:16px}.wfh-plan-panel{grid-area:plan;padding:16px;min-width:0}.wfh-live-results{grid-area:results;padding:16px}.wfh-checks{grid-area:checks;padding:11px;display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.wfh-panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.wfh-panel-title h3,.wfh-live-results h3{font-size:16px;margin:0}.wfh-panel-title button{border:0;background:transparent;color:#317052;font-size:11px;font-weight:800;cursor:pointer}.wfh-live{font-size:10px;color:#3a8660}.wfh-summary-list{display:grid;gap:0}.wfh-summary-group{padding:12px 0;border-top:1px solid #e7ede9}.wfh-summary-group:first-child{border-top:0;padding-top:0}.wfh-summary-group h4{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#497060;margin:0 0 7px}.wfh-summary-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:3px 0;color:#66786f}.wfh-summary-row b{text-align:right;color:#263e33}.wfh-plan-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:8px;font-size:10px;color:#65776e}.wfh-plan-legend span{display:flex;align-items:center;gap:5px}.wfh-plan-legend i{display:inline-block;width:18px;height:3px}.wfh-plan-legend .red{background:var(--wfh-orange)}.wfh-plan-legend .blue{background:var(--wfh-blue)}.wfh-plan-legend .dash{border-top:2px dashed #78877f;height:0}.wfh-plan-legend .edge{height:12px;background:#fde7de;border:1px solid #f0bea8}.wfh-plan-legend .blocked{height:12px;background:#bec7c2}.wfh-plan-panel svg{width:100%;height:auto;max-height:500px;background:#fff;border-radius:14px;border:1px solid #edf1ef}.wfh-layout-switch{display:flex;gap:7px;margin-top:9px}.wfh-layout-switch button{flex:1;border:1px solid #d5e1da;background:#fff;padding:9px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer;color:#4e665b}.wfh-layout-switch button.is-active{border-color:#5d967b;background:#eef6f1;color:#245d45}.wfh-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wfh-result-grid>div{border:1px solid #e2e9e5;background:#fff;border-radius:12px;padding:11px}.wfh-result-grid small{display:block;color:#788981;font-size:9px;margin-bottom:4px}.wfh-result-grid strong{font-size:16px;color:#203f32}.wfh-loop-table-wrap{overflow:auto}.wfh-loop-table{width:100%;border-collapse:collapse;font-size:10px}.wfh-loop-table th,.wfh-loop-table td{padding:7px 5px;border-bottom:1px solid #e5ece8;text-align:right;white-space:nowrap}.wfh-loop-table th:first-child,.wfh-loop-table td:first-child{text-align:left}.wfh-loop-table th{font-size:9px;color:#73847c}.wfh-loop-table.full{font-size:11px}.wfh-check{background:#fff;border:1px solid #e5ebe8;border-radius:12px;padding:10px;text-align:center}.wfh-check small{display:block;font-size:9px;color:#73847c}.wfh-check strong{display:block;font-size:18px;margin:4px 0;color:#2f6f52}.wfh-check span{font-size:9px;color:#65786f}.wfh-check.warn strong,.wfh-check.warn span{color:var(--wfh-warn)}.wfh-check.bad strong,.wfh-check.bad span{color:var(--wfh-danger)}.wfh-disclaimer-inline{margin-top:11px;background:#f0f6f2;border-radius:11px;padding:10px 13px;font-size:11px;color:#64776d}.wfh-final-hero{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:18px}.wfh-final-hero>div{background:#f4f8f5;border:1px solid #dbe7e0;border-radius:16px;padding:14px}.wfh-final-hero small{display:block;color:#6f8178;font-size:10px;margin-bottom:5px}.wfh-final-hero strong{font-size:19px;color:#1d4936}.wfh-grid-final{display:grid;grid-template-columns:1fr 1.25fr;gap:16px}.wfh-grid-final .wfh-card:nth-child(2){grid-row:span 2}.wfh-conclusion{padding:14px;border-radius:14px;background:#edf6f0;color:#2c654b;font-weight:800;line-height:1.45;margin-bottom:15px}.wfh-conclusion.warn{background:#fff5df;color:#8c631d}.wfh-conclusion.bad{background:#fff0ed;color:#9e4639}.wfh-final-metrics{display:grid;gap:0}.wfh-final-metrics>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e6ece9;font-size:12px}.wfh-final-metrics>div:last-child{border-bottom:0}.wfh-materials{display:grid;gap:8px}.wfh-material-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:10px 11px;border:1px solid #e3ebe6;border-radius:12px;background:#fff}.wfh-material-row span{font-size:12px}.wfh-material-row b{white-space:nowrap;color:#1e543e}.wfh-checklist{margin:0;padding-left:21px;color:#5d7167;line-height:1.55;font-size:12px}.wfh-checklist li{margin:7px 0}.wfh-final-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.wfh-content{padding-top:44px;padding-bottom:8px}.wfh-section-title{max-width:900px;margin-bottom:22px}.wfh-content-grid,.wfh-formulas{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.wfh-content-grid article,.wfh-formulas article{border:1px solid #dfe8e3;background:#fff;border-radius:18px;padding:18px}.wfh-content-grid b,.wfh-formulas b{display:block;color:#1f4a38;margin-bottom:7px}.wfh-content-grid p,.wfh-formulas p{font-size:13px;line-height:1.55;color:#687a72;margin:0}.wfh-formulas{grid-template-columns:repeat(3,1fr)}.wfh-formulas code{display:block;padding:9px 10px;background:#eff5f1;border-radius:10px;margin:8px 0 10px;color:#245d45;font-weight:800;white-space:normal}.wfh-sources{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.wfh-sources>div{background:#fff;border:1px solid #dde7e1;border-radius:15px;padding:15px}.wfh-sources b{display:block;color:#1f573f;margin-bottom:4px}.wfh-sources span{font-size:12px;line-height:1.45;color:#667970}.wfh-source-note{font-size:12px;color:#667970;line-height:1.55;margin:16px 0}.wfh-source-link{display:inline-block;color:#2a6a4e;font-weight:800;text-decoration:none;margin-bottom:42px}
@media(max-width:1150px){.wfh-dashboard{grid-template-columns:220px minmax(0,1fr);grid-template-areas:"params plan" "results plan" "checks checks"}.wfh-live-results{min-width:0}.wfh-checks{grid-template-columns:repeat(5,1fr)}.wfh-final-hero{grid-template-columns:repeat(3,1fr)}.wfh-intro-grid{grid-template-columns:1fr}.wfh-prelim{max-width:650px}}
@media(max-width:900px){.wfh-stepper{display:flex;overflow-x:auto}.wfh-step-tab{min-width:190px}.wfh-grid-2,.wfh-grid-final{grid-template-columns:1fr}.wfh-grid-final .wfh-card:nth-child(2){grid-row:auto}.wfh-dashboard{display:flex;flex-direction:column}.wfh-plan-panel{order:1}.wfh-params-panel{order:2}.wfh-live-results{order:3}.wfh-checks{order:4;grid-template-columns:repeat(2,1fr)}.wfh-fields-3{grid-template-columns:repeat(2,1fr)}.wfh-content-grid{grid-template-columns:repeat(2,1fr)}.wfh-formulas{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.wfh-calculator{border-radius:20px;padding:10px;margin-left:8px;margin-right:8px}.wfh-stage{padding:20px 2px 4px}.wfh-card{padding:16px;border-radius:17px}.wfh-fields-2,.wfh-fields-3{grid-template-columns:1fr}.wfh-mini-results,.wfh-temp-summary{grid-template-columns:1fr 1fr}.wfh-edge-controls{grid-template-columns:1fr}.wfh-zone-row{grid-template-columns:1fr 1fr}.wfh-zone-row label:first-child,.wfh-zone-row label:nth-child(4){grid-column:span 2}.wfh-zone-custom{grid-column:1/-1;grid-template-columns:1fr}.wfh-zone-remove{grid-column:2;justify-self:end;width:38px}.wfh-final-hero{grid-template-columns:1fr 1fr}.wfh-content-grid,.wfh-formulas,.wfh-sources{grid-template-columns:1fr}.wfh-checks{grid-template-columns:1fr 1fr}.wfh-stage-heading-inline{align-items:flex-start;flex-direction:column}.wfh-intro{padding-top:18px}.wfh-intro h1{font-size:36px}.wfh-lead{font-size:16px}.wfh-plan-legend{gap:7px}.wfh-final-actions,.wfh-actions{flex-wrap:wrap}.wfh-final-actions .btn,.wfh-actions .btn{flex:1 1 auto}.wfh-result-grid{grid-template-columns:1fr 1fr}}
@media print{.site-header,.footer,.wfh-stepper,.wfh-progress,.wfh-actions,.wfh-final-actions,.wfh-content,.wfh-stage:not([data-stage="5"]){display:none!important}.wfh-stage[data-stage="5"]{display:block!important}.wfh-calculator{box-shadow:none;border:0}.wfh-page{background:#fff}}
/* v2: normative construction controls */
.wfh-construction-status{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.wfh-construction-status>div{background:#fff;border:1px solid #dfe8e3;border-radius:13px;padding:11px}.wfh-construction-status small{display:block;color:#74867c;font-size:10px;margin-bottom:4px}.wfh-construction-status b{display:block;color:#2e6b54;font-size:13px}.wfh-construction-status b.warn{color:var(--wfh-warn)}.wfh-construction-status b.bad{color:var(--wfh-danger)}
.wfh-checks{grid-template-columns:repeat(6,1fr)}
.wfh-norm-list{display:grid;gap:6px}.wfh-norm-list li{margin:0}.wfh-badge-inline{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:3px 7px;background:#eef6f1;color:#2e6b54;font-size:10px;font-weight:800}.wfh-badge-inline.warn{background:#fff5df;color:#8c631d}.wfh-badge-inline.bad{background:#fff0ed;color:#9e4639}
@media(max-width:1150px){.wfh-checks{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.wfh-construction-status{grid-template-columns:1fr}.wfh-checks{grid-template-columns:1fr 1fr}}
.wfh-alerts{margin:12px 4px 0;padding:11px 14px;border-radius:13px;background:#fff6e6;border:1px solid #efd7aa;color:#77571c;font-size:12px;line-height:1.45}.wfh-alerts.bad{background:#fff0ed;border-color:#efc7bf;color:#8e4035}.wfh-alerts ul{margin:0;padding-left:18px}.wfh-alerts li+li{margin-top:4px}
/* v4: generated hero artwork, kept as an independent non-stretched background layer */
.wfh-intro{
  position:relative;
  isolation:isolate;
  min-height:500px;
  padding:28px 40px 34px;
  border:1px solid #e2e8e3;
  border-radius:30px;
  overflow:hidden;
  background-image:
    linear-gradient(90deg,rgba(247,250,248,.99) 0%,rgba(247,250,248,.97) 40%,rgba(247,250,248,.70) 51%,rgba(247,250,248,.12) 66%,rgba(247,250,248,0) 76%),
    url('water-floor-heating-hero-v4.webp');
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
  background-position:center,center;
  box-shadow:0 20px 46px rgba(28,58,44,.05);
}
.wfh-intro .breadcrumbs,.wfh-intro-grid{position:relative;z-index:1}
.wfh-intro-grid{display:block;max-width:690px}
.wfh-intro-copy{max-width:690px}
.wfh-intro h1{max-width:680px;text-wrap:balance}
.wfh-lead{max-width:650px}
.wfh-prelim{max-width:620px;margin-top:22px;background:rgba(255,255,255,.88);backdrop-filter:blur(5px)}
@media(max-width:1150px){
  .wfh-intro{min-height:470px;padding:26px 30px 32px;background-position:center,58% center}
  .wfh-intro-grid,.wfh-intro-copy{max-width:620px}
}
@media(max-width:900px){
  .wfh-intro{min-height:0;padding:24px 24px 270px;background-image:linear-gradient(180deg,rgba(247,250,248,.99) 0%,rgba(247,250,248,.98) 48%,rgba(247,250,248,.72) 62%,rgba(247,250,248,.08) 78%,rgba(247,250,248,0) 100%),url('water-floor-heating-hero-v4.webp');background-size:cover,auto 300px;background-position:center,right bottom}
  .wfh-intro-grid,.wfh-intro-copy{max-width:100%}
  .wfh-prelim{max-width:100%}
}
@media(max-width:650px){
  .wfh-intro{margin-left:8px;margin-right:8px;border-radius:22px;padding:20px 18px 220px;background-size:cover,auto 235px;background-position:center,72% bottom}
  .wfh-intro .breadcrumbs{margin-bottom:20px}
  .wfh-intro h1{font-size:34px}
  .wfh-lead{font-size:15px;line-height:1.5}
  .wfh-intro-tags{gap:6px;margin-top:16px}.wfh-intro-tags span{font-size:11px;padding:7px 9px}
  .wfh-prelim{padding:14px;margin-top:16px}
}

.wfh-plan-warnings{margin-top:10px;padding:11px 13px;border-radius:12px;border:1px solid #f2d4a6;background:#fff7e7;color:#815a18;font-size:11px;line-height:1.5}.wfh-plan-warnings ul{margin:0;padding-left:18px}.wfh-plan-warnings li+li{margin-top:6px}.wfh-layout-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wfh-layout-switch button{min-height:52px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;white-space:normal;padding:10px 8px;font-size:12px}.wfh-loop-table th:nth-child(2),.wfh-loop-table td:nth-child(2){min-width:54px}@media(max-width:980px){.wfh-layout-switch{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.wfh-layout-switch button{min-height:48px;font-size:11px}}
.wfh-router-status{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;padding:7px 10px;border-radius:999px;background:#edf7f1;border:1px solid #cfe7d8;color:#2c684e;font-size:10px;font-weight:800}.wfh-router-status:before{content:'✓';display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#2f7957;color:#fff;font-size:10px}
.wfh-router-status.is-warn{background:#fff7e7;border-color:#efd39f;color:#805b1e}.wfh-router-status.is-warn:before{content:'!';background:#bd8127}.wfh-router-status.is-bad{background:#fff0ed;border-color:#efc4bc;color:#943f34}.wfh-router-status.is-bad:before{content:'×';background:#b94e41}.wfh-plan-canvas{max-width:100%;overflow:hidden;border-radius:14px}.wfh-zone-legend{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.wfh-zone-legend:empty{display:none}.wfh-zone-legend span{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badge name" "badge size";align-items:center;column-gap:7px;min-width:150px;max-width:240px;padding:7px 9px;border:1px solid #dfe7e3;border-radius:10px;background:#fff;color:#53665d}.wfh-zone-legend i{grid-area:badge;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#65766e;color:#fff;font-size:9px;font-weight:800;font-style:normal}.wfh-zone-legend b{grid-area:name;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#31483e}.wfh-zone-legend small{grid-area:size;font-size:9px;color:#788981}.wfh-plan-panel svg path{vector-effect:non-scaling-stroke}.wfh-plan-panel svg text{paint-order:stroke;stroke:rgba(255,255,255,.28);stroke-width:.8px}
@media(max-width:650px){.wfh-plan-panel{padding:12px}.wfh-plan-canvas{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.wfh-plan-canvas svg{width:620px;max-width:none;max-height:none}.wfh-zone-legend{display:grid;grid-template-columns:1fr}.wfh-zone-legend span{max-width:none}.wfh-router-status{border-radius:11px;line-height:1.35}.wfh-plan-legend{font-size:9px}}


/* v11 — full-width live plan + responsive article structure */
.wfh-dashboard{
  grid-template-columns:minmax(250px,.78fr) minmax(0,1.22fr);
  grid-template-areas:"plan plan" "params results" "checks checks";
  gap:16px;
}
.wfh-plan-panel{grid-area:plan;padding:18px;min-width:0}
.wfh-params-panel{grid-area:params}.wfh-live-results{grid-area:results}.wfh-checks{grid-area:checks}
.wfh-plan-canvas{
  width:100%;
  max-width:none;
  aspect-ratio:var(--wfh-plan-ratio, 4 / 3);
  min-height:520px;
  overflow:hidden;
  border:1px solid #e8eeeb;
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
}
.wfh-plan-panel svg{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  background:transparent;
}
.wfh-plan-panel svg path,.wfh-plan-panel svg rect,.wfh-plan-panel svg circle{vector-effect:non-scaling-stroke}
.wfh-plan-panel .wfh-panel-title h3{font-size:18px}
.wfh-plan-legend{font-size:11px;gap:16px}.wfh-router-status{font-size:11px}
.wfh-zone-legend span{min-width:180px;max-width:290px}

.wfh-article-section{padding-top:48px;padding-bottom:4px}
.wfh-article-section .wfh-section-title{max-width:960px}
.wfh-article-section .wfh-section-title p{margin:9px 0 0;color:#687a72;line-height:1.6;font-size:14px}
.wfh-step-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.wfh-step-cards article,.wfh-layout-cards article,.wfh-error-grid article{background:#fff;border:1px solid #dfe8e3;border-radius:18px;padding:18px;min-width:0}
.wfh-step-cards i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e6f1ea;color:#245f46;font-style:normal;font-weight:900;margin-bottom:13px}
.wfh-step-cards h3,.wfh-layout-cards h3{font-size:16px;margin:0 0 7px;color:#244538}.wfh-step-cards p,.wfh-layout-cards p,.wfh-error-grid p{margin:0;color:#687a72;font-size:12.5px;line-height:1.55}
.wfh-layout-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.wfh-layout-cards article>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#edf5f0;color:#285f48;font-size:21px;font-weight:900;margin-bottom:12px}.wfh-layout-note{display:flex;gap:12px;margin-top:14px;padding:15px 17px;border:1px solid #d4e5db;border-radius:15px;background:#f2f8f4;color:#5b7166;font-size:13px;line-height:1.5}.wfh-layout-note b{color:#235a43;white-space:nowrap}
.wfh-error-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.wfh-error-grid b{display:block;color:#214f3b;margin-bottom:7px}
.wfh-practical{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:24px;align-items:start}.wfh-practical-main>p{font-size:14px;line-height:1.7;color:#61756b;margin:0 0 16px}.wfh-practical-main h3{margin:25px 0 8px;color:#214737;font-size:19px}.wfh-example-card{position:sticky;top:90px;background:linear-gradient(145deg,#eef6f1,#fff);border:1px solid #d5e5dc;border-radius:22px;padding:21px}.wfh-example-card>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#4f7d68}.wfh-example-card h3{margin:6px 0 15px;color:#1f4938}.wfh-example-card dl{margin:0}.wfh-example-card dl>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dfe9e3;padding:9px 0;font-size:12px}.wfh-example-card dt{color:#718178}.wfh-example-card dd{margin:0;text-align:right;font-weight:800;color:#294d3e}.wfh-example-card p{margin:12px 0 0;color:#60736a;font-size:12px;line-height:1.5}
.wfh-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wfh-faq-grid details{background:#fff;border:1px solid #dfe8e3;border-radius:15px;padding:0 15px}.wfh-faq-grid summary{cursor:pointer;list-style:none;padding:15px 28px 15px 0;font-weight:800;color:#284b3c;position:relative}.wfh-faq-grid summary::-webkit-details-marker{display:none}.wfh-faq-grid summary:after{content:'+';position:absolute;right:0;top:12px;font-size:22px;color:#54806d}.wfh-faq-grid details[open] summary:after{content:'−'}.wfh-faq-grid p{margin:0;padding:0 0 15px;color:#687a72;font-size:13px;line-height:1.6}
.wfh-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wfh-related-grid a{display:block;text-decoration:none;border:1px solid #dce7e1;background:#fff;border-radius:16px;padding:16px;transition:transform .18s ease,border-color .18s ease}.wfh-related-grid a:hover{transform:translateY(-2px);border-color:#9fc4b1}.wfh-related-grid b{display:block;color:#23563f;margin-bottom:4px}.wfh-related-grid small{display:block;color:#71827a;line-height:1.45}

@media(max-width:1150px){
 .wfh-dashboard{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);grid-template-areas:"plan plan" "params results" "checks checks"}
 .wfh-plan-canvas{min-height:460px}
 .wfh-step-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 .wfh-layout-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .wfh-dashboard{display:flex;flex-direction:column}.wfh-plan-panel{order:1}.wfh-params-panel{order:2}.wfh-live-results{order:3}.wfh-checks{order:4}
 .wfh-plan-canvas{min-height:420px}
 .wfh-practical{grid-template-columns:1fr}.wfh-example-card{position:static}
 .wfh-error-grid,.wfh-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wfh-faq-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
 .wfh-plan-panel{padding:10px}.wfh-plan-panel .wfh-panel-title{align-items:flex-start}.wfh-plan-panel .wfh-panel-title h3{font-size:16px;line-height:1.25}.wfh-live{white-space:nowrap}
 .wfh-plan-canvas{width:100%;min-height:340px;aspect-ratio:var(--wfh-plan-ratio,1 / 1);overflow:hidden;border-radius:12px}
 .wfh-plan-canvas svg{width:100%;height:100%;max-width:100%;max-height:none}
 .wfh-plan-legend{gap:8px 10px;font-size:9px}.wfh-plan-legend i{width:15px}.wfh-router-status{display:flex;width:100%;font-size:10px;border-radius:12px;white-space:normal}
 .wfh-layout-switch{grid-template-columns:1fr 1fr}.wfh-layout-switch button{font-size:10px;padding:8px 5px}
 .wfh-zone-legend{display:grid;grid-template-columns:1fr}.wfh-zone-legend span{min-width:0;max-width:none}
 .wfh-article-section{padding-top:38px}.wfh-step-cards,.wfh-layout-cards,.wfh-error-grid,.wfh-related-grid{grid-template-columns:1fr}.wfh-step-cards article,.wfh-layout-cards article,.wfh-error-grid article{padding:16px}
 .wfh-layout-note{display:block}.wfh-layout-note b{display:block;margin-bottom:5px;white-space:normal}
 .wfh-practical-main>p{font-size:13px}.wfh-faq-grid summary{font-size:13px;line-height:1.35}
}
@media(max-width:390px){
 .wfh-plan-panel{padding:8px}.wfh-plan-canvas{min-height:310px}.wfh-plan-legend{font-size:8.5px}.wfh-layout-switch{gap:6px}.wfh-layout-switch button{min-height:44px;font-size:9.5px}
 .wfh-result-grid{grid-template-columns:1fr}.wfh-checks{grid-template-columns:1fr}.wfh-final-hero{grid-template-columns:1fr}
}

/* v12 — balanced live-plan sizing: full-width section, centered drawing */
.wfh-plan-panel{
  padding:18px;
}
.wfh-plan-canvas{
  width:min(100%, 980px);
  max-width:980px;
  height:560px;
  min-height:0;
  aspect-ratio:auto;
  margin:0 auto;
  overflow:hidden;
  align-items:center;
  justify-content:center;
}
.wfh-plan-canvas svg{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
}

@media(max-width:1150px){
  .wfh-plan-canvas{
    width:min(100%, 900px);
    max-width:900px;
    height:520px;
    min-height:0;
    aspect-ratio:auto;
  }
}
@media(max-width:900px){
  .wfh-plan-canvas{
    width:100%;
    max-width:760px;
    height:460px;
    min-height:0;
    aspect-ratio:auto;
  }
}
@media(max-width:650px){
  .wfh-plan-panel{padding:10px}
  .wfh-plan-canvas{
    width:100%;
    max-width:none;
    height:clamp(300px, 82vw, 390px);
    min-height:0;
    aspect-ratio:auto;
    margin:0;
    overflow:hidden;
  }
  .wfh-plan-canvas svg{
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
  }
}
@media(max-width:390px){
  .wfh-plan-panel{padding:8px}
  .wfh-plan-canvas{
    height:clamp(286px, 80vw, 315px);
    min-height:0;
  }
}


/* v13 mobile stepper refinement */
@media(max-width:900px){
  .wfh-stepper{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-radius:18px;
    overflow:hidden;
  }
  .wfh-step-tab{
    min-width:0;
    min-height:62px;
    padding:11px 12px;
    justify-content:flex-start;
    align-items:flex-start;
    gap:8px;
    border-right:1px solid #e2e9e5;
    border-bottom:1px solid #e2e9e5;
    box-shadow:none;
  }
  .wfh-step-tab:nth-child(2n){border-right:0}
  .wfh-step-tab:last-child{grid-column:1/-1}
  .wfh-step-tab b,.wfh-step-tab small{overflow-wrap:anywhere}
}
@media(max-width:430px){
  .wfh-stepper{grid-template-columns:1fr}
  .wfh-step-tab,.wfh-step-tab:last-child{grid-column:auto;border-right:0}
  .wfh-step-tab{min-height:58px;padding:10px 11px}
  .wfh-step-tab small{display:none}
}

/* v872: added obstacle rows fit nested desktop panels as well as phones. */
.wfh-zone-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.wfh-zone-row > label:first-child,.wfh-zone-row > label:nth-child(4){grid-column:auto}
.wfh-zone-row label{min-width:0}
.wfh-zone-row input,.wfh-zone-row select{min-width:0;box-sizing:border-box}
.wfh-zone-row > .wfh-zone-remove{grid-column:1/-1;justify-self:end;width:44px;min-width:44px}
.wfh-zone-custom{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
