/* Calculator layout developed with Google Stitch; site fonts and branding are local. */
.next-level-page .main-content { max-width: 1540px; padding-top: 28px; }
.next-breadcrumb { display: flex; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.next-breadcrumb a { color: inherit; text-decoration: none; }
.next-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.next-heading h1 { margin: 7px 0 10px; font-size: clamp(27px, 2.7vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.next-heading h1 span { color: #ff994c; }
.next-heading p { max-width: 680px; margin: 0; color: var(--muted); }
.next-heading > a { flex-shrink: 0; }
.next-layout { display: grid; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.55fr); gap: 20px; align-items: start; }
.next-panel { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.next-panel h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.next-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.next-panel-head > span { font-size: 10px; color: var(--muted); }
.next-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.next-field { display: block; margin-bottom: 20px; }
.next-field > span, .next-field > label { display: block; margin-bottom: 7px; color: #d5d9e2; font-size: 12px; font-weight: 550; }
.next-level-page .next-field input, .next-level-page .next-field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #3d4452; border-radius: 7px; background: #111319; color: #f3f4f7; font: inherit; font-variant-numeric: tabular-nums; }
.next-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.next-level-page input:focus-visible, .next-level-page select:focus-visible, .next-level-page button:focus-visible, .next-level-page summary:focus-visible, .next-level-page a:focus-visible { outline: 2px solid #ff9b51; outline-offset: 3px; }
.next-level-page input[aria-invalid="true"] { border-color: #ff9eab; }
.next-input-unit { position: relative; }
.next-input-unit input { padding-right: 36px !important; }
.next-input-unit > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #adb4c2; pointer-events: none; }
.next-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 19px; border-radius: 7px; background: #111319; }
.next-tabs button { flex: 1; min-height: 35px; padding: 7px 5px; border: 1px solid transparent; background: transparent; border-radius: 5px; color: var(--muted); font-size: 11px; }
.next-tabs button[aria-pressed="true"] { background: #2a2e38; color: #fff; border-color: #363d4b; }
.next-level-page .next-range { width: 100%; height: 20px; min-height: 0; margin: 4px 0 0; padding: 0; accent-color: var(--accent); background: transparent; cursor: pointer; }
.next-range-labels { display: flex; justify-content: space-between; margin: 2px 0 21px; color: #a4aab8; font-size: 10px; }
.next-tier-facts { margin: 3px 0 20px; padding: 13px 14px; border-radius: 7px; background: #111319; font-size: 11px; }
.next-tier-facts > div { display: flex; justify-content: space-between; gap: 14px; margin: 5px 0; }
.next-tier-facts dt { color: var(--muted); }
.next-tier-facts dd { margin: 0; color: #e7eaf0; font-variant-numeric: tabular-nums; }
.next-assumptions { border-top: 1px solid var(--line); padding-top: 15px; }
.next-assumptions summary { cursor: pointer; font-size: 12px; color: #d5d9e2; }
.next-assumptions .next-field { margin-top: 17px; margin-bottom: 10px; }
.next-quiet-button { display: inline; padding: 3px 0; border: 0; background: transparent; color: #ffb681; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.next-footnote { color: var(--muted); font-size: 11px; line-height: 1.7; }
.next-error { margin: 0 0 18px; padding: 14px; border: 1px solid #78505b; border-radius: 8px; background: #30232a; color: #ffd1d9; }
.next-target { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.next-target h2 { margin-top: 4px; font-size: 24px; letter-spacing: -.035em; }
.next-rank-symbol { display: grid; place-items: center; width: 46px; height: 46px; color: #ffad75; background: #32251d; border: 1px solid #5e3c29; border-radius: 11px; }
.next-rank-symbol svg { width: 25px; height: 25px; }
.next-progress-label { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; color: #c8ced9; font-size: 11px; }
.next-progress { display: block; width: 100%; height: 6px; margin: 8px 0 24px; border: 0; border-radius: 6px; background: #2d3340; overflow: hidden; }
.next-progress::-webkit-progress-bar { background: #2d3340; border-radius: 6px; }
.next-progress::-webkit-progress-value { background: #ff8a34; border-radius: 6px; }
.next-progress::-moz-progress-bar { background: #ff8a34; border-radius: 6px; }
.next-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.next-metric { min-width: 0; padding: 14px 12px; border: 1px solid #2d3340; border-radius: 8px; background: #12151c; }
.next-metric > span { display: block; min-height: 32px; color: #b6bdcb; font-size: 11px; line-height: 1.4; }
.next-metric strong { display: block; margin-top: 8px; font-size: clamp(19px, 2vw, 27px); letter-spacing: -.04em; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.next-metric small { display: block; margin-top: 5px; color: #969eaf; font-size: 10px; }
.next-metric.loss strong { color: #f6a2a9; }
.next-metric.bonus strong { color: #ffad75; }
.next-verdict { padding: 16px; margin-bottom: 20px; border: 1px solid #544034; border-radius: 8px; background: #26211e; }
.next-verdict > span { display: block; color: #c5b7ac; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.next-verdict strong { display: block; margin: 4px 0 5px; font-size: 27px; line-height: 1.3; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.next-verdict p { margin: 0; font-size: 12px; color: #d9cfc8; }
.next-verdict[data-outcome="above"] { background: #1b2632; border-color: #3b526e; }
.next-verdict[data-outcome="above"] > span, .next-verdict[data-outcome="above"] p { color: #c2d0e2; }
.next-comparison { margin-top: 12px; }
.next-comparison-label { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #bbc2cf; }
.next-bar { height: 6px; margin: 7px 0 13px; border-radius: 6px; background: #303642; overflow: hidden; }
.next-bar span { display: block; height: 100%; background: #e69ba4; border-radius: inherit; }
.next-bar.bonus span { background: #ff913f; }
.next-break-even { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; border-top: 1px solid #343845; font-size: 11px; color: var(--muted); }
.next-break-even strong { color: #edeff5; font-size: 17px; font-variant-numeric: tabular-nums; }
.next-result-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.next-custom { display: inline-block; margin-top: 9px; color: #e7c39b; font-size: 10px; }
.next-top-tier { padding: 34px 25px; }
.next-top-tier p { color: var(--muted); }
.next-section { margin-top: 34px; }
.next-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.next-section-heading h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.025em; }
.next-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.next-table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.next-table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 12px; }
.next-table th, .next-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.next-table thead th { color: #aeb6c6; background: #20242d; font-size: 10px; font-weight: 550; }
.next-table tbody th { font-weight: 500; color: #dee2eb; }
.next-table td { font-variant-numeric: tabular-nums; }
.next-table th:nth-child(n+2), .next-table td { text-align: right; }
.next-table tbody tr:last-child > * { border-bottom: 0; }
.next-table tr.current-target > * { background: #2c231e; color: #ffc393; }
.next-table tbody th::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border: 1px solid #9099aa; transform: rotate(45deg); }
.next-table tr.current-target th::before { background: #ff994c; border-color: #ff994c; }
.next-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.next-explainer p, .next-explainer li { font-size: 12px; color: var(--muted); line-height: 1.75; }
.next-explainer p { margin: 12px 0 0; }
.next-explainer a, .next-sources a { color: #ffbc8b; text-underline-offset: 3px; }
.next-formula { padding: 13px 15px; margin-top: 14px; border-radius: 7px; background: #101319; color: #d8dce6 !important; font-size: 12px; }
.next-faq { margin-top: 28px; }
.next-faq h2 { font-size: 20px; }
.next-faq details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.next-faq summary { color: #e0e4ed; font-size: 13px; cursor: pointer; }
.next-faq details p { color: var(--muted); max-width: 900px; font-size: 12px; line-height: 1.8; }
.next-sources { margin: 30px 0 0; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.next-sources h2 { margin: 0 0 9px; font-size: 14px; color: #d9dce5; }
.next-sources p { margin: 7px 0; }
.next-level-page .site-footer { margin-top: 5px; }
@media (max-width: 1200px) { .next-heading { display: block; } .next-heading > a { margin-top: 16px; } .next-layout { grid-template-columns: minmax(255px, .85fr) minmax(0, 1.5fr); gap: 16px; } .next-panel { padding: 20px; } .next-metrics { gap: 6px; } .next-metric { padding: 12px 9px; } }
@media (max-width: 760px) { .next-level-page .main-content { padding: 22px 18px 30px; } .next-breadcrumb { margin-bottom: 16px; } .next-heading { margin-bottom: 22px; } .next-heading p { font-size: 13px; } .next-layout, .next-explainer { grid-template-columns: 1fr; } .next-panel { padding: 20px; } .next-metric strong { font-size: 23px; } .next-section-heading { display: block; } .next-table th, .next-table td { padding: 12px; } .next-table { font-size: 11px; } .next-table thead th { white-space: normal; } .next-table tbody th::before { margin-right: 7px; } .next-break-even { flex-wrap: wrap; } }
@media (max-width: 520px) {
  .next-metrics { grid-template-columns: 1fr; gap: 8px; }
  .next-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 13px; }
  .next-metric > span { min-height: 0; }
  .next-metric strong { margin: 0; font-size: 20px; overflow-wrap: normal; }
  .next-metric small { grid-column: 1 / -1; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .next-level-page * { scroll-behavior: auto !important; transition: none !important; } }
