.mk-income {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  color: #3e2551;
  background: #fefefe;
  border: 1px solid #e8dbec;
  border-radius: 24px;
  padding: clamp(15px, 4vw, 28px);
  font: inherit;
  line-height: 1.4;
  overflow-wrap: anywhere;
  container-type: inline-size;
}
.mk-income p { margin: 0; }
.mk-income-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; }
.mk-income-family > strong, .mk-income-age legend { display: block; margin: 0 0 8px; font-weight: 800; }
.mk-income-age { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.mk-income-age legend { padding: 0; }
.mk-income-stepper, .mk-income-age > div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mk-income-stepper button, .mk-income-age label {
  box-sizing: border-box;
  min-block-size: 44px;
  padding: 7px 10px;
  border: 1px solid #bba6bf;
  border-radius: 999px;
  background: #fff;
  color: #3e2551;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.mk-income-stepper button { inline-size: 44px; padding: 0; color: #3e2551; font-size: 1.25em; }
.mk-income-stepper button:hover { background: #f9d8e3; }
.mk-income-stepper button:disabled { opacity: .5; cursor: default; }
.mk-income-stepper output { min-inline-size: 26px; text-align: center; font-weight: 850; }
.mk-income-age label { display: inline-flex; align-items: center; gap: 6px; font-size: .94em; }
.mk-income-age label:has(:checked) { background: #f9d8e3; border-color: #a8456a; }
.mk-income-age input { margin: 0; accent-color: #92254e; flex: none; }
.mk-income-label { display: grid; gap: 7px; margin-block-start: 17px; font-weight: 800; }
.mk-income-label input {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 46px;
  padding: 9px 13px;
  border: 1px solid #ac97b5;
  border-radius: 12px;
  background: #fff;
  color: #3e2551;
  font: inherit;
  font-size: max(16px, 1em);
}
.mk-income-help { margin-block: 9px 16px; font-size: .94em; }
.mk-income-help summary { cursor: pointer; }
.mk-income-help p { margin-block-start: 7px; }
.mk-income-threshold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 15px;
  color: white;
  background: #3e2551;
  border-radius: 15px;
}
.mk-income-threshold strong { font-size: clamp(1.25rem, 4vw, 1.75rem); white-space: nowrap; }
.mk-income-result { margin-block-start: 9px; padding: 11px 14px; background: #f4eff8; border-radius: 13px; }
.mk-income-result:empty { display: none; }
.mk-income-result[data-state="within"] { background: #e7f3f0; color: #204a3b; }
.mk-income-result:is([data-state="over"], [data-state="invalid"]) { background: #fce8ed; color: #7a2043; }
.mk-income-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block-start: 14px; }
.mk-income-actions a { color: #3e2551; font-weight: 800; text-underline-offset: .18em; }
.mk-income .mk-income-note { margin-block-start: 10px; font-size: .86em; color: #65566e; }
.mk-income :focus-visible { outline: 2px solid #92254e; outline-offset: 3px; }
@container (max-width: 390px) {
  .mk-income-fields { grid-template-columns: 1fr; }
}
