.mf-app {
  --mf-ink: var(--pg-text, #10243a);
  --mf-muted: var(--pg-text-2, #5b6d7d);
  --mf-line: var(--pg-line, #d8e2ec);
  --mf-brand: var(--pg-mid, #055697);
  --mf-soft: var(--pg-footer, #eef4fa);
  --mf-focus: var(--pg-accent, #0072d2);
  color: var(--mf-ink);
  font-family: var(--pg-font-sans, Lato, Helvetica, Arial, sans-serif);
  line-height: 1.5;
  font-size: 16px;
  width: 100%;
  min-width: 0;
}
.mf-app *, .mf-app *::before, .mf-app *::after { box-sizing: border-box; }
.mf-app [hidden] { display: none !important; }
.mf-app .mf-shell { width: min(100%, 1050px); margin: 0 auto; padding: clamp(12px, 2.4vw, 34px); }
.mf-app .mf-header { padding: 0 0 22px; }
.mf-app h1, .mf-app h2, .mf-app h3, .mf-app p, .mf-app dl, .mf-app dt, .mf-app dd { margin: 0; }
.mf-app h1 { color: var(--pg-navy, #053263); font-size: clamp(2rem, 4.1vw, 3.7rem); letter-spacing: var(--pg-track-head, -.02em); font-weight: 650; line-height: 1.09; }
.mf-app .mf-header p { max-width: 64ch; color: var(--mf-muted); margin-top: 12px; font-size: clamp(.95rem, 1.5vw, 1.09rem); }
.mf-app .mf-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--mf-line); margin-bottom: 24px; gap: clamp(4px, 1vw, 16px); }
.mf-app button { font: inherit; cursor: pointer; }
.mf-app button:disabled { cursor: default; }
.mf-app .mf-steps button { appearance: none; width: 100%; min-width: 0; display: flex; justify-content: flex-start; align-items: center; gap: 10px; color: var(--mf-muted); background: transparent; border: 0; border-radius: 0; border-bottom: 3px solid transparent; padding: 10px 3px 12px; text-align: left; font-size: .94rem; font-weight: 620; opacity: 1; }
.mf-app .mf-steps [aria-current] { color: var(--mf-brand); border-color: var(--mf-brand); }
.mf-app .mf-count { font-family: var(--pg-font-alt, Poppins, Helvetica, Arial, sans-serif); display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--mf-muted); background: var(--mf-soft); flex: 0 0 auto; font-size: .8rem; font-variant-numeric: tabular-nums; }
.mf-app .mf-count svg { width: 16px; height: 16px; }
.mf-app [aria-current] .mf-count { background: var(--mf-brand); color: #fff; }
.mf-app .mf-done .mf-count { color: var(--mf-brand); background: var(--mf-soft); }
.mf-app .mf-stage { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-bottom: 13px; font-weight: 650; letter-spacing: -.028em; }
.mf-app .mf-stage:focus { outline: none; }
.mf-app .mf-card { background: white; border: 1px solid var(--mf-line); border-radius: 16px; padding: clamp(16px, 2.4vw, 28px); margin: 0 0 16px; min-width: 0; }
.mf-app .mf-section-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.mf-app h3 { color: var(--mf-ink); font-size: clamp(1.08rem, 2vw, 1.25rem); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.mf-app .mf-card p, .mf-app .mf-field small, .mf-app .mf-scenario small { color: var(--mf-muted); font-size: .86rem; line-height: 1.48; }
.mf-app .mf-card p { margin-top: 5px; max-width: 70ch; }
.mf-app .mf-scenario { display: flex; align-items: end; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--mf-line); }
.mf-app .mf-scenario .mf-field { width: min(100%, 320px); }
.mf-app .mf-scenario small { padding-bottom: 10px; }
.mf-app .mf-basic { display: grid; grid-template-columns: 2fr 1.25fr 1fr 1fr; gap: 13px; align-items: start; }
.mf-app .mf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mf-app .mf-field label, .mf-app .mf-columns { font-size: .79rem; font-weight: 650; color: var(--pg-navy, #053263); line-height: 1.4; }
.mf-app .mf-field input, .mf-app .mf-field select { display: block; appearance: auto; height: 44px; min-width: 0; width: 100%; border: 1px solid var(--pg-line-ui, #5b6d7d); border-radius: 7px; margin: 0; padding: 7px 10px; font: inherit; font-size: 1rem; color: var(--mf-ink); background-color: white; line-height: 1.35; box-shadow: none; }
@media (forced-colors: none) {
  .mf-app .mf-field select:not([multiple]):not([size]) {
    appearance: none;
    padding-right: 36px;
    background-image:
      linear-gradient(45deg, transparent 42%, var(--mf-ink) 43% 63%, transparent 64%),
      linear-gradient(-45deg, transparent 42%, var(--mf-ink) 43% 63%, transparent 64%);
    background-size: 6px 7px;
    background-position: right 18px center, right 12px center;
    background-repeat: no-repeat;
  }
}
.mf-choice { position: relative; }
.mf-app .mf-choice > input { padding-inline-end: 48px; }
.mf-choice input::-webkit-calendar-picker-indicator { display: none !important; }
.mf-app .mf-choice select.mf-picker {
    position: absolute; inset-block: 0; inset-inline-end: 1px; width: 42px; height: 100%;
    cursor: pointer; border: 1px solid transparent; background-color: transparent;
}
.mf-app input::placeholder { color: var(--mf-muted); opacity: 1; }
.mf-app input[data-number] { font-variant-numeric: tabular-nums; }
.mf-app :is(button,input,select):focus-visible { outline: 3px solid var(--mf-focus); outline-offset: 2px; }
.mf-app .mf-field input[aria-invalid] { border-color: #b12e35; }
.mf-app .mf-field .mf-error { color: #9b2031; font-weight: 550; }
.mf-app .mf-card > .mf-field:only-child { max-width: 340px; }
.mf-app .mf-columns, .mf-app .mf-line { display: grid; grid-template-columns: minmax(155px, 1.65fr) minmax(90px,1fr) minmax(90px,1fr) 44px; align-items: start; column-gap: 12px; }
.mf-app .mf-columns { padding-bottom: 8px; }
.mf-app .mf-line + .mf-line { margin-top: 10px; }
.mf-app .mf-cell { position: relative; }
.mf-app .mf-cell label, .mf-app .mf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mf-app .mf-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; border: 1px solid var(--mf-line); background: #fff; color: var(--mf-muted); flex-shrink: 0; }
.mf-app button svg, .mf-app .mf-success svg { width: 19px; height: 19px; flex-shrink: 0; }
.mf-app .mf-add { background: var(--mf-soft); border-color: var(--mf-brand); color: var(--mf-brand); }
.mf-app .mf-add:hover { background: var(--pg-line, #d8e2ec); }
.mf-app .mf-remove:hover { background: #fceceb; color: #9e2c36; border-color: #e2b9ba; }
.mf-app .mf-years {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px clamp(2px, .8vw, 10px);
}
.mf-app .mf-years .mf-field { display: contents; }
.mf-app .mf-years label { grid-row: 1; align-self: end; text-align: center; overflow-wrap: anywhere; }
.mf-app .mf-years input { grid-row: 2; padding-inline: 1px; text-align: center; }
.mf-app .mf-years .mf-error { grid-column: 1 / -1; }
.mf-app .mf-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mf-app .mf-primary, .mf-app .mf-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 8px; padding: 9px 16px; font-size: .93rem; font-weight: 650; line-height: 1.4; }
.mf-app .mf-primary { border: 1px solid var(--pg-accent, #0072d2); color: white; background: var(--pg-accent, #0072d2); }
.mf-app .mf-primary:hover { background: var(--pg-navy, #053263); }
.mf-app .mf-primary:disabled { background: var(--mf-muted); border-color: var(--mf-muted); }
.mf-app .mf-footer .mf-primary { margin-left: auto; }
.mf-app .mf-secondary { border: 1px solid var(--mf-line); color: var(--mf-ink); background: white; }
.mf-app .mf-secondary:hover { background: var(--pg-page, #f7f9fc); }
.mf-app .mf-warning, .mf-app .mf-alert { margin: 12px 0; border-left: 3px solid #a86416; background: #fff5e4; padding: 10px 12px; color: #4e381a; font-size: .9rem; }
.mf-app .mf-warning button { margin: 3px; padding: 6px 8px; border: 1px solid #ab8a57; border-radius: 6px; background: white; color: var(--mf-ink); }
.mf-app .mf-result-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 16px; align-items: start; }
.mf-app .mf-main-stat { padding: 17px 19px; color: #fff; background: var(--pg-navy, #053263); border-radius: 11px; display: flex; flex-direction: column; gap: 5px; }
.mf-app .mf-main-stat span { font-size: .84rem; }
.mf-app .mf-main-stat strong { font-size: clamp(1.65rem,3vw,2.25rem); font-weight: 620; line-height: 1.12; overflow-wrap: anywhere; }
.mf-app .mf-main-stat .mf-stat-message { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.mf-app .mf-payback { margin-bottom: 16px; }
.mf-app .mf-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mf-line); }
.mf-app .mf-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.mf-app .mf-stat dt { color: var(--mf-muted); font-size: .88rem; }
.mf-app .mf-stat dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 640; overflow-wrap: anywhere; }
.mf-app .mf-first .mf-stat:first-child { padding-top: 0; }
.mf-app .mf-report { background: var(--mf-soft); border-color: var(--mf-line); }
.mf-app .mf-mail { display: grid; place-items: center; background: white; color: var(--mf-brand); width: 43px; height: 43px; border-radius: 11px; margin-bottom: 16px; }
.mf-app .mf-mail svg { width: 23px; height: 23px; }
.mf-app .mf-report .mf-field { margin: 18px 0 12px; }
.mf-app .mf-consent { display: flex; gap: .65rem; align-items: flex-start; margin: 0 0 1rem; cursor: pointer; font-size: .94rem; line-height: 1.5; }
.mf-app .mf-consent input { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; min-height: 0; margin: .1rem 0 0; accent-color: var(--mf-brand); }
.mf-app .mf-report .mf-primary { width: 100%; }
.mf-app .mf-report .mf-success { display: flex; gap: 6px; align-items: start; color: var(--mf-brand); margin-top: 14px; }
@media(max-width: 810px) {
 .mf-app .mf-basic { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 640px) {
 .mf-app .mf-shell { padding: 14px 10px; }
 .mf-app .mf-header { padding-bottom: 12px; }
 .mf-app .mf-steps { margin-bottom: 18px; }
 .mf-app .mf-steps button { gap: 5px; font-size: .77rem; padding-inline: 0; }
 .mf-app .mf-count { font-family: var(--pg-font-alt, Poppins, Helvetica, Arial, sans-serif); width: 22px; height: 22px; }
 .mf-app .mf-card { border-radius: 12px; padding: 15px; }
 .mf-app .mf-scenario { display: grid; gap: 5px; }
 .mf-app .mf-scenario small { padding: 0; }
 .mf-app .mf-section-head { margin-bottom: 13px; }
 .mf-app .mf-basic { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
 .mf-app .mf-columns { display: none; }
 .mf-app .mf-line { grid-template-columns: repeat(2,minmax(0,1fr)) 44px; gap: 9px 7px; border-top: 1px solid var(--mf-line); padding-top: 12px; }
 .mf-app .mf-line > .mf-cell:first-child { grid-column: 1/3; grid-row: 1; }
 .mf-app .mf-line > .mf-cell:nth-child(2) { grid-row: 2; }
 .mf-app .mf-line > .mf-cell:nth-child(3) { grid-column: 2/4; grid-row: 2; }
 .mf-app .mf-line > .mf-remove { align-self: end; grid-row: 1; grid-column: 3; }
 .mf-app .mf-cell label { position: static; width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; overflow: visible; }
 .mf-app .mf-line > .mf-cell:nth-child(n+2) { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
 .mf-app .mf-line > .mf-cell:nth-child(2), .mf-app .mf-line > .mf-cell:nth-child(3) { grid-row: 2/4; }
 .mf-app .mf-years { column-gap: 2px; margin-inline: -10px; }
 .mf-app .mf-years label { font-size: .75rem; }
 .mf-app .mf-years input { border-radius: 5px; }
 .mf-app .mf-result-grid { display: block; }
 .mf-app .mf-stat { align-items: start; }
 .mf-app .mf-stat dd { max-width: 57%; }
}
.mf-app .mf-backlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; margin: -5px 0 7px; padding: 4px 1px; text-decoration: none; background: transparent; color: var(--mf-brand); font: inherit; font-weight: 620; font-size: .88rem; }
.mf-app .mf-backlink:hover { text-decoration: underline; }
.mf-app .mf-backlink svg { width: 18px; height: 18px; }
.mf-app a:focus-visible { outline: 3px solid var(--mf-focus); outline-offset: 2px; }

@media (max-width: 360px) {
    .mf-app .mf-years { column-gap: 1px; margin-inline: -14px; }
    .mf-app .mf-years input { padding-inline: 0; letter-spacing: -.035em; }
}
