/* Hip roof PRO v2 — premium two-mode calculator */
:root{
  --hip-ink:#1d2e27;--hip-muted:#68776f;--hip-line:#dce6e0;--hip-bg:#f5f8f6;--hip-card:#fff;
  --hip-green:#245f49;--hip-green2:#3c8264;--hip-soft:#edf6f1;--hip-gold:#c97a3d;--hip-red:#a84a42;
  --hip-shadow:0 22px 60px rgba(25,55,42,.085)
}
.hippro-calc{padding:40px 0 26px;background:linear-gradient(180deg,#f7f9f7 0,#f4f7f5 100%)}
.hippro-shell{overflow:hidden;border:1px solid #dce5e0;border-radius:28px;background:#fff;box-shadow:var(--hip-shadow)}
.hippro-shell-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,430px);gap:28px;align-items:start;padding:28px 30px 24px;border-bottom:1px solid #e2e9e5;background:linear-gradient(180deg,#fff,#f8faf9)}
.hippro-eyebrow{display:block;margin-bottom:8px;color:var(--hip-green);font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.hippro-shell-head h2{margin:0 0 8px;font-size:clamp(28px,3vw,38px);line-height:1.08;letter-spacing:-.03em}
.hippro-shell-head p{max-width:880px;margin:0;color:var(--hip-muted);font-size:15px;line-height:1.62}
.hippro-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;border-radius:17px;background:#eaf0ed}
.hippro-mode-switch button{min-width:0;border:0;border-radius:13px;background:transparent;padding:12px 13px;color:#607068;text-align:left;cursor:pointer}
.hippro-mode-switch b,.hippro-mode-switch small{display:block}.hippro-mode-switch b{font-size:13px}.hippro-mode-switch small{margin-top:3px;font-size:10px;line-height:1.25}.hippro-mode-switch button.is-active{background:#fff;color:#204f3e;box-shadow:0 5px 16px rgba(30,65,50,.09)}

.hippro-stage-nav{display:grid;gap:8px;padding:16px 20px;border-bottom:1px solid #e4ebe7;background:#f8faf9}.hippro-stage-nav.simple{grid-template-columns:repeat(4,minmax(0,1fr))}.hippro-stage-nav.pro{grid-template-columns:repeat(4,minmax(0,1fr))}
.hippro-stage-nav button{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;gap:1px 8px;align-items:center;min-width:0;min-height:58px;border:1px solid #dde6e1;border-radius:14px;background:#fff;padding:9px 10px;color:#607068;text-align:left;cursor:pointer;box-shadow:0 5px 14px rgba(25,55,42,.025)}
.hippro-stage-nav span{grid-row:1/3;display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:#edf2ef;font-size:11px;font-weight:900}.hippro-stage-nav b{min-width:0;font-size:11.5px;line-height:1.15;overflow-wrap:anywhere}.hippro-stage-nav small{min-width:0;font-size:9.5px;line-height:1.2;color:#7b8881;overflow-wrap:anywhere}.hippro-stage-nav button.is-active{border-color:#9fc7b3;background:#f0f8f4;color:#1f5944;box-shadow:0 8px 20px rgba(36,95,73,.08)}.hippro-stage-nav button.is-active span{background:var(--hip-green);color:#fff}.hippro-stage-nav button.is-done span{background:#dcefe5;color:#225f46}

.hippro-workbench{display:grid;grid-template-columns:minmax(520px,620px) minmax(0,1fr);align-items:start}.hippro-controls{min-width:0;border-right:1px solid #e2e9e5;background:#fbfcfb}.hippro-current-step{display:flex;align-items:center;gap:13px;padding:15px 20px;border-bottom:1px solid #e6ece8;background:#fff}.hippro-current-step>span{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#e8f3ed;color:#245f49;font-size:10px;font-weight:900}.hippro-current-step div{min-width:0}.hippro-current-step b,.hippro-current-step small{display:block}.hippro-current-step b{font-size:14px}.hippro-current-step small{margin-top:2px;color:#78857e;font-size:10.5px}
.hippro-step{padding:23px 22px 22px}.hippro-step[hidden]{display:none!important}.hippro-step-head{margin-bottom:16px}.hippro-step-head>span{display:block;color:var(--hip-green);font-size:10.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.hippro-step-head h3{margin:5px 0 6px;font-size:25px;line-height:1.1;letter-spacing:-.02em}.hippro-step-head p{margin:0;color:var(--hip-muted);font-size:13px;line-height:1.5}
.hippro-card{margin-top:12px;padding:16px;border:1px solid #dde6e1;border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(26,54,42,.025)}.hippro-card:first-of-type{margin-top:0}.hippro-card h4{margin:0 0 13px;font-size:16px}.hippro-card.hippro-note{background:#f5f8f6}.hippro-card.hippro-note b{display:block;margin-bottom:5px}.hippro-card.hippro-note p{margin:0;color:#617168;font-size:12px;line-height:1.55}
.hippro-grid-2,.hippro-grid-3{display:grid;gap:11px}.hippro-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hippro-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hippro-field{display:grid;gap:6px;min-width:0}.hippro-field>span{font-size:11.5px;font-weight:800;color:#52635b}.hippro-field small{color:#7b8882;font-size:10px;line-height:1.35}.hippro-field input,.hippro-field select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid #d3ddd7;border-radius:11px;background:#fff;padding:9px 10px;color:#24372e;font:inherit;font-size:14px}.hippro-field input:focus,.hippro-field select:focus{outline:3px solid rgba(36,95,73,.11);border-color:#82aa96}
.hippro-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;overflow:hidden;border:1px solid #d3ddd7;border-radius:11px;background:#fff}.hippro-unit input{border:0!important;border-radius:0!important;outline:0!important}.hippro-unit>b{padding:0 9px;color:#708078;font-size:10.5px;white-space:nowrap}.hippro-unit:focus-within{border-color:#82aa96;box-shadow:0 0 0 3px rgba(36,95,73,.11)}
.hippro-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hippro-choice-grid label{position:relative}.hippro-choice-grid input{position:absolute;width:1px!important;height:1px!important;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.hippro-choice-grid span{height:100%;min-height:68px;display:flex;flex-direction:column;justify-content:center;padding:11px 12px;border:1px solid #dce5e0;border-radius:13px;background:#fff;cursor:pointer;transition:.16s}.hippro-choice-grid b{font-size:13px}.hippro-choice-grid small{margin-top:4px;color:#75837c;font-size:10px;line-height:1.3}.hippro-choice-grid input:checked+span{border-color:#70a08a;background:#f0f8f4;box-shadow:inset 0 0 0 1px #70a08a,0 6px 16px rgba(36,95,73,.06)}
body[data-hip-mode="simple"] .hippro-pro-choice,body[data-hip-mode="simple"] .hippro-pro-only{display:none!important}body[data-hip-mode="pro"] .hippro-simple-overhang,body[data-hip-mode="pro"] .hippro-simple-climate{display:none!important}
body[data-hip-custom-section="false"] .hippro-custom-section{display:none!important}
.hippro-check{position:relative;display:block;min-width:0}.hippro-check input{position:absolute;width:1px!important;height:1px!important;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.hippro-check>span{display:flex;min-height:64px;flex-direction:column;justify-content:center;padding:10px 12px 10px 42px;border:1px solid #dce5e0;border-radius:13px;background:#fff;cursor:pointer;position:relative}.hippro-check>span:before{content:"";position:absolute;left:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);border:2px solid #a8b9b0;border-radius:6px;background:#fff}.hippro-check input:checked+span{border-color:#a6c9b8;background:#f4faf7}.hippro-check input:checked+span:before{border-color:var(--hip-green);background:var(--hip-green);box-shadow:inset 0 0 0 4px #fff}.hippro-check b{font-size:12px}.hippro-check small{margin-top:3px;color:#74817a;font-size:10px;line-height:1.3}
.hippro-helper{display:grid;gap:3px;margin-top:12px;padding:11px 12px;border-radius:12px;background:#eef5f1}.hippro-helper b{font-size:11px}.hippro-helper span{color:#617168;font-size:11px;line-height:1.45}.hippro-inline-hint{margin:11px 0 0;color:#6d7b74;font-size:10.5px;line-height:1.45}.hippro-prices{margin-top:12px;border:1px solid #dde6e1;border-radius:15px;background:#fbfcfb}.hippro-prices summary{padding:13px 15px;font-size:12px;font-weight:850;color:#345948;cursor:pointer}.hippro-prices[open] summary{border-bottom:1px solid #e4ebe7}.hippro-prices>.hippro-grid-2{padding:14px}.hippro-load-layers{margin-top:12px;padding-top:12px;border-top:1px dashed #dbe4df}
.hippro-step-actions{display:grid;grid-template-columns:1fr auto 1.2fr;gap:8px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e2e9e5;background:#fff}.hippro-step-actions .btn{min-width:0;justify-content:center}.hippro-step-actions #hipNext{justify-self:stretch}.hippro-step-actions button:disabled{opacity:.42;pointer-events:none}

.hippro-live{position:sticky;top:78px;min-width:0;padding:18px 18px 24px}.hippro-live-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.hippro-live-head span,.hippro-live-head b,.hippro-live-head small{display:block}.hippro-live-head span{color:var(--hip-green);font-size:9.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.hippro-live-head b{margin-top:3px;font-size:15px}.hippro-live-head small{margin-top:3px;color:#74827b;font-size:10px}.hippro-live-head em{font-style:normal;color:#7a8780;font-size:9px}
.hippro-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:11px}.hippro-kpis article{min-width:0;padding:10px;border:1px solid #dfe7e3;border-radius:12px;background:#fff}.hippro-kpis article.primary{background:linear-gradient(145deg,#214f3d,#39775b);color:#fff;border-color:transparent}.hippro-kpis article.cost{background:#fff7ef;border-color:#f0dcc8}.hippro-kpis span,.hippro-kpis b{display:block}.hippro-kpis span{color:#708078;font-size:8.5px}.hippro-kpis article.primary span{color:rgba(255,255,255,.72)}.hippro-kpis b{margin-top:3px;font-size:15px;line-height:1.15;overflow-wrap:anywhere}
.hippro-view-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:9px}.hippro-view-tabs button{min-width:0;min-height:36px;border:1px solid #dce5e0;border-radius:9px;background:#fff;padding:7px 6px;color:#63726a;font-size:10px;font-weight:850;cursor:pointer}.hippro-view-tabs button.is-active{background:#eaf5ef;border-color:#aacdbc;color:#245b46}.hippro-view{display:none;position:relative;overflow:hidden;min-height:410px;border:1px solid #dfe7e3;border-radius:18px;background:linear-gradient(180deg,#fcfdfc,#f4f8f6)}.hippro-view.is-active{display:block}.hippro-view svg{display:block;width:100%;min-height:410px;height:auto;shape-rendering:geometricPrecision;text-rendering:geometricPrecision}.hippro-axo-tools{position:absolute;z-index:3;top:9px;right:9px;display:flex;gap:4px}.hippro-axo-tools button{width:32px;height:32px;border:1px solid #d7e1dc;border-radius:9px;background:rgba(255,255,255,.94);color:#315c49;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 5px 12px rgba(25,55,42,.07)}
.hippro-legend{display:flex;flex-wrap:wrap;gap:10px;padding:8px 4px;color:#67766e;font-size:9px}.hippro-legend span{display:flex;align-items:center;gap:5px}.hippro-legend i{display:inline-block;width:14px;height:4px;border-radius:999px}.hippro-legend i.main{background:#80aa94}.hippro-legend i.hip{background:#d08a57}.hippro-legend i.critical{background:#ab4a42}
.hippro-diagnostics{display:grid;gap:7px;margin-top:8px}.hippro-diag{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:start;padding:9px 10px;border:1px solid #dfe7e3;border-radius:12px;background:#fff}.hippro-diag i{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;font-style:normal;font-size:10px;font-weight:900}.hippro-diag.good i{background:#e1f1e7;color:#205d43}.hippro-diag.warn i{background:#fff1d2;color:#846216}.hippro-diag.bad i{background:#f8e4e0;color:#93433a}.hippro-diag b{display:block;font-size:10.5px}.hippro-diag p{margin:2px 0 0;color:#6b7971;font-size:9.5px;line-height:1.4}.hippro-diag strong{font-size:9px;white-space:nowrap;color:#52635a}

/* SVG */
.hip-plan-roof{fill:#edf4f0;stroke:#698477;stroke-width:2}.hip-plan-wall{fill:none;stroke:#a8b7af;stroke-width:1.6;stroke-dasharray:8 6}.hip-plan-hip{stroke:#c87943;stroke-width:3}.hip-plan-ridge{stroke:#245f49;stroke-width:4}.hip-plan-apex{fill:#245f49}.hip-plan-title{fill:#29443a;font-size:15px;font-weight:900}.hip-plan-dim{fill:#66776e;font-size:12px;font-weight:800}
.hip-axo-face{stroke:#5f786c;stroke-width:1.8}.hip-axo-face.main{fill:#dfeae4}.hip-axo-face.hip{fill:#efe5db}.hip-axo-face.face-3{fill:#d5e5dd}.hip-axo-face.face-4{fill:#eadccd}.hip-axo-hip{stroke:#c27440;stroke-width:3}.hip-axo-ridge{stroke:#205d46;stroke-width:4}.hip-axo-label{fill:#344a40;font-size:10px;font-weight:850;paint-order:stroke;stroke:#fff;stroke-width:3}.hip-axo-footer{fill:#62736a;font-size:11px;font-weight:800}
.hip-rafter-outline{fill:#f7faf8;stroke:#7f9489;stroke-width:2}.hip-rafter-common{stroke:#8ba397;stroke-width:1.3}.hip-rafter-diagonal{stroke:#c27542;stroke-width:3}.hip-rafter-ridge{stroke:#245f49;stroke-width:4}
.hip-load-face{stroke:#fff;stroke-width:2}.hip-load-face.load-1{fill:#dcece4}.hip-load-face.load-2{fill:#e9e1d8}.hip-load-face.load-3{fill:#d5e6de}.hip-load-face.load-4{fill:#eee5dd}.hip-load-label{fill:#2d4439;font-size:12px;font-weight:900}.hip-load-value{fill:#9d4d41;font-size:10px;font-weight:900}.hip-cover-face{fill:#e2ece7;stroke:#6d8479;stroke-width:2}.hip-cover-face.face-2,.hip-cover-face.face-4{fill:#eee4db}.hip-cover-grid{stroke:#8da69a;stroke-width:.8;opacity:.35}.hip-cover-label{fill:#2d463b;font-size:11px;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:3}

.hippro-result-hero{padding:18px;border:1px solid #cfe0d7;border-radius:18px;background:linear-gradient(145deg,#f1faf5,#fff)}.hippro-result-hero>span{display:block;color:#28624b;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.hippro-result-hero h3{margin:7px 0;font-size:24px}.hippro-result-hero p{margin:0;color:#607068;font-size:12px;line-height:1.55}.hippro-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;min-width:0}.hippro-result-actions .btn{justify-content:center;min-width:0;max-width:100%;width:100%;white-space:normal;text-align:center;overflow-wrap:anywhere}

.hippro-report{margin-top:24px;margin-bottom:32px;padding:28px;border:1px solid #dce5e0;border-radius:26px;background:#fff;box-shadow:var(--hip-shadow);scroll-margin-top:90px}.hippro-report-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.hippro-report-head span{display:block;color:var(--hip-green);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.hippro-report-head h2{max-width:900px;margin:6px 0 7px;font-size:clamp(26px,3vw,36px);line-height:1.08;letter-spacing:-.025em}.hippro-report-head p{margin:0;color:#6a7971;font-size:12px}.hippro-report-actions{display:flex;gap:7px;flex-wrap:wrap}.hippro-report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.hippro-report-kpis article{min-width:0;padding:12px;border:1px solid #dfe7e3;border-radius:13px;background:#fbfcfb}.hippro-report-kpis article.total{background:#f1f8f4}.hippro-report-kpis span,.hippro-report-kpis b,.hippro-report-kpis small{display:block}.hippro-report-kpis span{color:#708078;font-size:9px}.hippro-report-kpis b{margin:5px 0 2px;font-size:18px}.hippro-report-kpis small{color:#7d8983;font-size:8.5px;line-height:1.3}
.hippro-report-section{margin-top:18px;border:1px solid #dfe7e3;border-radius:17px;overflow:hidden}.hippro-section-title{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #e4ebe7;background:#f7faf8}.hippro-section-title>span{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border-radius:9px;background:#e4f1e9;color:#235f47;font-size:11px;font-weight:900}.hippro-section-title h3{margin:0 0 3px;font-size:16px}.hippro-section-title p{margin:0;color:#708078;font-size:10.5px;line-height:1.4}.hippro-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:13px}.hippro-action-grid article{padding:12px;border:1px solid #e1e8e4;border-radius:13px;background:#fff}.hippro-action-grid b{font-size:11.5px}.hippro-action-grid p{margin:5px 0 0;color:#69776f;font-size:10px;line-height:1.45}.hippro-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.hippro-table-wrap table{width:100%;min-width:720px;border-collapse:collapse}.hippro-table-wrap th,.hippro-table-wrap td{padding:10px 11px;border-bottom:1px solid #e7ece9;text-align:left;font-size:11px;line-height:1.35}.hippro-table-wrap th{background:#fbfcfb;color:#65756d;font-size:9.5px}.hippro-table-wrap tfoot{background:#f1f8f4}.hippro-facts{display:flex;flex-wrap:wrap;gap:8px;padding:12px}.hippro-facts span{padding:7px 9px;border-radius:10px;background:#eef5f1;color:#5e6f66;font-size:10px}.hippro-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:13px}.hippro-check-grid article{padding:12px;border:1px solid #e0e7e3;border-radius:13px;background:#fff;min-width:0}.hippro-check-grid span,.hippro-check-grid b,.hippro-check-grid small{display:block}.hippro-check-grid span{color:#718078;font-size:9px}.hippro-check-grid b{margin:4px 0 2px;font-size:14px}.hippro-check-grid small{color:#75827b;font-size:9px;line-height:1.35}.hippro-status{display:inline-flex!important;width:max-content;max-width:100%;margin-top:7px;padding:4px 7px;border-radius:999px;font-size:8.5px!important;font-weight:900}.hippro-status.ok{background:#e4f3e9;color:#235f46}.hippro-status.warn{background:#fff1d3;color:#805f16}.hippro-status.bad{background:#f8e2df;color:#913e37}.hippro-check-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0 13px 13px}.hippro-check-details div{padding:9px 10px;border-radius:11px;background:#f2f6f4}.hippro-check-details span,.hippro-check-details b{display:block}.hippro-check-details span{color:#718078;font-size:9px}.hippro-check-details b{margin-top:3px;font-size:11px}.hippro-material-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:13px}.hippro-material-grid article{padding:10px;border:1px solid #e0e7e3;border-radius:12px;background:#fff}.hippro-material-grid span,.hippro-material-grid b{display:block}.hippro-material-grid span{color:#708078;font-size:9px}.hippro-material-grid b{margin-top:4px;font-size:13px}.hippro-report-note{margin-top:16px;padding:14px 15px;border-radius:14px;background:#fff6e9;color:#655538;font-size:11px;line-height:1.55}

/* Upgrade the page information cards to match the new calculator */
.roof-features{margin-top:20px}.roof-features>div{grid-template-columns:repeat(5,minmax(0,1fr))}

@media(max-width:1240px){
  .hippro-workbench{grid-template-columns:1fr}.hippro-controls{border-right:0;border-bottom:1px solid #e2e9e5}.hippro-live{position:static}.hippro-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.hippro-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hippro-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hippro-material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.roof-features>div{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .hippro-shell-head{grid-template-columns:1fr;padding:22px 18px 19px}.hippro-mode-switch{max-width:520px}.hippro-stage-nav.simple,.hippro-stage-nav.pro{grid-template-columns:repeat(4,minmax(0,1fr));padding:12px}.hippro-stage-nav button{grid-template-columns:25px minmax(0,1fr);padding:8px;min-height:56px}.hippro-stage-nav small{display:none}.hippro-stage-nav span{width:24px;height:24px}.hippro-live{padding:15px 12px 20px}.hippro-view,.hippro-view svg{min-height:360px}.hippro-report{padding:20px 14px}.hippro-report-head{display:block}.hippro-report-actions{margin-top:12px}.hippro-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hippro-report-kpis article.total{grid-column:1/-1}.hippro-check-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:660px){
  .hippro-calc{padding-top:24px}.hippro-shell{border-radius:20px}.hippro-shell-head{padding:19px 14px 16px}.hippro-shell-head h2{font-size:26px}.hippro-mode-switch{grid-template-columns:1fr}.hippro-stage-nav.simple,.hippro-stage-nav.pro{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px}.hippro-stage-nav button{width:100%;max-width:100%;min-width:0;grid-template-columns:24px minmax(0,1fr);min-height:52px}.hippro-stage-nav b{font-size:10.5px}.hippro-current-step{padding:12px}.hippro-step{padding:18px 11px}.hippro-step-head h3{font-size:22px}.hippro-grid-2,.hippro-grid-3,.hippro-choice-grid{grid-template-columns:1fr}.hippro-choice-grid span{min-height:60px}.hippro-step-actions{position:sticky;bottom:0;z-index:9;grid-template-columns:1fr 1fr;gap:7px;padding:10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));background:rgba(255,255,255,.97);backdrop-filter:blur(10px);box-shadow:0 -9px 22px rgba(25,55,42,.07)}.hippro-step-actions #hipReset{display:none}.hippro-kpis{grid-template-columns:1fr 1fr}.hippro-kpis article.primary,.hippro-kpis article.cost{grid-column:1/-1}.hippro-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.hippro-view-tabs button{width:100%;max-width:100%;min-width:0}.hippro-view,.hippro-view svg{min-height:315px}.hippro-diag{grid-template-columns:23px minmax(0,1fr)}.hippro-diag strong{grid-column:2}.hippro-result-actions{grid-template-columns:1fr}.hippro-report{width:calc(100% - 18px);margin-left:auto;margin-right:auto;padding:15px 10px;border-radius:19px}.hippro-action-grid,.hippro-check-grid,.hippro-check-details,.hippro-material-grid{grid-template-columns:1fr}.hippro-table-wrap{overflow-x:visible}.hippro-table-wrap table,.hippro-table-wrap thead,.hippro-table-wrap tbody,.hippro-table-wrap tfoot,.hippro-table-wrap tr,.hippro-table-wrap th,.hippro-table-wrap td{display:block;width:100%;min-width:0;max-width:100%}.hippro-table-wrap thead{display:none}.hippro-table-wrap tbody{display:grid;gap:8px;padding:10px}.hippro-table-wrap tr{padding:9px 10px;border:1px solid #e0e7e3;border-radius:12px;background:#fff}.hippro-table-wrap td{border:0;padding:5px 0;font-size:11px;overflow-wrap:anywhere}.hippro-table-wrap tfoot{padding:0 10px 10px}.hippro-table-wrap tfoot tr{background:#f1f8f4}.roof-features>div{grid-template-columns:1fr}
}
@media(max-width:390px){.hippro-stage-nav.simple,.hippro-stage-nav.pro{grid-template-columns:1fr 1fr}.hippro-stage-nav button{padding:7px 6px}.hippro-stage-nav b{font-size:9.8px}.hippro-view-tabs{grid-template-columns:1fr 1fr}.hippro-kpis{grid-template-columns:1fr}.hippro-kpis article.primary,.hippro-kpis article.cost{grid-column:auto}.hippro-report-kpis{grid-template-columns:1fr}.hippro-report-kpis article.total{grid-column:auto}}
@media print{.site-header,.footer,.roof-hero,.hippro-controls,.hippro-live,.roof-features,.roof-info-grid,.seo-text,.similar-calcs,.formula-block-v205,.expert-collapsible-v184,.related-collapsible-v190,.calc-sources-v260,.site-ad-slot{display:none!important}.hippro-calc{padding:0}.hippro-shell{display:none}.hippro-report{margin:0;padding:0;border:0;box-shadow:none}.hippro-report-section{break-inside:avoid}.hippro-table-wrap{overflow:visible}.hippro-table-wrap table{min-width:0}}
@media(max-width:660px){
  .hippro-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:0 0 14px 14px}
  .hippro-table-wrap table{display:table!important;width:100%!important;min-width:680px!important}
  .hippro-table-wrap thead{display:table-header-group!important}.hippro-table-wrap tbody{display:table-row-group!important;padding:0!important}.hippro-table-wrap tfoot{display:table-footer-group!important;padding:0!important}
  .hippro-table-wrap tr{display:table-row!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}.hippro-table-wrap th,.hippro-table-wrap td{display:table-cell!important;width:auto!important;min-width:0!important;padding:9px 10px!important;border-bottom:1px solid #e7ece9!important}
}

/* v872: feature text stays inside its card at desktop intermediate widths. */
.roof-features>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
.roof-features article>div{min-width:0;overflow-wrap:anywhere}
