/* StroyKalk calculator premium UX v258
   Visual/interaction layer only: calculation formulas remain untouched. */
:root{
  --calc-premium-green:#0d7a2a;
  --calc-premium-green-dark:#075f20;
  --calc-premium-green-soft:#eff9f2;
  --calc-premium-green-soft-2:#f7fcf8;
  --calc-premium-ink:#112018;
  --calc-premium-muted:#607067;
  --calc-premium-line:#dfe9e2;
  --calc-premium-line-strong:#cfe0d3;
  --calc-premium-card:#ffffff;
  --calc-premium-shadow:0 24px 70px rgba(20,54,31,.10);
  --calc-premium-shadow-soft:0 12px 34px rgba(20,54,31,.07);
  --calc-premium-radius:28px;
}

body.calc-premium-v258 #calculator{
  scroll-margin-top:92px;
}

/* Shared workspace shell — standard 5-step wizard */
body.calc-premium-v258 .calc-wizard-all-v226{
  grid-template-columns:minmax(0,1fr) minmax(300px,350px);
  gap:24px;
  margin-top:24px;
}
body.calc-premium-v258 .calc-wizard-main-v226,
body.calc-premium-v258 .calc-wizard-summary-v226{
  border:1px solid var(--calc-premium-line);
  background:var(--calc-premium-card);
  box-shadow:var(--calc-premium-shadow);
}
body.calc-premium-v258 .calc-wizard-main-v226{
  padding:0;
  border-radius:var(--calc-premium-radius);
  overflow:hidden;
}
body.calc-premium-v258 .calc-wizard-head-v226{
  position:relative;
  padding:28px 30px 24px;
  background:
    radial-gradient(620px 190px at 96% -20%,rgba(15,122,34,.13),transparent 68%),
    linear-gradient(145deg,#fbfefc 0%,#f2faf4 100%);
  border-bottom:1px solid var(--calc-premium-line);
}
body.calc-premium-v258 .calc-wizard-head-v226::after{
  content:"";
  position:absolute;
  width:110px;height:110px;right:-38px;top:-54px;
  border:22px solid rgba(15,122,34,.055);
  border-radius:50%;
  pointer-events:none;
}
body.calc-premium-v258 .calc-wizard-kicker-v226{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 8px;
  color:var(--calc-premium-green);
  font-size:.75rem;
  letter-spacing:.11em;
}
body.calc-premium-v258 .calc-wizard-kicker-v226::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:var(--calc-premium-green);
  box-shadow:0 0 0 6px rgba(13,122,42,.09);
}
body.calc-premium-v258 .calc-wizard-head-v226 h2{
  max-width:760px;
  font-size:clamp(1.7rem,2.45vw,2.35rem);
  letter-spacing:-.045em;
  line-height:1.06;
}
body.calc-premium-v258 .calc-wizard-head-v226>p:last-of-type{
  max-width:760px;
  margin-top:11px;
  font-size:.98rem;
  line-height:1.58;
}

/* Explicit mobile/desktop step status */
body.calc-premium-v258 .calc-premium-status-v258{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:20px 0 0;
  padding:12px 14px;
  border:1px solid rgba(13,122,42,.13);
  border-radius:16px;
  background:rgba(255,255,255,.72);
}
body.calc-premium-v258 .calc-premium-status-v258 span{
  color:#456052;
  font-size:.82rem;
  font-weight:850;
}
body.calc-premium-v258 .calc-premium-status-v258 b{
  color:var(--calc-premium-green-dark);
  font-size:.86rem;
}
body.calc-premium-v258 .calc-premium-status-track-v258{
  flex:1;
  height:6px;
  min-width:70px;
  overflow:hidden;
  border-radius:999px;
  background:#e4eee7;
}
body.calc-premium-v258 .calc-premium-status-track-v258 i{
  display:block;
  width:20%;height:100%;border-radius:inherit;
  background:linear-gradient(90deg,#158b37,#0d742b);
  transition:width .28s ease;
}

/* Progress becomes a calm compact timeline */
body.calc-premium-v258 .calc-wizard-progress-v226{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:20px 0 0;
}
body.calc-premium-v258 .calc-wizard-progress-v226 button{
  position:relative;
  min-height:44px;
  padding:8px 8px 7px;
  border:1px solid transparent;
  border-radius:13px;
  transition:.2s ease;
}
body.calc-premium-v258 .calc-wizard-progress-v226 button:hover{
  background:rgba(255,255,255,.65);
  border-color:rgba(13,122,42,.09);
}
body.calc-premium-v258 .calc-wizard-progress-v226 button span{
  height:4px;
  margin:0 0 7px;
  background:#e0e9e3;
}
body.calc-premium-v258 .calc-wizard-progress-v226 button b{
  color:#708077;
  font-size:.73rem;
  font-weight:850;
}
body.calc-premium-v258 .calc-wizard-progress-v226 button.is-active{
  background:#fff;
  border-color:#cfe5d5;
  box-shadow:0 7px 18px rgba(18,80,36,.06);
}
body.calc-premium-v258 .calc-wizard-progress-v226 button.is-active b,
body.calc-premium-v258 .calc-wizard-progress-v226 button.is-done b{color:var(--calc-premium-green-dark)}
body.calc-premium-v258 .calc-wizard-progress-v226 button.is-active span,
body.calc-premium-v258 .calc-wizard-progress-v226 button.is-done span{background:var(--calc-premium-green)}

body.calc-premium-v258 .calc-wizard-steps-v226{padding:28px 30px 4px}
body.calc-premium-v258 .calc-wizard-step-v226.is-active{animation:calcPremiumInV258 .24s ease both}
@keyframes calcPremiumInV258{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
body.calc-premium-v258 .calc-wizard-step-title-v226{margin:0 0 22px}
body.calc-premium-v258 .calc-wizard-step-title-v226 h3{
  font-size:1.38rem;
  letter-spacing:-.025em;
}
body.calc-premium-v258 .calc-wizard-step-title-v226 p{
  max-width:760px;
  font-size:.94rem;
  line-height:1.55;
}
body.calc-premium-v258 .calc-wizard-step-body-v226{gap:18px}

/* Form groups read as purposeful cards, not a long questionnaire */
body.calc-premium-v258 .calc-wizard-step-v226 .field-group,
body.calc-premium-v258 .calc-wizard-step-v226 .advanced-detail,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-accordions>details{
  border:1px solid var(--calc-premium-line)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#fbfdfb)!important;
  box-shadow:none!important;
  overflow:hidden;
}
body.calc-premium-v258 .calc-wizard-step-v226 .field-group{
  padding:20px!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 .field-group h3{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 16px!important;
  font-size:1rem!important;
  color:#264330!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 .field-group h3::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:#35a054;
  box-shadow:0 0 0 5px #e9f6ec;
}

body.calc-premium-v258 .calc-wizard-step-v226 .fields-grid,
body.calc-premium-v258 .calc-wizard-step-v226 .calc-form-compact,
body.calc-premium-v258 .calc-wizard-step-v226 .slab-form-grid{
  gap:14px!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 label,
body.calc-premium-v258 .calc-wizard-v219 label{
  position:relative;
  color:#30443a!important;
  font-size:.84rem!important;
  line-height:1.35!important;
  font-weight:800!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 input,
body.calc-premium-v258 .calc-wizard-step-v226 select,
body.calc-premium-v258 .calc-wizard-step-v226 textarea,
body.calc-premium-v258 .calc-wizard-v219 input,
body.calc-premium-v258 .calc-wizard-v219 select,
body.calc-premium-v258 .calc-wizard-v219 textarea{
  min-height:50px!important;
  margin-top:7px!important;
  padding:0 14px!important;
  border:1px solid #d9e5dc!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#14231a!important;
  font-size:1rem!important;
  font-weight:780!important;
  box-shadow:0 1px 0 rgba(15,48,25,.02)!important;
  outline:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 input:focus,
body.calc-premium-v258 .calc-wizard-step-v226 select:focus,
body.calc-premium-v258 .calc-wizard-step-v226 textarea:focus,
body.calc-premium-v258 .calc-wizard-v219 input:focus,
body.calc-premium-v258 .calc-wizard-v219 select:focus,
body.calc-premium-v258 .calc-wizard-v219 textarea:focus{
  border-color:#78bb8a!important;
  box-shadow:0 0 0 4px rgba(13,122,42,.10)!important;
  background:#fefffe!important;
}
body.calc-premium-v258 .calc-premium-focus-v258{
  z-index:1;
}
body.calc-premium-v258 .calc-premium-focus-v258::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:16px;
  border:1px solid rgba(13,122,42,.08);
  pointer-events:none;
}

/* Choice cards */
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs,.foundation-type-grid),
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs{
  gap:12px!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button{
  min-height:96px!important;
  padding:14px 12px!important;
  border:1px solid #dce7df!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fbfdfb)!important;
  color:#263a2e!important;
  box-shadow:0 6px 18px rgba(20,54,31,.04)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button:hover,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card:hover,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button:hover{
  transform:translateY(-2px);
  border-color:#a9cfb3!important;
  box-shadow:0 12px 24px rgba(20,70,34,.08)!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button.active,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card.active,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button.active{
  border-color:#73b986!important;
  background:linear-gradient(180deg,#f4fbf6,#eaf7ee)!important;
  color:var(--calc-premium-green-dark)!important;
  box-shadow:inset 0 0 0 1px rgba(13,122,42,.09),0 12px 26px rgba(20,75,34,.08)!important;
}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button img,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button img{
  width:46px!important;height:46px!important;object-fit:contain!important;
}

/* Actions */
body.calc-premium-v258 .calc-wizard-actions-v226{
  margin:20px 30px 0;
  padding:18px 0 26px;
  border-top:1px solid #e6eee8;
}
body.calc-premium-v258 .calc-wizard-actions-v226 .btn,
body.calc-premium-v258 .calc-wizard-actions-v219 .btn{
  min-height:50px;
  padding:0 20px;
  border-radius:14px;
  font-size:.94rem;
}
body.calc-premium-v258 .calc-wizard-actions-v226 .btn-next-v226::after,
body.calc-premium-v258 .calc-wizard-actions-v219 .btn-next-v219::after{
  content:"→";
  margin-left:3px;
  font-size:1.05em;
}
body.calc-premium-v258 .calc-wizard-actions-v226 .btn-back-v226::before,
body.calc-premium-v258 .calc-wizard-actions-v219 .btn-back-v219::before{
  content:"←";
  margin-right:3px;
}

/* Desktop live summary */
body.calc-premium-v258 .calc-wizard-summary-v226,
body.calc-premium-v258 .calc-wizard-summary-v219{
  top:96px;
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--calc-premium-shadow-soft);
}
body.calc-premium-v258 .calc-wizard-summary-v226{
  padding:0;
}
body.calc-premium-v258 .calc-wizard-summary-v226>small,
body.calc-premium-v258 .calc-wizard-summary-v226>h3{
  padding-left:22px;padding-right:22px;
}
body.calc-premium-v258 .calc-wizard-summary-v226>small{
  padding-top:20px;
  color:var(--calc-premium-green);
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.calc-premium-v258 .calc-wizard-summary-v226>h3{
  margin:5px 0 14px;
  font-size:1.12rem;
}
body.calc-premium-v258 .calc-wizard-summary-list-v226{
  padding:0 22px;
}
body.calc-premium-v258 .calc-wizard-summary-list-v226>div{
  padding:13px 0;
}
body.calc-premium-v258 .calc-wizard-summary-list-v226 dt{
  font-size:.82rem;
}
body.calc-premium-v258 .calc-wizard-summary-list-v226 dd{
  font-size:.9rem;
}
body.calc-premium-v258 .calc-wizard-summary-total-v226{
  margin:16px 14px 14px;
  padding:18px;
  border:1px solid #cae5d1;
  border-radius:18px;
  background:linear-gradient(145deg,#f5fbf6,#edf8f0);
}
body.calc-premium-v258 .calc-wizard-summary-total-v226 b{
  margin:7px 0 15px;
  font-size:1.75rem;
  letter-spacing:-.035em;
}
body.calc-premium-v258 .calc-wizard-summary-total-v226 .btn{
  min-height:44px;
  border-radius:12px;
  box-shadow:none;
}

/* Result step: make key outputs scan instantly */
body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"] :is(.result-card,.summary-card,.estimate-card,.estimate-box,.slab-estimate,.plan-stats),
body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"] :is(.result-card,.estimate-card,.selfmix-card){
  border-radius:20px!important;
  box-shadow:none!important;
}
body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"] :is(.result-grid,.results-v6,.slab-result-grid) article,
body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"] .result-grid article{
  border-radius:17px!important;
  border-color:#e0ebe3!important;
  background:linear-gradient(180deg,#fff,#fbfdfb)!important;
}
body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"] :is(.result-grid,.results-v6,.slab-result-grid) article.total,
body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"] .result-grid article.total{
  border-color:#bcdcc4!important;
  background:linear-gradient(150deg,#f2faf4,#e9f7ed)!important;
}

/* Concrete uses its own 4-step wizard — visually merge it into the same system. */
body.calc-premium-v258 .calc-wizard-v219{
  grid-template-columns:minmax(0,1fr) minmax(300px,350px);
  gap:24px;
}
body.calc-premium-v258 .calc-wizard-main-v219,
body.calc-premium-v258 .calc-wizard-summary-v219{
  border-color:var(--calc-premium-line)!important;
  border-radius:var(--calc-premium-radius)!important;
  box-shadow:var(--calc-premium-shadow)!important;
}
body.calc-premium-v258 .calc-wizard-head-v219{
  position:relative;
  padding:28px 30px 24px;
  background:radial-gradient(620px 190px at 96% -20%,rgba(15,122,34,.13),transparent 68%),linear-gradient(145deg,#fbfefc,#f2faf4);
}
body.calc-premium-v258 .calc-wizard-kicker-v219{color:var(--calc-premium-green)}
body.calc-premium-v258 .calc-wizard-head-v219 h2{
  font-size:clamp(1.7rem,2.45vw,2.35rem);
  line-height:1.06;
  letter-spacing:-.045em;
}
body.calc-premium-v258 .calc-wizard-progress-v219 button{
  min-height:44px;padding:8px;border:1px solid transparent;border-radius:13px;
}
body.calc-premium-v258 .calc-wizard-progress-v219 button.is-active{
  background:#fff;border-color:#cfe5d5;box-shadow:0 7px 18px rgba(18,80,36,.06)
}
body.calc-premium-v258 .calc-wizard-step-v219{padding:28px 30px 8px}
body.calc-premium-v258 .calc-wizard-step-v219.is-active{animation:calcPremiumInV258 .24s ease both}
body.calc-premium-v258 .calc-wizard-step-title-v219 h3{font-size:1.38rem;letter-spacing:-.025em}
body.calc-premium-v258 .calc-wizard-actions-v219{margin:18px 30px 0;padding:18px 0 26px;border-top:1px solid #e6eee8}
body.calc-premium-v258 .calc-wizard-error-v219{margin:0 30px 12px}
body.calc-premium-v258 .calc-wizard-mobile-summary-v219{border-color:#cfe2d4;background:#f5fbf6}

/* Better advanced settings */
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) details>summary{
  min-height:54px;
  padding:15px 17px!important;
  color:#294133!important;
  font-weight:850!important;
}
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) details[open]>summary{
  background:#f6fbf7!important;
}

/* Tablet */
@media(max-width:1040px){
  body.calc-premium-v258 .calc-wizard-all-v226,
  body.calc-premium-v258 .calc-wizard-v219{grid-template-columns:minmax(0,1fr)}
  body.calc-premium-v258 .calc-wizard-summary-v226,
  body.calc-premium-v258 .calc-wizard-summary-v219{display:none}
}

/* Mobile = one calm task per screen, KupeCalc-like rhythm */
@media(max-width:760px){
  body.calc-premium-v258{--calc-premium-radius:22px;padding-bottom:max(84px,env(safe-area-inset-bottom))}
  body.calc-premium-v258 #calculator{
    width:100%!important;
    max-width:none!important;
    padding-left:10px!important;
    padding-right:10px!important;
    scroll-margin-top:72px;
  }
  body.calc-premium-v258 .calc-wizard-all-v226,
  body.calc-premium-v258 .calc-wizard-v219{margin-top:12px;gap:0}
  body.calc-premium-v258 .calc-wizard-main-v226,
  body.calc-premium-v258 .calc-wizard-main-v219{
    border-radius:22px;
    box-shadow:0 14px 34px rgba(20,54,31,.08);
  }
  body.calc-premium-v258 .calc-wizard-head-v226,
  body.calc-premium-v258 .calc-wizard-head-v219{
    padding:20px 18px 16px;
  }
  body.calc-premium-v258 .calc-wizard-kicker-v226,
  body.calc-premium-v258 .calc-wizard-kicker-v219{font-size:.68rem;margin-bottom:7px}
  body.calc-premium-v258 .calc-wizard-head-v226 h2,
  body.calc-premium-v258 .calc-wizard-head-v219 h2{
    font-size:1.55rem;
    line-height:1.1;
  }
  body.calc-premium-v258 .calc-wizard-head-v226>p:last-of-type,
  body.calc-premium-v258 .calc-wizard-head-v219>p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-top:8px;
    font-size:.86rem;
    line-height:1.48;
  }
  body.calc-premium-v258 .calc-premium-status-v258{
    margin-top:14px;
    padding:10px 11px;
    border-radius:14px;
  }
  body.calc-premium-v258 .calc-premium-status-v258 span,
  body.calc-premium-v258 .calc-premium-status-v258 b{font-size:.76rem}

  /* Hide verbose step names on mobile; status bar says exactly where user is. */
  body.calc-premium-v258 .calc-wizard-progress-v226,
  body.calc-premium-v258 .calc-wizard-progress-v219{
    display:flex;
    gap:5px;
    margin-top:13px;
  }
  body.calc-premium-v258 .calc-wizard-progress-v226 button,
  body.calc-premium-v258 .calc-wizard-progress-v219 button{
    flex:1;
    min-height:12px;
    padding:0;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.calc-premium-v258 .calc-wizard-progress-v226 button b,
  body.calc-premium-v258 .calc-wizard-progress-v219 button b{display:none!important}
  body.calc-premium-v258 .calc-wizard-progress-v226 button span,
  body.calc-premium-v258 .calc-wizard-progress-v219 .progress-line-v219{
    height:5px;margin:0;border-radius:999px;
  }

  body.calc-premium-v258 .calc-wizard-steps-v226{padding:20px 16px 2px}
  body.calc-premium-v258 .calc-wizard-step-v219{padding:20px 16px 2px}
  body.calc-premium-v258 .calc-wizard-step-title-v226,
  body.calc-premium-v258 .calc-wizard-step-title-v219{margin-bottom:17px}
  body.calc-premium-v258 .calc-wizard-step-title-v226 h3,
  body.calc-premium-v258 .calc-wizard-step-title-v219 h3{
    font-size:1.19rem;
    line-height:1.22;
  }
  body.calc-premium-v258 .calc-wizard-step-title-v226 p,
  body.calc-premium-v258 .calc-wizard-step-title-v219 p{
    font-size:.84rem;
    line-height:1.48;
  }

  body.calc-premium-v258 .calc-wizard-step-v226 .field-group{padding:15px!important;border-radius:17px!important}
  body.calc-premium-v258 .calc-wizard-step-v226 .field-group h3{font-size:.93rem!important;margin-bottom:13px!important}

  body.calc-premium-v258 .calc-wizard-step-v226 input,
  body.calc-premium-v258 .calc-wizard-step-v226 select,
  body.calc-premium-v258 .calc-wizard-step-v226 textarea,
  body.calc-premium-v258 .calc-wizard-v219 input,
  body.calc-premium-v258 .calc-wizard-v219 select,
  body.calc-premium-v258 .calc-wizard-v219 textarea{
    min-height:54px!important;
    font-size:16px!important; /* prevents iOS zoom */
    border-radius:14px!important;
  }

  body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs,.foundation-type-grid),
  body.calc-premium-v258 .calc-wizard-v219 .construction-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button,
  body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card,
  body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button{
    min-height:88px!important;
    padding:11px 9px!important;
    border-radius:16px!important;
    font-size:.84rem!important;
  }
  body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button img,
  body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button img{
    width:38px!important;height:38px!important;
  }

  /* Current result stays visible without covering the inputs. */
  body.calc-premium-v258 .calc-wizard-mobile-summary-v226,
  body.calc-premium-v258 .calc-wizard-mobile-summary-v219{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    margin:0 16px 12px!important;
    padding:11px 13px!important;
    border:1px solid #cde3d3!important;
    border-radius:14px!important;
    background:#f3faf5!important;
    box-shadow:none!important;
  }
  body.calc-premium-v258 .calc-wizard-mobile-summary-v226 span,
  body.calc-premium-v258 .calc-wizard-mobile-summary-v219 small{
    color:#5d7264!important;
    font-size:.72rem!important;
  }
  body.calc-premium-v258 .calc-wizard-mobile-summary-v226 b,
  body.calc-premium-v258 .calc-wizard-mobile-summary-v219 b{
    color:var(--calc-premium-green-dark)!important;
    font-size:1.02rem!important;
  }

  /* KupeCalc-like bottom controls. */
  body.calc-premium-v258 .calc-wizard-actions-v226,
  body.calc-premium-v258 .calc-wizard-actions-v219{
    position:sticky;
    z-index:30;
    bottom:0;
    margin:18px 0 0!important;
    padding:12px 16px max(12px,env(safe-area-inset-bottom))!important;
    border-top:1px solid rgba(214,229,218,.95)!important;
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(14px);
    box-shadow:0 -10px 28px rgba(19,50,29,.08)!important;
  }
  body.calc-premium-v258 .calc-wizard-actions-v226 .btn,
  body.calc-premium-v258 .calc-wizard-actions-v219 .btn{
    min-height:52px;
    flex:1;
    border-radius:14px;
    font-size:.93rem;
  }
  body.calc-premium-v258 .calc-wizard-actions-v226 .btn-back-v226,
  body.calc-premium-v258 .calc-wizard-actions-v219 .btn-back-v219{max-width:38%}

  /* Final step is content-first and does not feel squeezed inside the wizard. */
  body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"],
  body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"]{padding-left:0!important;padding-right:0!important}
  body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"]>.calc-wizard-step-title-v226,
  body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"]>.calc-wizard-step-title-v219{padding:0 16px}
  body.calc-premium-v258 .calc-wizard-step-v226[data-step="5"] :is(.result-card,.summary-card,.estimate-card,.estimate-box,.slab-estimate,.plan-stats),
  body.calc-premium-v258 .calc-wizard-step-v219[data-step="4"] :is(.result-card,.estimate-card,.selfmix-card){
    margin-left:0!important;margin-right:0!important;border-left:0!important;border-right:0!important;border-radius:16px!important;
  }
}

@media(max-width:430px){
  body.calc-premium-v258 #calculator{padding-left:7px!important;padding-right:7px!important}
  body.calc-premium-v258 .calc-wizard-head-v226 h2,
  body.calc-premium-v258 .calc-wizard-head-v219 h2{font-size:1.42rem}
  body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs,.foundation-type-grid),
  body.calc-premium-v258 .calc-wizard-v219 .construction-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button,
  body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card,
  body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button{min-height:82px!important;font-size:.79rem!important}
}

@media(prefers-reduced-motion:reduce){
  body.calc-premium-v258 *,body.calc-premium-v258 *::before,body.calc-premium-v258 *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
@media(max-width:760px){
  body.calc-premium-v258 .calc-wizard-all-v226[data-current-step="5"] .calc-wizard-mobile-summary-v226,
  body.calc-premium-v258 .calc-wizard-v219[data-current-step="4"] .calc-wizard-mobile-summary-v219{display:none!important}
}
/* Unit wrappers keep the enlarged mobile/desktop controls aligned. */
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit{
  min-height:50px!important;
  margin-top:7px!important;
  border:1px solid #d9e5dc!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit:focus-within{
  border-color:#78bb8a!important;
  box-shadow:0 0 0 4px rgba(13,122,42,.10)!important;
}
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit input{
  min-height:48px!important;
  margin-top:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit em{
  min-width:46px;
  padding:0 12px!important;
  color:#66796d!important;
  font-style:normal!important;
  font-weight:850!important;
  text-align:center;
}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button{position:relative}
body.calc-premium-v258 .calc-wizard-step-v226 :is(.construction-tabs,.mode-tabs) button.active::after,
body.calc-premium-v258 .calc-wizard-step-v226 .foundation-type-card.active::after,
body.calc-premium-v258 .calc-wizard-v219 .construction-tabs button.active::after{
  content:"✓";
  position:absolute;
  right:9px;top:9px;
  width:23px;height:23px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--calc-premium-green);
  color:#fff;
  font-size:.72rem;
  font-weight:950;
  box-shadow:0 5px 12px rgba(13,122,42,.18);
}
@media(max-width:760px){
  body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit{min-height:54px!important}
  body.calc-premium-v258 :is(.calc-wizard-step-v226,.calc-wizard-v219) .input-unit input{min-height:52px!important}
}
