.masterclass-simple {
  padding: 48px 0 56px;
  background: var(--paper);
}

.ms-heading {
  margin-bottom: 28px;
}

.ms-heading .eyebrow {
  margin-bottom: 10px;
  font-weight: 500;
}

.ms-heading h1 {
  max-width: none;
  margin: 0 0 10px;
  letter-spacing: 0;
}

.ms-heading > p:last-child {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.ms-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ms-plan,
.ms-results {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(16, 63, 43, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.ms-plan {
  padding: 26px;
}

.ms-plan h2,
.ms-results h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.ms-plan-data {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
}

.ms-plan-data dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
}

.ms-plan-data dd {
  margin: 0;
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.ms-plan-data dd small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.ms-mode {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ms-mode legend,
.ms-month label {
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.ms-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ms-mode-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.ms-mode-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ms-mode-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.ms-mode-options input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.ms-mode-options input:focus-visible + span,
.ms-range:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.ms-bid-note {
  min-height: 20px;
  margin: 10px 0 26px;
  color: #80847c;
  font-size: 12px;
}

.ms-month output {
  display: block;
  margin: 6px 0 16px;
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.ms-range {
  --range-progress: 20%;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 4px;
  background: linear-gradient(to right, var(--green) var(--range-progress), var(--mist) var(--range-progress));
  cursor: pointer;
  touch-action: pan-y;
}

.ms-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(16, 63, 43, 0.15);
}

.ms-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
}

.ms-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.ms-plan-note {
  margin: 24px 0 0;
  color: #80847c;
  font-size: 12px;
  line-height: 1.55;
}

.ms-results {
  padding: 26px 30px;
}

.ms-result-context {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.ms-result-context strong {
  color: var(--green);
  font-weight: 650;
  white-space: nowrap;
}

.ms-result {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ms-result:last-child {
  padding-bottom: 0;
}

.ms-result h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.ms-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  line-height: 1.25;
}

.ms-value strong {
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ms-value [data-negative] {
  color: #7b1f2d;
}

.ms-value > span {
  color: var(--muted);
  font-size: 13px;
}

.ms-result-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ms-property-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0 0;
}

.ms-property-parts div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.ms-property-parts dt {
  color: var(--muted);
  font-size: 12px;
}

.ms-property-parts dd {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.ms-assumptions {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.ms-assumptions summary {
  width: fit-content;
  padding: 5px 0;
  cursor: pointer;
}

.ms-assumptions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 12px 0 0;
}

.ms-assumptions dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ms-assumptions dd {
  margin: 0;
  color: var(--green);
  font-weight: 650;
  text-align: right;
}

.ms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.ms-quotas {
  margin-top: 40px;
  padding: 30px 0 4px;
  border-top: 1px solid var(--line);
}

.ms-quotas h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.ms-quotas header > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.ms-budget-control {
  margin-top: 24px;
}

.ms-budget-control > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.ms-budget-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.ms-budget-input-wrap:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ms-budget-input-wrap input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.ms-budget-validation {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ms-budget-range {
  margin-top: 18px;
}

.ms-budget-endpoints {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.ms-budget-result {
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid rgba(16, 63, 43, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.ms-budget-result-label,
.ms-budget-increase-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.ms-budget-count,
.ms-budget-increase {
  min-height: 35px;
  margin: 0;
  color: var(--green);
  font-size: 28px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.ms-budget-participation {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ms-budget-explanation {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ms-budget-credit {
  margin: 0;
}

.ms-budget-credit > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ms-budget-credit dt {
  color: var(--muted);
  font-size: 14px;
}

.ms-budget-credit dd {
  margin: 0;
  color: var(--green);
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ms-quotas-note {
  margin: 24px 0 0;
  color: #80847c;
  font-size: 12px;
  line-height: 1.55;
}

.ms-actions .button {
  width: 240px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 500;
}

@media (min-width: 900px) {
  .ms-heading h1 {
    font-size: 4.45rem;
  }
}

@media (max-width: 899px) {
  .ms-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ms-plan-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 540px) {
  .masterclass-simple {
    padding: 32px 0 40px;
  }

  .ms-heading > p:last-child {
    font-size: 14px;
  }

  .ms-plan,
  .ms-results {
    padding: 22px;
  }

  .ms-plan-data {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ms-plan-data > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 12px;
  }

  .ms-plan-data dd {
    font-size: 21px;
  }

  .ms-mode-options span {
    padding: 8px 4px;
    font-size: 12px;
  }

  .ms-value strong {
    font-size: 26px;
  }

  .ms-assumptions dl {
    grid-template-columns: 1fr;
  }

  .ms-actions {
    flex-direction: column;
    align-items: center;
  }

  .ms-actions .button {
    width: min(100%, 280px);
  }

  .ms-quotas {
    margin-top: 32px;
    padding-top: 26px;
  }

  .ms-quotas h2 {
    font-size: 20px;
  }

  .ms-quotas header > p {
    font-size: 14px;
  }

  .ms-budget-control {
    margin-top: 24px;
  }

  .ms-budget-input-wrap {
    font-size: 21px;
  }

  .ms-budget-result {
    margin-top: 26px;
    padding: 22px;
  }

  .ms-budget-count,
  .ms-budget-increase {
    min-height: 32.5px;
    font-size: 26px;
  }

  .ms-budget-credit > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ms-budget-credit dt {
    font-size: 14px;
  }

  .ms-budget-credit dd {
    font-size: 16px;
  }
}

@media (max-width: 379px) {
  .ms-plan-data {
    gap: 18px;
  }

  .ms-plan-data > div {
    display: block;
  }

  .ms-plan-data dt {
    margin-bottom: 6px;
  }
}
