.mtk-calculator {
  --mtk-blue: #298bea;
  --mtk-blue-dark: #1863dc;
  --mtk-blue-soft: #eaf4ff;
  --mtk-blue-pale: #f5f9fe;
  --mtk-ink: #191d32;
  --mtk-text: #333b4c;
  --mtk-muted: #6f7b8c;
  --mtk-line: #dce5ef;
  --mtk-white: #fff;
  --mtk-success: #157f65;
  --mtk-warning: #9a6110;
  --mtk-radius: 22px;
  color: var(--mtk-text);
  font-family: Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 24px auto;
  max-width: 1180px;
  width: 100%;
}

.mtk-calculator,
.mtk-calculator * {
  box-sizing: border-box;
}

.mtk-calculator [hidden] {
  display: none !important;
}

.mtk-calculator svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mtk-calculator button,
.mtk-calculator input,
.mtk-calculator select {
  font: inherit;
}

.mtk-calculator button,
.mtk-calculator a {
  -webkit-tap-highlight-color: transparent;
}

.mtk-shell {
  background:
    radial-gradient(circle at 12% 5%, rgba(41, 139, 234, .13), transparent 25%),
    radial-gradient(circle at 92% 0, rgba(171, 194, 217, .2), transparent 27%),
    #f7faff;
  border: 1px solid #e7eef7;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(25, 29, 50, .08);
  overflow: hidden;
  padding: clamp(24px, 4vw, 56px);
  position: relative;
}

.mtk-hero {
  margin: 0 auto 34px;
  max-width: 810px;
  text-align: center;
}

.mtk-eyebrow {
  align-items: center;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: .12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mtk-eyebrow span {
  background: var(--mtk-blue);
  border-radius: 99px;
  height: 7px;
  width: 7px;
}

.mtk-hero h2 {
  color: var(--mtk-ink);
  font-family: inherit;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.mtk-hero > p {
  color: var(--mtk-muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 0 auto;
  max-width: 730px;
}

.mtk-trust-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  justify-content: center;
  margin-top: 23px;
}

.mtk-trust-row span {
  align-items: center;
  color: #5d6b7d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  gap: 7px;
}

.mtk-trust-row svg {
  color: var(--mtk-blue);
  height: 17px;
  width: 17px;
}

.mtk-app-card,
.mtk-results {
  background: var(--mtk-white);
  border: 1px solid rgba(220, 229, 239, .92);
  border-radius: var(--mtk-radius);
  box-shadow: 0 15px 50px rgba(25, 29, 50, .07);
  margin: 0 auto;
  max-width: 920px;
  overflow: hidden;
}

.mtk-progress {
  background: #fbfdff;
  border-bottom: 1px solid var(--mtk-line);
  padding: 22px clamp(20px, 5vw, 54px) 17px;
}

.mtk-progress-track {
  background: #e8eef5;
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}

.mtk-progress-track span {
  background: linear-gradient(90deg, var(--mtk-blue-dark), #58aef7);
  border-radius: 99px;
  display: block;
  height: 100%;
  transition: width .35s ease;
  width: 33.333%;
}

.mtk-progress-labels {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
}

.mtk-progress-labels span {
  align-items: center;
  color: #8a95a5;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

.mtk-progress-labels span:nth-child(2) {
  justify-content: center;
}

.mtk-progress-labels span:nth-child(3) {
  justify-content: flex-end;
}

.mtk-progress-labels b {
  align-items: center;
  background: #edf2f7;
  border-radius: 50%;
  display: inline-flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.mtk-progress-labels .is-active {
  color: var(--mtk-ink);
}

.mtk-progress-labels .is-active b,
.mtk-progress-labels .is-complete b {
  background: var(--mtk-blue);
  color: #fff;
}

.mtk-form {
  padding: clamp(26px, 5vw, 54px);
}

.mtk-form-error {
  background: #fff2f1;
  border: 1px solid #f3c6c2;
  border-radius: 12px;
  color: #8d2f27;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 13px 16px;
}

.mtk-step {
  animation: mtkFadeUp .32s ease both;
}

@keyframes mtkFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mtk-step-heading {
  margin-bottom: 29px;
}

.mtk-step-heading > span {
  color: var(--mtk-blue-dark);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.mtk-step-heading h3 {
  color: var(--mtk-ink);
  font-family: inherit;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.mtk-step-heading p {
  color: var(--mtk-muted);
  margin: 0;
}

.mtk-fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.mtk-fieldset--spaced {
  margin-top: 27px;
}

.mtk-fieldset legend,
.mtk-field > span {
  color: var(--mtk-ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
  padding: 0;
}

.mtk-fieldset small,
.mtk-field > small {
  color: #7d8999;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}

.mtk-segmented {
  background: #f1f5f9;
  border: 1px solid #e4eaf1;
  border-radius: 13px;
  display: grid;
  gap: 5px;
  padding: 5px;
}

.mtk-segmented--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 460px;
}

.mtk-segmented--three {
  grid-template-columns: repeat(3, 1fr);
}

.mtk-segmented label {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.mtk-segmented input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.mtk-segmented span {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #667487;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 43px;
  padding: 8px 12px;
  text-align: center;
  transition: .18s ease;
}

.mtk-segmented input:checked + span {
  background: #fff;
  border-color: #dbe5ef;
  box-shadow: 0 3px 10px rgba(25, 29, 50, .07);
  color: var(--mtk-blue-dark);
}

.mtk-segmented input:focus-visible + span,
.mtk-pace-options input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(41, 139, 234, .22);
  outline: 0;
}

.mtk-grid {
  display: grid;
  gap: 18px;
}

.mtk-grid--three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 27px;
}

.mtk-grid--four {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 27px;
}

.mtk-field {
  display: block;
  margin: 0;
}

.mtk-field--compact {
  max-width: 250px;
}

.mtk-input-wrap,
.mtk-select-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #ccd8e5;
  border-radius: 11px;
  display: flex;
  min-height: 52px;
  overflow: hidden;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mtk-input-wrap:focus-within,
.mtk-select-wrap:focus-within {
  border-color: var(--mtk-blue);
  box-shadow: 0 0 0 3px rgba(41, 139, 234, .14);
}

.mtk-input-wrap input,
.mtk-select-wrap select {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--mtk-ink);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  height: 50px;
  margin: 0 !important;
  min-width: 0;
  outline: 0;
  padding: 0 14px !important;
  width: 100%;
}

.mtk-input-wrap i {
  color: #8490a0;
  flex: 0 0 auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  padding-right: 14px;
}

.mtk-select-wrap select {
  cursor: pointer;
  padding-right: 48px !important;
}

.mtk-select-wrap svg {
  color: #718094;
  height: 20px;
  pointer-events: none;
  position: absolute;
  right: 15px;
  width: 20px;
}

.mtk-pace-options {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, 1fr);
}

.mtk-pace-options label {
  cursor: pointer;
  margin: 0;
  min-width: 0;
  position: relative;
}

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

.mtk-pace-card {
  background: #fff;
  border: 1px solid var(--mtk-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 145px;
  padding: 22px 17px 17px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mtk-pace-card em {
  background: var(--mtk-blue);
  border-radius: 99px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  left: 14px;
  letter-spacing: .05em;
  padding: 4px 8px;
  position: absolute;
  text-transform: uppercase;
  top: -10px;
}

.mtk-pace-card b {
  color: var(--mtk-ink);
  font-size: 16px;
  margin-bottom: 4px;
}

.mtk-pace-card strong {
  color: var(--mtk-blue-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.mtk-pace-card small {
  color: #7c8796;
  font-size: 12px;
  line-height: 1.4;
  margin-top: auto;
}

.mtk-pace-options input:checked + .mtk-pace-card {
  background: var(--mtk-blue-pale);
  border-color: var(--mtk-blue);
  box-shadow: 0 10px 26px rgba(41, 139, 234, .12);
  transform: translateY(-2px);
}

.mtk-eligibility-note {
  align-items: flex-start;
  background: #f6f8fb;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  display: flex;
  gap: 11px;
  margin-top: 25px;
  padding: 13px 15px;
}

.mtk-eligibility-note svg {
  color: #718094;
  flex: 0 0 auto;
  height: 19px;
  margin-top: 1px;
  width: 19px;
}

.mtk-eligibility-note p {
  color: #687587;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.mtk-actions {
  align-items: center;
  border-top: 1px solid #edf1f5;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 24px;
}

.mtk-actions--end {
  justify-content: flex-end;
}

.mtk-button {
  align-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none !important;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

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

.mtk-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(41, 139, 234, .2);
  outline: 0;
}

.mtk-button--primary {
  background: linear-gradient(135deg, var(--mtk-blue-dark), var(--mtk-blue));
  box-shadow: 0 8px 22px rgba(41, 139, 234, .22);
  color: #fff !important;
}

.mtk-button--primary:hover {
  box-shadow: 0 11px 28px rgba(41, 139, 234, .3);
  color: #fff !important;
}

.mtk-button--ghost {
  background: #fff;
  border: 1px solid #d7e0ea;
  color: #59677a !important;
}

.mtk-button--ghost:hover {
  background: #f6f9fc;
  color: var(--mtk-ink) !important;
}

.mtk-button--ghost svg {
  height: 17px;
  width: 17px;
}

.mtk-button.is-copied {
  border-color: rgba(21, 127, 101, .4);
  color: var(--mtk-success) !important;
}

.mtk-results {
  margin-top: 25px;
  opacity: 0;
  overflow: visible;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

.mtk-results.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mtk-result-hero {
  align-items: center;
  background:
    radial-gradient(circle at 95% 0, rgba(88, 174, 247, .32), transparent 32%),
    linear-gradient(135deg, #171c31, #243456);
  border-radius: var(--mtk-radius) var(--mtk-radius) 0 0;
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 5vw, 45px);
  position: relative;
}

.mtk-result-kicker {
  color: #a8d5ff;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mtk-result-hero h3 {
  color: #fff;
  font-family: inherit;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 12px;
}

.mtk-result-hero h3 strong {
  font-weight: 700;
}

.mtk-result-hero h3 small {
  color: #c9d5e7;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.mtk-result-hero > div > p {
  color: #b9c5d7;
  font-size: 14px;
  margin: 0;
  max-width: 540px;
}

.mtk-result-badge {
  align-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 190px;
  padding: 15px 17px;
}

.mtk-result-badge svg {
  color: #78bfff;
  height: 27px;
  width: 27px;
}

.mtk-result-badge span {
  color: #c4d0e0;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.mtk-result-badge b {
  color: #fff;
  font-size: 14px;
  margin-top: 2px;
}

.mtk-result-badge small {
  color: inherit;
  font-size: inherit;
}

.mtk-warning {
  align-items: flex-start;
  background: #fff8e9;
  border-bottom: 1px solid #f1dfb8;
  color: var(--mtk-warning);
  display: flex;
  gap: 12px;
  padding: 15px clamp(22px, 5vw, 44px);
}

.mtk-warning svg {
  flex: 0 0 auto;
  height: 21px;
  margin-top: 1px;
  width: 21px;
}

.mtk-warning p {
  color: #80551a;
  font-size: 13px;
  margin: 0;
}

.mtk-result-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.08fr .92fr;
  padding: clamp(24px, 5vw, 42px) clamp(22px, 5vw, 44px) 20px;
}

.mtk-result-card,
.mtk-check-plan {
  background: #fff;
  border: 1px solid var(--mtk-line);
  border-radius: 16px;
  padding: 23px;
}

.mtk-card-heading {
  align-items: center;
  display: flex;
  gap: 11px;
}

.mtk-card-heading > span {
  align-items: center;
  background: var(--mtk-blue-soft);
  border-radius: 9px;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mtk-card-heading h4 {
  color: var(--mtk-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 2px;
}

.mtk-card-heading p {
  color: #8590a0;
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.mtk-energy-bars {
  display: grid;
  gap: 17px;
  margin: 25px 0 22px;
}

.mtk-energy-bars > div > span {
  color: #637084;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.mtk-energy-bars b {
  color: var(--mtk-ink);
}

.mtk-energy-bars small {
  color: inherit;
  font-size: inherit;
}

.mtk-energy-bars i {
  background: #edf2f7;
  border-radius: 99px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.mtk-energy-bars u {
  background: #abb9c8;
  border-radius: 99px;
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

.mtk-energy-bars > div:nth-child(2) u {
  background: linear-gradient(90deg, var(--mtk-blue-dark), #65b5f7);
  width: 80%;
}

.mtk-detail-list {
  border-top: 1px solid #edf1f5;
  margin: 0;
  padding-top: 12px;
}

.mtk-detail-list div {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 6px 0;
}

.mtk-detail-list dt {
  color: #7d8998;
  font-size: 11px;
}

.mtk-detail-list dd {
  color: var(--mtk-ink);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.mtk-macro-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mtk-macro {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 11px 13px;
}

.mtk-macro i {
  align-items: center;
  background: var(--mtk-blue-soft);
  border-radius: 8px;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.mtk-macro--fat i {
  background: #fff3db;
  color: #a96a05;
}

.mtk-macro--carbs i {
  background: #e9f7f2;
  color: #157f65;
}

.mtk-macro span {
  display: flex;
  flex-direction: column;
}

.mtk-macro b {
  color: var(--mtk-ink);
  font-size: 17px;
  line-height: 1.1;
}

.mtk-macro small {
  color: #8490a0;
  font-size: 11px;
  margin-top: 2px;
}

.mtk-macro-note {
  color: #7b8797;
  font-size: 10px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.mtk-check-plan {
  margin: 0 clamp(22px, 5vw, 44px) 20px;
}

.mtk-check-steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.mtk-check-steps > div {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}

.mtk-check-steps > div > b {
  align-items: center;
  background: var(--mtk-blue-soft);
  border-radius: 50%;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.mtk-check-steps p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.mtk-check-steps strong {
  color: var(--mtk-ink);
  font-size: 12px;
}

.mtk-check-steps span {
  color: #818d9c;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 3px;
}

.mtk-adjustment {
  background: var(--mtk-blue-pale);
  border: 1px solid #d7eafa;
  border-radius: 10px;
  color: #4f647a;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 20px;
  padding: 11px 13px;
}

.mtk-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(22px, 5vw, 44px) 30px;
}

.mtk-result-actions .mtk-button {
  min-height: 42px;
  padding: 10px 15px;
}

.mtk-cta {
  align-items: center;
  background:
    radial-gradient(circle at 90% 0, rgba(41, 139, 234, .25), transparent 28%),
    var(--mtk-ink);
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: clamp(25px, 5vw, 42px) clamp(22px, 5vw, 44px);
}

.mtk-cta > div {
  max-width: 590px;
}

.mtk-cta > div > span {
  color: #86c6ff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.mtk-cta h3 {
  color: #fff;
  font-family: inherit;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.mtk-cta p {
  color: #b7c3d4;
  font-size: 13px;
  margin: 0;
}

.mtk-button--light {
  background: #fff;
  color: var(--mtk-ink) !important;
  flex: 0 0 auto;
}

.mtk-button--light:hover {
  background: #eaf4ff;
  color: var(--mtk-blue-dark) !important;
}

.mtk-methodology {
  background: #f8fafc;
  border-radius: 0 0 var(--mtk-radius) var(--mtk-radius);
  color: #687587;
  font-size: 12px;
  padding: 0 clamp(22px, 5vw, 44px);
}

.mtk-methodology summary {
  color: #566477;
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
}

.mtk-methodology > div {
  border-top: 1px solid #e3e9f0;
  padding: 17px 0 22px;
}

.mtk-methodology p {
  margin: 0 0 10px;
}

.mtk-methodology ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.mtk-methodology li {
  margin: 5px 0;
}

.mtk-methodology a {
  color: var(--mtk-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .mtk-calculator {
    margin: 12px auto;
  }

  .mtk-shell {
    border-radius: 20px;
    padding: 22px 13px;
  }

  .mtk-hero {
    margin-bottom: 25px;
    padding: 0 7px;
  }

  .mtk-trust-row {
    gap: 8px 15px;
  }

  .mtk-progress {
    padding-left: 17px;
    padding-right: 17px;
  }

  .mtk-progress-labels span {
    font-size: 0;
  }

  .mtk-progress-labels b {
    font-size: 11px;
  }

  .mtk-form {
    padding: 26px 18px;
  }

  .mtk-grid--three,
  .mtk-grid--four,
  .mtk-pace-options,
  .mtk-result-grid,
  .mtk-check-steps {
    grid-template-columns: 1fr;
  }

  .mtk-grid--three,
  .mtk-grid--four {
    gap: 14px;
  }

  .mtk-segmented--three {
    grid-template-columns: 1fr;
  }

  .mtk-field--compact {
    max-width: none;
  }

  .mtk-pace-card {
    min-height: 105px;
  }

  .mtk-actions {
    gap: 10px;
  }

  .mtk-actions .mtk-button {
    flex: 1 1 50%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mtk-actions--end .mtk-button {
    flex-basis: 100%;
  }

  .mtk-result-hero,
  .mtk-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .mtk-result-badge {
    width: 100%;
  }

  .mtk-result-grid {
    gap: 14px;
  }

  .mtk-check-steps {
    gap: 14px;
  }

  .mtk-button--light {
    width: 100%;
  }
}

/* Version 1.1.3 - cleaner body data and results */
.mtk-insight-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .mtk-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .mtk-grid--four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .mtk-segmented--two {
    grid-template-columns: 1fr;
  }

  .mtk-result-hero h3 small {
    display: block;
    margin-top: 8px;
  }

  .mtk-result-actions .mtk-button {
    width: 100%;
  }
}

/* Final layout override for version 1.1.3. */
.mtk-insight-grid {
  grid-template-columns: 1fr;
}

/* Version 1.1.4 - balanced data rows and horizontal plan profile. */
.mtk-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 27px;
}

.mtk-mass-grid {
  margin-top: 18px;
}

.mtk-profile-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mtk-profile-list div {
  min-height: 68px;
  padding: 13px 15px;
}

.mtk-profile-list dt {
  font-size: 10px;
}

.mtk-profile-list dd {
  font-size: 13px;
  margin-top: 5px;
}

@media (max-width: 640px) {
  .mtk-profile-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .mtk-grid--two {
    grid-template-columns: 1fr;
  }
}

/* Version 1.1.1 - compact first step */
.mtk-goal-options {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mtk-goal-card {
  align-items: center;
  flex-direction: row;
  gap: 15px;
  min-height: 0;
  padding: 16px 18px;
}

.mtk-goal-card > i {
  flex: 0 0 auto;
  height: 40px;
  margin: 0;
  width: 40px;
}

.mtk-goal-card > i svg {
  height: 21px;
  width: 21px;
}

.mtk-goal-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.mtk-goal-copy b {
  color: var(--mtk-ink);
  font-size: 15px;
  line-height: 1.25;
}

.mtk-goal-copy small {
  color: #7a8798;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.mtk-goal-card > em {
  align-items: center;
  border: 1.5px solid #c6d2df;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 22px;
  margin: 0;
  padding: 0;
  width: 22px;
}

.mtk-goal-options input:checked + .mtk-goal-card {
  transform: none;
}

.mtk-goal-options input:checked + .mtk-goal-card > em {
  background: var(--mtk-blue);
  border-color: var(--mtk-blue);
}

.mtk-goal-options input:checked + .mtk-goal-card > em::after {
  border-bottom: 1.8px solid #fff;
  border-right: 1.8px solid #fff;
  content: "";
  height: 8px;
  margin: -2px 0 0 6px;
  transform: rotate(45deg);
  width: 4px;
}

.mtk-goal-options label:nth-child(2) input:checked + .mtk-goal-card > em {
  background: #157f65;
  border-color: #157f65;
}

.mtk-goal-options label:nth-child(3) input:checked + .mtk-goal-card > em {
  background: #7353c5;
  border-color: #7353c5;
}

@media (max-width: 760px) {
  .mtk-goal-card {
    min-height: 0;
  }
}

/* Version 1.1.2 - clearer journey and useful final notes */
.mtk-journey-card .mtk-card-heading h4 {
  font-size: 19px;
}

.mtk-journey > div b {
  font-size: 17px;
}

.mtk-journey > div small {
  font-size: 11px;
}

.mtk-result-notes {
  background: #f8fafc;
  border-radius: 0 0 var(--mtk-radius) var(--mtk-radius);
  padding: 26px clamp(22px, 5vw, 44px) 30px;
}

.mtk-note-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.mtk-note-grid > div {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}

.mtk-note-grid > div > b {
  align-items: center;
  background: #e8f3ff;
  border-radius: 8px;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.mtk-note-grid p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.mtk-note-grid strong {
  color: var(--mtk-ink);
  font-size: 12px;
}

.mtk-note-grid span {
  color: #7f8b9b;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}

@media (max-width: 760px) {
  .mtk-journey-card .mtk-card-heading h4 {
    font-size: 18px;
  }

  .mtk-journey > div b {
    font-size: 15px;
  }

  .mtk-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtk-calculator *,
  .mtk-calculator *::before,
  .mtk-calculator *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Version 1.1 - goal selection and richer results */
.mtk-visually-hidden {
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.mtk-goal-options {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, 1fr);
}

.mtk-goal-options label {
  cursor: pointer;
  margin: 0;
  min-width: 0;
  position: relative;
}

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

.mtk-goal-card {
  background: #fff;
  border: 1px solid var(--mtk-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 22px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mtk-goal-card > i {
  align-items: center;
  background: var(--mtk-blue-soft);
  border-radius: 12px;
  color: var(--mtk-blue-dark);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 21px;
  width: 46px;
}

.mtk-goal-card > i svg {
  height: 25px;
  width: 25px;
}

.mtk-goal-options label:nth-child(2) .mtk-goal-card > i {
  background: #e9f7f2;
  color: #157f65;
}

.mtk-goal-options label:nth-child(3) .mtk-goal-card > i {
  background: #f2edff;
  color: #7353c5;
}

.mtk-goal-card > b {
  color: var(--mtk-ink);
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.mtk-goal-card > small {
  color: #7a8798;
  font-size: 12px;
  line-height: 1.5;
}

.mtk-goal-card > em {
  color: #96a1b0;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: auto;
  padding-top: 20px;
  text-transform: uppercase;
}

.mtk-goal-options input:checked + .mtk-goal-card {
  background: var(--mtk-blue-pale);
  border-color: var(--mtk-blue);
  box-shadow: 0 13px 30px rgba(41, 139, 234, .14);
  transform: translateY(-3px);
}

.mtk-goal-options label:nth-child(2) input:checked + .mtk-goal-card {
  background: #f2fbf8;
  border-color: #3fa58b;
  box-shadow: 0 13px 30px rgba(21, 127, 101, .12);
}

.mtk-goal-options label:nth-child(3) input:checked + .mtk-goal-card {
  background: #f8f5ff;
  border-color: #8f73d6;
  box-shadow: 0 13px 30px rgba(115, 83, 197, .12);
}

.mtk-goal-options input:checked + .mtk-goal-card > em {
  color: var(--mtk-blue-dark);
}

.mtk-goal-options label:nth-child(2) input:checked + .mtk-goal-card > em {
  color: #157f65;
}

.mtk-goal-options label:nth-child(3) input:checked + .mtk-goal-card > em {
  color: #7353c5;
}

.mtk-goal-options input:focus-visible + .mtk-goal-card {
  box-shadow: 0 0 0 4px rgba(41, 139, 234, .2);
  outline: 0;
}

.mtk-goal-details {
  border-top: 1px solid #edf1f5;
  margin-top: 30px;
  padding-top: 28px;
}

.mtk-maintain-note {
  align-items: flex-start;
  background: #f2fbf8;
  border: 1px solid #cfece3;
  border-radius: 13px;
  color: #157f65;
  display: flex;
  gap: 13px;
  padding: 16px;
}

.mtk-maintain-note svg {
  flex: 0 0 auto;
  height: 22px;
  margin-top: 1px;
  width: 22px;
}

.mtk-maintain-note p {
  color: #476d62;
  font-size: 13px;
  margin: 0;
}

.mtk-macro-bars {
  background: #edf2f7;
  border-radius: 99px;
  display: flex;
  height: 9px;
  margin-top: 18px;
  overflow: hidden;
  width: 100%;
}

.mtk-macro-bars span {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: width .35s ease;
}

.mtk-macro-bar--protein { background: var(--mtk-blue); }
.mtk-macro-bar--fat { background: #e8a638; }
.mtk-macro-bar--carbs { background: #35a788; }

.mtk-insight-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.35fr .65fr;
  margin: 0 clamp(22px, 5vw, 44px) 20px;
}

.mtk-journey-card,
.mtk-profile-card {
  background: #fff;
  border: 1px solid var(--mtk-line);
  border-radius: 16px;
  padding: 23px;
}

.mtk-journey {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin-top: 30px;
}

.mtk-journey > div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mtk-journey > div b {
  color: var(--mtk-ink);
  font-size: 14px;
  white-space: nowrap;
}

.mtk-journey > div small {
  color: #8a95a4;
  font-size: 9px;
  margin-top: 2px;
}

.mtk-journey > i {
  background: #e8eef5;
  border-radius: 99px;
  display: block;
  height: 5px;
  overflow: hidden;
}

.mtk-journey > i span {
  background: linear-gradient(90deg, var(--mtk-blue-dark), #65b5f7);
  border-radius: 99px;
  display: block;
  height: 100%;
  width: 100%;
}

.mtk-profile-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.mtk-profile-list div {
  background: #f7f9fc;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  padding: 9px 11px;
}

.mtk-profile-list dt {
  color: #8792a1;
  font-size: 9px;
  line-height: 1.2;
}

.mtk-profile-list dd {
  color: var(--mtk-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 2px 0 0;
}

.mtk-calculator[data-active-goal="maintain"] .mtk-progress-track span,
.mtk-calculator[data-active-goal="maintain"] .mtk-energy-bars > div:nth-child(2) u,
.mtk-calculator[data-active-goal="maintain"] .mtk-journey > i span {
  background: linear-gradient(90deg, #157f65, #4db99c);
}

.mtk-calculator[data-active-goal="gain"] .mtk-progress-track span,
.mtk-calculator[data-active-goal="gain"] .mtk-energy-bars > div:nth-child(2) u,
.mtk-calculator[data-active-goal="gain"] .mtk-journey > i span {
  background: linear-gradient(90deg, #7353c5, #9e83e3);
}

@media (max-width: 760px) {
  .mtk-goal-options,
  .mtk-insight-grid {
    grid-template-columns: 1fr;
  }

  .mtk-goal-card {
    min-height: 155px;
  }

  .mtk-goal-card > i {
    margin-bottom: 14px;
  }

  .mtk-journey {
    gap: 6px;
  }

  .mtk-journey > div b {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .mtk-journey {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .mtk-journey > i {
    height: 18px;
    margin: 0 auto;
    width: 4px;
  }
}
