:root{
  --wizard-green:#118b36;
  --wizard-green-dark:#08702a;
  --wizard-soft:#f2faf4;
  --wizard-line:#dcebe1;
  --wizard-text:#102018;
  --wizard-muted:#5b6d61;
  --wizard-shadow:0 22px 58px rgba(24,50,33,.10);
}

#calculator.wizard-enabled-v226{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  max-width:var(--wrap,1200px);
}
.calc-wizard-all-v226{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,320px);
  gap:22px;
  align-items:start;
  width:100%;
  margin:28px auto 0;
  padding:0;
}
.calc-wizard-main-v226,
.calc-wizard-summary-v226{
  min-width:0;
  background:#fff;
  border:1px solid var(--wizard-line);
  border-radius:26px;
  box-shadow:var(--wizard-shadow);
}
.calc-wizard-main-v226{padding:28px;overflow:hidden}
.calc-wizard-summary-v226{padding:22px;position:sticky;top:92px}
.calc-wizard-kicker-v226{
  margin:0 0 6px;
  color:#547060;
  font-size:.8rem;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.calc-wizard-head-v226 h2{
  margin:0;
  color:var(--wizard-text);
  font-size:clamp(1.65rem,2.7vw,2.35rem);
  line-height:1.08;
  letter-spacing:-.035em;
}
.calc-wizard-head-v226>p:last-of-type{
  margin:10px 0 0;
  color:var(--wizard-muted);
  line-height:1.55;
}
.calc-wizard-progress-v226{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:24px 0 28px;
}
.calc-wizard-progress-v226 button{
  min-width:0;
  border:0;
  background:transparent;
  padding:0;
  color:#718078;
  text-align:left;
  cursor:pointer;
}
.calc-wizard-progress-v226 button span{
  display:block;
  height:5px;
  margin-bottom:8px;
  border-radius:99px;
  background:#e7eee9;
}
.calc-wizard-progress-v226 button b{
  display:block;
  font-size:.74rem;
  line-height:1.25;
  white-space:normal;
}
.calc-wizard-progress-v226 button.is-done span,
.calc-wizard-progress-v226 button.is-active span{background:var(--wizard-green)}
.calc-wizard-progress-v226 button.is-active b{color:var(--wizard-green-dark)}
.calc-wizard-step-v226{display:none;min-width:0}
.calc-wizard-step-v226.is-active{display:block}
.calc-wizard-step-title-v226{margin-bottom:20px}
.calc-wizard-step-title-v226 h3{
  margin:0 0 7px;
  color:var(--wizard-text);
  font-size:1.34rem;
  line-height:1.2;
}
.calc-wizard-step-title-v226 p{
  margin:0;
  color:var(--wizard-muted);
  line-height:1.55;
}
.calc-wizard-step-body-v226{display:grid;gap:16px;min-width:0}
.calc-wizard-step-v226 .field-group,
.calc-wizard-step-v226 .advanced-detail,
.calc-wizard-step-v226 .foundation-main-card,
.calc-wizard-step-v226 .slab-form-grid{
  min-width:0;
}
.calc-wizard-step-v226 .field-group{
  margin:0!important;
  width:100%!important;
}
.calc-wizard-step-v226 .field-group+.field-group{margin-top:0!important}
.calc-wizard-step-v226 .mode-tabs,
.calc-wizard-step-v226 .construction-tabs,
.calc-wizard-step-v226 .foundation-type-grid{
  margin:0!important;
  width:100%!important;
}
.calc-wizard-step-v226 .fields-grid,
.calc-wizard-step-v226 .calc-form-compact,
.calc-wizard-step-v226 .slab-form-grid{
  min-width:0;
}
.calc-wizard-step-v226 label,
.calc-wizard-step-v226 input,
.calc-wizard-step-v226 select,
.calc-wizard-step-v226 textarea{
  min-width:0;
  max-width:100%;
}
.calc-wizard-step-v226 input,
.calc-wizard-step-v226 select,
.calc-wizard-step-v226 textarea{width:100%}
.calc-wizard-actions-v226{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #e7efe9;
}
.calc-wizard-actions-v226 .btn{min-width:132px}
.calc-wizard-actions-v226 .btn-next-v226{margin-left:auto}
.calc-wizard-reset-v226{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}
.calc-wizard-summary-v226 small{
  display:block;
  color:#708078;
  font-weight:800;
}
.calc-wizard-summary-v226 h3{margin:5px 0 18px;color:var(--wizard-text)}
.calc-wizard-summary-list-v226{display:grid;gap:0;margin:0}
.calc-wizard-summary-list-v226>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(90px,auto);
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #e8efea;
}
.calc-wizard-summary-list-v226 dt{color:#62736a;font-size:.86rem}
.calc-wizard-summary-list-v226 dd{
  margin:0;
  color:var(--wizard-text);
  font-weight:850;
  text-align:right;
  overflow-wrap:break-word;
}
.calc-wizard-summary-total-v226{
  margin-top:18px;
  padding:17px;
  border:1px solid #bee5c8;
  border-radius:18px;
  background:#f1fbf4;
}
.calc-wizard-summary-total-v226 span{display:block;color:#567061;font-size:.84rem;font-weight:800}
.calc-wizard-summary-total-v226 b{
  display:block;
  margin:7px 0 14px;
  color:var(--wizard-green-dark);
  font-size:1.65rem;
  line-height:1;
  overflow-wrap:break-word;
}
.calc-wizard-summary-total-v226 .btn{width:100%}
.calc-wizard-mobile-summary-v226{display:none}
.calc-wizard-step-v226[data-step="5"] #results,
.calc-wizard-step-v226[data-step="5"] .result-cards,
.calc-wizard-step-v226[data-step="5"] .slab-results-panel{
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.calc-wizard-step-v226[data-step="5"] .result-card,
.calc-wizard-step-v226[data-step="5"] .summary-card,
.calc-wizard-step-v226[data-step="5"] .estimate-card,
.calc-wizard-step-v226[data-step="5"] .estimate-box,
.calc-wizard-step-v226[data-step="5"] .slab-estimate,
.calc-wizard-step-v226[data-step="5"] .plan-stats{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  grid-column:1/-1!important;
}
.calc-wizard-step-v226[data-step="5"] .estimate-card,
.calc-wizard-step-v226[data-step="5"] .estimate-box,
.calc-wizard-step-v226[data-step="5"] .slab-estimate{
  display:block!important;
}
.calc-wizard-step-v226[data-step="5"] .table-wrap,
.calc-wizard-step-v226[data-step="5"] .table-scroll-v173{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.calc-wizard-step-v226[data-step="5"] table{
  width:100%!important;
  max-width:none!important;
  min-width:100%!important;
}
.calc-wizard-hidden-origin-v226{display:none!important}
.calc-wizard-step-v226 .form-actions{display:none!important}
.calc-wizard-step-v226 .advanced-detail{width:100%}
.calc-wizard-step-v226 .advanced-detail[open] summary{border-bottom:1px solid #e4eee7}
.calc-wizard-step-v226 .foundation-type-grid{display:grid!important}
.calc-wizard-step-v226 .foundation-accordions{margin:0!important;padding:0!important;max-width:none!important}
.calc-wizard-step-v226 .foundation-accordions>details{margin:0 0 14px!important}
.calc-wizard-step-v226 .calc-form-compact,
.calc-wizard-step-v226 .small-fields{width:100%!important}
.calc-wizard-step-v226 .slab-form-panel{width:100%!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}

@media(max-width:1040px){
  .calc-wizard-all-v226{grid-template-columns:minmax(0,1fr)}
  .calc-wizard-summary-v226{position:static;display:none}
  .calc-wizard-mobile-summary-v226{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    margin:0 0 18px;
    padding:14px 16px;
    border:1px solid #cce8d3;
    border-radius:16px;
    background:#f4fbf6;
  }
  .calc-wizard-mobile-summary-v226 span{color:#587063;font-size:.82rem;font-weight:800}
  .calc-wizard-mobile-summary-v226 b{color:var(--wizard-green-dark);font-size:1.15rem;text-align:right}
}
@media(max-width:760px){
  .calc-wizard-all-v226{margin-top:16px}
  .calc-wizard-main-v226{padding:18px;border-radius:20px}
  .calc-wizard-progress-v226{gap:5px;margin:20px 0 24px}
  .calc-wizard-progress-v226 button b{font-size:.66rem}
  .calc-wizard-progress-v226 button b span{display:none}
  .calc-wizard-head-v226 h2{font-size:1.72rem}
  .calc-wizard-step-title-v226 h3{font-size:1.2rem}
  .calc-wizard-step-v226 .fields-grid,
  .calc-wizard-step-v226 .calc-form-compact,
  .calc-wizard-step-v226 .slab-form-grid,
  .calc-wizard-step-v226 .accordion-form .calc-form-compact{
    grid-template-columns:1fr!important;
    display:grid!important;
  }
  .calc-wizard-step-v226 .mode-tabs,
  .calc-wizard-step-v226 .construction-tabs,
  .calc-wizard-step-v226 .foundation-type-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .calc-wizard-actions-v226{position:sticky;bottom:0;z-index:8;margin-left:-18px;margin-right:-18px;margin-bottom:-18px;padding:14px 18px;background:rgba(255,255,255,.96);box-shadow:0 -12px 26px rgba(22,45,30,.08)}
  .calc-wizard-actions-v226 .btn{min-width:0;flex:1}
  .calc-wizard-step-v226[data-step="5"] .table-wrap{overflow-x:auto!important}
}
@media(max-width:480px){
  .calc-wizard-progress-v226 button b{font-size:0}
  .calc-wizard-progress-v226 button b::after{content:attr(data-short);font-size:.68rem}
  .calc-wizard-step-v226 .mode-tabs,
  .calc-wizard-step-v226 .construction-tabs,
  .calc-wizard-step-v226 .foundation-type-grid{grid-template-columns:1fr 1fr!important}
}

.calc-wizard-all-v226 [hidden]{display:none!important}

/* v228 mobile: actions remain in document flow and never cover fields/results. */
@media(max-width:760px){.calc-wizard-actions-v226{position:static!important;bottom:auto!important;z-index:auto!important;margin-left:0!important;margin-right:0!important;margin-bottom:0!important;padding:14px 0 0!important;background:transparent!important;box-shadow:none!important}.calc-wizard-actions-v226 .btn{min-height:48px;white-space:normal;line-height:1.2}.calc-wizard-step-v226{scroll-margin-top:82px}}
@media(max-width:480px){.calc-wizard-actions-v226{display:grid!important;grid-template-columns:1fr;gap:9px}.calc-wizard-actions-v226 .btn{width:100%}}


/* v229 mobile stepper refinement — premium grid cards, no overflow */
@media(max-width:760px){
  .calc-wizard-progress-v226{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:18px 0 22px;
  }
  .calc-wizard-progress-v226 button{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-height:64px;
    padding:10px 11px 12px;
    border:1px solid #dde7e1;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 18px rgba(22,45,30,.05);
  }
  .calc-wizard-progress-v226 button span{
    height:4px;
    margin-bottom:10px;
    background:#e8efea;
  }
  .calc-wizard-progress-v226 button b{
    font-size:.76rem;
    line-height:1.2;
    overflow-wrap:anywhere;
  }
  .calc-wizard-progress-v226 button.is-active{
    border-color:#bfdfc7;
    background:linear-gradient(180deg,#fbfffc 0%,#f3fbf6 100%);
    box-shadow:0 10px 22px rgba(24,77,43,.08);
  }
  .calc-wizard-progress-v226 button.is-done{
    border-color:#d3e8d8;
    background:#f8fcf9;
  }
  .calc-wizard-progress-v226 button:last-child{
    grid-column:1/-1;
    max-width:260px;
    width:100%;
    justify-self:center;
  }
}
@media(max-width:480px){
  .calc-wizard-progress-v226 button{min-height:60px;padding:9px 10px 11px}
  .calc-wizard-progress-v226 button b{font-size:.72rem}
}
@media(max-width:390px){
  .calc-wizard-progress-v226{grid-template-columns:1fr}
  .calc-wizard-progress-v226 button:last-child{max-width:none}
}
