body.buildcost-bd-template-calculator {
  background: #f7f9fa;
}

.bc-app-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--bc-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.bc-app-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bc-brand--app .bc-brand__name { font-size: 20px; }
.bc-brand--app .bc-brand__tagline { font-size: 12px; }
.bc-app-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bc-app-link,
.bc-app-notification,
.bc-app-profile {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--bc-ink);
}
.bc-app-link { font-weight: 700; }
.bc-app-link .bc-icon { width: 22px; height: 22px; }
.bc-app-notification {
  width: 46px;
  height: 46px;
  border-left: 1px solid var(--bc-soft-line);
  border-right: 1px solid var(--bc-soft-line);
  justify-content: center;
  position: relative;
}
.bc-app-notification__dot {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: #0ca16e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff;
}
.bc-app-profile {
  gap: 12px;
  padding-left: 2px;
}
.bc-app-profile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bc-teal-700), var(--bc-teal-900));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.9);
}
.bc-app-profile__name { font-size: 16px; font-weight: 700; white-space: nowrap; }
.bc-app-header button:focus-visible,
.bc-app-header a:focus-visible { outline: 3px solid rgba(10, 129, 126, .22); outline-offset: 3px; border-radius: 8px; }

.bc-calc-app { padding: 26px 0 44px; }
.bc-breadcrumb { margin-bottom: 18px; }
.bc-breadcrumb__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6f7d82;
  font-size: 14px;
}
.bc-breadcrumb__list li + li::before { content: '›'; margin-right: 8px; color: #9aa8ac; }
.bc-breadcrumb__list a:hover { color: var(--bc-teal-800); }

.bc-calc-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.bc-calc-heading__title {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.bc-calc-heading__lead {
  margin: 0;
  color: #606e73;
  font-size: 18px;
}
.bc-calc-heading__badge {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #cfd9dc;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #324246;
  font-weight: 700;
}

.bc-stepper {
  margin-bottom: 18px;
}
.bc-stepper__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
}
.bc-stepper__item {
  display: flex;
  align-items: center;
  min-width: 0;
}
.bc-stepper__node {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.bc-stepper__number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid #cfd9dc;
  background: #fff;
  color: #303f43;
}
.bc-stepper__label {
  font-size: 15px;
  font-weight: 700;
  color: #506066;
  white-space: nowrap;
}
.bc-stepper__line {
  flex: 1 1 auto;
  height: 2px;
  margin: 0 14px;
  background: #dfe7e9;
}
.bc-stepper__item.is-active .bc-stepper__number {
  background: linear-gradient(135deg, var(--bc-teal-800), var(--bc-teal-600));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(6,112,110,.22);
}
.bc-stepper__item.is-active .bc-stepper__label { color: var(--bc-teal-900); }
.bc-stepper__progress {
  margin-top: 16px;
  width: 100%;
  height: 6px;
  background: #dfe7e9;
  border-radius: 999px;
  overflow: hidden;
}
.bc-stepper__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bc-teal-800), var(--bc-teal-600));
}

.bc-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .83fr);
  gap: 24px;
  align-items: start;
}
.bc-calc-card {
  background: #fff;
  border: 1px solid #d8e2e4;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(14, 51, 53, .06);
}
.bc-calc-form { overflow: hidden; }
.bc-calc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--bc-soft-line);
}
.bc-calc-card__intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.bc-calc-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #e9f7f3;
  color: var(--bc-teal-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.bc-calc-card__icon .bc-icon { width: 30px; height: 30px; }
.bc-calc-card__icon--small {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.bc-calc-card__intro h2,
.bc-calc-sidebar__title-wrap h2 {
  margin: 2px 0 8px;
  font-size: 25px;
  line-height: 1.2;
}
.bc-calc-card__intro p { margin: 0; color: #627077; }
.bc-calc-card__draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3a4b50;
  font-weight: 700;
  white-space: nowrap;
}
.bc-calc-card__draft .bc-icon { color: #0f9b6d; }

.bc-calc-form__body { padding: 28px; }
.bc-calc-field + .bc-calc-field { margin-top: 30px; }
.bc-calc-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2e32;
}
.bc-calc-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cad7da;
  color: #6b797f;
}
.bc-calc-info .bc-icon { width: 14px; height: 14px; }

.bc-calc-area-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 20px;
  align-items: start;
}
.bc-area-input-wrap {
  border: 2px solid #243238;
  border-radius: 12px;
  overflow: hidden;
  min-height: 112px;
  display: flex;
  align-items: stretch;
  background: #fff;
}
.bc-calc-number {
  width: 100%;
  border: 0;
  padding: 18px 24px;
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: #152026;
  min-width: 0;
  outline: none;
}
.bc-area-input-controls {
  width: 64px;
  border-left: 1px solid #d7dfe2;
  display: flex;
  flex-direction: column;
}
.bc-area-stepper {
  flex: 1 1 50%;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  color: #37484d;
}
.bc-area-stepper + .bc-area-stepper { border-top: 1px solid #d7dfe2; }
.bc-area-stepper:hover { background: var(--bc-teal-50); color: var(--bc-teal-800); }

.bc-unit-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d7dfe2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.bc-unit-switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bc-unit-switch__label {
  min-height: 76px;
  padding: 22px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-left: 1px solid #d7dfe2;
  cursor: pointer;
  transition: .18s ease;
}
.bc-unit-switch__label:first-of-type { border-left: 0; }
.bc-unit-switch__input:checked + .bc-unit-switch__label {
  background: linear-gradient(135deg, var(--bc-teal-800), var(--bc-teal-600));
  color: #fff;
}
.bc-unit-switch__input:focus-visible + .bc-unit-switch__label {
  outline: 3px solid rgba(10,129,126,.18);
  outline-offset: -3px;
}
.bc-calc-helper {
  margin: 12px 0 0;
  color: #147f76;
  font-size: 15px;
  font-weight: 700;
}

.bc-coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
}
.bc-coverage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 52px;
  margin: 0 0 10px 56%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--bc-teal-800), var(--bc-teal-600));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 12px;
  position: relative;
}
.bc-coverage-badge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--bc-teal-700);
}
.bc-coverage-slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.bc-coverage-marker { font-size: 15px; color: #3f4f54; }
.bc-coverage-range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bc-teal-800) 0%, var(--bc-teal-800) 66%, #d6dfe2 66%, #d6dfe2 100%);
  outline: none;
}
.bc-coverage-range::-webkit-slider-thumb {
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bc-teal-800);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6,112,110,.2);
}
.bc-coverage-range::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--bc-teal-800);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6,112,110,.2);
}
.bc-coverage-input-wrap { align-self: stretch; }
.bc-percent-field {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  border: 1px solid #d1dadc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.bc-percent-field input {
  width: 100%;
  border: 0;
  padding: 16px 18px;
  font-size: 22px;
  font-weight: 700;
  outline: none;
}
.bc-percent-field__suffix {
  width: 56px;
  border-left: 1px solid #d1dadc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #2f4045;
}

.bc-calc-alert {
  margin-top: 26px;
  padding: 17px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.bc-calc-alert .bc-icon { flex: 0 0 auto; }
.bc-calc-alert--success {
  background: #f0faf4;
  border: 1px solid #c4e4cf;
  color: #285a3c;
}
.bc-calc-alert--info {
  background: #f3f8ff;
  border: 1px solid #cddcfd;
  color: #2852a3;
}

.bc-calc-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bc-calc-actions__cancel {
  min-width: 186px;
  border-color: #cfd8db;
  color: #203035;
}
.bc-calc-actions__next {
  min-width: 260px;
  min-height: 64px;
  font-size: 22px;
  border-radius: 12px;
}

.bc-calc-sidebar {
  padding: 24px;
  position: sticky;
  top: 112px;
}
.bc-calc-sidebar__title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bc-soft-line);
  margin-bottom: 8px;
}
.bc-calc-summary-list {
  margin: 0;
}
.bc-calc-summary-list > div {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed #d8e0e2;
}
.bc-calc-summary-list dt,
.bc-calc-summary-list dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-calc-summary-list dt {
  font-weight: 800;
  color: #2a3a3f;
}
.bc-calc-summary-list dd {
  justify-content: flex-end;
  text-align: right;
  font-weight: 700;
  color: var(--bc-teal-800);
}
.bc-calc-summary-list > div:nth-child(n+2) dd { color: #4b5b60; }

.bc-calc-empty-state { padding-top: 20px; }
.bc-calc-empty-state h3 {
  margin: 0 0 16px;
  font-size: 20px;
}
.bc-calc-empty-state__box {
  min-height: 132px;
  border: 1px solid #baddd8;
  background: #f2fbf9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  font-weight: 800;
  color: #294247;
  padding: 20px;
}
.bc-calc-empty-state__box .bc-icon {
  width: 32px;
  height: 32px;
  color: var(--bc-teal-700);
}
.bc-calc-sidebar .bc-calc-alert--info {
  margin-top: 22px;
}

@media (max-width: 1280px) {
  .bc-stepper__label { font-size: 14px; }
  .bc-calc-layout { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); }
}
@media (max-width: 1120px) {
  .bc-calc-heading { flex-direction: column; align-items: flex-start; }
  .bc-stepper__list { grid-template-columns: 1fr; gap: 12px; }
  .bc-stepper__item { display: grid; grid-template-columns: 1fr; }
  .bc-stepper__line { display: none; }
  .bc-stepper__progress { display: none; }
  .bc-calc-layout { grid-template-columns: 1fr; }
  .bc-calc-sidebar { position: static; }
}
@media (max-width: 900px) {
  .bc-app-header__inner { min-height: 74px; flex-wrap: wrap; padding: 12px 0; }
  .bc-app-header__actions { width: 100%; justify-content: space-between; gap: 10px; }
  .bc-app-profile__name { font-size: 14px; }
  .bc-calc-heading__title { font-size: 40px; }
  .bc-calc-area-row,
  .bc-coverage-grid { grid-template-columns: 1fr; }
  .bc-unit-switch__label { min-height: 64px; font-size: 16px; }
  .bc-calc-actions { flex-direction: column; }
  .bc-calc-actions > * { width: 100%; }
}
@media (max-width: 640px) {
  .bc-calc-app { padding-top: 18px; }
  .bc-calc-card__head,
  .bc-calc-form__body,
  .bc-calc-sidebar { padding: 18px; }
  .bc-calc-card__head { flex-direction: column; align-items: flex-start; }
  .bc-calc-card__intro h2,
  .bc-calc-sidebar__title-wrap h2 { font-size: 22px; }
  .bc-calc-heading__title { font-size: 32px; }
  .bc-calc-heading__lead { font-size: 16px; }
  .bc-calc-heading__badge { width: 100%; justify-content: center; font-size: 14px; }
  .bc-area-input-wrap { min-height: 88px; }
  .bc-calc-number { padding: 14px 16px; font-size: 42px; }
  .bc-unit-switch { grid-template-columns: 1fr; }
  .bc-unit-switch__label { border-left: 0; border-top: 1px solid #d7dfe2; }
  .bc-unit-switch__label:first-of-type { border-top: 0; }
  .bc-coverage-badge { margin-left: 50%; }
  .bc-coverage-slider-row { grid-template-columns: 1fr; }
  .bc-coverage-marker:last-child { text-align: right; }
  .bc-calc-summary-list > div { grid-template-columns: 1fr; gap: 8px; }
  .bc-calc-summary-list dd { justify-content: flex-start; text-align: left; }
}


/* Shared calculator header refinements */
.bc-app-link--utility {
  min-height: 46px;
  padding: 0 14px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  font-size: 14px;
}
.bc-app-link--utility:hover {
  color: var(--bc-teal-800);
  background: var(--bc-teal-50);
  border-radius: 10px;
}
.bc-app-notification__count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bc-teal-800);
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 800;
}
.bc-app-notification__dot { display: none; }

/* Calculator Step 3 */
.bc-calc-app--step-3 {
  padding-top: 0;
  padding-bottom: 28px;
  background: #fbfcfc;
}
.bc-calc-stepper-shell {
  background: #fff;
  border-bottom: 1px solid var(--bc-line);
  margin-bottom: 28px;
}
.bc-calc-app--step-3 .bc-stepper {
  margin: 0;
  padding: 20px 0;
}
.bc-calc-app--step-3 .bc-stepper__number {
  width: 40px;
  height: 40px;
  background: #fff;
  border-color: #aab9bd;
}
.bc-calc-app--step-3 .bc-stepper__item.is-completed .bc-stepper__number {
  border-color: var(--bc-teal-700);
  color: var(--bc-teal-800);
}
.bc-calc-app--step-3 .bc-stepper__item.is-completed .bc-stepper__label {
  color: #46575c;
}
.bc-stepper__check {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bc-teal-700);
}
.bc-stepper__check .bc-icon { width: 18px; height: 18px; stroke-width: 2.3; }
.bc-calc-app--step-3 .bc-stepper__item.is-completed .bc-stepper__line {
  background: linear-gradient(90deg, var(--bc-teal-700), #a8c7c7);
}
.bc-calc-app--step-3 .bc-stepper__item.is-active .bc-stepper__number {
  color: var(--bc-teal-800);
  background: #fff;
  border: 2px solid var(--bc-teal-800);
  box-shadow: 0 0 0 5px rgba(10,129,126,.06);
}
.bc-calc-app--step-3 .bc-stepper__item.is-active .bc-stepper__label {
  color: var(--bc-teal-800);
  font-weight: 800;
}

.bc-quality {
  width: 100%;
}
.bc-quality__heading {
  margin: 0 0 20px;
}
.bc-quality__heading h1 {
  margin: 0 0 5px;
  font-size: clamp(28px, 2.45vw, 40px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.bc-quality__heading p {
  margin: 0;
  color: #65747a;
  font-size: 16px;
}
.bc-quality__form { margin: 0; }
.bc-quality-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bc-quality-option {
  min-width: 0;
  position: relative;
}
.bc-quality-option__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.bc-quality-option__card {
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid #d8e1e3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24, 51, 55, .035);
  cursor: pointer;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.bc-quality-option__card:hover {
  border-color: #b7cfce;
  box-shadow: 0 10px 28px rgba(12, 86, 84, .07);
  transform: translateY(-1px);
}
.bc-quality-option__radio:focus-visible + .bc-quality-option__card {
  outline: 3px solid rgba(10,129,126,.22);
  outline-offset: 4px;
}
.bc-quality-option__radio:checked + .bc-quality-option__card {
  border: 2px solid var(--bc-teal-800);
  padding: 25px 23px 21px;
  background: linear-gradient(145deg, #f8fefe, #effafa);
  box-shadow: 0 12px 30px rgba(8, 112, 109, .08);
}
.bc-quality-option__selected {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bc-teal-800);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.bc-quality-option__radio:checked + .bc-quality-option__card .bc-quality-option__selected { display: inline-flex; }
.bc-quality-option__selected .bc-icon { width: 20px; height: 20px; stroke-width: 2.4; }
.bc-quality-option__top {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}
.bc-quality-option__icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f1f3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111c20;
}
.bc-quality-option__radio:checked + .bc-quality-option__card .bc-quality-option__icon {
  background: #d9f2f0;
}
.bc-quality-option__icon .bc-icon { width: 39px; height: 39px; stroke-width: 1.75; }
.bc-quality-option__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bc-quality-option__title {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
}
.bc-quality-option__description {
  margin-top: 6px;
  color: #5c6b70;
  line-height: 1.45;
}
.bc-quality-option__badge {
  margin-top: 6px;
  border-radius: 7px;
  padding: 3px 10px;
  background: #d9f4f0;
  color: #147b78;
  font-size: 13px;
  font-weight: 700;
}
.bc-quality-option__divider {
  height: 1px;
  background: #dfe7e9;
  margin: 18px 0 17px;
}
.bc-quality-option__rate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  color: #26383d;
}
.bc-quality-option__rate strong {
  color: var(--bc-teal-800);
  font-size: 22px;
  letter-spacing: -.02em;
}
.bc-quality-option__features {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.bc-quality-option__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #36474c;
  line-height: 1.42;
}
.bc-quality-option__features .bc-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--bc-teal-700);
  border: 1px solid var(--bc-teal-700);
  border-radius: 50%;
  padding: 3px;
}
.bc-quality__validation {
  margin: 12px 0 0;
  color: #a12525;
  font-weight: 700;
}

.bc-quality-lower {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .95fr);
  gap: 22px;
  align-items: stretch;
}
.bc-quality-panel {
  background: #fff;
  border: 1px solid #d8e1e3;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(24, 51, 55, .025);
}
.bc-quality-panel > h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
}
.bc-quality-inclusions {
  display: flex;
  flex-direction: column;
}
.bc-quality-inclusions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.bc-quality-inclusion {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid #e1e7e9;
  min-width: 0;
}
.bc-quality-inclusion:nth-child(2n) {
  border-left: 1px solid #e7ecee;
  padding-left: 24px;
}
.bc-quality-inclusion__icon {
  color: var(--bc-teal-700);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}
.bc-quality-inclusion__icon .bc-icon { width: 31px; height: 31px; }
.bc-quality-inclusion h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.3;
}
.bc-quality-inclusion p {
  margin: 0;
  color: #5d6b70;
  font-size: 14px;
  line-height: 1.35;
}
.bc-quality-info {
  margin-top: auto;
  padding: 13px 15px;
  border-radius: 10px;
  background: #edf6ff;
  color: #315b91;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.bc-quality-info .bc-icon { flex: 0 0 auto; color: #1d59a5; }

.bc-quality-summary__rows {
  margin: 0;
}
.bc-quality-summary__rows > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
}
.bc-quality-summary__rows > div::before {
  content: '';
  grid-column: 2;
  border-bottom: 1px dotted #d7e0e2;
  align-self: center;
  order: 2;
}
.bc-quality-summary__rows dt,
.bc-quality-summary__rows dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.bc-quality-summary__rows dt {
  grid-column: 1;
  color: #526267;
  font-size: 14px;
  order: 1;
}
.bc-quality-summary__rows dt .bc-icon {
  width: 22px;
  height: 22px;
  color: var(--bc-teal-700);
}
.bc-quality-summary__rows dd {
  grid-column: 3;
  justify-content: flex-end;
  font-weight: 700;
  color: #243338;
  order: 3;
  white-space: nowrap;
}
.bc-quality-summary__dev-note {
  margin: 10px 0 0;
  color: #758388;
  font-size: 12px;
  line-height: 1.45;
}
.bc-quality-summary__estimate {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #d4dde0;
}
.bc-quality-summary__estimate h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.bc-quality-summary__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--bc-teal-800);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.bc-quality-summary__notice {
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fffaf2;
  border: 1px solid #eee1ca;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b5a55;
  font-size: 13px;
}
.bc-quality-summary__notice .bc-icon { flex: 0 0 auto; }

.bc-quality-nav {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bc-quality-nav__prev {
  min-width: 188px;
  min-height: 56px;
  color: #2c3b40;
  border-color: #aebbc0;
  background: #fff;
  font-size: 17px;
}
.bc-quality-nav__next {
  min-width: 210px;
  min-height: 58px;
  font-size: 18px;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .bc-app-link--utility span { display: none; }
  .bc-app-link--utility { width: 44px; padding: 0; justify-content: center; }
  .bc-calc-app--step-3 .bc-stepper__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
  .bc-calc-app--step-3 .bc-stepper__item {
    display: flex;
  }
  .bc-calc-app--step-3 .bc-stepper__line {
    display: block;
    margin: 0 8px;
  }
  .bc-calc-app--step-3 .bc-stepper__label {
    white-space: normal;
    font-size: 12px;
  }
  .bc-quality-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bc-quality-option:last-child { grid-column: 1 / -1; }
  .bc-quality-lower { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .bc-app-header__actions { width: auto; }
  .bc-app-profile__name { display: none; }
  .bc-app-profile__avatar { width: 42px; height: 42px; }
  .bc-calc-stepper-shell { overflow: hidden; }
  .bc-calc-app--step-3 .bc-stepper {
    min-width: 0;
  }
  .bc-calc-app--step-3 .bc-stepper__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .bc-calc-app--step-3 .bc-stepper__item {
    min-width: 0;
    justify-content: center;
  }
  .bc-calc-app--step-3 .bc-stepper__node {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
  .bc-calc-app--step-3 .bc-stepper__label {
    font-size: 11px;
    line-height: 1.25;
  }
  .bc-calc-app--step-3 .bc-stepper__check {
    display: none;
  }
  .bc-calc-app--step-3 .bc-stepper__line {
    display: none;
  }
  .bc-quality-options { grid-template-columns: 1fr; }
  .bc-quality-option:last-child { grid-column: auto; }
  .bc-quality-option__card { min-height: 0; }
  .bc-quality-inclusions__grid { grid-template-columns: 1fr; }
  .bc-quality-inclusion:nth-child(2n) {
    border-left: 0;
    padding-left: 6px;
  }
}
@media (max-width: 520px) {
  .bc-app-header__inner { flex-wrap: nowrap; }
  .bc-brand--app .bc-brand__tagline { display: none; }
  .bc-brand--app .bc-brand__name { font-size: 17px; }
  .bc-brand--app .bc-brand__mark { width: 42px; }
  .bc-brand--app .bc-brand__mark .bc-icon { width: 42px; height: 42px; }
  .bc-app-header__actions { gap: 3px; }
  .bc-app-link--utility:nth-child(2),
  .bc-app-link--utility:nth-child(3) { display: none; }
  .bc-quality__heading h1 { font-size: 28px; }
  .bc-quality-option__card { padding: 20px 18px; }
  .bc-quality-option__radio:checked + .bc-quality-option__card { padding: 19px 17px; }
  .bc-quality-option__top { gap: 14px; }
  .bc-quality-option__icon { width: 60px; height: 60px; }
  .bc-quality-option__icon .bc-icon { width: 32px; height: 32px; }
  .bc-quality-option__title { font-size: 22px; }
  .bc-quality-option__rate strong { font-size: 20px; }
  .bc-quality-panel { padding: 17px; }
  .bc-quality-summary__rows > div {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .bc-quality-summary__rows > div::before { display: none; }
  .bc-quality-summary__rows dt { grid-column: 1; }
  .bc-quality-summary__rows dd { grid-column: 2; }
  .bc-quality-nav { flex-direction: column; }
  .bc-quality-nav > * { width: 100%; }
}

/* v1.1.0 full wizard completion */
.bc-calc-wizard{padding-bottom:34px}.bc-wizard-card{padding:26px}.bc-wizard-form{display:grid;gap:22px}.bc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bc-wizard-form label{display:grid;gap:8px;font-weight:700;color:#26373b}.bc-wizard-form input[type="number"],.bc-wizard-form select{width:100%;min-height:52px;border:1px solid #cfdadd;border-radius:10px;background:#fff;padding:10px 13px;color:#213136}.bc-wizard-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px!important;min-height:52px;padding:12px 14px;border:1px solid #d9e2e4;border-radius:10px;background:#fbfdfd}.bc-wizard-check input{width:20px;height:20px;accent-color:var(--bc-teal-800)}
.bc-option-grid{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bc-option-grid>label{position:relative;cursor:pointer}.bc-option-grid input{position:absolute;opacity:0}.bc-option-grid>label>span{min-height:132px;padding:18px;border:1px solid #d8e2e4;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#fff;transition:.18s ease}.bc-option-grid>label>span .bc-icon{width:28px;height:28px;color:var(--bc-teal-700)}.bc-option-grid strong{font-size:17px}.bc-option-grid small{color:#66767b;line-height:1.45}.bc-option-grid input:checked+span{border:2px solid var(--bc-teal-800);padding:17px;background:#effafa;box-shadow:0 7px 20px rgba(6,112,110,.08)}.bc-option-grid input:focus-visible+span{outline:3px solid rgba(10,129,126,.22);outline-offset:3px}
.bc-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.bc-review-grid>div{padding:17px;border:1px solid #dbe4e6;border-radius:12px;background:#fbfdfd;display:grid;gap:5px}.bc-review-grid small{color:#6d7c81}.bc-review-grid strong{font-size:18px;color:#203136;overflow-wrap:anywhere}
@media(max-width:820px){.bc-form-grid,.bc-review-grid{grid-template-columns:1fr}.bc-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.bc-wizard-card{padding:17px}.bc-option-grid{grid-template-columns:1fr}.bc-option-grid>label>span{min-height:104px}}
.bc-tool-calculator{padding:18px 0 34px}.bc-tool-result{padding:18px 0}.bc-tool-result__list{margin:0;display:grid;gap:10px}.bc-tool-result__list>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #edf1f2}.bc-tool-result__list dt{color:#65757a}.bc-tool-result__list dd{margin:0;font-weight:800;text-align:right;color:var(--bc-teal-800)}

/* v1.5.0 — compact mobile calculator progress */
.bc-stepper-mobile{display:none;margin:0 0 16px;padding:14px 16px;border:1px solid #d7e3e4;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(14,51,53,.04)}
.bc-stepper-mobile__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#43565b}
.bc-stepper-mobile__meta strong{color:var(--bc-teal-800);font-size:15px}.bc-stepper-mobile__meta span{font-weight:700;text-align:right}
.bc-stepper-mobile__bar{height:7px;border-radius:999px;background:#e2e9ea;overflow:hidden}.bc-stepper-mobile__bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--bc-teal-800),var(--bc-teal-600));transition:width .2s ease}
@media(max-width:780px){.bc-stepper-mobile{display:block}.bc-stepper__list,.bc-stepper__progress{display:none!important}.bc-calc-app--step-3 .bc-stepper__list{display:none!important}.bc-calc-stepper-shell{padding:12px 0;margin-bottom:18px}.bc-calc-app--step-3 .bc-stepper{padding:0;min-width:0}}
@media(max-width:420px){.bc-stepper-mobile{padding:12px}.bc-stepper-mobile__meta{align-items:flex-start;flex-direction:column;gap:2px}.bc-stepper-mobile__meta span{text-align:left;font-size:14px}}


/* v1.5.2 — Compact mobile Construction Calculator.
   Scoped to calculator classes and <=767px so desktop remains unchanged. */
.bc-calc-summary-item--mobile-cost {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .bc-calc-app {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .bc-calc-app > .bc-container,
  .bc-calc-stepper-shell > .bc-container,
  .bc-calculator-warnings {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bc-breadcrumb {
    margin-bottom: 10px;
  }
  .bc-breadcrumb__list {
    font-size: 12px;
    gap: 5px;
  }
  .bc-breadcrumb__list li + li::before {
    margin-right: 5px;
  }

  .bc-calc-heading {
    gap: 10px;
    margin-bottom: 14px;
  }
  .bc-calc-heading__title {
    margin-bottom: 5px;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.2;
    letter-spacing: -.015em;
  }
  .bc-calc-heading__lead {
    font-size: 14px;
    line-height: 1.5;
  }
  .bc-calc-heading__badge {
    width: auto;
    min-height: 38px;
    padding: 8px 10px;
    gap: 7px;
    border-radius: 10px;
    justify-content: flex-start;
    font-size: 12px;
  }
  .bc-calc-heading__badge .bc-icon {
    width: 15px;
    height: 15px;
  }

  .bc-stepper {
    margin-bottom: 12px;
  }
  .bc-stepper-mobile {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    box-shadow: none;
  }
  .bc-stepper-mobile__meta {
    margin-bottom: 7px;
  }
  .bc-stepper-mobile__meta strong {
    font-size: 13px;
  }
  .bc-stepper-mobile__meta span {
    font-size: 12px;
  }
  .bc-stepper-mobile__bar {
    height: 5px;
  }

  .bc-calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bc-calc-sidebar {
    order: -1;
    position: static;
    top: auto;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(14,51,53,.04);
  }
  .bc-calc-sidebar__title-wrap {
    gap: 9px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .bc-calc-card__icon--small {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .bc-calc-card__icon--small .bc-icon {
    width: 22px;
    height: 22px;
  }
  .bc-calc-sidebar__title-wrap h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
  }

  .bc-calc-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bc-calc-summary-list > div,
  .bc-calc-summary-list > div:nth-child(n) {
    min-width: 0;
    min-height: 82px;
    padding: 9px;
    border: 1px solid #e0e8e9;
    border-radius: 11px;
    background: #fbfdfd;
    display: block;
  }
  .bc-calc-summary-list dt,
  .bc-calc-summary-list dd {
    min-width: 0;
    display: block;
    margin: 0;
    text-align: left;
    justify-content: flex-start;
  }
  .bc-calc-summary-list dt {
    color: #67767b;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
  }
  .bc-calc-summary-list dt .bc-icon {
    width: 17px;
    height: 17px;
    margin-right: 4px;
    vertical-align: -3px;
    color: var(--bc-teal-700);
  }
  .bc-calc-summary-list dd,
  .bc-calc-summary-list > div:nth-child(n+2) dd {
    margin-top: 5px;
    color: #203338;
    font-size: clamp(13px, 4vw, 16px);
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  .bc-calc-summary-list > div:first-child dd {
    color: var(--bc-teal-800);
  }
  .bc-calc-summary-item--mobile-cost {
    display: block !important;
  }

  .bc-calc-empty-state {
    display: none;
  }
  .bc-calc-sidebar .bc-calc-alert--info {
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 10px;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
  }
  .bc-calc-sidebar .bc-calc-alert--info .bc-icon {
    width: 18px;
    height: 18px;
  }

  .bc-calc-card {
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(14,51,53,.04);
  }
  .bc-calc-card__head {
    padding: 14px 14px 12px;
    gap: 10px;
  }
  .bc-calc-card__intro {
    gap: 10px;
  }
  .bc-calc-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
  .bc-calc-card__icon .bc-icon {
    width: 23px;
    height: 23px;
  }
  .bc-calc-card__intro h2 {
    margin: 1px 0 4px;
    font-size: 20px;
  }
  .bc-calc-card__intro p {
    font-size: 13px;
    line-height: 1.45;
  }
  .bc-calc-card__draft {
    gap: 5px;
    font-size: 11px;
    white-space: normal;
  }
  .bc-calc-card__draft .bc-icon {
    width: 15px;
    height: 15px;
  }

  .bc-calc-form__body {
    padding: 14px;
  }
  .bc-calc-field + .bc-calc-field {
    margin-top: 19px;
  }
  .bc-calc-label {
    gap: 6px;
    margin-bottom: 9px;
    font-size: 15px;
  }
  .bc-calc-info {
    width: 20px;
    height: 20px;
  }
  .bc-calc-info .bc-icon {
    width: 12px;
    height: 12px;
  }

  .bc-calc-area-row {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .bc-area-input-wrap {
    min-height: 68px;
    border-width: 1px;
    border-radius: 10px;
  }
  .bc-calc-number {
    padding: 10px 13px;
    font-size: clamp(29px, 9vw, 36px);
  }
  .bc-area-input-controls {
    width: 48px;
  }
  .bc-area-stepper {
    font-size: 22px;
  }

  .bc-unit-switch {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    border-radius: 10px;
  }
  .bc-unit-switch__label,
  .bc-unit-switch__label:first-of-type {
    min-height: 46px;
    padding: 8px 5px;
    border-top: 0 !important;
    border-left: 1px solid #d7dfe2 !important;
    font-size: 13px;
    line-height: 1.2;
  }
  .bc-unit-switch__label:first-of-type {
    border-left: 0 !important;
  }
  .bc-calc-helper {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
  }

  .bc-coverage-grid {
    grid-template-columns: minmax(0,1fr) 82px !important;
    gap: 10px;
    align-items: end;
  }
  .bc-coverage-badge {
    min-width: 48px;
    min-height: 34px;
    margin: 0 0 8px 50%;
    border-radius: 9px;
    font-size: 13px;
  }
  .bc-coverage-badge::after {
    bottom: -7px;
    border-width: 7px;
  }
  .bc-coverage-slider-row {
    grid-template-columns: 24px minmax(0,1fr) 30px !important;
    gap: 7px;
  }
  .bc-coverage-marker {
    font-size: 10px;
  }
  .bc-coverage-range::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }
  .bc-coverage-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }
  .bc-percent-field {
    min-height: 46px;
    border-radius: 9px;
  }
  .bc-percent-field input {
    padding: 9px 7px;
    font-size: 17px;
  }
  .bc-percent-field__suffix {
    width: 32px;
    font-size: 19px;
  }
  .bc-coverage-input-wrap .bc-calc-helper {
    display: none;
  }

  .bc-calc-alert {
    margin-top: 14px;
    padding: 10px 11px;
    border-radius: 10px;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
  }
  .bc-calc-alert .bc-icon {
    width: 18px;
    height: 18px;
  }

  .bc-calc-actions,
  .bc-quality-nav {
    margin-top: 16px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }
  .bc-calc-actions > *,
  .bc-quality-nav > * {
    width: 100%;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 9px 8px;
    border-radius: 9px;
    font-size: 13px !important;
    line-height: 1.3;
  }

  .bc-calc-stepper-shell {
    margin-bottom: 12px;
  }
  .bc-quality__heading {
    margin-bottom: 12px;
  }
  .bc-quality__heading h1 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.2;
  }
  .bc-quality__heading p {
    font-size: 13px;
    line-height: 1.45;
  }
  .bc-wizard-card {
    padding: 14px;
    border-radius: 14px;
  }
  .bc-wizard-form {
    gap: 14px;
  }
  .bc-form-grid {
    gap: 12px;
  }
  .bc-wizard-form input[type="number"],
  .bc-wizard-form select {
    min-height: 48px;
    padding: 9px 10px;
  }
  .bc-wizard-check {
    min-height: 46px;
    padding: 10px 11px;
  }

  .bc-option-grid,
  .bc-option-grid:nth-child(n) {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px;
  }
  .bc-option-grid > label > span,
  .bc-option-grid input:checked + span {
    min-height: 96px;
    padding: 10px;
    gap: 5px;
    border-radius: 10px;
  }
  .bc-option-grid input:checked + span {
    padding: 9px;
  }
  .bc-option-grid > label > span .bc-icon {
    width: 21px;
    height: 21px;
  }
  .bc-option-grid strong {
    font-size: 14px;
    line-height: 1.3;
  }
  .bc-option-grid small {
    font-size: 11px;
    line-height: 1.35;
  }

  .bc-review-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px;
    margin-bottom: 14px;
  }
  .bc-review-grid > div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
  }
  .bc-review-grid small {
    font-size: 11px;
  }
  .bc-review-grid strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .bc-quality-options {
    gap: 10px;
  }
  .bc-quality-option__card,
  .bc-quality-option__radio:checked + .bc-quality-option__card {
    padding: 13px 12px !important;
    border-radius: 12px;
  }
  .bc-quality-option__top {
    min-height: 58px;
    gap: 10px;
  }
  .bc-quality-option__icon {
    width: 50px;
    height: 50px;
  }
  .bc-quality-option__icon .bc-icon {
    width: 27px;
    height: 27px;
  }
  .bc-quality-option__title {
    font-size: 19px;
  }
  .bc-quality-option__badge {
    margin-top: 4px;
    font-size: 11px;
  }
  .bc-quality-option__description {
    margin-top: 4px;
    font-size: 12px;
  }
  .bc-quality-option__divider {
    margin: 10px 0;
  }
  .bc-quality-option__rate {
    gap: 4px;
    font-size: 12px;
  }
  .bc-quality-option__rate strong {
    font-size: 17px;
  }
  .bc-quality-option__features {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 6px 8px;
    margin-top: 10px;
  }
  .bc-quality-option__features li {
    gap: 5px;
    font-size: 11px;
    line-height: 1.35;
  }
  .bc-quality-option__features .bc-icon {
    width: 16px;
    height: 16px;
    padding: 2px;
  }

  .bc-quality-lower {
    margin-top: 14px;
    gap: 12px;
  }
  .bc-quality-panel {
    padding: 13px;
    border-radius: 12px;
  }

  .bc-calculator-warnings {
    padding-top: 2px;
    padding-bottom: 18px;
  }
  .bc-calculator-warnings .bc-market-warning,
  .bc-calculator-warnings .bc-estimate-disclaimer {
    gap: 8px;
    margin: 10px 0;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
  }
  .bc-calculator-warnings .bc-market-warning__icon,
  .bc-calculator-warnings .bc-estimate-disclaimer__icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 13px;
  }
  .bc-calculator-warnings .bc-market-warning strong,
  .bc-calculator-warnings .bc-estimate-disclaimer strong {
    margin-bottom: 2px;
    font-size: 13px;
  }
}

@media screen and (max-width: 360px) {
  .bc-calc-app > .bc-container,
  .bc-calc-stepper-shell > .bc-container,
  .bc-calculator-warnings {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bc-calc-sidebar,
  .bc-calc-form__body,
  .bc-calc-card__head,
  .bc-wizard-card {
    padding: 12px;
  }
  .bc-calc-summary-list {
    gap: 7px;
  }
  .bc-calc-summary-list > div,
  .bc-calc-summary-list > div:nth-child(n) {
    min-height: 76px;
    padding: 8px;
  }
  .bc-calc-summary-list dt {
    font-size: 11px;
  }
  .bc-calc-summary-list dd,
  .bc-calc-summary-list > div:nth-child(n+2) dd {
    font-size: 12px;
  }
  .bc-unit-switch__label {
    min-height: 44px;
    font-size: 12px;
  }
  .bc-coverage-grid {
    grid-template-columns: minmax(0,1fr) 76px !important;
  }
  .bc-option-grid > label > span,
  .bc-option-grid input:checked + span {
    min-height: 90px;
    padding: 9px;
  }
  .bc-option-grid input:checked + span {
    padding: 8px;
  }
}


/* v1.6.0 — mobile Building Information + Construction Quality compaction */
.bc-quality-inclusions__toggle { display: none; }

@media screen and (max-width: 767px) {
  /* Step 2: keep compatible fields in a true two-column grid. */
  .bc-calc-wizard .bc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .bc-calc-wizard .bc-wizard-form label {
    min-width: 0;
    gap: 5px;
    font-size: 13px;
  }
  .bc-calc-wizard .bc-wizard-form input[type="number"],
  .bc-calc-wizard .bc-wizard-form select {
    min-width: 0;
    min-height: 44px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 13px;
  }
  .bc-calc-wizard .bc-wizard-check {
    min-width: 0;
    min-height: 44px;
    padding: 9px;
    font-size: 12px;
    line-height: 1.35;
  }
  .bc-calc-wizard .bc-wizard-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  /* Step 3: Budget + Standard share row one; Premium spans the next row. */
  .bc-quality-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .bc-quality-option {
    min-width: 0;
  }
  .bc-quality-option:last-child {
    grid-column: 1 / -1 !important;
  }
  .bc-quality-option__card,
  .bc-quality-option__radio:checked + .bc-quality-option__card {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 11px;
  }
  .bc-quality-option__radio:checked + .bc-quality-option__card {
    padding: 9px !important;
  }
  .bc-quality-option__top {
    min-height: 42px;
    gap: 7px;
  }
  .bc-quality-option__icon {
    width: 34px;
    height: 34px;
  }
  .bc-quality-option__icon .bc-icon {
    width: 20px;
    height: 20px;
  }
  .bc-quality-option__title {
    font-size: 15px;
    line-height: 1.25;
  }
  .bc-quality-option__badge {
    margin-top: 2px;
    padding: 2px 6px;
    font-size: 9px;
    line-height: 1.2;
  }
  .bc-quality-option__description,
  .bc-quality-option__features {
    display: none;
  }
  .bc-quality-option__divider {
    margin: 7px 0;
  }
  .bc-quality-option__rate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 4px;
    font-size: 10px;
    line-height: 1.25;
  }
  .bc-quality-option__rate strong {
    grid-column: 1 / -1;
    font-size: clamp(13px, 3.7vw, 16px);
    overflow-wrap: anywhere;
  }
  .bc-quality-option__selected {
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
  }
  .bc-quality-option__selected .bc-icon {
    width: 14px;
    height: 14px;
  }

  /* The full detail list is collapsed behind a compact, accessible control. */
  .bc-quality-inclusions {
    padding: 10px;
  }
  .bc-quality-inclusions__toggle {
    width: 100%;
    min-height: 42px;
    border: 0;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: transparent;
    color: var(--bc-teal-800);
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }
  .bc-quality-inclusions__toggle .bc-icon {
    width: 17px;
    height: 17px;
    transition: transform .18s ease;
  }
  .bc-quality-inclusions.is-open .bc-quality-inclusions__toggle .bc-icon {
    transform: rotate(90deg);
  }
  .bc-quality-inclusions__content {
    display: none;
    padding-top: 8px;
  }
  .bc-quality-inclusions.is-open .bc-quality-inclusions__content {
    display: block;
  }
  .bc-quality-inclusions__content > h2 {
    margin: 0 0 10px;
    font-size: 15px;
  }
  .bc-quality-inclusions__grid {
    grid-template-columns: 1fr !important;
  }
  .bc-quality-inclusion {
    grid-template-columns: 30px 1fr;
    padding: 7px 4px;
  }
  .bc-quality-inclusion:nth-child(2n) {
    border-left: 0;
    padding-left: 4px;
  }
  .bc-quality-inclusion__icon .bc-icon {
    width: 23px;
    height: 23px;
  }
  .bc-quality-inclusion h3 {
    font-size: 13px;
  }
  .bc-quality-inclusion p,
  .bc-quality-info {
    font-size: 11px;
  }
}

@media screen and (max-width: 360px) {
  .bc-calc-wizard .bc-form-grid {
    gap: 7px !important;
  }
  .bc-calc-wizard .bc-wizard-form label {
    font-size: 12px;
  }
  .bc-calc-wizard .bc-wizard-form input[type="number"],
  .bc-calc-wizard .bc-wizard-form select {
    min-height: 42px;
    padding-inline: 7px;
    font-size: 12px;
  }
  .bc-quality-option__card,
  .bc-quality-option__radio:checked + .bc-quality-option__card {
    padding: 8px !important;
  }
  .bc-quality-option__radio:checked + .bc-quality-option__card {
    padding: 7px !important;
  }
  .bc-quality-option__icon {
    width: 30px;
    height: 30px;
  }
  .bc-quality-option__title {
    font-size: 14px;
  }
  .bc-quality-option__rate strong {
    font-size: 13px;
  }
}


/* Keep the compact two-column Step 2/3 structure continuous through small tablets. */
@media screen and (min-width: 768px) and (max-width: 820px) {
  .bc-calc-wizard .bc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .bc-quality-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bc-quality-option:last-child {
    grid-column: 1 / -1 !important;
  }
}
