.bhp-dsc-page-shell {
  --bhp-dsc-bg: #f4f6f8;
  --bhp-dsc-card: #ffffff;
  --bhp-dsc-text: #18212f;
  --bhp-dsc-muted: #697586;
  --bhp-dsc-line: #d9e1ea;
  --bhp-dsc-primary: #176b5b;
  --bhp-dsc-primary-dark: #105145;
  --bhp-dsc-primary-soft: #e7f5f1;
  --bhp-dsc-danger: #b42318;
  --bhp-dsc-shadow: 0 24px 70px rgba(24, 33, 47, 0.12);
  --bhp-dsc-radius: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  background: var(--bhp-dsc-bg);
  color: var(--bhp-dsc-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.bhp-dsc-page-shell *,
.bhp-dsc-page-shell *::before,
.bhp-dsc-page-shell *::after {
  box-sizing: border-box;
}

.bhp-dsc-page-shell [hidden] {
  display: none !important;
}

.bhp-dsc-page-shell button,
.bhp-dsc-page-shell input {
  font: inherit;
}

.bhp-dsc-page-shell h1,
.bhp-dsc-page-shell h2,
.bhp-dsc-page-shell p {
  margin-top: 0;
}

.bhp-dsc-calculator {
  min-width: 0;
  overflow: hidden;
  background: var(--bhp-dsc-card);
  border: 1px solid rgba(217, 225, 234, 0.85);
  border-radius: 8px;
  box-shadow: var(--bhp-dsc-shadow);
}

.bhp-dsc-calculator__intro {
  padding: 32px 28px 8px;
}

.bhp-dsc-calculator__intro h1 {
  margin-bottom: 8px;
  color: var(--bhp-dsc-text);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.bhp-dsc-calculator__intro p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--bhp-dsc-muted);
  font-size: 1rem;
}

.bhp-dsc-calculator__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 20px 28px 28px;
  align-items: start;
}

.bhp-dsc-calculator__form,
.bhp-dsc-results-panel {
  min-width: 0;
}

.bhp-dsc-section-block {
  padding: 20px 0;
  border-top: 1px solid var(--bhp-dsc-line);
}

.bhp-dsc-section-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.bhp-dsc-section-block h2 {
  margin-bottom: 6px;
  color: var(--bhp-dsc-text);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.bhp-dsc-section-block p {
  margin-bottom: 0;
  color: var(--bhp-dsc-muted);
  font-size: 0.92rem;
}

.bhp-dsc-section-block--compact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.bhp-dsc-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.bhp-dsc-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--bhp-dsc-text);
  font-weight: 800;
}

.bhp-dsc-input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--bhp-dsc-line);
  border-radius: var(--bhp-dsc-radius);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bhp-dsc-input-with-unit:focus-within {
  border-color: var(--bhp-dsc-primary);
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.16);
}

.bhp-dsc-input-with-unit input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px 12px;
  color: var(--bhp-dsc-text);
  background: #fff;
  outline: 0;
}

.bhp-dsc-input-with-unit span {
  padding: 0 12px;
  color: var(--bhp-dsc-muted);
  font-weight: 800;
}

.bhp-dsc-field p {
  margin-top: 7px;
  font-size: 0.84rem;
}

.bhp-dsc-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.bhp-dsc-toggle input {
  position: absolute;
  opacity: 0;
}

.bhp-dsc-toggle__track {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: #c8d2de;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.bhp-dsc-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(24, 33, 47, 0.22);
  transition: transform 180ms ease;
}

.bhp-dsc-toggle input:checked + .bhp-dsc-toggle__track {
  background: var(--bhp-dsc-primary);
}

.bhp-dsc-toggle input:checked + .bhp-dsc-toggle__track .bhp-dsc-toggle__thumb {
  transform: translateX(24px);
}

.bhp-dsc-toggle input:focus-visible + .bhp-dsc-toggle__track {
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.2);
}

.bhp-dsc-sheet-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bhp-dsc-sheet-card {
  display: grid;
  gap: 4px;
  min-height: 122px;
  padding: 15px;
  border: 1px solid var(--bhp-dsc-line);
  border-radius: var(--bhp-dsc-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bhp-dsc-sheet-card:hover {
  transform: translateY(-1px);
  border-color: #a8b8c8;
}

.bhp-dsc-sheet-card input {
  position: absolute;
  opacity: 0;
}

.bhp-dsc-sheet-card.bhp-dsc-is-selected {
  border-color: var(--bhp-dsc-primary);
  background: var(--bhp-dsc-primary-soft);
  box-shadow: 0 10px 24px rgba(23, 107, 91, 0.12);
}

.bhp-dsc-sheet-card:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.18);
}

.bhp-dsc-sheet-card__title {
  color: var(--bhp-dsc-text);
  font-size: 1rem;
  font-weight: 900;
}

.bhp-dsc-sheet-card__coverage {
  color: var(--bhp-dsc-text);
  font-size: 0.9rem;
}

.bhp-dsc-sheet-card__hint {
  color: var(--bhp-dsc-primary);
  font-size: 0.84rem;
  font-weight: 800;
}

.bhp-dsc-slider-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.bhp-dsc-waste-output {
  min-width: 56px;
  padding: 7px 10px;
  border-radius: var(--bhp-dsc-radius);
  background: var(--bhp-dsc-primary-soft);
  color: var(--bhp-dsc-primary-dark);
  text-align: center;
  font-weight: 900;
}

.bhp-dsc-range-input {
  width: 100%;
  margin-top: 18px;
  accent-color: var(--bhp-dsc-primary);
  cursor: pointer;
}

.bhp-dsc-range-input:focus-visible {
  outline: 3px solid rgba(23, 107, 91, 0.28);
  outline-offset: 6px;
}

.bhp-dsc-message {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--bhp-dsc-danger);
  font-weight: 700;
}

.bhp-dsc-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bhp-dsc-button {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--bhp-dsc-radius);
  padding: 12px 16px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bhp-dsc-button:hover {
  transform: translateY(-1px);
}

.bhp-dsc-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.2);
}

.bhp-dsc-button--primary {
  background: var(--bhp-dsc-primary);
  color: #fff;
}

.bhp-dsc-button--primary:hover {
  background: var(--bhp-dsc-primary-dark);
}

.bhp-dsc-button--secondary {
  border-color: var(--bhp-dsc-line);
  background: #fff;
  color: var(--bhp-dsc-text);
}

.bhp-dsc-button--secondary:hover {
  border-color: #a8b8c8;
  background: #f8fafc;
}

.bhp-dsc-button--ghost {
  border-color: #f2d392;
  background: #fff7e6;
  color: #5c4200;
}

.bhp-dsc-button--ghost:hover {
  background: #ffefc2;
}

.bhp-dsc-results-panel {
  position: sticky;
  top: 24px;
  border: 1px solid var(--bhp-dsc-line);
  border-radius: var(--bhp-dsc-radius);
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(24, 33, 47, 0.08);
}

.bhp-dsc-results-panel__top {
  margin-bottom: 14px;
}

.bhp-dsc-results-panel h2 {
  margin-bottom: 0;
  color: var(--bhp-dsc-text);
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.bhp-dsc-result-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #aebdca;
  border-radius: var(--bhp-dsc-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--bhp-dsc-muted);
  text-align: center;
  font-size: 0.96rem;
}

.bhp-dsc-result-content {
  animation: bhpDscFadeIn 180ms ease;
}

.bhp-dsc-hero-result {
  padding: 24px;
  border-radius: var(--bhp-dsc-radius);
  background: linear-gradient(135deg, var(--bhp-dsc-primary) 0%, var(--bhp-dsc-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 107, 91, 0.24);
}

.bhp-dsc-hero-result__label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bhp-dsc-hero-result strong {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1;
}

.bhp-dsc-hero-result strong span {
  display: inline-block;
  font-size: clamp(4.5rem, 12vw, 6.8rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: 0;
}

.bhp-dsc-hero-result p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.bhp-dsc-result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bhp-dsc-result-card {
  padding: 13px;
  border: 1px solid var(--bhp-dsc-line);
  border-radius: var(--bhp-dsc-radius);
  background: #f8fafc;
}

.bhp-dsc-result-card span {
  display: block;
  color: var(--bhp-dsc-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.bhp-dsc-result-card strong {
  display: block;
  margin-top: 3px;
  color: var(--bhp-dsc-text);
  font-size: 1.05rem;
}

.bhp-dsc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes bhpDscFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .bhp-dsc-calculator__grid {
    grid-template-columns: 1fr;
  }

  .bhp-dsc-results-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .bhp-dsc-page-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .bhp-dsc-calculator__intro,
  .bhp-dsc-calculator__grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bhp-dsc-input-grid,
  .bhp-dsc-sheet-options,
  .bhp-dsc-result-cards {
    grid-template-columns: 1fr;
  }

  .bhp-dsc-button-row {
    flex-direction: column;
  }

  .bhp-dsc-button {
    flex-basis: auto;
    width: 100%;
  }

  .bhp-dsc-section-block--compact,
  .bhp-dsc-slider-header {
    align-items: stretch;
  }

  .bhp-dsc-section-block--compact {
    flex-direction: column;
  }

  .bhp-dsc-toggle__track {
    width: 64px;
    height: 38px;
  }

  .bhp-dsc-toggle__thumb {
    width: 30px;
    height: 30px;
  }

  .bhp-dsc-toggle input:checked + .bhp-dsc-toggle__track .bhp-dsc-toggle__thumb {
    transform: translateX(26px);
  }
}
