/* Money and retirement planner (2026-09-27). On top of tools.css + resume-scanner/scanner.css (wizard,
   stepper, feature rows, split sections, weights table). Layout after the leader (Boldin): a menu on the
   left (Overview, My plan, Explore, charts, scenarios), inputs and charts on the right, live updates.
   Our tokens only; charts are inline SVG (no canvas). */

.mp-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 72px; flex: 1; box-sizing: border-box; }
.mp-hero { text-align: center; margin: 8px auto 26px; max-width: 800px; }
.mp-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin: 12px 0; }
.mp-hero p { color: var(--ink-3); font-size: 17px; line-height: 1.55; }
.mp-hero.small h1 { font-size: clamp(24px, 3vw, 32px); }
.mp-hero.small p { display: none; }
.mp-app [hidden], .mp-toast[hidden], .mp-print [hidden] { display: none !important; }

/* ---------- inputs ---------- */
.mp-app input[type="text"], .mp-app select { min-height: 42px; box-sizing: border-box; }
.mp-app input.num { text-align: right; font-variant-numeric: tabular-nums; }
.mp-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mp-f > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mp-f > small { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.mp-in { position: relative; display: flex; align-items: stretch; }
.mp-in > i { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-style: normal; font-size: 13px; color: var(--ink-4); pointer-events: none; }
.mp-in > i.pre { left: 12px; }
.mp-in > i.post { right: 12px; }
.mp-in.has-pre input { padding-left: 34px; }
.mp-in.has-pre.long input { padding-left: 50px; }
.mp-in.has-post input { padding-right: 58px; }
/* a money box with its "a month / a year" picker beside it (audit M6) */
.mp-in.has-per { gap: 6px; flex-wrap: wrap; }
.mp-in.has-per input { flex: 999 1 130px; min-width: 0; }
.mp-in.has-per > i.pre { bottom: auto; height: 42px; }
/* side by side when there is room; in a narrow column the picker goes under the box, full width */
.mp-app .mp-in > select.mp-per { flex: 1 0 84px; width: auto; max-width: 100%; padding: 0 8px; font: 600 13px var(--sans); color: var(--ink-2); background-color: var(--paper-2); }
.mp-ask { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 7px 10px; }
.mp-ask .link-btn { font-weight: 700; min-height: 32px; padding: 4px 6px; }
.mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.mp-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mp-grid + .mp-grid { margin-top: 14px; }
.mp-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); font-weight: 500; cursor: pointer; margin: 0; }
.mp-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.mp-seg { display: inline-flex; border: 1px solid var(--hair-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.mp-seg button { border: 0; background: none; padding: 8px 14px; font: 600 13px var(--sans); color: var(--ink-3); cursor: pointer; min-height: 40px; }
.mp-seg button + button { border-left: 1px solid var(--hair-2); }
.mp-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.mp-hint { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin: 10px 0 0; }
.mp-hint b { color: var(--ink-2); }
.mp-src { font-size: 12px; color: var(--ink-4); line-height: 1.45; margin: 8px 0 0; }
.mp-src a { color: var(--ink-3); }

/* ---------- start wizard ---------- */
.mp-start { max-width: none; }
.mp-start .wiz-body h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.mp-start .wiz-body h3 + p { margin-top: -6px; }
.mp-start .wiz-body section + section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); }
.mp-start .wiz-acts { gap: 10px; flex-wrap: wrap; }
.mp-start .wiz-acts .btn-ghost { min-width: 0; }
.mp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mp-quick button { border: 1px dashed var(--accent-line); background: var(--surface); color: var(--accent-ink); border-radius: 99px; padding: 6px 14px; font: 600 13px var(--sans); cursor: pointer; min-height: 38px; }
.mp-quick button.on { border-style: solid; background: var(--accent-soft); }
/* the short start of the FIRE and corpus pages (2026-09-28): above the three steps, same card */
.mp-qs { padding: 30px 32px 26px; border-bottom: 1.5px dashed var(--accent-line); }
.mp-qs h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; text-align: center; }
.mp-qs-out { margin: 16px 0 0; padding: 12px 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; }
.mp-qs-out b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mp-qs .wiz-acts { margin-top: 16px; }
.mp-qs + .wiz-top { padding-top: 24px; }
.mp-qs + .wiz-top h2 { font-size: clamp(18px, 2.4vw, 22px); }
/* keyword pages: numbered steps and the worked-example table */
.mp-steps, .split-b .mp-steps { margin: 0; padding: 0; list-style: none; counter-reset: kw; display: grid; gap: 12px; }
.mp-steps li { counter-increment: kw; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); line-height: 1.55; color: var(--ink-2); }
.mp-steps li::before { content: counter(kw); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mp-steps li b { color: var(--ink); }
.weights.mp-ex td { font-variant-numeric: tabular-nums; }
.weights.mp-ex td:not(:first-child), .weights.mp-ex th:not(:first-child) { text-align: right; }
.weights.mp-ex td:first-child { width: 38%; }
.weights.mp-rules td:first-child { width: 24%; }
.weights.mp-rules td:last-child, .weights.mp-rules th:last-child { text-align: left; line-height: 1.55; }
@media (max-width: 560px) {
  /* the worked example stacks: each row's label, then each person's value with their name */
  .weights.mp-ex thead { display: none; }
  .weights.mp-ex, .weights.mp-ex tbody, .weights.mp-ex tr, .weights.mp-ex td { display: block; width: auto; }
  .weights.mp-ex tr { padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .weights.mp-ex td, .weights.mp-ex td:not(:first-child) { border: 0; padding: 2px 0; text-align: left; }
  .weights.mp-ex td:first-child { width: auto; margin-bottom: 2px; }
  .weights.mp-ex td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); }
  .weights.mp-rules td:first-child { width: 30%; }
}
/* FIRE card: lean / FIRE / fat side by side */
.mp-fire-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mp-fire-levels > div { border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.mp-fire-levels > div.on { border-color: var(--accent-line); background: var(--accent-soft); }
.mp-fire-levels span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.mp-fire-levels b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; margin: 2px 0; overflow-wrap: anywhere; }
.mp-fire-levels small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.mp-need + .mp-need { margin-top: 16px; }
.mp-goal-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px 40px; gap: 10px; align-items: end; margin-top: 10px; }

/* ---------- report shell ---------- */
.mp-report { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: linear-gradient(to right, var(--paper-2) 240px, var(--surface) 240px); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: clip; }
.mp-side { background: var(--paper-2); box-shadow: 1px 0 0 var(--hair); padding: 16px 12px; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; }
.mp-me { padding: 4px 8px 14px; border-bottom: 1px solid var(--hair); margin-bottom: 10px; }
.mp-me select { font-weight: 600; }
.mp-me small { display: block; font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.mp-menu { display: flex; flex-direction: column; gap: 2px; }
.mp-menu .mp-mh { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); padding: 12px 10px 4px; }
.mp-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; border-radius: 10px; padding: 8px 10px; font: 600 14px var(--sans); color: var(--ink-2); cursor: pointer; text-align: left; min-height: 40px; }
.mp-menu button svg { flex: none; color: var(--ink-3); width: 17px; height: 17px; }
.mp-menu button span { flex: 1; }
.mp-menu button:hover { background: var(--surface); }
.mp-menu button[aria-current="page"] { background: var(--accent); color: #fff; }
.mp-menu button[aria-current="page"] svg { color: #fff; }
.mp-menu em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--surface); color: var(--ink-3); border: 1px solid var(--hair); }
.mp-menu button[aria-current="page"] em { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.mp-main { padding: 24px 28px 34px; min-width: 0; outline: none; }

/* status strip: always visible, updates live (Boldin's "Plan updated") */
.mp-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--hair); background: var(--paper); border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-2); }
.mp-strip b { font-size: 15px; color: var(--ink); }
.mp-strip .mp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); flex: none; }
.mp-strip .mp-dot.ok { background: var(--ok); } .mp-strip .mp-dot.mid { background: var(--warn); } .mp-strip .mp-dot.lo { background: var(--bad); }
.mp-strip .mp-delta { font-weight: 700; }
.mp-strip .mp-delta.up { color: var(--ok); } .mp-strip .mp-delta.down { color: var(--bad); }
.mp-strip .mp-grow { flex: 1; }
.mp-busy { color: var(--ink-4); font-size: 12.5px; }

.mp-pg-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-pg-h h2 { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.mp-pg-h p { color: var(--ink-3); font-size: 15px; margin: 0; max-width: 700px; line-height: 1.55; }
.mp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mp-acts .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.mp-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.mp-card-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin: -18px -20px 16px; padding: 11px 20px; background: var(--accent-soft); border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 1px solid var(--accent-line); }
.mp-card-h .mp-grow { flex: 1; }
.mp-card-h .btn, .mp-card-h button { text-transform: none; letter-spacing: 0; }

/* overview: how much you need (audit B1) */
.mp-need .mp-need-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-need-k { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.mp-need-big { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ink); }
.mp-need-mid { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mp-need-mid.bad { color: var(--bad); } .mp-need-mid.good { color: var(--ok); }
.mp-need-line { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 12px 0 0; }
.mp-need-fix { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 10px 0 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--hair); border-radius: 10px; }
.mp-app { scroll-margin-top: 72px; }

/* overview */
.mp-ov { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; }
.mp-score { text-align: center; }
.mp-ring { position: relative; width: 170px; height: 170px; margin: 4px auto 10px; }
.mp-ring svg { width: 100%; height: 100%; display: block; }
.mp-ring > b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.mp-ring > b small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 6px; letter-spacing: 0; }
.mp-band { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 8px; padding: 5px 11px; margin-bottom: 8px; }
.mp-band.ok { color: var(--ok); background: var(--ok-soft); border: 1px solid #BBF7D0; }
.mp-band.mid { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.mp-band.lo { color: var(--bad); background: var(--bad-soft); border: 1px solid #FECDD3; }
.mp-band.hi { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.mp-verdict { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.mp-gauge { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(to right, var(--bad-soft) 0 70%, var(--ok-soft) 70% 95%, var(--accent-soft) 95%); border: 1px solid var(--hair); margin: 16px 2px 6px; }
.mp-gauge i { position: absolute; top: -5px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); }
.mp-gauge-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); }
.mp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mp-tile { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; background: var(--paper); min-width: 0; }
.mp-tile span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.mp-tile b { display: block; font-size: 22px; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mp-tile small { display: block; font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.mp-tile.wide { grid-column: 1 / -1; }
.mp-tile .link-btn { font-size: 12.5px; }
.mp-range { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.mp-tile .mp-range b { display: inline; font-size: 13.5px; margin: 0; letter-spacing: 0; color: var(--ink-2); }

/* completeness (Boldin's Planner Score, as plain steps) */
.mp-done { display: flex; align-items: center; gap: 12px; }
.mp-done .bar { flex: 1; height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.mp-done .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.mp-done b { font-size: 13px; white-space: nowrap; }
.mp-todo { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mp-todo button, .mp-todo span { border: 1px solid var(--hair-2); background: var(--surface); border-radius: 99px; padding: 5px 12px; font: 600 12.5px var(--sans); color: var(--ink-2); cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.mp-todo span { cursor: default; }
.mp-todo button.ok, .mp-todo span.ok { color: var(--ok); border-color: #BBF7D0; background: var(--ok-soft); }

/* notes (coach) */
.mp-notes { list-style: none; margin: 0; padding: 0; }
.mp-notes li { display: flex; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mp-notes li + li { border-top: 1px solid var(--hair); }
.mp-notes .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; }
.mp-notes .bad .ic { background: var(--bad-soft); color: var(--bad); }
.mp-notes .warn .ic { background: var(--warn-soft); color: var(--warn); }
.mp-notes .good .ic { background: var(--ok-soft); color: var(--ok); }
.mp-notes .info .ic { background: var(--accent-soft); color: var(--accent-ink); font-style: italic; font-family: Georgia, serif; }
.mp-notes .act { display: block; margin-top: 3px; }

/* charts */
.mp-chart { position: relative; width: 100%; min-width: 0; }
.mp-chart svg.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch .cg { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch .cz { stroke: var(--hair-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch .cy, .ch .cx, .ch .cml { font: 11px var(--sans); fill: var(--ink-4); }
.ch .cy { text-anchor: end; }
.ch .cx { text-anchor: middle; }
.ch .cm { stroke: var(--ink-4); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ch .cb1 { fill: var(--accent); opacity: .12; }
.ch .cb2 { fill: var(--accent); opacity: .2; }
.ch .cl1 { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ch .cl2 { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.ch .cl3 { fill: none; stroke: var(--ok); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch .cl4 { fill: none; stroke: var(--bad); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch .ca1 { fill: var(--accent); opacity: .12; }
.ch .ca3 { fill: var(--ok); opacity: .1; }
.ch .chit { fill: transparent; cursor: crosshair; }
.ch .chov { stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.ch .s-work { fill: #6366F1; } .ch .s-pension { fill: #0EA5E9; } .ch .s-rent { fill: #14B8A6; } .ch .s-other { fill: #A3A3A3; }
.ch .s-draw { fill: #F59E0B; } .ch .s-sale { fill: #84CC16; }
.ch .s-living { fill: #94A3B8; } .ch .s-extra { fill: #F472B6; } .ch .s-goals { fill: #A855F7; } .ch .s-debt { fill: #EF4444; } .ch .s-saved { fill: #22C55E; } .ch .s-tax { fill: #64748B; } .ch .s-gap { fill: var(--bad); }
.ch .acc0, .ch .acc1, .ch .acc2, .ch .acc3, .ch .acc4, .ch .acc5, .ch .acc6, .ch .acc7 { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch .acc0 { stroke: #4F46E5; } .ch .acc1 { stroke: #0EA5E9; } .ch .acc2 { stroke: #16A34A; } .ch .acc3 { stroke: #D97706; }
.ch .acc4 { stroke: #DB2777; } .ch .acc5 { stroke: #7C3AED; } .ch .acc6 { stroke: #0D9488; } .ch .acc7 { stroke: #64748B; }
.mp-key i.s-work-k { background: #6366F1; } .mp-key i.s-pension-k { background: #0EA5E9; } .mp-key i.s-rent-k { background: #14B8A6; } .mp-key i.s-other-k { background: #A3A3A3; }
.mp-key i.s-draw-k { background: #F59E0B; } .mp-key i.s-sale-k { background: #84CC16; } .mp-key i.s-gap-k { background: var(--bad); }
.mp-key i.s-living-k { background: #94A3B8; } .mp-key i.s-extra-k { background: #F472B6; } .mp-key i.s-goals-k { background: #A855F7; } .mp-key i.s-debt-k { background: #EF4444; } .mp-key i.s-saved-k { background: #22C55E; } .mp-key i.s-tax-k { background: #64748B; }
.mp-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.mp-key span { display: inline-flex; align-items: center; gap: 6px; }
.mp-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.mp-key i.line { height: 3px; border-radius: 2px; }
.mp-key i.dash { height: 0; border-top: 2px dashed var(--ink-3); border-radius: 0; }
.mp-tip { position: absolute; z-index: 4; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.45; border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow-md); white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; }
.mp-tip b { color: #fff; }
.mp-tip span { display: block; color: rgba(255, 255, 255, .8); }

/* editable lists */
.mp-items { display: flex; flex-direction: column; gap: 12px; }
.mp-item { border: 1px solid var(--hair-2); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.mp-item-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mp-item-h input { font-weight: 700; flex: 1; min-width: 0; }
.mp-item-h .mp-x { border: 1px solid var(--hair-2); background: var(--surface); color: var(--ink-3); border-radius: 9px; width: 40px; height: 40px; cursor: pointer; flex: none; display: grid; place-items: center; }
.mp-item-h .mp-x:hover { color: var(--bad); border-color: var(--bad); }
.mp-kind { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.mp-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mp-add button { border: 1px dashed var(--accent-line); background: var(--surface); color: var(--accent-ink); border-radius: 10px; padding: 8px 14px; font: 600 13.5px var(--sans); cursor: pointer; min-height: 40px; }
.mp-add button:hover { background: var(--accent-soft); }
.mp-empty { font-size: 14px; color: var(--ink-3); background: var(--paper); border: 1px dashed var(--hair-2); border-radius: 12px; padding: 14px 16px; margin: 0; }
.mp-more summary { font-size: 13px; font-weight: 600; color: var(--accent-ink); cursor: pointer; margin-top: 10px; }
.mp-more[open] summary { margin-bottom: 10px; }
.mp-order { list-style: none; margin: 0; padding: 0; }
.mp-order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 10px; margin-bottom: 6px; font-size: 14px; }
.mp-order li b { flex: 1; }
.mp-order li button { border: 1px solid var(--hair-2); background: var(--surface); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; color: var(--ink-2); }

/* explore (what-if) */
.mp-sl { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 16px; align-items: center; padding: 12px 0; }
.mp-sl + .mp-sl { border-top: 1px solid var(--hair); }
.mp-sl label { margin: 0; font-size: 14px; }
.mp-sl label small { display: block; font-weight: 400; color: var(--ink-4); font-size: 12px; margin-top: 2px; }
.mp-sl input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); min-height: 28px; }
.mp-sl output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.mp-solve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mp-solve .mp-tile b { font-size: 20px; }
.mp-stress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mp-stress button { text-align: left; border: 1px solid var(--hair-2); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-family: var(--sans); min-height: 40px; }
.mp-stress button b { display: block; font-size: 14px; color: var(--ink); }
.mp-stress button span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.mp-stress button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* tables */
.mp-tbl-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; max-height: 560px; overflow-y: auto; }
.mp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mp-tbl th, .mp-tbl td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.mp-tbl th:first-child, .mp-tbl td:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
.mp-tbl thead th { position: sticky; top: 0; background: var(--paper-2); font-size: 12px; color: var(--ink-3); font-weight: 700; z-index: 1; }
.mp-tbl thead th:first-child { z-index: 2; }
.mp-tbl tbody tr { background: var(--surface); }
.mp-tbl tbody tr.ret { background: var(--paper); }
.mp-tbl tbody tr.bad td { color: var(--bad); }
.mp-tbl tbody tr.sel { background: var(--accent-soft); }
.mp-tbl tbody tr { cursor: pointer; }
.mp-cmp th { text-align: left; }
.mp-cmp tbody th { white-space: normal; min-width: 104px; max-width: 132px; }
.mp-cmp .link-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 4px; }
.mp-swipe { display: none; }
.mp-cmp td.best { color: var(--ok); font-weight: 700; }

/* year panel (ProjectionLab's click-a-year) */
.mp-year { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.mp-year h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin: 0 0 6px; }
.mp-year dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.mp-year dt { color: var(--ink-3); }
.mp-year dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mp-year dd.neg { color: var(--bad); }

/* history */
.mp-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; }
.mp-years span { font-size: 11.5px; text-align: center; padding: 5px 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.mp-years .ok { background: var(--ok-soft); color: #166534; }
.mp-years .no { background: var(--bad-soft); color: var(--bad); font-weight: 700; }

/* AI */
.mp-ai-out { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.mp-ai-out h3 { font-size: 15px; margin: 14px 0 4px; }
.mp-ai-note { font-size: 12.5px; color: var(--ink-4); margin: 10px 0 0; }
.mp-ai-warn { font-size: 13px; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }

.mp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; font-size: 14px; border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }

/* feature mock-ups below the tool */
.mp-mock-fan { width: 100%; }
.mp-mock-fan svg { width: 100%; height: 150px; display: block; }

/* ---------- phones ---------- */
@media (max-width: 960px) {
  .mp-report { grid-template-columns: minmax(0, 1fr); background: var(--surface); }
  .mp-side { position: sticky; top: 56px; z-index: 5; max-height: none; box-shadow: 0 1px 0 var(--hair); padding: 8px 10px; overflow: visible; }
  .mp-me { display: none; }
  .mp-menu { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .mp-menu::-webkit-scrollbar { display: none; }
  .mp-menu .mp-mh { display: none; }
  .mp-menu button { width: auto; flex: none; white-space: nowrap; padding: 8px 12px; }
  .mp-menu button svg { display: none; }
  .mp-main { padding: 18px 16px 28px; }
  .mp-ov { grid-template-columns: minmax(0, 1fr); }
  .mp-grid, .mp-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-solve, .mp-stress { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mp-wrap { padding: 8px 12px 56px; }
  .mp-grid, .mp-grid.g2, .mp-grid.g4, .mp-tiles, .mp-year { grid-template-columns: minmax(0, 1fr); }
  .mp-card { padding: 16px 14px; }
  .mp-card-h { margin: -16px -14px 14px; padding: 10px 14px; }
  .mp-goal-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mp-goal-row > :nth-child(3) { grid-column: 1; }
  .stepper li { width: 100px; font-size: 12.5px; }
  .wiz-body { padding: 20px 16px; }
  .mp-sl { grid-template-columns: minmax(0, 1fr) 110px; }
  .mp-need .mp-need-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mp-need-mid { font-size: 22px; }
  .mp-qs { padding: 22px 16px 20px; }
  .mp-fire-levels { grid-template-columns: minmax(0, 1fr); }
  .mp-swipe { display: block; }
  .mp-app { scroll-margin-top: 60px; }
}

/* ---------- print: the whole plan (Boldin's Plan Reporter) ---------- */
.mp-print { display: none; }
@media print {
  body.mp-printing > *:not(.mp-print) { display: none !important; }
  body.mp-printing .mp-print { display: block; font-size: 12px; }
  .mp-print h1 { font-size: 20px; margin: 0 0 10px; }
  .mp-print h2 { font-size: 16px; margin: 18px 0 8px; }
  .mp-print .mp-card { break-inside: avoid; box-shadow: none; }
  .mp-print .mp-tbl-wrap { max-height: none; overflow: visible; }
  .mp-print .mp-tbl { font-size: 9.5px; }
  .mp-print .mp-tbl th, .mp-print .mp-tbl td { padding: 3px 5px; }
  .mp-print svg.ch { max-height: 240px; }
  /* chart keys, bands and the gauge are backgrounds: print them (audit polish 2) */
  .mp-print, .mp-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
